Examples of StylePageLayoutElement


Examples of org.odftoolkit.odfdom.dom.element.style.StylePageLayoutElement

  // ODFDOM ToDo: http://odftoolkit.org/bugzilla/show_bug.cgi?id=293
  // 293 - Adding optional Maps to generated ODF sources for indexed ODF elements
  // Method To be moved on StyleMasterPageElement
  private HashMap<String, String> getPageStyleProps(OdfDocument odfDoc, StyleMasterPageElement masterPage) throws Exception {
    StylePageLayoutElement pageLayout = getMasterPageLayout(odfDoc, masterPage);

    // ToDo: Access methods for MasterPage children NOT available!! & drop prefix/suffix
    StylePageLayoutPropertiesElement pagePropsElement = OdfElement.findFirstChildNode(StylePageLayoutPropertiesElement.class, pageLayout);
    Assert.assertNotNull(pagePropsElement);
View Full Code Here

Examples of org.odftoolkit.odfdom.dom.element.style.StylePageLayoutElement

  // ODFDOM ToDo: http://odftoolkit.org/bugzilla/show_bug.cgi?id=293
  // 293 - Adding optional Maps to generated ODF sources for indexed ODF elements
  // Method To be moved on StyleMasterPageElement
  private HashMap<String, String> getHeaderStyleProps(OdfDocument odfDoc, StyleMasterPageElement masterPage) throws Exception {
    StylePageLayoutElement pageLayout = getMasterPageLayout(odfDoc, masterPage);
    // ToDo: Combine a GETTER for header Properties in one method
    StyleHeaderStyleElement headerStyle = OdfElement.findFirstChildNode(StyleHeaderStyleElement.class, pageLayout);
    Assert.assertNotNull(headerStyle);
    StyleHeaderFooterPropertiesElement headerStyleProps = OdfElement.findFirstChildNode(StyleHeaderFooterPropertiesElement.class, headerStyle);
    Assert.assertNotNull(headerStyleProps);
View Full Code Here

Examples of org.odftoolkit.odfdom.dom.element.style.StylePageLayoutElement

  // ODFDOM ToDo: http://odftoolkit.org/bugzilla/show_bug.cgi?id=293
  // 293 - Adding optional Maps to generated ODF sources for indexed ODF elements
  // Method To be moved on StyleMasterPageElement
  private HashMap<String, String> getFooterStyleProps(OdfDocument odfDoc, StyleMasterPageElement masterPage) throws Exception {
    StylePageLayoutElement pageLayout = getMasterPageLayout(odfDoc, masterPage);
    // ODFDOM ToDo: Combine a GETTER for footer Properties in one method
    StyleFooterStyleElement footerStyle = OdfElement.findFirstChildNode(StyleFooterStyleElement.class, pageLayout);
    Assert.assertNotNull(footerStyle);
    StyleHeaderFooterPropertiesElement footerStyleProps = OdfElement.findFirstChildNode(StyleHeaderFooterPropertiesElement.class, footerStyle);
    Assert.assertNotNull(footerStyleProps);
View Full Code Here

Examples of org.odftoolkit.odfdom.dom.element.style.StylePageLayoutElement

    // ODFDOM ToDo: Drop StylePageLayout as convenient and move those functions to convenient DOM part
    // ODFDOM ToDo: Drop "Odf" Prefix, Drop Styles Prefix
    // ODFDOM ToDo: Add methods to dedicated generated classes? (e.g. OfficeAutomaticStylesElement ?) BEST -- fill into a existing Java tempalte?
    String pageLayoutName = masterPage.getStylePageLayoutNameAttribute();
    Assert.assertNotNull(pageLayoutName);
    StylePageLayoutElement pageLayout = odfDoc.getStylesDom().getAutomaticStyles().getPageLayout(pageLayoutName);
    Assert.assertNotNull(pageLayout);
    return pageLayout;
  }
View Full Code Here

Examples of org.odftoolkit.odfdom.dom.element.style.StylePageLayoutElement

   *
   * @param styleNameValue  the <code>String</code> value of <code>StyleNameAttribute</code>, see {@odf.attribute  style:name} at specification
   * @return the element {@odf.element style:page-layout}
   */
   public StylePageLayoutElement newStylePageLayoutElement(String styleNameValue) {
    StylePageLayoutElement stylePageLayout = ((OdfFileDom) this.ownerDocument).newOdfElement(StylePageLayoutElement.class);
    stylePageLayout.setStyleNameAttribute(styleNameValue);
    this.appendChild(stylePageLayout);
    return stylePageLayout;
  }
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.