You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@poi.apache.org by fa...@apache.org on 2025/09/26 08:13:20 UTC

(poi) branch trunk updated: Make getters public for XML beans in XWPFDefault*Style. (#910)

This is an automated email from the ASF dual-hosted git repository.

fanningpj pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/poi.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 7a124135de Make getters public for XML beans in XWPFDefault*Style. (#910)
7a124135de is described below

commit 7a124135dec06e658a1d7788091dc4c2ec73d575
Author: Jacobo Aragunde Pérez <ja...@igalia.com>
AuthorDate: Fri Sep 26 10:13:14 2025 +0200

    Make getters public for XML beans in XWPFDefault*Style. (#910)
    
    The classes XWPFDefaultRunStyle and XWPFDefaultParagraphStyle only
    expose a subset of their possibles attributes. To let users access all
    the underlying data, we change the visibility of the XML bean getters
    to public.
---
 .../org/apache/poi/xwpf/usermodel/XWPFDefaultParagraphStyle.java   | 7 ++++++-
 .../java/org/apache/poi/xwpf/usermodel/XWPFDefaultRunStyle.java    | 7 ++++++-
 2 files changed, 12 insertions(+), 2 deletions(-)

diff --git a/poi-ooxml/src/main/java/org/apache/poi/xwpf/usermodel/XWPFDefaultParagraphStyle.java b/poi-ooxml/src/main/java/org/apache/poi/xwpf/usermodel/XWPFDefaultParagraphStyle.java
index 77679d2db7..61004d420b 100644
--- a/poi-ooxml/src/main/java/org/apache/poi/xwpf/usermodel/XWPFDefaultParagraphStyle.java
+++ b/poi-ooxml/src/main/java/org/apache/poi/xwpf/usermodel/XWPFDefaultParagraphStyle.java
@@ -32,7 +32,12 @@ public class XWPFDefaultParagraphStyle {
         this.ppr = ppr;
     }
 
-    protected CTPPrGeneral getPPr() {
+    /**
+     * Return the underlying XML bean.
+     * @return underlying CTPPrGeneral bean.
+     * @since POI 5.5.0
+     */
+    public CTPPrGeneral getPPr() {
         return ppr;
     }
 
diff --git a/poi-ooxml/src/main/java/org/apache/poi/xwpf/usermodel/XWPFDefaultRunStyle.java b/poi-ooxml/src/main/java/org/apache/poi/xwpf/usermodel/XWPFDefaultRunStyle.java
index 24c235d0e0..4595ff65cd 100644
--- a/poi-ooxml/src/main/java/org/apache/poi/xwpf/usermodel/XWPFDefaultRunStyle.java
+++ b/poi-ooxml/src/main/java/org/apache/poi/xwpf/usermodel/XWPFDefaultRunStyle.java
@@ -36,7 +36,12 @@ public class XWPFDefaultRunStyle {
         this.rpr = rpr;
     }
 
-    protected CTRPr getRPr() {
+    /**
+     * Return the underlying XML bean.
+     * @return underlying CTRPr bean.
+     * @since POI 5.5.0
+     */
+    public CTRPr getRPr() {
         return rpr;
     }
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org