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()