From 98091532bf3faf3a338c89e557db7189d956de48 Mon Sep 17 00:00:00 2001 From: PJ Fanning Date: Thu, 10 Feb 2022 22:41:04 +0000 Subject: add XWPFDocument.getSettings git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1897949 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/main/java/org/apache/poi/xwpf/usermodel/XWPFDocument.java | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'poi-ooxml') diff --git a/poi-ooxml/src/main/java/org/apache/poi/xwpf/usermodel/XWPFDocument.java b/poi-ooxml/src/main/java/org/apache/poi/xwpf/usermodel/XWPFDocument.java index 7274f9bbe7..65936bf9dc 100644 --- a/poi-ooxml/src/main/java/org/apache/poi/xwpf/usermodel/XWPFDocument.java +++ b/poi-ooxml/src/main/java/org/apache/poi/xwpf/usermodel/XWPFDocument.java @@ -1448,6 +1448,14 @@ public class XWPFDocument extends POIXMLDocument implements Document, IBody { return Collections.unmodifiableList(result); } + /** + * @return document level settings + * @since POI 5.2.1 + */ + public XWPFSettings getSettings() { + return settings; + } + void registerPackagePictureData(XWPFPictureData picData) { List list = packagePictures.computeIfAbsent(picData.getChecksum(), k -> new ArrayList<>(1)); if (!list.contains(picData)) { -- cgit v1.2.3