Examples of StyleTextPropertiesElement


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

      styles = ((OdfContentDom) dom).getAutomaticStyles();
    } else if (dom instanceof OdfStylesDom) {
      styles = ((OdfStylesDom) dom).getAutomaticStyles();
    }
    OdfStyle textStyle = styles.newStyle(OdfStyleFamily.Text);
    StyleTextPropertiesElement styleTextPropertiesElement = textStyle.newStyleTextPropertiesElement(null);
    styleTextPropertiesElement.setStyleFontNameAttribute("Tahoma");
    styleTextPropertiesElement.setFoFontSizeAttribute("10pt");
    styleTextPropertiesElement.setStyleFontNameAsianAttribute("Lucida Sans Unicode");
    styleTextPropertiesElement.setStyleFontSizeAsianAttribute("12pt");
    noteSpanElement.setStyleName(textStyle.getStyleNameAttribute());
    // set comment content
    noteSpanElement.setTextContent(content);
    // insert comment to its position
    insertOdfElement(annotationElement, mIndexInContainer, parentElement);
View Full Code Here

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

      styles = ((OdfContentDom) dom).getAutomaticStyles();
    } else if (dom instanceof OdfStylesDom) {
      styles = ((OdfStylesDom) dom).getAutomaticStyles();
    }
    OdfStyle textStyle = styles.newStyle(OdfStyleFamily.Text);
    StyleTextPropertiesElement styleTextPropertiesElement = textStyle.newStyleTextPropertiesElement(null);
    styleTextPropertiesElement.setStyleFontNameAttribute("Tahoma");
    styleTextPropertiesElement.setFoFontSizeAttribute("10pt");
    styleTextPropertiesElement.setStyleFontNameAsianAttribute("Lucida Sans Unicode");
    styleTextPropertiesElement.setStyleFontSizeAsianAttribute("12pt");
    noteSpanElement.setStyleName(textStyle.getStyleNameAttribute());
    // set comment content
    noteSpanElement.setTextContent(content);
  }
View Full Code Here

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

      styles = ((OdfContentDom) dom).getAutomaticStyles();
    } else if (dom instanceof OdfStylesDom) {
      styles = ((OdfStylesDom) dom).getAutomaticStyles();
    }
    OdfStyle textStyle = styles.newStyle(OdfStyleFamily.Text);
    StyleTextPropertiesElement styleTextPropertiesElement = textStyle.newStyleTextPropertiesElement(null);
    styleTextPropertiesElement.setStyleFontNameAttribute("Tahoma");
    styleTextPropertiesElement.setFoFontSizeAttribute("10pt");
    styleTextPropertiesElement.setStyleFontNameAsianAttribute("Lucida Sans Unicode");
    styleTextPropertiesElement.setStyleFontSizeAsianAttribute("12pt");
    noteSpanElement.setStyleName(textStyle.getStyleNameAttribute());
    // set comment content
    noteSpanElement.setTextContent(content);
  }
View Full Code Here

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

   *
   * @param textDisplayValue  the <code>String</code> value of <code>TextDisplayAttribute</code>, see {@odf.attribute  text:display} at specification
   * @return the element {@odf.element style:text-properties}
   */
   public StyleTextPropertiesElement newStyleTextPropertiesElement(String textDisplayValue) {
    StyleTextPropertiesElement styleTextProperties = ((OdfFileDom) this.ownerDocument).newOdfElement(StyleTextPropertiesElement.class);
    styleTextProperties.setTextDisplayAttribute(textDisplayValue);
    this.appendChild(styleTextProperties);
    return styleTextProperties;
  }
View Full Code Here

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

          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);
      }
      // create default paragraph style
      // <style:style style:name="P3" style:family="paragraph"
View Full Code Here

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

          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);
      }
      // create default paragraph style
      // <style:style style:name="P3" style:family="paragraph"
View Full Code Here

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

          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);
      }
      // create default paragraph style
      // <style:style style:name="P3" style:family="paragraph"
View Full Code Here

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

      styles = ((OdfContentDom) dom).getAutomaticStyles();
    } else if (dom instanceof OdfStylesDom) {
      styles = ((OdfStylesDom) dom).getAutomaticStyles();
    }
    OdfStyle textStyle = styles.newStyle(OdfStyleFamily.Text);
    StyleTextPropertiesElement styleTextPropertiesElement = textStyle.newStyleTextPropertiesElement(null);
    styleTextPropertiesElement.setStyleFontNameAttribute("Tahoma");
    styleTextPropertiesElement.setFoFontSizeAttribute("10pt");
    styleTextPropertiesElement.setStyleFontNameAsianAttribute("Lucida Sans Unicode");
    styleTextPropertiesElement.setStyleFontSizeAsianAttribute("12pt");
    noteSpanElement.setStyleName(textStyle.getStyleNameAttribute());
    // set comment content
    noteSpanElement.setTextContent(content);
  }
View Full Code Here

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

   *
   * @param textDisplayValue  the <code>String</code> value of <code>TextDisplayAttribute</code>, see {@odf.attribute  text:display} at specification
   * @return the element {@odf.element style:text-properties}
   */
   public StyleTextPropertiesElement newStyleTextPropertiesElement(String textDisplayValue) {
    StyleTextPropertiesElement styleTextProperties = ((OdfFileDom) this.ownerDocument).newOdfElement(StyleTextPropertiesElement.class);
    styleTextProperties.setTextDisplayAttribute(textDisplayValue);
    this.appendChild(styleTextProperties);
    return styleTextProperties;
  }
View Full Code Here

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

   *
   * @param textDisplayValue  the <code>String</code> value of <code>TextDisplayAttribute</code>, see {@odf.attribute  text:display} at specification
   * @return the element {@odf.element style:text-properties}
   */
   public StyleTextPropertiesElement newStyleTextPropertiesElement(String textDisplayValue) {
    StyleTextPropertiesElement styleTextProperties = ((OdfFileDom) this.ownerDocument).newOdfElement(StyleTextPropertiesElement.class);
    styleTextProperties.setTextDisplayAttribute(textDisplayValue);
    this.appendChild(styleTextProperties);
    return styleTextProperties;
  }
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.