Author: abearez Date: Sat Apr 11 21:43:18 2020 New Revision: 1876406 URL: http://svn.apache.org/viewvc?rev=1876406&view=rev Log: Return and set paragraph indentation level
Modified: poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/text/XDDFTextParagraph.java Modified: poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/text/XDDFTextParagraph.java URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/text/XDDFTextParagraph.java?rev=1876406&r1=1876405&r2=1876406&view=diff ============================================================================== --- poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/text/XDDFTextParagraph.java (original) +++ poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/text/XDDFTextParagraph.java Sat Apr 11 21:43:18 2020 @@ -172,6 +172,32 @@ public class XDDFTextParagraph { } /** + * Returns the paragraph indentation level. + * + * @return indentation level of the paragraph. + */ + public int getIndentationLevel() { + if (_p.isSetPPr()) { + return getProperties().getLevel(); + } else { + return 0; + } + } + + /** + * Specifies the paragraph indentation level, between 1 and 9. + * + * @param level + * new indentation level for the paragraph. + * Use <code>null</code> to unset the indentation level. + */ + public void setIndentationLevel(Integer level) { + if (_p.isSetPPr()) { + getProperties().setLevel(level); + } + } + + /** * Returns the alignment that is applied to the paragraph. * * If this attribute is omitted, then a value of left is implied. --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@poi.apache.org For additional commands, e-mail: commits-h...@poi.apache.org