cid#1607041 PA: Public Attribute

Change-Id: I8ec74e943232f98c861e035c0da11e8d75f8fa29
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174106
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
This commit is contained in:
Caolán McNamara 2024-09-28 11:22:38 +01:00
parent 645ae19dfc
commit d8d4efbe1f
3 changed files with 8 additions and 3 deletions

View file

@ -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

View file

@ -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);
}

View file

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