Ignore:
Timestamp:
01/10/10 07:12:46 (2 years ago)
Author:
jharrop
Message:

Trivial simplification to use of content manager

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/docx4j/src/main/java/org/docx4j/samples/CreateWordprocessingMLDocument.java

    r1004 r1006  
    129129 
    130130            // .. content type 
    131                 ObjectFactory ctFactory = new ObjectFactory(); 
    132                 CTDefault defaultCT = ctFactory.createCTDefault(); 
    133                 defaultCT.setExtension("html"); 
    134                 defaultCT.setContentType("text/html"); 
    135             wordMLPackage.getContentTypeManager().addDefaultContentType("html", defaultCT); 
     131            wordMLPackage.getContentTypeManager().addDefaultContentType("html", "text/html"); 
    136132             
    137133                //injectDocPropsCustomPart(wordMLPackage); 
Note: See TracChangeset for help on using the changeset viewer.