Package org.docx4j.openpackaging.parts.opendope

Examples of org.docx4j.openpackaging.parts.opendope.ConditionsPart


 
  protected void createParts(WordprocessingMLPackage pkgOut) throws Exception {
 
    // Add OpenDoPE parts to target
    // .. conditions - not that we use this here
    ConditionsPart conditionsPart = new ConditionsPart(new PartName("/customXml/item1.xml")); // name doesn't matter
    pkgOut.getMainDocumentPart().addTargetPart(conditionsPart, AddPartBehaviour.RENAME_IF_NAME_EXISTS); // Word will silently drop the CXPs if they aren't added to the MDP!
    addPropertiesPart(conditionsPart, "http://opendope.org/conditions");
    conditionsPart.setJaxbElement(new Conditions());
    // .. XPaths
    xPathsPart = new XPathsPart(new PartName("/customXml/item1.xml"));
    pkgOut.getMainDocumentPart().addTargetPart(xPathsPart, AddPartBehaviour.RENAME_IF_NAME_EXISTS);
    addPropertiesPart(xPathsPart, "http://opendope.org/xpaths");
    xPathsPart.setJaxbElement(new Xpaths());
View Full Code Here


              ((DocPropsCoverPagePart)part).setJaxbElement(
                  (CoverPageProperties)o);
             
            } else if (o instanceof org.opendope.conditions.Conditions) {
             
              part = new ConditionsPart(name);
              ((ConditionsPart)part).setJaxbElement(
                  (org.opendope.conditions.Conditions)o);             
             
            } else if (o instanceof org.opendope.xpaths.Xpaths) {
             
View Full Code Here

              ((DocPropsCoverPagePart)part).setJaxbElement(
                  (CoverPageProperties)o);
             
            } else if (o instanceof org.opendope.conditions.Conditions) {
             
              part = new ConditionsPart(name);
              ((ConditionsPart)part).setJaxbElement(
                  (org.opendope.conditions.Conditions)o);
             
             
            } else if (o instanceof org.opendope.xpaths.Xpaths) {
View Full Code Here

                  (CoverPageProperties)o);
             
            } else            
            if (o instanceof org.opendope.conditions.Conditions) {
             
              part = new ConditionsPart(name);
              ((ConditionsPart)part).setJaxbElement(
                  (org.opendope.conditions.Conditions)o);
             
             
            } else if (o instanceof org.opendope.xpaths.Xpaths) {
View Full Code Here

              ((DocPropsCoverPagePart)part).setJaxbElement(
                  (CoverPageProperties)o);
             
            } else if (o instanceof org.opendope.conditions.Conditions) {
             
              part = new ConditionsPart(name);
              ((ConditionsPart)part).setJaxbElement(
                  (org.opendope.conditions.Conditions)o);
             
             
            } else if (o instanceof org.opendope.xpaths.Xpaths) {
View Full Code Here

TOP

Related Classes of org.docx4j.openpackaging.parts.opendope.ConditionsPart

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.