/** * Create child element {@odf.element style:paragraph-properties}. * * @return the element {@odf.element style:paragraph-properties} */ public StyleParagraphPropertiesElement newStyleParagraphPropertiesElement() { StyleParagraphPropertiesElement styleParagraphProperties = ((OdfFileDom) this.ownerDocument).newOdfElement(StyleParagraphPropertiesElement.class); this.appendChild(styleParagraphProperties); return styleParagraphProperties; }
/** * Receives the value of the ODFDOM attribute representation <code>StyleFamilyAttribute</code> , See {@odf.attribute style:family} * * Attribute is mandatory. * * @return - the <code>String</code> , the value or <code>null</code>, if the attribute is not set and no default value defined. */ public String getStyleFamilyAttribute() { StyleFamilyAttribute attr = (StyleFamilyAttribute) getOdfAttribute(OdfDocumentNamespace.STYLE, "family"); if (attr != null) { return String.valueOf(attr.getValue()); } return null; }
/** * Sets the value of ODFDOM attribute representation <code>StyleFamilyAttribute</code> , See {@odf.attribute style:family} * * @param styleFamilyValue The type is <code>String</code> */ public void setStyleFamilyAttribute(String styleFamilyValue) { StyleFamilyAttribute attr = new StyleFamilyAttribute((OdfFileDom) this.ownerDocument); setOdfAttribute(attr); attr.setValue(styleFamilyValue); }
/** * Create child element {@odf.element style:default-style}. * * @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; }
@Override public void visit(StyleDefaultStyleElement ele) { if (generateCSSComments) { cssStyleSheet.setComment("style:default-style @style:family=" + ele.getFamilyName() + " begin"); } cssStyleSheet.startCSSStyleDeclaration(computeCSSClassName(ele)); super.visit(ele); cssStyleSheet.endCSSStyleDeclaration(); if (generateCSSComments) { cssStyleSheet.setComment("style:default-style @style:family=" + ele.getFamilyName() + " end"); } }
/** * Sets the value of ODFDOM attribute representation <code>StyleFamilyAttribute</code> , See {@odf.attribute style:family} * * @param styleFamilyValue The type is <code>String</code> */ public void setStyleFamilyAttribute(String styleFamilyValue) { StyleFamilyAttribute attr = new StyleFamilyAttribute((OdfFileDom) this.ownerDocument); setOdfAttribute(attr); attr.setValue(styleFamilyValue); }
/** * Create child element {@odf.element style:default-style}. * * @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; }
@Override public void visit( StyleDefaultStyleElement ele ) { if ( generateCSSComments ) { cssStyleSheet.setComment( "style:default-style @style:family=" + ele.getFamilyName() + " begin" ); } cssStyleSheet.startCSSStyleDeclaration( computeCSSClassName( ele ) ); super.visit( ele ); cssStyleSheet.endCSSStyleDeclaration(); if ( generateCSSComments ) { cssStyleSheet.setComment( "style:default-style @style:family=" + ele.getFamilyName() + " end" ); } }
/** * Create child element {@odf.element style:paragraph-properties}. * * @return the element {@odf.element style:paragraph-properties} */ public StyleParagraphPropertiesElement newStyleParagraphPropertiesElement() { StyleParagraphPropertiesElement styleParagraphProperties = ((OdfFileDom) this.ownerDocument).newOdfElement(StyleParagraphPropertiesElement.class); this.appendChild(styleParagraphProperties); return styleParagraphProperties; }
/** * Sets the value of ODFDOM attribute representation <code>StyleFamilyAttribute</code> , See {@odf.attribute style:family} * * @param styleFamilyValue The type is <code>String</code> */ public void setStyleFamilyAttribute(String styleFamilyValue) { StyleFamilyAttribute attr = new StyleFamilyAttribute((OdfFileDom) this.ownerDocument); setOdfAttribute(attr); attr.setValue(styleFamilyValue); }
/** * Create child element {@odf.element style:default-style}. * * @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; }
/** * Receives the value of the ODFDOM attribute representation <code>StyleFamilyAttribute</code> , See {@odf.attribute style:family} * * Attribute is mandatory. * * @return - the <code>String</code> , the value or <code>null</code>, if the attribute is not set and no default value defined. */ public String getStyleFamilyAttribute() { StyleFamilyAttribute attr = (StyleFamilyAttribute) getOdfAttribute(OdfDocumentNamespace.STYLE, "family"); if (attr != null) { return String.valueOf(attr.getValue()); } return null; }
/** * Create child element {@odf.element style:table-column-properties}. * * @return the element {@odf.element style:table-column-properties} */ public StyleTableColumnPropertiesElement newStyleTableColumnPropertiesElement() { StyleTableColumnPropertiesElement styleTableColumnProperties = ((OdfFileDom) this.ownerDocument).newOdfElement(StyleTableColumnPropertiesElement.class); this.appendChild(styleTableColumnProperties); return styleTableColumnProperties; }
/** * Receives the value of the ODFDOM attribute representation <code>StyleFamilyAttribute</code> , See {@odf.attribute style:family} * * Attribute is mandatory. * * @return - the <code>String</code> , the value or <code>null</code>, if the attribute is not set and no default value defined. */ public String getStyleFamilyAttribute() { StyleFamilyAttribute attr = (StyleFamilyAttribute) getOdfAttribute(OdfDocumentNamespace.STYLE, "family"); if (attr != null) { return String.valueOf(attr.getValue()); } return null; }
/** * Create child element {@odf.element style:table-column-properties}. * * @return the element {@odf.element style:table-column-properties} */ public StyleTableColumnPropertiesElement newStyleTableColumnPropertiesElement() { StyleTableColumnPropertiesElement styleTableColumnProperties = ((OdfFileDom) this.ownerDocument).newOdfElement(StyleTableColumnPropertiesElement.class); this.appendChild(styleTableColumnProperties); return styleTableColumnProperties; }
/** * Create child element {@odf.element style:table-properties}. * * @return the element {@odf.element style:table-properties} */ public StyleTablePropertiesElement newStyleTablePropertiesElement() { StyleTablePropertiesElement styleTableProperties = ((OdfFileDom) this.ownerDocument).newOdfElement(StyleTablePropertiesElement.class); this.appendChild(styleTableProperties); return styleTableProperties; }
/** * Create child element {@odf.element style:table-row-properties}. * * @return the element {@odf.element style:table-row-properties} */ public StyleTableRowPropertiesElement newStyleTableRowPropertiesElement() { StyleTableRowPropertiesElement styleTableRowProperties = ((OdfFileDom) this.ownerDocument).newOdfElement(StyleTableRowPropertiesElement.class); this.appendChild(styleTableRowProperties); return styleTableRowProperties; }
/** * Create child element {@odf.element style:drawing-page-properties}. * * @return the element {@odf.element style:drawing-page-properties} */ public StyleDrawingPagePropertiesElement newStyleDrawingPagePropertiesElement() { StyleDrawingPagePropertiesElement styleDrawingPageProperties = ((OdfFileDom) this.ownerDocument).newOdfElement(StyleDrawingPagePropertiesElement.class); this.appendChild(styleDrawingPageProperties); return styleDrawingPageProperties; }
/** * Create child element {@odf.element style:ruby-properties}. * * @return the element {@odf.element style:ruby-properties} */ public StyleRubyPropertiesElement newStyleRubyPropertiesElement() { StyleRubyPropertiesElement styleRubyProperties = ((OdfFileDom) this.ownerDocument).newOdfElement(StyleRubyPropertiesElement.class); this.appendChild(styleRubyProperties); return styleRubyProperties; }
/** * Create child element {@odf.element style:section-properties}. * * @return the element {@odf.element style:section-properties} */ public StyleSectionPropertiesElement newStyleSectionPropertiesElement() { StyleSectionPropertiesElement styleSectionProperties = ((OdfFileDom) this.ownerDocument).newOdfElement(StyleSectionPropertiesElement.class); this.appendChild(styleSectionProperties); return styleSectionProperties; }