diff options
author | Kurt Zenker <kz@openoffice.org> | 2005-03-18 15:20:39 +0000 |
---|---|---|
committer | Kurt Zenker <kz@openoffice.org> | 2005-03-18 15:20:39 +0000 |
commit | a01cc73b2f8416b681ee2030357d85c4d82278e3 (patch) | |
tree | 8bb5da7a0e85fe006ca375ca8bbb77841278bd01 /wizards | |
parent | 045ba117af8e8a6e8ed10dace638c6ca1f98ba43 (diff) |
INTEGRATION: CWS dbwizard4 (1.3.40); FILE MERGED
2005/03/12 18:28:41 bc 1.3.40.4: RESYNC: (1.3-1.4); FILE MERGED
2005/03/09 16:49:24 bc 1.3.40.3: #i43798#Deletion of texttable columns now considered
2005/03/08 14:08:25 bc 1.3.40.2: #i43785#Several changes in handling new tables
2005/02/17 13:50:22 bc 1.3.40.1: ##ControlArrangement in FormWizard modified
Diffstat (limited to 'wizards')
-rw-r--r-- | wizards/com/sun/star/wizards/report/RecordTable.java | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/wizards/com/sun/star/wizards/report/RecordTable.java b/wizards/com/sun/star/wizards/report/RecordTable.java index d6dbe7c48a10..f624ad07d0a7 100644 --- a/wizards/com/sun/star/wizards/report/RecordTable.java +++ b/wizards/com/sun/star/wizards/report/RecordTable.java @@ -43,6 +43,8 @@ import com.sun.star.container.XNameAccess; import com.sun.star.container.XNamed; import com.sun.star.lang.XMultiServiceFactory; import com.sun.star.table.XCellRange; +import com.sun.star.table.XTableColumns; +import com.sun.star.table.XTableRows; import com.sun.star.text.XTextTable; import com.sun.star.uno.Exception; import com.sun.star.uno.UnoRuntime; @@ -57,6 +59,9 @@ public class RecordTable{ public XCellRange xCellRange; public XTextTable xTextTable; private TextTableHandler oTextTableHandler; + public XTableColumns xTableColumns; + public XTableRows xTableRows; + public RecordTable(TextTableHandler _oTextTableHandler){ @@ -64,7 +69,7 @@ public class RecordTable{ this.oTextTableHandler = _oTextTableHandler; String[] TableNames = oTextTableHandler.xTextTablesSupplier.getTextTables().getElementNames(); XNameAccess xAllTextTables = oTextTableHandler.xTextTablesSupplier.getTextTables(); - if (xAllTextTables.hasByName(ReportDocument.TBLRECORDSECTION)){ + if ((xAllTextTables.hasByName(ReportDocument.TBLRECORDSECTION)) || (xAllTextTables.hasByName(ReportDocument.COPYOFTBLRECORDSECTION))){ Object oTable; if (xAllTextTables.hasByName(ReportDocument.COPYOFTBLRECORDSECTION)) oTable = xAllTextTables.getByName(ReportDocument.COPYOFTBLRECORDSECTION); @@ -79,6 +84,8 @@ public class RecordTable{ xTableName = (XNamed) UnoRuntime.queryInterface(XNamed.class, xTextTable); xTableName.setName(ReportDocument.TBLRECORDSECTION); } + xTableRows = xTextTable.getRows(); + xTableColumns = xTextTable.getColumns(); xCellRange = (XCellRange) UnoRuntime.queryInterface(XCellRange.class, xTextTable); } catch(Exception exception){ |