Examples of PartName


Examples of org.docx4j.openpackaging.parts.PartName

    init();       
  }

 
  public VbaProjectSignatureBin() throws InvalidFormatException {
    super( new PartName("/word/vbaProjectSignature.bin") );
    init();       
  }
View Full Code Here

Examples of org.docx4j.openpackaging.parts.PartName

    super(partName);
    init();
  }

  public DocumentSettingsPart() throws InvalidFormatException {
    super(new PartName("/word/settings.xml"));
    init();
  }
View Full Code Here

Examples of org.docx4j.openpackaging.parts.PartName

  public MainDocumentPart(PartName partName) throws InvalidFormatException {
    super(partName);
    init();
  }
  public MainDocumentPart() throws InvalidFormatException {
    super(new PartName("/word/document.xml"));
    init();
  }
View Full Code Here

Examples of org.docx4j.openpackaging.parts.PartName

    init();
   
  }

  public FooterPart() throws InvalidFormatException {
    super(new PartName("/word/footer.xml"))// Not very useful, since normally there is more than one footer part
    init();   
  }   
View Full Code Here

Examples of org.docx4j.openpackaging.parts.PartName

    init();       
  }

 
  public OleObjectBinaryPart() throws InvalidFormatException {
    super( new PartName("/word/embeddings/oleObject1.bin") );
    init();       
  }
View Full Code Here

Examples of org.docx4j.openpackaging.parts.PartName

    super(partName);
    init();
  }

  public StyleDefinitionsPart() throws InvalidFormatException {
    super(new PartName("/word/styles.xml"));
    init();
  }
View Full Code Here

Examples of org.docx4j.openpackaging.parts.PartName

    super(partName);   
    init()
  }

  public HeaderPart() throws InvalidFormatException {
    super(new PartName("/word/header.xml"))// Not very useful, since normally there is more than one footer part
    init();   
  }     
View Full Code Here

Examples of org.docx4j.openpackaging.parts.PartName

    init();       
  }

 
  public VbaProjectBinaryPart() throws InvalidFormatException {
    super( new PartName("/word/vbaProject.bin") );
    init();       
  }
View Full Code Here

Examples of org.docx4j.openpackaging.parts.PartName

    super(partName);
    init();   
  }

  public FootnotesPart() throws InvalidFormatException {
    super(new PartName("/word/footnotes.xml"));
    init();   
  }
View Full Code Here

Examples of org.docx4j.openpackaging.parts.PartName

 
  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());
    // .. Questions
    questionsPart = new QuestionsPart(new PartName("/customXml/item1.xml"));
    pkgOut.getMainDocumentPart().addTargetPart(questionsPart, AddPartBehaviour.RENAME_IF_NAME_EXISTS);
    addPropertiesPart(questionsPart,"http://opendope.org/questions");
    questionsPart.setJaxbElement(new Questionnaire());
    Questionnaire.Questions questions = new Questionnaire.Questions();
    questionsPart.getJaxbElement().setQuestions(questions);
   
    // .. Standardised Answer format
    standardisedAnswersPart = new StandardisedAnswersPart(new PartName("/customXml/item1.xml"));
    pkgOut.getMainDocumentPart().addTargetPart(standardisedAnswersPart, AddPartBehaviour.RENAME_IF_NAME_EXISTS);
    storeItemID = addPropertiesPart(standardisedAnswersPart, "http://opendope.org/answers")
    standardisedAnswersPart.setJaxbElement(new Answers());
   
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.