Examples of StyleDefaultStyleElement


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

   *
   * @param styleFamilyValue  the <code>String</code> value of <code>StyleFamilyAttribute</code>, see {@odf.attribute  style:family} at specification
   * @return the element {@odf.element style:default-style}
   */
   public StyleDefaultStyleElement newStyleDefaultStyleElement(String styleFamilyValue) {
    StyleDefaultStyleElement styleDefaultStyle = ((OdfFileDom) this.ownerDocument).newOdfElement(StyleDefaultStyleElement.class);
    styleDefaultStyle.setStyleFamilyAttribute(styleFamilyValue);
    this.appendChild(styleDefaultStyle);
    return styleDefaultStyle;
  }
View Full Code Here

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

  public void testCreatChildrenForStyles() {
    try {
      OdfDocument textDoc = OdfTextDocument.newTextDocument();

      OdfOfficeStyles styles = textDoc.getOrCreateDocumentStyles();
      StyleDefaultStyleElement def = styles.newStyleDefaultStyleElement("text");
      def.setStyleFamilyAttribute(OdfStyleFamily.Paragraph.toString());
      def.setProperty(StyleTextPropertiesElement.TextUnderlineColor, "#00FF00");

      StyleStyleElement parent = styles.newStyleStyleElement("text","TheParent");
      parent.setStyleFamilyAttribute(OdfStyleFamily.Paragraph.toString());

      parent.setProperty(StyleTextPropertiesElement.FontSize, "17pt");
View Full Code Here

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

   *
   * @param styleFamilyValue  the <code>String</code> value of <code>StyleFamilyAttribute</code>, see {@odf.attribute  style:family} at specification
   * @return the element {@odf.element style:default-style}
   */
   public StyleDefaultStyleElement newStyleDefaultStyleElement(String styleFamilyValue) {
    StyleDefaultStyleElement styleDefaultStyle = ((OdfFileDom) this.ownerDocument).newOdfElement(StyleDefaultStyleElement.class);
    styleDefaultStyle.setStyleFamilyAttribute(styleFamilyValue);
    this.appendChild(styleDefaultStyle);
    return styleDefaultStyle;
  }
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.