Package org.openxmlformats.schemas.officeDocument.x2006.extendedProperties

Examples of org.openxmlformats.schemas.officeDocument.x2006.extendedProperties.CTDigSigBlob


    assertFalse(ctProps.getSharedDoc());
    assertFalse(ctProps.isSetSlides());
    assertEquals(0,ctProps.getSlides());
    assertEquals("Normal.dotm",ctProps.getTemplate());
   
    CTVectorLpstr vec2 = ctProps.getTitlesOfParts();
    assertEquals(1,vec2.getVector().sizeOfLpstrArray());
    assertEquals("Example Word 2010 Document",vec2.getVector().getLpstrArray(0));
   
    assertEquals(3,ctProps.getTotalTime());
    assertEquals(10,ctProps.getWords());
   
    // Check the digital signature part
View Full Code Here


    assertFalse(ctProps.getSharedDoc());
    assertFalse(ctProps.isSetSlides());
    assertEquals(0,ctProps.getSlides());
    assertEquals("Normal.dotm",ctProps.getTemplate());
   
    CTVectorLpstr vec2 = ctProps.getTitlesOfParts();
    assertEquals(1,vec2.getVector().sizeOfLpstrArray());
    assertEquals("Example Word 2010 Document",vec2.getVector().getLpstrArray(0));
   
    assertEquals(3,ctProps.getTotalTime());
    assertEquals(10,ctProps.getWords());
   
    // Check the digital signature part
View Full Code Here

  //rename sheet in app.xml(extended properties)
  private void ranameSheetInAppXml(String oldsheetname, String name) {
      POIXMLProperties properties = getProperties(); //app.xml and custom.xml

    CTProperties ext = properties.getExtendedProperties().getUnderlyingProperties();
    CTVectorVariant vectorv = ext.getHeadingPairs();
    CTVector vector = vectorv.getVector();
    CTVariant[] variants = vector.getVariantArray();
    int sheetCount = -1;
    int nameCount = -1;
    for(int j = 0; j < variants.length; ++j) {
      final CTVariant variant = variants[j];
View Full Code Here

    assertEquals("",ctProps.getCompany());
    assertNull(ctProps.getDigSig());
    assertEquals(0,ctProps.getDocSecurity());
    assertNotNull(ctProps.getDomNode());
   
    CTVectorVariant vec = ctProps.getHeadingPairs();
    assertEquals(2,vec.getVector().sizeOfVariantArray());
    assertEquals("Title",vec.getVector().getVariantArray(0).getLpstr());
    assertEquals(1,vec.getVector().getVariantArray(1).getI4());
   
    assertFalse(ctProps.isSetHiddenSlides());
    assertEquals(0,ctProps.getHiddenSlides());
    assertFalse(ctProps.isSetHLinks());
    assertNull(ctProps.getHLinks());
View Full Code Here

    assertEquals("",ctProps.getCompany());
    assertNull(ctProps.getDigSig());
    assertEquals(0,ctProps.getDocSecurity());
    assertNotNull(ctProps.getDomNode());
   
    CTVectorVariant vec = ctProps.getHeadingPairs();
    assertEquals(2,vec.getVector().sizeOfVariantArray());
    assertEquals("Title",vec.getVector().getVariantArray(0).getLpstr());
    assertEquals(1,vec.getVector().getVariantArray(1).getI4());
   
    assertFalse(ctProps.isSetHiddenSlides());
    assertEquals(0,ctProps.getHiddenSlides());
    assertFalse(ctProps.isSetHLinks());
    assertNull(ctProps.getHLinks());
View Full Code Here

   * Get the extended document properties (extended ooxml properties)
   */
  public CTProperties getExtendedProperties() throws OpenXML4JException, XmlException, IOException {
    PackagePart propsPart = getSinglePartByRelationType(EXTENDED_PROPERTIES_REL_TYPE);
   
    PropertiesDocument props = PropertiesDocument.Factory.parse(
        propsPart.getInputStream());
    return props.getProperties();
  }
View Full Code Here

   
    // Extended properties
    PackageRelationshipCollection extRel =
      pkg.getRelationshipsByType(POIXMLDocument.EXTENDED_PROPERTIES_REL_TYPE);
    if(extRel.size() == 1) {
      PropertiesDocument props = PropertiesDocument.Factory.parse(
          pkg.getPart( extRel.getRelationship(0) ).getInputStream()
      );
      ext = new ExtendedProperties(props);
    } else {
      ext = new ExtendedProperties(PropertiesDocument.Factory.newInstance());
View Full Code Here

TOP

Related Classes of org.openxmlformats.schemas.officeDocument.x2006.extendedProperties.CTDigSigBlob

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.