/** * Set the font name for western characters. * <p> * If the parameter <code>fontName</code> is null, the font name for western * characters will be removed. * * @param fontName - font name */ public void setFontName(String fontName) { mElement.setStyleFontNameAttribute(fontName); }
public void setPageNumber(int pageNumber) { if (pageNumber > 0) { mElement.setStylePageNumberAttribute(pageNumber); } else { mElement.removeAttribute("style:page-number"); } }
/** * Get this footer is visible or not. * * @return If this footer is visible return <code>true</code>, otherwise * return <code>false</code>. * @since 0.5.5 */ public boolean isVisible() { boolean isVisible = footerEle.getStyleDisplayAttribute(); return isVisible; }
/** * Get the name of this master page. * <p> * This represents the attribute <code>style:name</code> of * <code>style:master-page</code>. * * @return the style name of this master page. */ public String getName() { return mStyleMasterPageElement.getStyleNameAttribute(); }
/** * Return the font name for western characters. * <p> * Null will be returned if there is no font name setting for western * characters. * * @return the font style for western characters */ public String getFontName() { return mElement.getStyleFontNameAttribute(); }
/** * * Gets backgroundColor represented by the OpenDocument format used data * type {@odf.datatype color} See * <a href="http://www.w3.org/TR/CSS21/syndata.html#value-def-color">W3C CSS * specification</a> for further details. * * @return bkColor as String (see above) */ public String getBackgroundColorAttribute() { return mElement.getFoBackgroundColorAttribute(); }
/** * Create child element {@odf.element style:page-layout-properties}. * * @param styleNumFormatValue the <code>String</code> value of <code>StyleNumFormatAttribute</code>, see {@odf.attribute style:num-format} at specification * @return the element {@odf.element style:page-layout-properties} */ public StylePageLayoutPropertiesElement newStylePageLayoutPropertiesElement(String styleNumFormatValue) { StylePageLayoutPropertiesElement stylePageLayoutProperties = ((OdfFileDom) this.ownerDocument).newOdfElement(StylePageLayoutPropertiesElement.class); stylePageLayoutProperties.setStyleNumFormatAttribute(styleNumFormatValue); this.appendChild(stylePageLayoutProperties); return stylePageLayoutProperties; }
/** * Get the print orientation of this <code>PageLayoutProperties</code> * * @return the print orientation */ public String getPrintOrientation() { return mElement.getStylePrintOrientationAttribute(); }
/** * Create child element {@odf.element style:chart-properties}. * * @param chartSymbolTypeValue the <code>String</code> value of <code>ChartSymbolTypeAttribute</code>, see {@odf.attribute chart:symbol-type} at specification * @return the element {@odf.element style:chart-properties} */ public StyleChartPropertiesElement newStyleChartPropertiesElement(String chartSymbolTypeValue) { StyleChartPropertiesElement styleChartProperties = ((OdfFileDom) this.ownerDocument).newOdfElement(StyleChartPropertiesElement.class); styleChartProperties.setChartSymbolTypeAttribute(chartSymbolTypeValue); this.appendChild(styleChartProperties); return styleChartProperties; }
/** * Create child element {@odf.element style:chart-properties}. * * @param chartSymbolTypeValue the <code>String</code> value of <code>ChartSymbolTypeAttribute</code>, see {@odf.attribute chart:symbol-type} at specification * @return the element {@odf.element style:chart-properties} */ public StyleChartPropertiesElement newStyleChartPropertiesElement(String chartSymbolTypeValue) { StyleChartPropertiesElement styleChartProperties = ((OdfFileDom) this.ownerDocument).newOdfElement(StyleChartPropertiesElement.class); styleChartProperties.setChartSymbolTypeAttribute(chartSymbolTypeValue); this.appendChild(styleChartProperties); return styleChartProperties; }
/** * Create child element {@odf.element style:text-properties}. * * @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; }
/** * Get this header is visible or not. * * @return If this header is visible return <code>true</code>, otherwise * return <code>false</code>. * @since 0.5.5 */ public boolean isVisible() { boolean isVisible = headerEle.getStyleDisplayAttribute(); return isVisible; }
/** * Return the break property after the reference. * <p> * Null will be returned if there is no break setting after the reference. * * @return - the break property; null if there is no break setting. */ public String getBreakAfter() { return mElement.getFoBreakAfterAttribute(); }
/** * Return the break property before the reference. * <p> * Null will be returned if there is no break setting before the reference. * * @return - the break property; null if there is no break setting. */ public String getBreakBefore() { return mElement.getFoBreakBeforeAttribute(); }
/** * Get the number format of this <code>PageLayoutProperties</code> * * @return the number format */ public String getNumberFormat() { return mElement.getStyleNumFormatAttribute(); }
/** * Return the font name for western characters. * <p> * Null will be returned if there is no font name setting for western * characters. * * @return the font style for western characters */ public String getFontName() { return mElement.getStyleFontNameAttribute(); }
/** * Set the font name for western characters. * <p> * If the parameter <code>fontName</code> is null, the font name for western * characters will be removed. * * @param fontName * - font name */ public void setFontName(String fontName) { mElement.setStyleFontNameAttribute(fontName); }
/** * Get this footer is visible or not. * * @return If this footer is visible return <code>true</code>, otherwise * return <code>false</code>. * @since 0.5.5 */ public boolean isVisible() { boolean isVisible = footerEle.getStyleDisplayAttribute(); return isVisible; }
/** * Get this header is visible or not. * * @return If this header is visible return <code>true</code>, otherwise * return <code>false</code>. * @since 0.5.5 */ public boolean isVisible() { boolean isVisible = headerEle.getStyleDisplayAttribute(); return isVisible; }
/** * Return the break property after the reference. * <p> * Null will be returned if there is no break setting after the reference. * * @return - the break property; null if there is no break setting. */ public String getBreakAfter() { return mElement.getFoBreakAfterAttribute(); }