From: Yegor Kozlov Date: Wed, 2 Apr 2008 10:20:31 +0000 (+0000) Subject: added set accessor to indentation level X-Git-Tag: REL_3_0_3_BETA1~47 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=dc7c42a31b845b13b818311b13eaed6b111a92c1;p=poi.git added set accessor to indentation level git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@643831 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/scratchpad/src/org/apache/poi/hslf/usermodel/RichTextRun.java b/src/scratchpad/src/org/apache/poi/hslf/usermodel/RichTextRun.java index fe03755079..b250285ac9 100644 --- a/src/scratchpad/src/org/apache/poi/hslf/usermodel/RichTextRun.java +++ b/src/scratchpad/src/org/apache/poi/hslf/usermodel/RichTextRun.java @@ -424,6 +424,15 @@ public class RichTextRun { return paragraphStyle == null ? 0 : paragraphStyle.getReservedField(); } + /** + * Sets indentation level + * + * @param level indentation level. Must be in the range [0, 5] + */ + public void setIndentLevel(int level) { + if(paragraphStyle != null ) paragraphStyle.setReservedField((short)level); + } + /** * Sets whether this rich text run has bullets */