diff --git a/wizards/com/sun/star/wizards/report/DBColumn.java b/wizards/com/sun/star/wizards/report/DBColumn.java index 35bd99429a9a..d993ded1b1b0 100644 --- a/wizards/com/sun/star/wizards/report/DBColumn.java +++ b/wizards/com/sun/star/wizards/report/DBColumn.java @@ -46,7 +46,7 @@ public class DBColumn private XCell xValCell; private XTextRange xValTextCell; private XTextCursor xValCellCursor; - public XCell xNameCell; + private XCell xNameCell; private XTextRange xNameTextCell; private boolean bAlignLeft; private String CharFontName; @@ -183,6 +183,11 @@ public class DBColumn } } + public XCell getNameCell() + { + return xNameCell; + } + private void getTableColumns(String TableName) { try diff --git a/wizards/com/sun/star/wizards/report/ReportTextDocument.java b/wizards/com/sun/star/wizards/report/ReportTextDocument.java index 52d8e6d2ae96..8e1e325b874d 100644 --- a/wizards/com/sun/star/wizards/report/ReportTextDocument.java +++ b/wizards/com/sun/star/wizards/report/ReportTextDocument.java @@ -448,7 +448,7 @@ class ReportTextDocument extends com.sun.star.wizards.text.TextDocument implemen } CurDBColumn = new DBColumn(CurRecordTable, oTextTableHandler, CurDBMetaData, i - CurDBMetaData.getGroupFieldNames().length); } - if (CurDBColumn.xNameCell != null) + if (CurDBColumn.getNameCell() != null) { DBColumnsVector.add(CurDBColumn); } diff --git a/wizards/com/sun/star/wizards/report/ReportTextImplementation.java b/wizards/com/sun/star/wizards/report/ReportTextImplementation.java index 9f8e77cd05ce..ead591e5e352 100644 --- a/wizards/com/sun/star/wizards/report/ReportTextImplementation.java +++ b/wizards/com/sun/star/wizards/report/ReportTextImplementation.java @@ -436,7 +436,7 @@ public class ReportTextImplementation extends ReportImplementationHelper impleme for (int i = 0; i < iCount; i++) { CurDBColumn = getDoc().DBColumnsVector.get(i); - xNameCellCursor = ReportTextDocument.createTextCursor(CurDBColumn.xNameCell); + xNameCellCursor = ReportTextDocument.createTextCursor(CurDBColumn.getNameCell()); xNameCellCursor.gotoStart(false); FieldContent = getDoc().oTextFieldHandler.getUserFieldContent(xNameCellCursor); if (!FieldContent.equals(PropertyNames.EMPTY_STRING))