summaryrefslogtreecommitdiff
path: root/wizards
diff options
context:
space:
mode:
authorRĂ¼diger Timm <rt@openoffice.org>2006-12-01 15:32:58 +0000
committerRĂ¼diger Timm <rt@openoffice.org>2006-12-01 15:32:58 +0000
commite50a06eb929cb556aa3736e3c9d6c563ca47cdb3 (patch)
tree4005ab00cbbcdbd65d66a656afdbed4f0c9bfdcb /wizards
parentffc0e57c0dfdb39f21063abcf164c170a6b09bf7 (diff)
INTEGRATION: CWS dbwizardpp5 (1.6.28); FILE MERGED
2006/10/06 16:35:20 bc 1.6.28.1: #i43801#reportwizard now handles NumberFormat correctly
Diffstat (limited to 'wizards')
-rw-r--r--wizards/com/sun/star/wizards/text/TextTableHandler.java20
1 files changed, 18 insertions, 2 deletions
diff --git a/wizards/com/sun/star/wizards/text/TextTableHandler.java b/wizards/com/sun/star/wizards/text/TextTableHandler.java
index 05e00b71d..53277af9e 100644
--- a/wizards/com/sun/star/wizards/text/TextTableHandler.java
+++ b/wizards/com/sun/star/wizards/text/TextTableHandler.java
@@ -4,9 +4,9 @@
*
* $RCSfile: TextTableHandler.java,v $
*
- * $Revision: 1.6 $
+ * $Revision: 1.7 $
*
- * last change: $Author: kz $ $Date: 2006-07-06 14:31:44 $
+ * last change: $Author: rt $ $Date: 2006-12-01 16:32:58 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -89,6 +89,22 @@ public class TextTableHandler {
return oNumberFormatter;
}
+
+ public XTextTable getByName(String _sTableName){
+ XTextTable xTextTable = null;
+ try{
+ XNameAccess xAllTextTables = xTextTablesSupplier.getTextTables();
+ if (xAllTextTables.hasByName(_sTableName)){
+ Object oTable = xAllTextTables.getByName(_sTableName);
+ xTextTable = (XTextTable) UnoRuntime.queryInterface(XTextTable.class, oTable);
+ }
+ } catch (Exception exception) {
+ exception.printStackTrace(System.out);
+ }
+ return xTextTable;
+ }
+
+
public com.sun.star.text.XTextTable getlastTextTable() {
try {
XIndexAccess xAllTextTables = (XIndexAccess) UnoRuntime.queryInterface(XIndexAccess.class, xTextTablesSupplier.getTextTables());