88using A = DocumentFormat . OpenXml . Drawing ;
99using DW = DocumentFormat . OpenXml . Drawing . Wordprocessing ;
1010using PIC = DocumentFormat . OpenXml . Drawing . Pictures ;
11- using FF = Openize . Words . IElements ;
11+ using FF = FileFormat . Words . IElements ;
1212using OWD = OpenXML . Words . Data ;
1313using OT = OpenXML . Templates ;
14- using Openize . Words ;
14+ using FileFormat . Words ;
1515
1616namespace OpenXML . Words
1717{
@@ -52,7 +52,7 @@ private OwDocument()
5252 catch ( Exception ex )
5353 {
5454 var errorMessage = OWD . OoxmlDocData . ConstructMessage ( ex , "Initialize OOXML Element(s)" ) ;
55- throw new OpenizeException ( errorMessage , ex ) ;
55+ throw new FileFormat . Words . FileFormatException ( errorMessage , ex ) ;
5656 }
5757 }
5858 }
@@ -84,7 +84,7 @@ private OwDocument(WordprocessingDocument pkg)
8484 catch ( Exception ex )
8585 {
8686 var errorMessage = OWD . OoxmlDocData . ConstructMessage ( ex , "Initialize OOXML Element(s)" ) ;
87- throw new OpenizeException ( errorMessage , ex ) ;
87+ throw new FileFormat . Words . FileFormatException ( errorMessage , ex ) ;
8888 }
8989 }
9090 }
@@ -109,7 +109,7 @@ internal void CreateProperties(WordprocessingDocument pkgDocument)
109109 [ "Subject" ] = "WordProcessing OWDocument Generation" ,
110110 [ "Keywords" ] = "DOCX" ,
111111 [ "Description" ] = "A WordProcessing OWDocument Created from Scratch." ,
112- [ "Creator" ] = "Openize .Words"
112+ [ "Creator" ] = "FileFormat .Words"
113113 } ;
114114 var currentTime = System . DateTime . UtcNow ;
115115 dictCoreProp [ "Created" ] = currentTime . ToString ( "yyyy-MM-ddTHH:mm:ss.fffffffZ" ) ;
@@ -130,7 +130,7 @@ public static OwDocument CreateInstance(WordprocessingDocument pkg)
130130 return new OwDocument ( pkg ) ;
131131 }
132132
133- #region Create OpenXML Word Document Contents Based on Openize .Words.IElements
133+ #region Create OpenXML Word Document Contents Based on FileFormat .Words.IElements
134134
135135 #region Main Method
136136 internal void CreateDocument ( List < FF . IElement > lst )
@@ -140,7 +140,7 @@ internal void CreateDocument(List<FF.IElement> lst)
140140 _wpBody = _mainPart . Document . Body ;
141141
142142 if ( _wpBody == null )
143- throw new OpenizeException ( "Package or Document or Body is null" , new NullReferenceException ( ) ) ;
143+ throw new FileFormat . Words . FileFormatException ( "Package or Document or Body is null" , new NullReferenceException ( ) ) ;
144144
145145 var sectionProperties = _wpBody . Elements < WP . SectionProperties > ( ) . FirstOrDefault ( ) ;
146146
@@ -172,7 +172,7 @@ internal void CreateDocument(List<FF.IElement> lst)
172172 catch ( Exception ex )
173173 {
174174 var errorMessage = OWD . OoxmlDocData . ConstructMessage ( ex , "Initialize OOXML Element(s)" ) ;
175- throw new OpenizeException ( errorMessage , ex ) ;
175+ throw new FileFormat . Words . FileFormatException ( errorMessage , ex ) ;
176176 }
177177
178178 }
@@ -434,7 +434,7 @@ internal WP.Paragraph CreateParagraph(FF.Paragraph ffP)
434434 catch ( Exception ex )
435435 {
436436 var errorMessage = OWD . OoxmlDocData . ConstructMessage ( ex , "Create Paragraph" ) ;
437- throw new OpenizeException ( errorMessage , ex ) ;
437+ throw new FileFormat . Words . FileFormatException ( errorMessage , ex ) ;
438438 }
439439 }
440440 }
@@ -551,7 +551,7 @@ internal WP.Table CreateTable(FF.Table ffTable)
551551 catch ( Exception ex )
552552 {
553553 var errorMessage = OWD . OoxmlDocData . ConstructMessage ( ex , "Create Table" ) ;
554- throw new OpenizeException ( errorMessage , ex ) ;
554+ throw new FileFormat . Words . FileFormatException ( errorMessage , ex ) ;
555555 }
556556 }
557557 }
@@ -657,14 +657,14 @@ internal WP.Paragraph CreateImage(FF.Image ffImg, MainDocumentPart mainPart)
657657 catch ( Exception ex )
658658 {
659659 var errorMessage = OWD . OoxmlDocData . ConstructMessage ( ex , "Create Image" ) ;
660- throw new OpenizeException ( errorMessage , ex ) ;
660+ throw new FileFormat . Words . FileFormatException ( errorMessage , ex ) ;
661661 }
662662 }
663663 }
664664 #endregion
665665 #endregion
666666
667- #region Load OpenXML Word Document Content into Openize .Words.IElements
667+ #region Load OpenXML Word Document Content into FileFormat .Words.IElements
668668
669669 #region Main Method
670670 internal List < FF . IElement > LoadDocument ( Stream stream )
@@ -675,7 +675,7 @@ internal WP.Paragraph CreateImage(FF.Image ffImg, MainDocumentPart mainPart)
675675 {
676676 _pkgDocument = WordprocessingDocument . Open ( stream , true ) ;
677677
678- if ( _pkgDocument . MainDocumentPart ? . Document ? . Body == null ) throw new OpenizeException ( "Package or Document or Body is null" , new NullReferenceException ( ) ) ;
678+ if ( _pkgDocument . MainDocumentPart ? . Document ? . Body == null ) throw new FileFormat . Words . FileFormatException ( "Package or Document or Body is null" , new NullReferenceException ( ) ) ;
679679
680680 OWD . OoxmlDocData . CreateInstance ( _pkgDocument ) ;
681681
@@ -762,7 +762,7 @@ internal WP.Paragraph CreateImage(FF.Image ffImg, MainDocumentPart mainPart)
762762 catch ( Exception ex )
763763 {
764764 var errorMessage = OWD . OoxmlDocData . ConstructMessage ( ex , "Load OOXML Elements" ) ;
765- throw new OpenizeException ( errorMessage , ex ) ;
765+ throw new FileFormat . Words . FileFormatException ( errorMessage , ex ) ;
766766 }
767767 }
768768 }
@@ -887,7 +887,7 @@ internal FF.Paragraph LoadParagraph(WP.Paragraph wpPara, int id)
887887 catch ( Exception ex )
888888 {
889889 var errorMessage = OWD . OoxmlDocData . ConstructMessage ( ex , "Load Paragraph" ) ;
890- throw new OpenizeException ( errorMessage , ex ) ;
890+ throw new FileFormat . Words . FileFormatException ( errorMessage , ex ) ;
891891 }
892892 }
893893 }
@@ -1010,7 +1010,7 @@ internal FF.Image LoadImage(WP.Drawing drawing, int sequence)
10101010 catch ( Exception ex )
10111011 {
10121012 var errorMessage = OWD . OoxmlDocData . ConstructMessage ( ex , "Load Image" ) ;
1013- throw new OpenizeException ( errorMessage , ex ) ;
1013+ throw new FileFormat . Words . FileFormatException ( errorMessage , ex ) ;
10141014 }
10151015 }
10161016 }
@@ -1070,7 +1070,7 @@ internal FF.Table LoadTable(WP.Table wpTable, int id)
10701070 catch ( Exception ex )
10711071 {
10721072 var errorMessage = OWD . OoxmlDocData . ConstructMessage ( ex , "Load Table" ) ;
1073- throw new OpenizeException ( errorMessage , ex ) ;
1073+ throw new FileFormat . Words . FileFormatException ( errorMessage , ex ) ;
10741074 }
10751075 }
10761076 }
@@ -1120,7 +1120,7 @@ internal FF.Section LoadSection(WP.SectionProperties sectPr, int id)
11201120 catch ( Exception ex )
11211121 {
11221122 var errorMessage = OWD . OoxmlDocData . ConstructMessage ( ex , "Load Section" ) ;
1123- throw new OpenizeException ( errorMessage , ex ) ;
1123+ throw new FileFormat . Words . FileFormatException ( errorMessage , ex ) ;
11241124 }
11251125 }
11261126 }
@@ -1217,7 +1217,7 @@ internal void SaveDocument(Stream stream)
12171217 catch ( Exception ex )
12181218 {
12191219 //var errorMessage = OWD.OoxmlDocData.ConstructMessage(ex, "Save OOXML OWDocument");
1220- //throw new OpenizeException (errorMessage, ex);
1220+ //throw new FileFormatException (errorMessage, ex);
12211221 throw new Exception ( ex . Message ) ;
12221222 }
12231223 }
0 commit comments