Changeset 9
- Timestamp:
- 11/17/07 06:38:03 (5 years ago)
- Location:
- trunk/docx4j/src/main/java/org/docx4j/openpackaging
- Files:
-
- 13 edited
- 2 moved
-
Base.java (modified) (1 diff)
-
exceptions/Docx4JException.java (moved) (moved from trunk/docx4j/src/main/java/org/docx4j/openpackaging/exceptions/OpenXML4JException.java) (1 diff)
-
exceptions/Docx4JRuntimeException.java (moved) (moved from trunk/docx4j/src/main/java/org/docx4j/openpackaging/exceptions/OpenXML4JRuntimeException.java) (1 diff)
-
exceptions/InvalidFormatException.java (modified) (1 diff)
-
exceptions/InvalidOperationException.java (modified) (1 diff)
-
io/LoadFromJCR.java (modified) (13 diffs)
-
io/LoadFromZipFile.java (modified) (12 diffs)
-
packages/Package.java (modified) (2 diffs)
-
parts/AbstractDocPropsPart.java (modified) (1 diff)
-
parts/DocPropsCorePart.java (modified) (1 diff)
-
parts/DocPropsExtendedPart.java (modified) (1 diff)
-
parts/PartName.java (modified) (3 diffs)
-
parts/WordprocessingML/AlternativeFormatInputPart.java (modified) (1 diff)
-
parts/WordprocessingML/DocumentPart.java (modified) (1 diff)
-
parts/WordprocessingML/MainDocumentPart.java (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/docx4j/src/main/java/org/docx4j/openpackaging/Base.java
r2 r9 55 55 import org.docx4j.openpackaging.exceptions.InvalidFormatException; 56 56 import org.docx4j.openpackaging.exceptions.InvalidOperationException; 57 import org.docx4j.openpackaging.exceptions. OpenXML4JException;57 import org.docx4j.openpackaging.exceptions.Docx4JException; 58 58 import org.docx4j.openpackaging.packages.Package; 59 59 import org.docx4j.openpackaging.parts.Part; -
trunk/docx4j/src/main/java/org/docx4j/openpackaging/exceptions/Docx4JException.java
r2 r9 37 37 */ 38 38 @SuppressWarnings("serial") 39 public class OpenXML4JException extends Exception {39 public class Docx4JException extends Exception { 40 40 41 public OpenXML4JException(String msg) {41 public Docx4JException(String msg) { 42 42 super(msg); 43 43 } 44 45 public Docx4JException(String msg, Exception e) { 46 super(msg, e); 47 } 48 44 49 } -
trunk/docx4j/src/main/java/org/docx4j/openpackaging/exceptions/Docx4JRuntimeException.java
r2 r9 37 37 */ 38 38 @SuppressWarnings("serial") 39 public class OpenXML4JRuntimeException extends RuntimeException {39 public class Docx4JRuntimeException extends RuntimeException { 40 40 41 public OpenXML4JRuntimeException(String msg) {41 public Docx4JRuntimeException(String msg) { 42 42 super(msg); 43 43 } -
trunk/docx4j/src/main/java/org/docx4j/openpackaging/exceptions/InvalidFormatException.java
r2 r9 30 30 31 31 @SuppressWarnings("serial") 32 public class InvalidFormatException extends OpenXML4JException{32 public class InvalidFormatException extends Docx4JException{ 33 33 34 34 public InvalidFormatException(String message){ -
trunk/docx4j/src/main/java/org/docx4j/openpackaging/exceptions/InvalidOperationException.java
r2 r9 36 36 */ 37 37 @SuppressWarnings("serial") 38 public class InvalidOperationException extends OpenXML4JRuntimeException{38 public class InvalidOperationException extends Docx4JRuntimeException{ 39 39 40 40 public InvalidOperationException(String message){ -
trunk/docx4j/src/main/java/org/docx4j/openpackaging/io/LoadFromJCR.java
r8 r9 33 33 import javax.jcr.Session; 34 34 import javax.jcr.SimpleCredentials; 35 import javax.jcr.ValueFormatException; 35 36 36 37 import javax.jcr.PathNotFoundException; … … 52 53 import org.docx4j.openpackaging.parts.relationships.Relationship; 53 54 import org.docx4j.openpackaging.parts.relationships.RelationshipsPart; 55 56 import org.docx4j.openpackaging.exceptions.Docx4JException; 54 57 55 58 import org.dom4j.Document; … … 104 107 105 108 106 public Package get(Session jcrSession, String nodePath) {109 public Package get(Session jcrSession, String nodePath) throws Docx4JException { 107 110 try { 108 111 Node root = jcrSession.getRootNode(); … … 111 114 } catch (Exception e) { 112 115 e.printStackTrace() ; 113 return null;116 throw new Docx4JException("Failed to get package"); 114 117 } 115 118 } 116 119 117 public Package get(Session jcrSession, Node docxNode ) {120 public Package get(Session jcrSession, Node docxNode ) throws Docx4JException { 118 121 119 122 Package p = null; … … 188 191 } catch (Exception e) { 189 192 e.printStackTrace() ; 193 throw new Docx4JException("Failed to get package"); 190 194 } 191 195 … … 195 199 196 200 public RelationshipsPart getRelationshipsPartFromJCR(Base p, Session jcrSession, Node docxNode, String partName) 197 throws InvalidFormatException {201 throws InvalidFormatException, Docx4JException { 198 202 Document contents=null; 199 203 try { 200 204 contents = getDocumentFromJCRPart( jcrSession, docxNode, partName); 201 } catch (DocumentException e) { 202 // TODO Auto-generated catch block 205 } catch (Exception e) { 203 206 e.printStackTrace(); 207 throw new Docx4JException("Error getting document from JCR Part", e); 204 208 } 205 209 … … 232 236 } 233 237 234 p ublic staticDocument getDocumentFromJCRPart(Session jcrSession, Node docxNode, String partName)235 throws DocumentException {238 private Document getDocumentFromJCRPart(Session jcrSession, Node docxNode, String partName) 239 throws DocumentException, RepositoryException, PathNotFoundException { 236 240 237 241 InputStream in = null; 238 try { 239 try { 240 log.info("Fetching " + encodeSlashes(partName)); 241 Node fileNode = docxNode.getNode(encodeSlashes(partName)); 242 Node contentNode = fileNode.getNode("jcr:content"); 243 244 Property jcrData = contentNode.getProperty("jcr:data"); 245 in = jcrData.getStream(); 246 } catch (PathNotFoundException e) { 247 e.printStackTrace(); 248 } 249 } catch (RepositoryException e) { 250 e.printStackTrace(); 251 } 242 log.info("Fetching " + encodeSlashes(partName)); 243 Node fileNode = docxNode.getNode(encodeSlashes(partName)); 244 Node contentNode = fileNode.getNode("jcr:content"); 245 246 Property jcrData = contentNode.getProperty("jcr:data"); 247 in = jcrData.getStream(); 252 248 253 249 SAXReader xmlReader = new SAXReader(); … … 277 273 private void addPartsFromRelationships(Session jcrSession, 278 274 Node docxNode, Base source, RelationshipsPart rp, 279 HashMap unusedJCRNodes ) {275 HashMap unusedJCRNodes ) throws Docx4JException { 280 276 281 277 Package pkg = source.getPackage(); … … 311 307 log.info(".. added part '" + part.getPartName() + "'" ); 312 308 313 // recurse via this parts relationships, if it has any 314 String relPart = PartName.getRelationshipsPartName(target); 315 try { 316 docxNode.getNode(encodeSlashes(relPart)); // if null, 317 //throws javax.jcr.PathNotFoundException 318 319 log.info("Found relationships " + relPart ); 320 log.info("Recursing ... " ); 321 RelationshipsPart rrp = getRelationshipsPartFromJCR( 322 part, jcrSession, docxNode, relPart); 323 part.setRelationships(rrp); 324 log.info("set its RelationshipsPart to '" + rrp.getPartName() + "'"); 325 unusedJCRNodes.put(relPart, new Boolean(false)); 309 RelationshipsPart rrp = getRelationshipsPart(jcrSession, docxNode, part); 310 if (rrp!=null) { 311 // recurse via this parts relationships, if it has any 326 312 addPartsFromRelationships(jcrSession, docxNode, part, rrp, unusedJCRNodes ); 327 } catch (javax.jcr.PathNotFoundException e) { 328 log.info("No relationships " + relPart ); 313 String relPart = PartName.getRelationshipsPartName( 314 part.getPartName().getName().substring(1) ); 315 unusedJCRNodes.put(relPart, new Boolean(false)); 329 316 } 330 317 } catch (Exception e) { 331 // TODO Auto-generated catch block 332 e.printStackTrace(); 318 throw new Docx4JException("Failed to add parts from relationships", e); 333 319 } 334 320 } … … 339 325 340 326 /** 341 * Get a Part. This can be called directly from outside the library, in which case 327 * Get the Relationships Part (if there is one) for a given Part. 328 * Otherwise return null. 329 * 330 * @param jcrSession 331 * @param docxNode 332 * @param part 333 * @param rrp 334 * @param relPart 335 * @return 336 * @throws RepositoryException 337 * @throws InvalidFormatException 338 */ 339 public RelationshipsPart getRelationshipsPart(Session jcrSession, 340 Node docxNode, Part part) 341 throws Docx4JException, RepositoryException, InvalidFormatException { 342 //String relPart = PartName.getRelationshipsPartName(target); 343 String relPart = PartName.getRelationshipsPartName( 344 part.getPartName().getName().substring(1) ); 345 RelationshipsPart rrp = null; 346 try { 347 docxNode.getNode(encodeSlashes(relPart)); // if null, 348 //throws javax.jcr.PathNotFoundException 349 350 log.info("Found relationships " + relPart ); 351 log.info("Recursing ... " ); 352 rrp = getRelationshipsPartFromJCR( 353 part, jcrSession, docxNode, relPart); 354 part.setRelationships(rrp); 355 log.info("set its RelationshipsPart to '" + rrp.getPartName() + "'"); 356 } catch (javax.jcr.PathNotFoundException e) { 357 log.info("No relationships " + relPart ); 358 return null; 359 } 360 return rrp; 361 } 362 363 364 /** 365 * Get a Part (except a relationships part). This can be called directly from 366 * outside the library, in which case 342 367 * the Part will not be owned by a Package until the calling code makes it so. 343 368 * @param jcrSession … … 345 370 * @param resolvedPartUri 346 371 * @return 372 * 347 373 * @throws URISyntaxException 348 374 * @throws InvalidFormatException 349 375 */ 350 376 public Part getPart(Session jcrSession, Node docxNode, String resolvedPartUri) 351 throws URISyntaxException, InvalidFormatException {377 throws Docx4JException { 352 378 Part part = null; 353 379 try { 354 Document contents = getDocumentFromJCRPart( jcrSession, 355 docxNode, resolvedPartUri); 356 357 log.info("Root node is: " + contents.getRootElement().getName()); 358 359 // Get a subclass of Part appropriate for this content type 380 try { 381 Document contents = getDocumentFromJCRPart( jcrSession, 382 docxNode, resolvedPartUri); 383 384 log.info("Root node is: " + contents.getRootElement().getName()); 385 386 // Get a subclass of Part appropriate for this content type 360 387 // if (parentRef==null) { 361 // Usual case362 part = ctm.getPart("/" + resolvedPartUri);388 // Usual case 389 part = ctm.getPart("/" + resolvedPartUri); 363 390 // } else { 364 391 // // since the Target might look like ../customXml/item1.xml 365 392 // part = ctm.getPart(parentRef); 366 393 // } 367 part.setDocument(contents );368 369 } catch (DocumentException e) {370 // Deal with:394 part.setDocument(contents ); 395 396 } catch (DocumentException e) { 397 // Deal with: 371 398 // 23.07.2007 15:30:37 *INFO * LoadFromJCR: Fetching word%2FattachedToolbars.bin (LoadFromJCR.java, line 212) 372 399 // org.dom4j.DocumentException: Error on line 1 of document : Content is not allowed in prolog. Nested exception: Content is not allowed in prolog. … … 374 401 // at org.dom4j.io.SAXReader.read(SAXReader.java:343) 375 402 // at au.com.xn.openpackaging.io.LoadFromJCR.getDocumentFromJCRPart(LoadFromJCR.java:242) 376 InputStream in = null; 377 try { 403 InputStream in = null; 378 404 log.info("Fetching " + encodeSlashes(resolvedPartUri)); 379 405 Node fileNode = docxNode.getNode(encodeSlashes(resolvedPartUri)); … … 387 413 ((BinaryPart)part).setBinaryData(in); 388 414 log.info("Stored as BinaryData" ); 389 390 } catch (RepositoryException re) { 391 re.printStackTrace(); 392 } 393 } 415 416 } 417 } catch (Exception ex) { 418 // PathNotFoundException, ValueFormatException, RepositoryException, URISyntaxException 419 ex.printStackTrace(); 420 throw new Docx4JException("Failed to getPart", ex); 421 } 394 422 return part; 395 423 } -
trunk/docx4j/src/main/java/org/docx4j/openpackaging/io/LoadFromZipFile.java
r8 r9 32 32 import java.util.HashMap; 33 33 import java.util.Iterator; 34 35 import javax.jcr.Node;36 import javax.jcr.Property;37 import javax.jcr.RepositoryException;38 34 39 35 import org.docx4j.openpackaging.URIHelper; … … 50 46 import org.docx4j.openpackaging.samples.DemoCore; 51 47 48 import org.docx4j.openpackaging.exceptions.Docx4JException; 49 52 50 import org.dom4j.Document; 53 51 import org.dom4j.DocumentException; … … 84 82 85 83 86 public Package get(String filepath) throws InvalidFormatException {84 public Package get(String filepath) throws Docx4JException { 87 85 return get(new File(filepath)); 88 86 } 89 87 90 public Package get(File f) throws InvalidFormatException {88 public Package get(File f) throws Docx4JException { 91 89 log.info("Filepath = " + f.getPath() ); 92 90 … … 99 97 } catch (IOException ioe) { 100 98 ioe.printStackTrace() ; 99 throw new Docx4JException("Couldn't get ZipFile", ioe); 101 100 } 102 101 … … 123 122 try { 124 123 ctmDocument = getDocumentFromZippedPart(zf, "[Content_Types].xml"); 125 } catch ( DocumentException e) {124 } catch (Exception e) { 126 125 // Shouldn't happen 127 e.printStackTrace();126 throw new Docx4JException("Couldn't get [Content_Types].xml", e); 128 127 } 129 128 debugPrint(ctmDocument); … … 175 174 176 175 private RelationshipsPart getRelationshipsPartFromZip(Base p, ZipFile zf, String partName) 177 throws InvalidFormatException {176 throws Docx4JException { 178 177 Document contents = null; 179 178 try { 180 179 contents = getDocumentFromZippedPart( zf, partName); 181 } catch (DocumentException e) { 182 // Shouldn't happen, since this is an XML part. 180 } catch (Exception e) { 183 181 e.printStackTrace(); 182 throw new Docx4JException("Error getting document from Zipped Part", e); 183 184 184 } 185 185 // debugPrint(contents); … … 189 189 190 190 private Document getDocumentFromZippedPart(ZipFile zf, String partName) 191 throws DocumentException {191 throws DocumentException, IOException { 192 192 193 193 InputStream in = null; 194 try { 195 in = zf.getInputStream( zf.getEntry(partName ) ); 196 } catch (IOException e) { 197 e.printStackTrace() ; 198 } 194 in = zf.getInputStream( zf.getEntry(partName ) ); 199 195 SAXReader xmlReader = new SAXReader(); 200 196 Document contents = null; … … 218 214 */ 219 215 private void addPartsFromRelationships(ZipFile zf, Base source, RelationshipsPart rp, 220 HashMap unusedZipEntries ) {216 HashMap unusedZipEntries ) throws Docx4JException { 221 217 222 218 Package pkg = source.getPackage(); … … 256 252 log.info(".. added." ); 257 253 258 // recurse via this parts relationships, if it has any 259 String relPart = PartName.getRelationshipsPartName(target); 260 if (zf.getEntry(relPart) !=null ) { 261 log.info("Found relationships " + relPart ); 262 log.info("Recursing ... " ); 263 RelationshipsPart rrp = getRelationshipsPartFromZip(part, zf, relPart); 264 part.setRelationships(rrp); 254 RelationshipsPart rrp = getRelationshipsPart(zf, part); 255 if (rrp!=null) { 256 // recurse via this parts relationships, if it has any 257 addPartsFromRelationships(zf, part, rrp, unusedZipEntries ); 258 String relPart = PartName.getRelationshipsPartName( 259 part.getPartName().getName().substring(1) ); 265 260 unusedZipEntries.put(relPart, new Boolean(false)); 266 addPartsFromRelationships(zf, part, rrp, unusedZipEntries );267 } else {268 log.info("No relationships " + relPart );269 261 } 262 270 263 } catch (Exception e) { 271 // TODO Auto-generated catch block 272 e.printStackTrace(); 264 throw new Docx4JException("Failed to add parts from relationships", e); 273 265 } 274 266 } … … 278 270 279 271 /** 280 * Get a Part. This can be called directly from outside the library, in which case 281 * the Part will not be owned by a Package until the calling code makes it so. 272 * Get the Relationships Part (if there is one) for a given Part. 273 * Otherwise return null. 274 * 275 * @param zf 276 * @param part 277 * @return 278 * @throws InvalidFormatException 279 */ 280 public RelationshipsPart getRelationshipsPart(ZipFile zf, Part part) 281 throws Docx4JException, InvalidFormatException { 282 RelationshipsPart rrp = null; 283 // recurse via this parts relationships, if it has any 284 //String relPart = PartName.getRelationshipsPartName(target); 285 String relPart = PartName.getRelationshipsPartName( 286 part.getPartName().getName().substring(1) ); 287 288 if (zf.getEntry(relPart) !=null ) { 289 log.info("Found relationships " + relPart ); 290 log.info("Recursing ... " ); 291 rrp = getRelationshipsPartFromZip(part, zf, relPart); 292 part.setRelationships(rrp); 293 } else { 294 log.info("No relationships " + relPart ); 295 return null; 296 } 297 return rrp; 298 } 299 300 301 302 /** 303 * Get a Part (except a relationships part). This can be called directly from 304 * outside the library, in which case 305 * the Part will not be owned by a Package until the calling code makes it so. 282 306 * 283 307 * @param zf … … 288 312 */ 289 313 private Part getPart(ZipFile zf, String resolvedPartUri) 290 throws URISyntaxException, InvalidFormatException {314 throws Docx4JException { 291 315 Part part = null; 292 316 293 317 try { 294 295 Document contents = getDocumentFromZippedPart( zf, resolvedPartUri); 296 297 // Get a subclass of Part appropriate for this content type 298 part = ctm.getPart("/" + resolvedPartUri); 299 part.setDocument(contents ); 300 301 } catch (DocumentException e) { 302 // Deal with: 318 try { 319 320 Document contents = getDocumentFromZippedPart( zf, resolvedPartUri); 321 322 // Get a subclass of Part appropriate for this content type 323 part = ctm.getPart("/" + resolvedPartUri); 324 part.setDocument(contents ); 325 326 } catch (DocumentException e) { 327 // Deal with: 303 328 // 23.07.2007 15:30:37 *INFO * LoadFromJCR: Fetching word%2FattachedToolbars.bin (LoadFromJCR.java, line 212) 304 329 // org.dom4j.DocumentException: Error on line 1 of document : Content is not allowed in prolog. Nested exception: Content is not allowed in prolog. … … 306 331 // at org.dom4j.io.SAXReader.read(SAXReader.java:343) 307 332 // at au.com.xn.openpackaging.io.LoadFromJCR.getDocumentFromJCRPart(LoadFromJCR.java:242) 308 309 // Untested in the zip case as of 20071113 310 311 InputStream in = null; 312 try { 313 in = zf.getInputStream( zf.getEntry(resolvedPartUri ) ); 314 part = new BinaryPart( new PartName("/" + resolvedPartUri)); 315 316 ((BinaryPart)part).setBinaryData(in); 317 log.info("Stored as BinaryData" ); 318 319 } catch (IOException ioe) { 320 ioe.printStackTrace() ; 321 } 322 323 } 333 334 // Untested in the zip case as of 20071113 335 336 InputStream in = null; 337 try { 338 in = zf.getInputStream( zf.getEntry(resolvedPartUri ) ); 339 part = new BinaryPart( new PartName("/" + resolvedPartUri)); 340 341 ((BinaryPart)part).setBinaryData(in); 342 log.info("Stored as BinaryData" ); 343 344 } catch (IOException ioe) { 345 ioe.printStackTrace() ; 346 } 347 348 } 349 } catch (Exception ex) { 350 // IOException, URISyntaxException 351 ex.printStackTrace(); 352 throw new Docx4JException("Failed to getPart", ex); 353 } 324 354 return part; 325 355 } -
trunk/docx4j/src/main/java/org/docx4j/openpackaging/packages/Package.java
r2 r9 61 61 import org.docx4j.openpackaging.exceptions.InvalidFormatException; 62 62 import org.docx4j.openpackaging.exceptions.InvalidOperationException; 63 import org.docx4j.openpackaging.exceptions. OpenXML4JRuntimeException;63 import org.docx4j.openpackaging.exceptions.Docx4JRuntimeException; 64 64 import org.docx4j.openpackaging.parts.Part; 65 65 import org.docx4j.openpackaging.parts.DocPropsCorePart; … … 267 267 sourcePartName = URIHelper.createPartName(sourceURI); 268 268 } catch (InvalidFormatException e) { 269 throw new OpenXML4JRuntimeException(269 throw new Docx4JRuntimeException( 270 270 "The part name " 271 271 + sourceURI -
trunk/docx4j/src/main/java/org/docx4j/openpackaging/parts/AbstractDocPropsPart.java
r2 r9 27 27 28 28 import org.docx4j.openpackaging.exceptions.InvalidFormatException; 29 import org.docx4j.openpackaging.exceptions. OpenXML4JException;29 import org.docx4j.openpackaging.exceptions.Docx4JException; 30 30 import org.docx4j.openpackaging.parts.WordprocessingML.CommentsPart; 31 31 import org.docx4j.openpackaging.parts.WordprocessingML.DocumentSettingsPart; -
trunk/docx4j/src/main/java/org/docx4j/openpackaging/parts/DocPropsCorePart.java
r2 r9 36 36 import org.docx4j.document.wordprocessingml.Paragraph; 37 37 import org.docx4j.openpackaging.exceptions.InvalidFormatException; 38 import org.docx4j.openpackaging.exceptions. OpenXML4JException;38 import org.docx4j.openpackaging.exceptions.Docx4JException; 39 39 import org.docx4j.openpackaging.packages.Package; 40 40 import org.docx4j.openpackaging.parts.WordprocessingML.DocumentPart; -
trunk/docx4j/src/main/java/org/docx4j/openpackaging/parts/DocPropsExtendedPart.java
r2 r9 36 36 import org.docx4j.document.wordprocessingml.Paragraph; 37 37 import org.docx4j.openpackaging.exceptions.InvalidFormatException; 38 import org.docx4j.openpackaging.exceptions. OpenXML4JException;38 import org.docx4j.openpackaging.exceptions.Docx4JException; 39 39 import org.docx4j.openpackaging.packages.Package; 40 40 import org.docx4j.openpackaging.parts.WordprocessingML.DocumentPart; -
trunk/docx4j/src/main/java/org/docx4j/openpackaging/parts/PartName.java
r2 r9 35 35 import org.docx4j.openpackaging.exceptions.InvalidFormatException; 36 36 import org.docx4j.openpackaging.exceptions.InvalidOperationException; 37 import org.docx4j.openpackaging.exceptions. OpenXML4JRuntimeException;37 import org.docx4j.openpackaging.exceptions.Docx4JRuntimeException; 38 38 39 39 … … 101 101 } else { 102 102 if (!URIHelper.PACKAGE_ROOT_URI.equals(uri)) { 103 throw new OpenXML4JRuntimeException(103 throw new Docx4JRuntimeException( 104 104 "OCP conformance must be check for ALL part name except special cases : ['/']"); 105 105 } … … 154 154 } else { 155 155 if (!URIHelper.PACKAGE_ROOT_URI.equals(partURI)) { 156 throw new OpenXML4JRuntimeException(156 throw new Docx4JRuntimeException( 157 157 "OCP conformance must be check for ALL part name except special cases : ['/']"); 158 158 } -
trunk/docx4j/src/main/java/org/docx4j/openpackaging/parts/WordprocessingML/AlternativeFormatInputPart.java
r2 r9 24 24 25 25 import org.docx4j.openpackaging.exceptions.InvalidFormatException; 26 import org.docx4j.openpackaging.exceptions. OpenXML4JException;26 import org.docx4j.openpackaging.exceptions.Docx4JException; 27 27 import org.docx4j.openpackaging.parts.Part; 28 28 import org.dom4j.Document; -
trunk/docx4j/src/main/java/org/docx4j/openpackaging/parts/WordprocessingML/DocumentPart.java
r2 r9 27 27 import org.docx4j.Namespaces; 28 28 import org.docx4j.openpackaging.exceptions.InvalidFormatException; 29 import org.docx4j.openpackaging.exceptions. OpenXML4JException;29 import org.docx4j.openpackaging.exceptions.Docx4JException; 30 30 import org.docx4j.openpackaging.parts.DocPropsCorePart; 31 31 import org.docx4j.openpackaging.parts.DocPropsExtendedPart; -
trunk/docx4j/src/main/java/org/docx4j/openpackaging/parts/WordprocessingML/MainDocumentPart.java
r2 r9 31 31 import org.docx4j.document.wordprocessingml.Paragraph; 32 32 import org.docx4j.openpackaging.exceptions.InvalidFormatException; 33 import org.docx4j.openpackaging.exceptions. OpenXML4JException;33 import org.docx4j.openpackaging.exceptions.Docx4JException; 34 34 import org.docx4j.openpackaging.packages.Package; 35 35 import org.docx4j.openpackaging.parts.PartName;
Note: See TracChangeset
for help on using the changeset viewer.
