예제 #1
0
파일: ThemesTable.cs 프로젝트: WPG/npoi
        internal ThemesTable(PackagePart part, PackageRelationship rel)
            : base(part, rel)
        {

            //theme = ThemeDocument.Parse(part.GetInputStream());
            try
            {
                theme = ThemeDocument.Parse(part.GetInputStream());
            }
            catch (XmlException e)
            {
                throw new IOException(e.Message);
            }
        }
예제 #2
0
파일: ThemesTable.cs 프로젝트: twxstar/npoi
        /**
         * Construct a ThemesTable.
         * @param part A PackagePart.
         * @param rel A PackageRelationship.
         */
        internal ThemesTable(PackagePart part, PackageRelationship rel)
            : base(part, rel)
        {

            XmlDocument xmldoc = ConvertStreamToXml(part.GetInputStream());
                
            try
            {
                theme = ThemeDocument.Parse(xmldoc, NamespaceManager);
            }
            catch (XmlException e)
            {
                throw new IOException(e.Message);
            }
        }
예제 #3
0
파일: ThemesTable.cs 프로젝트: twxstar/npoi
 /**
  * Construct a ThemesTable from an existing ThemeDocument.
  * @param theme A ThemeDocument.
  */
 internal ThemesTable(ThemeDocument theme)
 {
     this.theme = theme;
 }
예제 #4
0
        internal ThemesTable(PackagePart part, PackageRelationship rel)
            : base(part, rel)
        {

            theme = ThemeDocument.Parse(part.GetInputStream());
        }