From 785b37342e59e830aa70340045179c10573b61db Mon Sep 17 00:00:00 2001 From: Andreas Beeker Date: Sat, 31 Oct 2015 23:10:43 +0000 Subject: [PATCH] Add method for setting bullet styles git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1711707 13f79535-47bb-0310-9956-ffa450edef68 --- .../poi/sl/usermodel/TextParagraph.java | 9 ++++++++ .../poi/xslf/usermodel/XSLFTextParagraph.java | 22 +++++++++++++++++++ 2 files changed, 31 insertions(+) diff --git a/src/java/org/apache/poi/sl/usermodel/TextParagraph.java b/src/java/org/apache/poi/sl/usermodel/TextParagraph.java index b35d323e1a..a0f67bd61b 100644 --- a/src/java/org/apache/poi/sl/usermodel/TextParagraph.java +++ b/src/java/org/apache/poi/sl/usermodel/TextParagraph.java @@ -332,6 +332,15 @@ public interface TextParagraph< * @return the bullet style of the paragraph, if {@code null} then no bullets are used */ BulletStyle getBulletStyle(); + + /** + * Sets the bullet styles. If no styles are given, the bullets are omitted. + * Possible attributes are integer/double (bullet size), Color (bullet color), + * character (bullet character), string (bullet font), AutoNumberingScheme + * + * @param styles + */ + void setBulletStyle(Object... styles); /** * @return the default size for a tab character within this paragraph in points, null if unset diff --git a/src/ooxml/java/org/apache/poi/xslf/usermodel/XSLFTextParagraph.java b/src/ooxml/java/org/apache/poi/xslf/usermodel/XSLFTextParagraph.java index cc12a63426..31df98787a 100644 --- a/src/ooxml/java/org/apache/poi/xslf/usermodel/XSLFTextParagraph.java +++ b/src/ooxml/java/org/apache/poi/xslf/usermodel/XSLFTextParagraph.java @@ -985,4 +985,26 @@ public class XSLFTextParagraph implements TextParagraph