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

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


          packagePath = insertImage(doc, imageUri);
        } catch (Exception e) {
          Logger.getLogger(ImageDecorator.class.getName()).log(Level.SEVERE, null, e);
        }
        for (int i = 0; i < 10; i++) {
          TextListLevelStyleImageElement listLevelElement = listStyle
              .newTextListLevelStyleImageElement(i + 1);
          // 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);
View Full Code Here

TOP

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

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.