summaryrefslogtreecommitdiff
path: root/wizards
diff options
context:
space:
mode:
authorCaolán McNamara <caolan.mcnamara@collabora.com>2024-09-20 09:41:54 +0100
committerCaolán McNamara <caolan.mcnamara@collabora.com>2024-09-20 17:43:34 +0200
commit74774c101eab155106b176a1f77a3131a4fc3ac9 (patch)
treea0d8ccd9935d45b83bd2931e6452a36fdd9a823c /wizards
parentd0f7619735ede9bbed904309c119cccdc5aee040 (diff)
cid#1606721 PA: Public Attribute
Change-Id: I7f67264abf3ab6e52fe74c3e0bbac86a363b45c5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173724 Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com> Tested-by: Jenkins
Diffstat (limited to 'wizards')
-rw-r--r--wizards/com/sun/star/wizards/form/StyleApplier.java4
-rw-r--r--wizards/com/sun/star/wizards/report/ReportTextImplementation.java6
-rw-r--r--wizards/com/sun/star/wizards/text/TextDocument.java6
3 files changed, 10 insertions, 6 deletions
diff --git a/wizards/com/sun/star/wizards/form/StyleApplier.java b/wizards/com/sun/star/wizards/form/StyleApplier.java
index 508773d1018e..bfd0328db4af 100644
--- a/wizards/com/sun/star/wizards/form/StyleApplier.java
+++ b/wizards/com/sun/star/wizards/form/StyleApplier.java
@@ -66,7 +66,7 @@ public class StyleApplier
this.curFormDocument = _curFormDocument;
xMSF = curFormDocument.xMSF;
- TextStyleHandler oTextStyleHandler = new TextStyleHandler(curFormDocument.xTextDocument);
+ TextStyleHandler oTextStyleHandler = new TextStyleHandler(curFormDocument.getTextDocument());
xPageStylePropertySet = oTextStyleHandler.getStyleByName("PageStyles", "Standard");
short curtabindex = (short) (FormWizard.SOSTYLE_PAGE * 100);
Integer IStyleStep = Integer.valueOf(FormWizard.SOSTYLE_PAGE);
@@ -239,7 +239,7 @@ public class StyleApplier
{
try
{
- curFormDocument.xTextDocument.lockControllers();
+ curFormDocument.getTextDocument().lockControllers();
if (optNoBorder.getState())
{
diff --git a/wizards/com/sun/star/wizards/report/ReportTextImplementation.java b/wizards/com/sun/star/wizards/report/ReportTextImplementation.java
index 29d3d25c64b0..107b9bf08129 100644
--- a/wizards/com/sun/star/wizards/report/ReportTextImplementation.java
+++ b/wizards/com/sun/star/wizards/report/ReportTextImplementation.java
@@ -141,7 +141,7 @@ public class ReportTextImplementation extends ReportImplementationHelper impleme
private void addTextSectionCopies()
{
m_aDoc.setLayoutSectionsVisible(false);
- XTextCursor xTextCursor = ReportTextDocument.createTextCursor(m_aDoc.xTextDocument.getText());
+ XTextCursor xTextCursor = ReportTextDocument.createTextCursor(m_aDoc.getTextDocument().getText());
xTextCursor.gotoStart(false);
for (int i = 0; i < getRecordParser().getGroupFieldNames().length; i++)
{
@@ -334,8 +334,8 @@ public class ReportTextImplementation extends ReportImplementationHelper impleme
int FieldCount = getRecordParser().FieldColumns.length;
Object[] OldGroupFieldValues = new Object[GroupFieldCount];
int RecordFieldCount = FieldCount - GroupFieldCount;
- XTextDocument xTextDocument = getDoc().xTextDocument;
- XTextCursor xTextCursor = ReportTextDocument.createTextCursor(getDoc().xTextDocument.getText());
+ XTextDocument xTextDocument = getDoc().getTextDocument();
+ XTextCursor xTextCursor = ReportTextDocument.createTextCursor(getDoc().getTextDocument().getText());
xTextDocument.lockControllers();
if (getRecordParser().getResultSet().next())
diff --git a/wizards/com/sun/star/wizards/text/TextDocument.java b/wizards/com/sun/star/wizards/text/TextDocument.java
index 74a24eb7f3cd..710c73a9b494 100644
--- a/wizards/com/sun/star/wizards/text/TextDocument.java
+++ b/wizards/com/sun/star/wizards/text/TextDocument.java
@@ -49,7 +49,7 @@ public class TextDocument
{
public XComponent xComponent;
- public com.sun.star.text.XTextDocument xTextDocument;
+ protected com.sun.star.text.XTextDocument xTextDocument;
public com.sun.star.task.XStatusIndicator xProgressBar;
public com.sun.star.frame.XFrame xFrame;
public XText xText;
@@ -225,7 +225,11 @@ public class TextDocument
myFieldHandler.updateDocInfoFields();
return xTextDocument;
+ }
+ public com.sun.star.text.XTextDocument getTextDocument()
+ {
+ return xTextDocument;
}
private Size getPageSize()