Package org.odftoolkit.odfdom.dom.element.text

Examples of org.odftoolkit.odfdom.dom.element.text.TextListLevelStyleBulletElement


        listStyle = styles.newListStyle();
        // <style:style style:name="Numbering_20_Symbols"
        // style:display-name="Numbering Symbols" style:family="text" />
        getOrCreateStyleByName(documentStyles, styles, "Bullet_20_Symbols", OdfStyleFamily.Text);
        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

TOP

Related Classes of org.odftoolkit.odfdom.dom.element.text.TextListLevelStyleBulletElement

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.