/** * Receives the value of the ODFDOM attribute representation <code>FoTextIndentAttribute</code> , See {@odf.attribute fo:text-indent} * * @return - the <code>String</code> , the value or <code>null</code>, if the attribute is not set and no default value defined. */ public String getFoTextIndentAttribute() { FoTextIndentAttribute attr = (FoTextIndentAttribute) getOdfAttribute(OdfDocumentNamespace.FO, "text-indent"); if (attr != null) { return String.valueOf(attr.getValue()); } return null; }
.newStyleListLevelLabelAlignmentElement("listtab"); styleListLevelLabelAlignmentElement .setTextListTabStopPositionAttribute(DEFAULT_MARGIN_LEFT_ATTRIBUTES[i]); styleListLevelLabelAlignmentElement.setFoTextIndentAttribute("-0.741cm"); styleListLevelLabelAlignmentElement.setFoMarginLeftAttribute(DEFAULT_MARGIN_LEFT_ATTRIBUTES[i]);
/** * Sets the value of ODFDOM attribute representation <code>FoMarginLeftAttribute</code> , See {@odf.attribute fo:margin-left} * * @param foMarginLeftValue The type is <code>String</code> */ public void setFoMarginLeftAttribute(String foMarginLeftValue) { FoMarginLeftAttribute attr = new FoMarginLeftAttribute((OdfFileDom) this.ownerDocument); setOdfAttribute(attr); attr.setValue(foMarginLeftValue); }
@Override public void visit( StyleListLevelLabelAlignmentElement ele ) { if ( currentListProperties == null ) { return; } StyleListProperties listProperties = currentListProperties; // margin-left String marginLeft = ele.getFoMarginLeftAttribute(); if ( StringUtils.isNotEmpty( marginLeft ) ) { listProperties.setMarginLeft( ODFUtils.getDimensionAsPoint( marginLeft ) ); } // text-indent String textIndent = ele.getFoTextIndentAttribute(); if ( StringUtils.isNotEmpty( textIndent ) ) { listProperties.setTextIndent( ODFUtils.getDimensionAsPoint( textIndent ) ); } super.visit( ele ); }
/** * Create child element {@odf.element style:list-level-label-alignment}. * * @param textLabelFollowedByValue the <code>String</code> value of <code>TextLabelFollowedByAttribute</code>, see {@odf.attribute text:label-followed-by} at specification * Child element is new in Odf 1.2 * * @return the element {@odf.element style:list-level-label-alignment} */ public StyleListLevelLabelAlignmentElement newStyleListLevelLabelAlignmentElement(String textLabelFollowedByValue) { StyleListLevelLabelAlignmentElement styleListLevelLabelAlignment = ((OdfFileDom) this.ownerDocument).newOdfElement(StyleListLevelLabelAlignmentElement.class); styleListLevelLabelAlignment.setTextLabelFollowedByAttribute(textLabelFollowedByValue); this.appendChild(styleListLevelLabelAlignment); return styleListLevelLabelAlignment; }
.newStyleListLevelLabelAlignmentElement("listtab"); styleListLevelLabelAlignmentElement .setTextListTabStopPositionAttribute(DEFAULT_MARGIN_LEFT_ATTRIBUTES[i]); styleListLevelLabelAlignmentElement.setFoTextIndentAttribute("-0.741cm"); styleListLevelLabelAlignmentElement.setFoMarginLeftAttribute(DEFAULT_MARGIN_LEFT_ATTRIBUTES[i]);
/** * Sets the value of ODFDOM attribute representation <code>FoTextIndentAttribute</code> , See {@odf.attribute fo:text-indent} * * @param foTextIndentValue The type is <code>String</code> */ public void setFoTextIndentAttribute(String foTextIndentValue) { FoTextIndentAttribute attr = new FoTextIndentAttribute((OdfFileDom) this.ownerDocument); setOdfAttribute(attr); attr.setValue(foTextIndentValue); }
@Override public void visit( StyleListLevelLabelAlignmentElement ele ) { if ( currentListProperties == null ) { return; } StyleListProperties listProperties = currentListProperties; // margin-left String marginLeft = ele.getFoMarginLeftAttribute(); if ( StringUtils.isNotEmpty( marginLeft ) ) { listProperties.setMarginLeft( ODFUtils.getDimensionAsPoint( marginLeft ) ); } // text-indent String textIndent = ele.getFoTextIndentAttribute(); if ( StringUtils.isNotEmpty( textIndent ) ) { listProperties.setTextIndent( ODFUtils.getDimensionAsPoint( textIndent ) ); } super.visit( ele ); }
/** * Create child element {@odf.element style:list-level-label-alignment}. * * @param textLabelFollowedByValue the <code>String</code> value of <code>TextLabelFollowedByAttribute</code>, see {@odf.attribute text:label-followed-by} at specification * Child element is new in Odf 1.2 * * @return the element {@odf.element style:list-level-label-alignment} */ public StyleListLevelLabelAlignmentElement newStyleListLevelLabelAlignmentElement(String textLabelFollowedByValue) { StyleListLevelLabelAlignmentElement styleListLevelLabelAlignment = ((OdfFileDom) this.ownerDocument).newOdfElement(StyleListLevelLabelAlignmentElement.class); styleListLevelLabelAlignment.setTextLabelFollowedByAttribute(textLabelFollowedByValue); this.appendChild(styleListLevelLabelAlignment); return styleListLevelLabelAlignment; }
.newStyleListLevelLabelAlignmentElement("listtab"); styleListLevelLabelAlignmentElement .setTextListTabStopPositionAttribute(DEFAULT_MARGIN_LEFT_ATTRIBUTES[i]); styleListLevelLabelAlignmentElement.setFoTextIndentAttribute("-0.741cm"); styleListLevelLabelAlignmentElement.setFoMarginLeftAttribute(DEFAULT_MARGIN_LEFT_ATTRIBUTES[i]);
/** * Receives the value of the ODFDOM attribute representation <code>TextListTabStopPositionAttribute</code> , See {@odf.attribute text:list-tab-stop-position} * * @return - the <code>String</code> , the value or <code>null</code>, if the attribute is not set and no default value defined. */ public String getTextListTabStopPositionAttribute() { TextListTabStopPositionAttribute attr = (TextListTabStopPositionAttribute) getOdfAttribute(OdfDocumentNamespace.TEXT, "list-tab-stop-position"); if (attr != null) { return String.valueOf(attr.getValue()); } return null; }
/** * Sets the value of ODFDOM attribute representation <code>FoMarginLeftAttribute</code> , See {@odf.attribute fo:margin-left} * * @param foMarginLeftValue The type is <code>String</code> */ public void setFoMarginLeftAttribute(String foMarginLeftValue) { FoMarginLeftAttribute attr = new FoMarginLeftAttribute((OdfFileDom) this.ownerDocument); setOdfAttribute(attr); attr.setValue(foMarginLeftValue); }
/** * Create child element {@odf.element style:list-level-label-alignment}. * * @param textLabelFollowedByValue the <code>String</code> value of <code>TextLabelFollowedByAttribute</code>, see {@odf.attribute text:label-followed-by} at specification * Child element is new in Odf 1.2 * * @return the element {@odf.element style:list-level-label-alignment} */ public StyleListLevelLabelAlignmentElement newStyleListLevelLabelAlignmentElement(String textLabelFollowedByValue) { StyleListLevelLabelAlignmentElement styleListLevelLabelAlignment = ((OdfFileDom) this.ownerDocument).newOdfElement(StyleListLevelLabelAlignmentElement.class); styleListLevelLabelAlignment.setTextLabelFollowedByAttribute(textLabelFollowedByValue); this.appendChild(styleListLevelLabelAlignment); return styleListLevelLabelAlignment; }
/** * Receives the value of the ODFDOM attribute representation <code>FoTextIndentAttribute</code> , See {@odf.attribute fo:text-indent} * * @return - the <code>String</code> , the value or <code>null</code>, if the attribute is not set and no default value defined. */ public String getFoTextIndentAttribute() { FoTextIndentAttribute attr = (FoTextIndentAttribute) getOdfAttribute(OdfDocumentNamespace.FO, "text-indent"); if (attr != null) { return String.valueOf(attr.getValue()); } return null; }
/** * Sets the value of ODFDOM attribute representation <code>FoTextIndentAttribute</code> , See {@odf.attribute fo:text-indent} * * @param foTextIndentValue The type is <code>String</code> */ public void setFoTextIndentAttribute(String foTextIndentValue) { FoTextIndentAttribute attr = new FoTextIndentAttribute((OdfFileDom) this.ownerDocument); setOdfAttribute(attr); attr.setValue(foTextIndentValue); }
/** * Receives the value of the ODFDOM attribute representation <code>TextListTabStopPositionAttribute</code> , See {@odf.attribute text:list-tab-stop-position} * * @return - the <code>String</code> , the value or <code>null</code>, if the attribute is not set and no default value defined. */ public String getTextListTabStopPositionAttribute() { TextListTabStopPositionAttribute attr = (TextListTabStopPositionAttribute) getOdfAttribute(OdfDocumentNamespace.TEXT, "list-tab-stop-position"); if (attr != null) { return String.valueOf(attr.getValue()); } return null; }
/** * Sets the value of ODFDOM attribute representation <code>TextListTabStopPositionAttribute</code> , See {@odf.attribute text:list-tab-stop-position} * * @param textListTabStopPositionValue The type is <code>String</code> */ public void setTextListTabStopPositionAttribute(String textListTabStopPositionValue) { TextListTabStopPositionAttribute attr = new TextListTabStopPositionAttribute((OdfFileDom) this.ownerDocument); setOdfAttribute(attr); attr.setValue(textListTabStopPositionValue); }
/** * Receives the value of the ODFDOM attribute representation <code>FoMarginLeftAttribute</code> , See {@odf.attribute fo:margin-left} * * @return - the <code>String</code> , the value or <code>null</code>, if the attribute is not set and no default value defined. */ public String getFoMarginLeftAttribute() { FoMarginLeftAttribute attr = (FoMarginLeftAttribute) getOdfAttribute(OdfDocumentNamespace.FO, "margin-left"); if (attr != null) { return String.valueOf(attr.getValue()); } return null; }
/** * Sets the value of ODFDOM attribute representation <code>TextLabelFollowedByAttribute</code> , See {@odf.attribute text:label-followed-by} * * @param textLabelFollowedByValue The type is <code>String</code> */ public void setTextLabelFollowedByAttribute(String textLabelFollowedByValue) { TextLabelFollowedByAttribute attr = new TextLabelFollowedByAttribute((OdfFileDom) this.ownerDocument); setOdfAttribute(attr); attr.setValue(textLabelFollowedByValue); }
/** * Receives the value of the ODFDOM attribute representation <code>FoTextIndentAttribute</code> , See {@odf.attribute fo:text-indent} * * @return - the <code>String</code> , the value or <code>null</code>, if the attribute is not set and no default value defined. */ public String getFoTextIndentAttribute() { FoTextIndentAttribute attr = (FoTextIndentAttribute) getOdfAttribute(OdfDocumentNamespace.FO, "text-indent"); if (attr != null) { return String.valueOf(attr.getValue()); } return null; }