Examples of OdfStyleFamily


Examples of org.odftoolkit.odfdom.dom.style.OdfStyleFamily

          && (styleElement.getPropertiesElement(OdfStylePropertiesSet.TextProperties) == null)) {
        styleElement = ((Document) ((OdfFileDom) styleElement.getOwnerDocument()).getDocument())
            .getDocumentStyles().getDefaultStyle(styleElement.getFamily());
      }
      TreeMap<OdfStyleProperty, String> result = new TreeMap<OdfStyleProperty, String>();
      OdfStyleFamily family = OdfStyleFamily.Text;
      if (family != null) {
        for (OdfStyleProperty property : family.getProperties()) {
          if (styleElement.hasProperty(property)) {
            result.put(property, styleElement.getProperty(property));
          }
        }
      }
View Full Code Here

Examples of org.odftoolkit.odfdom.dom.style.OdfStyleFamily

      if ((styleElement.getPropertiesElement(OdfStylePropertiesSet.ParagraphProperties) == null)
          && (styleElement.getPropertiesElement(OdfStylePropertiesSet.TextProperties) == null)) {
        styleElement = ((Document) ((OdfFileDom) styleElement.getOwnerDocument()).getDocument())
            .getDocumentStyles().getDefaultStyle(styleElement.getFamily());
      }
      OdfStyleFamily family = OdfStyleFamily.Text;
      if (family != null) {
        for (OdfStyleProperty property : family.getProperties()) {
          if (styleElement.hasProperty(property)) {
            result.put(property, styleElement.getProperty(property));
          }
        }
      }
View Full Code Here

Examples of org.odftoolkit.odfdom.dom.style.OdfStyleFamily

  private void getTextDefaultProperties(String familyName, HashMap<String, OdfDefaultStyle> defaultStyles,
      Map<OdfStyleProperty, String> map) {
    OdfDefaultStyle defStyle = defaultStyles.get(familyName);
    if (defStyle != null) {
      OdfStyleFamily family = defStyle.getFamily();
      if (family != null) {
        for (OdfStyleProperty property : family.getProperties()) {
          if (!map.containsKey(property) && defStyle.hasProperty(property)) {
            map.put(property, defStyle.getProperty(property));
          }
        }
      }
View Full Code Here

Examples of org.odftoolkit.odfdom.dom.style.OdfStyleFamily

      String familyName,
      HashMap<String, OdfDefaultStyle> defaultStyles,
      Map<OdfStyleProperty, String> map) {
    OdfDefaultStyle defStyle = defaultStyles.get(familyName);
    if (defStyle != null) {
      OdfStyleFamily family = defStyle.getFamily();
      if (family != null) {
        for (OdfStyleProperty property : family.getProperties()) {
          if (!map.containsKey(property) && defStyle.hasProperty(property)) {
            map.put(property, defStyle.getProperty(property));
          }
        }
      }
View Full Code Here

Examples of org.odftoolkit.odfdom.dom.style.OdfStyleFamily

      if ((styleElement.getPropertiesElement(OdfStylePropertiesSet.ParagraphProperties) == null) &&
          (styleElement.getPropertiesElement(OdfStylePropertiesSet.TextProperties) == null)) {
        styleElement = ((OdfDocument) ((OdfFileDom) styleElement.getOwnerDocument()).getDocument()).getDocumentStyles().getDefaultStyle(styleElement.getFamily());
      }
      TreeMap<OdfStyleProperty, String> result = new TreeMap<OdfStyleProperty, String>();
      OdfStyleFamily family = OdfStyleFamily.Text;
      if (family != null) {
        for (OdfStyleProperty property : family.getProperties()) {
          if (styleElement.hasProperty(property)) {
            result.put(property, styleElement.getProperty(property));
          }
        }
      }
View Full Code Here

Examples of org.odftoolkit.odfdom.dom.style.OdfStyleFamily

      //check if it is the style:defaut-style
      if ((styleElement.getPropertiesElement(OdfStylePropertiesSet.ParagraphProperties) == null) &&
          (styleElement.getPropertiesElement(OdfStylePropertiesSet.TextProperties) == null)) {
        styleElement = ((OdfDocument) ((OdfFileDom) styleElement.getOwnerDocument()).getDocument()).getDocumentStyles().getDefaultStyle(styleElement.getFamily());
      }
      OdfStyleFamily family = OdfStyleFamily.Text;
      if (family != null) {
        for (OdfStyleProperty property : family.getProperties()) {
          if (styleElement.hasProperty(property)) {
            result.put(property, styleElement.getProperty(property));
          }
        }
      }
View Full Code Here

Examples of org.odftoolkit.odfdom.dom.style.OdfStyleFamily

     * get a map containing all properties of this style and their values.
     * @return map of properties.
     */
    public Map<OdfStyleProperty, String> getStyleProperties() {
        TreeMap<OdfStyleProperty, String> result = new TreeMap<OdfStyleProperty, String>();
        OdfStyleFamily family = getFamily();
        if (family != null) {
            for (OdfStyleProperty property : family.getProperties()) {
                if (hasProperty(property)) {
                    result.put(property, getProperty(property));
                }
            }
        }
View Full Code Here

Examples of org.odftoolkit.odfdom.dom.style.OdfStyleFamily

     */
    public Map<OdfStyleProperty, String> getStylePropertiesDeep() {
        TreeMap<OdfStyleProperty, String> result = new TreeMap<OdfStyleProperty, String>();
        OdfStyleBase style = this;
        while (style != null) {
            OdfStyleFamily family = style.getFamily();
            if (family != null) {
                for (OdfStyleProperty property : family.getProperties()) {
                    if (!result.containsKey(property) && style.hasProperty(property)) {
                        result.put(property, style.getProperty(property));
                    }
                }
            }
View Full Code Here

Examples of org.odftoolkit.odfdom.dom.style.OdfStyleFamily

      if ((styleElement.getPropertiesElement(OdfStylePropertiesSet.ParagraphProperties) == null) &&
          (styleElement.getPropertiesElement(OdfStylePropertiesSet.TextProperties) == null)) {
        styleElement = ((OdfDocument) ((OdfFileDom) styleElement.getOwnerDocument()).getDocument()).getDocumentStyles().getDefaultStyle(styleElement.getFamily());
      }
      TreeMap<OdfStyleProperty, String> result = new TreeMap<OdfStyleProperty, String>();
      OdfStyleFamily family = OdfStyleFamily.Text;
      if (family != null) {
        for (OdfStyleProperty property : family.getProperties()) {
          if (styleElement.hasProperty(property)) {
            result.put(property, styleElement.getProperty(property));
          }
        }
      }
View Full Code Here

Examples of org.odftoolkit.odfdom.dom.style.OdfStyleFamily

      //check if it is the style:defaut-style
      if ((styleElement.getPropertiesElement(OdfStylePropertiesSet.ParagraphProperties) == null) &&
          (styleElement.getPropertiesElement(OdfStylePropertiesSet.TextProperties) == null)) {
        styleElement = ((OdfDocument) ((OdfFileDom) styleElement.getOwnerDocument()).getDocument()).getDocumentStyles().getDefaultStyle(styleElement.getFamily());
      }
      OdfStyleFamily family = OdfStyleFamily.Text;
      if (family != null) {
        for (OdfStyleProperty property : family.getProperties()) {
          if (styleElement.hasProperty(property)) {
            result.put(property, styleElement.getProperty(property));
          }
        }
      }
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.