/** * Create child element {@odf.element style:region-right}. * * @return the element {@odf.element style:region-right} */ public StyleRegionRightElement newStyleRegionRightElement() { StyleRegionRightElement styleRegionRight = ((OdfFileDom) this.ownerDocument).newOdfElement(StyleRegionRightElement.class); this.appendChild(styleRegionRight); return styleRegionRight; }
/** * Receives the value of the ODFDOM attribute representation <code>StyleDisplayAttribute</code> , See {@odf.attribute style:display} * * @return - the <code>Boolean</code> , the value or <code>null</code>, if the attribute is not set and no default value defined. */ public Boolean getStyleDisplayAttribute() { StyleDisplayAttribute attr = (StyleDisplayAttribute) getOdfAttribute(OdfDocumentNamespace.STYLE, "display"); if (attr != null) { return Boolean.valueOf(attr.booleanValue()); } return Boolean.valueOf(StyleDisplayAttribute.DEFAULT_VALUE); }
/** * 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; }
footerEle.removeAttributeNS(OdfDocumentNamespace.STYLE.getUri(), "display"); } else { footerEle.setStyleDisplayAttribute(false); NodeList nodeList = footerEle.getElementsByTagName(TextPElement.ELEMENT_NAME.getQName()); for (int i = 0; i < nodeList.getLength(); i++) { TextPElement textEle = (TextPElement) nodeList.item(i); String stylename = textEle.getStyleName(); OdfFileDom dom = (OdfFileDom) footerEle.getOwnerDocument(); OdfOfficeAutomaticStyles styles = dom.getAutomaticStyles();
try { Document doc = (Document) ((OdfFileDom) footerEle .getOwnerDocument()).getDocument(); OdfContentDom contentDocument = doc.getContentDom(); OdfOfficeAutomaticStyles styles = contentDocument columnEle.setFoColumnGapAttribute("0in"); newSectionEle = footerEle.newTextSectionElement("true", name); newSectionEle.setStyleName(style.getStyleNameAttribute()); return Section.getInstance(newSectionEle);
/** * Sets the value of ODFDOM attribute representation <code>StyleDisplayAttribute</code> , See {@odf.attribute style:display} * * @param styleDisplayValue The type is <code>Boolean</code> */ public void setStyleDisplayAttribute(Boolean styleDisplayValue) { StyleDisplayAttribute attr = new StyleDisplayAttribute((OdfFileDom) this.ownerDocument); setOdfAttribute(attr); attr.setBooleanValue(styleDisplayValue.booleanValue()); }
footerEle.removeAttributeNS(OdfDocumentNamespace.STYLE.getUri(), "display"); } else { footerEle.setStyleDisplayAttribute(false); NodeList nodeList = footerEle.getElementsByTagName(TextPElement.ELEMENT_NAME.getQName()); for (int i = 0; i < nodeList.getLength(); i++) { TextPElement textEle = (TextPElement) nodeList.item(i); String stylename = textEle.getStyleName(); OdfFileDom dom = (OdfFileDom) footerEle.getOwnerDocument(); OdfOfficeAutomaticStyles styles = null; if (dom instanceof OdfContentDom) {
try { Document doc = (Document) ((OdfFileDom) footerEle .getOwnerDocument()).getDocument(); OdfContentDom contentDocument = doc.getContentDom(); OdfOfficeAutomaticStyles styles = contentDocument columnEle.setFoColumnGapAttribute("0in"); newSectionEle = footerEle.newTextSectionElement("true", name); newSectionEle.setStyleName(style.getStyleNameAttribute()); return Section.getInstance(newSectionEle);
/** * Sets the value of ODFDOM attribute representation <code>StyleDisplayAttribute</code> , See {@odf.attribute style:display} * * @param styleDisplayValue The type is <code>Boolean</code> */ public void setStyleDisplayAttribute(Boolean styleDisplayValue) { StyleDisplayAttribute attr = new StyleDisplayAttribute((OdfFileDom) this.ownerDocument); setOdfAttribute(attr); attr.setBooleanValue(styleDisplayValue.booleanValue()); }
/** * Create child element {@odf.element text:list}. * * @return the element {@odf.element text:list} */ public TextListElement newTextListElement() { TextListElement textList = ((OdfFileDom) this.ownerDocument).newOdfElement(TextListElement.class); this.appendChild(textList); return textList; }
footerEle.removeAttributeNS(OdfDocumentNamespace.STYLE.getUri(), "display"); } else { footerEle.setStyleDisplayAttribute(false); NodeList nodeList = footerEle.getElementsByTagName(TextPElement.ELEMENT_NAME.getQName()); for (int i = 0; i < nodeList.getLength(); i++) { TextPElement textEle = (TextPElement) nodeList.item(i); String stylename = textEle.getStyleName(); OdfFileDom dom = (OdfFileDom) footerEle.getOwnerDocument(); OdfOfficeAutomaticStyles styles = null; if (dom instanceof OdfContentDom) {
/** * 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; }
/** * Receives the value of the ODFDOM attribute representation <code>StyleDisplayAttribute</code> , See {@odf.attribute style:display} * * @return - the <code>Boolean</code> , the value or <code>null</code>, if the attribute is not set and no default value defined. */ public Boolean getStyleDisplayAttribute() { StyleDisplayAttribute attr = (StyleDisplayAttribute) getOdfAttribute(OdfDocumentNamespace.STYLE, "display"); if (attr != null) { return Boolean.valueOf(attr.booleanValue()); } return Boolean.valueOf(StyleDisplayAttribute.DEFAULT_VALUE); }
/** * Sets the value of ODFDOM attribute representation <code>StyleDisplayAttribute</code> , See {@odf.attribute style:display} * * @param styleDisplayValue The type is <code>Boolean</code> */ public void setStyleDisplayAttribute(Boolean styleDisplayValue) { StyleDisplayAttribute attr = new StyleDisplayAttribute((OdfFileDom) this.ownerDocument); setOdfAttribute(attr); attr.setBooleanValue(styleDisplayValue.booleanValue()); }
/** * Create child element {@odf.element text:sequence-decls}. * * @return the element {@odf.element text:sequence-decls} */ public TextSequenceDeclsElement newTextSequenceDeclsElement() { TextSequenceDeclsElement textSequenceDecls = ((OdfFileDom) this.ownerDocument).newOdfElement(TextSequenceDeclsElement.class); this.appendChild(textSequenceDecls); return textSequenceDecls; }
/** * 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; }
/** * Receives the value of the ODFDOM attribute representation <code>StyleDisplayAttribute</code> , See {@odf.attribute style:display} * * @return - the <code>Boolean</code> , the value or <code>null</code>, if the attribute is not set and no default value defined. */ public Boolean getStyleDisplayAttribute() { StyleDisplayAttribute attr = (StyleDisplayAttribute) getOdfAttribute(OdfDocumentNamespace.STYLE, "display"); if (attr != null) { return Boolean.valueOf(attr.booleanValue()); } return Boolean.valueOf(StyleDisplayAttribute.DEFAULT_VALUE); }
/** * Create child element {@odf.element text:tracked-changes}. * * @return the element {@odf.element text:tracked-changes} */ public TextTrackedChangesElement newTextTrackedChangesElement() { TextTrackedChangesElement textTrackedChanges = ((OdfFileDom) this.ownerDocument).newOdfElement(TextTrackedChangesElement.class); this.appendChild(textTrackedChanges); return textTrackedChanges; }
/** * Create child element {@odf.element text:user-field-decls}. * * @return the element {@odf.element text:user-field-decls} */ public TextUserFieldDeclsElement newTextUserFieldDeclsElement() { TextUserFieldDeclsElement textUserFieldDecls = ((OdfFileDom) this.ownerDocument).newOdfElement(TextUserFieldDeclsElement.class); this.appendChild(textUserFieldDecls); return textUserFieldDecls; }
/** * Create child element {@odf.element style:region-left}. * * @return the element {@odf.element style:region-left} */ public StyleRegionLeftElement newStyleRegionLeftElement() { StyleRegionLeftElement styleRegionLeft = ((OdfFileDom) this.ownerDocument).newOdfElement(StyleRegionLeftElement.class); this.appendChild(styleRegionLeft); return styleRegionLeft; }