Package org.odftoolkit.odfdom.dom.element.style

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


   * Create child element {@odf.element style:list-level-properties}.
   *
   * @return the element {@odf.element style:list-level-properties}
   */
  public StyleListLevelPropertiesElement newStyleListLevelPropertiesElement() {
    StyleListLevelPropertiesElement styleListLevelProperties = ((OdfFileDom) this.ownerDocument).newOdfElement(StyleListLevelPropertiesElement.class);
    this.appendChild(styleListLevelProperties);
    return styleListLevelProperties;
  }
View Full Code Here


   * Create child element {@odf.element style:list-level-properties}.
   *
   * @return the element {@odf.element style:list-level-properties}
   */
  public StyleListLevelPropertiesElement newStyleListLevelPropertiesElement() {
    StyleListLevelPropertiesElement styleListLevelProperties = ((OdfFileDom) this.ownerDocument).newOdfElement(StyleListLevelPropertiesElement.class);
    this.appendChild(styleListLevelProperties);
    return styleListLevelProperties;
  }
View Full Code Here

          // xlink:href="Pictures/100002010000001700000017B273CC34.png"
          listLevelElement.setXlinkHrefAttribute(packagePath);
          listLevelElement.setXlinkTypeAttribute("simple");
          listLevelElement.setXlinkShowAttribute("embed");
          listLevelElement.setXlinkActuateAttribute("onLoad");
          StyleListLevelPropertiesElement styleListLevelPropertiesElement = listLevelElement
              .newStyleListLevelPropertiesElement();
          styleListLevelPropertiesElement.setTextListLevelPositionAndSpaceModeAttribute("label-alignment");
          styleListLevelPropertiesElement.setStyleVerticalPosAttribute("middle");
          styleListLevelPropertiesElement.setStyleVerticalRelAttribute("line");
          styleListLevelPropertiesElement.setFoWidthAttribute(DEFAULT_IMAGE_WIDTH);
          styleListLevelPropertiesElement.setFoHeightAttribute(DEFAULT_IMAGE_HEIGHT);
          StyleListLevelLabelAlignmentElement styleListLevelLabelAlignmentElement = styleListLevelPropertiesElement
              .newStyleListLevelLabelAlignmentElement("listtab");
          styleListLevelLabelAlignmentElement
              .setTextListTabStopPositionAttribute(DEFAULT_MARGIN_LEFT_ATTRIBUTES[i]);
          styleListLevelLabelAlignmentElement.setFoTextIndentAttribute("-0.741cm");
          styleListLevelLabelAlignmentElement.setFoMarginLeftAttribute(DEFAULT_MARGIN_LEFT_ATTRIBUTES[i]);
View Full Code Here

          TextListLevelStyleNumberElement listLevelElement = listStyle.newTextListLevelStyleNumberElement(
              DEFAULT_NUM_FORMAT, i + 1);
          // get from default style element
          listLevelElement.setTextStyleNameAttribute("Numbering_20_Symbols");
          listLevelElement.setStyleNumSuffixAttribute(DEFAULT_NUM_SUFFIX);
          StyleListLevelPropertiesElement styleListLevelPropertiesElement = listLevelElement
              .newStyleListLevelPropertiesElement();
          if (DEFAULT_TEXT_SPACE_BEFORE_ATTRIBUTES[i] != null) {
            styleListLevelPropertiesElement
                .setTextSpaceBeforeAttribute(DEFAULT_TEXT_SPACE_BEFORE_ATTRIBUTES[i]);
          }
          styleListLevelPropertiesElement.setTextMinLabelWidthAttribute(DEFAULT_TEXT_MIN_LABEL_WIDTH);
          StyleTextPropertiesElement styleTextPropertiesElement = listLevelElement
              .newStyleTextPropertiesElement("true");
          styleTextPropertiesElement.setStyleFontNameAttribute(DEFAULT_FONT_NAME);
        }
        // listStyle.setStyleNameAttribute(DEFAULT_NAME);
View Full Code Here

          listLevelElement.setStyleNumSuffixAttribute(DEFAULT_NUM_SUFFIX);

          // different from number decorator.
          listLevelElement.setTextDisplayLevelsAttribute(i + 1);

          StyleListLevelPropertiesElement styleListLevelPropertiesElement = listLevelElement
              .newStyleListLevelPropertiesElement();
          if (DEFAULT_TEXT_SPACE_BEFORE_ATTRIBUTES[i] != null) {
            styleListLevelPropertiesElement
                .setTextSpaceBeforeAttribute(DEFAULT_TEXT_SPACE_BEFORE_ATTRIBUTES[i]);
          }
          styleListLevelPropertiesElement.setTextMinLabelWidthAttribute(DEFAULT_TEXT_MIN_LABEL_WIDTH);
          StyleTextPropertiesElement styleTextPropertiesElement = listLevelElement
              .newStyleTextPropertiesElement("true");
          styleTextPropertiesElement.setStyleFontNameAttribute(DEFAULT_FONT_NAME);
        }
        // listStyle.setStyleNameAttribute(DEFAULT_NAME);
View Full Code Here

        for (int i = 0; i < 10; i++) {
          TextListLevelStyleBulletElement listLevelElement = listStyle.newTextListLevelStyleBulletElement(
              DEFAULT_BULLET_CHAR, i + 1);
          // get from default style element
          listLevelElement.setTextStyleNameAttribute("Bullet_20_Symbols");
          StyleListLevelPropertiesElement styleListLevelPropertiesElement = listLevelElement
              .newStyleListLevelPropertiesElement();
          if (DEFAULT_TEXT_SPACE_BEFORE_ATTRIBUTES[i] != null) {
            styleListLevelPropertiesElement
                .setTextSpaceBeforeAttribute(DEFAULT_TEXT_SPACE_BEFORE_ATTRIBUTES[i]);
          }
          styleListLevelPropertiesElement.setTextMinLabelWidthAttribute(DEFAULT_TEXT_MIN_LABEL_WIDTH);
          StyleTextPropertiesElement styleTextPropertiesElement = listLevelElement
              .newStyleTextPropertiesElement("true");
          styleTextPropertiesElement.setStyleFontNameAttribute(DEFAULT_FONT_NAME);
        }
        // listStyle.setStyleNameAttribute(DEFAULT_NAME);
View Full Code Here

   * Create child element {@odf.element style:list-level-properties}.
   *
   * @return the element {@odf.element style:list-level-properties}
   */
  public StyleListLevelPropertiesElement newStyleListLevelPropertiesElement() {
    StyleListLevelPropertiesElement styleListLevelProperties = ((OdfFileDom) this.ownerDocument).newOdfElement(StyleListLevelPropertiesElement.class);
    this.appendChild(styleListLevelProperties);
    return styleListLevelProperties;
  }
View Full Code Here

   * Create child element {@odf.element style:list-level-properties}.
   *
   * @return the element {@odf.element style:list-level-properties}
   */
  public StyleListLevelPropertiesElement newStyleListLevelPropertiesElement() {
    StyleListLevelPropertiesElement styleListLevelProperties = ((OdfFileDom) this.ownerDocument).newOdfElement(StyleListLevelPropertiesElement.class);
    this.appendChild(styleListLevelProperties);
    return styleListLevelProperties;
  }
View Full Code Here

TOP

Related Classes of org.odftoolkit.odfdom.dom.element.style.StyleListLevelPropertiesElement

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.