]> source.dussan.org Git - poi.git/commitdiff
added set accessor to indentation level
authorYegor Kozlov <yegor@apache.org>
Wed, 2 Apr 2008 10:20:31 +0000 (10:20 +0000)
committerYegor Kozlov <yegor@apache.org>
Wed, 2 Apr 2008 10:20:31 +0000 (10:20 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@643831 13f79535-47bb-0310-9956-ffa450edef68

src/scratchpad/src/org/apache/poi/hslf/usermodel/RichTextRun.java

index fe03755079c2eb1da3507466e293ff30da82d542..b250285ac91a3b4e2ad55ca70a2af78d07e13b93 100644 (file)
@@ -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
      */