Ignore:
Timestamp:
07/08/10 03:00:13 (23 months ago)
Author:
jharrop
Message:

PDF via XSL FO: support for multiple sections

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/docx4j/src/main/java/org/docx4j/jaxb/Context.java

    r1121 r1135  
    3333        public static JAXBContext jcDocPropsCustom; 
    3434        public static JAXBContext jcDocPropsExtended; 
    35         public static JAXBContext jcXmlPackage; 
    3635        public static JAXBContext jcRelationships; 
    3736        public static JAXBContext jcCustomXmlProperties; 
    3837        public static JAXBContext jcContentTypes; 
     38 
     39        public static JAXBContext jcXmlPackage; 
     40         
     41        private static JAXBContext jcXslFo; 
     42        public static JAXBContext jcSectionModel; 
    3943         
    4044        private static Logger log = Logger.getLogger(Context.class); 
     
    8185                        jcCustomXmlProperties = JAXBContext.newInstance("org.docx4j.customXmlProperties",classLoader ); 
    8286                        jcContentTypes = JAXBContext.newInstance("org.docx4j.openpackaging.contenttype",classLoader ); 
     87                         
     88                        jcSectionModel = JAXBContext.newInstance("org.docx4j.model.structure.jaxb",classLoader ); 
     89                         
    8390                        log.info(".. others loaded .."); 
    8491                         
     
    98105                 
    99106        } 
    100                  
     107 
     108        public static JAXBContext getXslFoContext() { 
     109                if (jcXslFo==null) { 
     110                        try {    
     111                                Context tmp = new Context(); 
     112                                java.lang.ClassLoader classLoader = tmp.getClass().getClassLoader(); 
     113 
     114                                jcXslFo = JAXBContext.newInstance("org.plutext.jaxb.xslfo",classLoader ); 
     115                                 
     116                        } catch (Exception ex) { 
     117                                ex.printStackTrace(); 
     118                        }                                                
     119                } 
     120                return jcXslFo;          
     121        } 
     122         
    101123} 
Note: See TracChangeset for help on using the changeset viewer.