summaryrefslogtreecommitdiff
path: root/wizards
diff options
context:
space:
mode:
authorPascal Junck <pjunck@openoffice.org>2004-10-27 12:42:44 +0000
committerPascal Junck <pjunck@openoffice.org>2004-10-27 12:42:44 +0000
commit8d1fd7680c66ac7d759d200fd52566dc2e8f39ae (patch)
tree5719d93adb4da03a2883c1e9e9bcd9866ad29457 /wizards
parent276cc427fc3a3d7edcddc1a3edeb7ea421ec8eec (diff)
INTEGRATION: CWS dbwizard1 (1.2.36); FILE MERGED
2004/10/11 16:32:10 tv 1.2.36.2: RESYNC: (1.2-1.3); FILE MERGED 2004/08/13 14:59:39 bc 1.2.36.1: #111602# several changes for Formwizard and TableWizard Issue number: Submitted by: Reviewed by:
Diffstat (limited to 'wizards')
-rw-r--r--wizards/com/sun/star/wizards/ui/UnoDialog.java16
1 files changed, 14 insertions, 2 deletions
diff --git a/wizards/com/sun/star/wizards/ui/UnoDialog.java b/wizards/com/sun/star/wizards/ui/UnoDialog.java
index bef73fdfbf78..ec2eead698b6 100644
--- a/wizards/com/sun/star/wizards/ui/UnoDialog.java
+++ b/wizards/com/sun/star/wizards/ui/UnoDialog.java
@@ -2,9 +2,9 @@
*
* $RCSfile: UnoDialog.java,v $
*
-* $Revision: 1.3 $
+* $Revision: 1.4 $
*
-* last change: $Author: obo $ $Date: 2004-09-08 14:07:03 $
+* last change: $Author: pjunck $ $Date: 2004-10-27 13:42:44 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -232,6 +232,18 @@ public class UnoDialog implements EventNames {
}
}
+
+ public static int getListBoxItemCount(XListBox _xListBox){
+ String[] fieldnames = (String[]) Helper.getUnoPropertyValue(getModel(_xListBox), "StringItemList");
+ return fieldnames.length;
+ }
+
+ public static short getSelectedItemPos(XListBox _xListBox){
+ short ipos[] = (short[]) Helper.getUnoPropertyValue(getModel(_xListBox), "SelectedItems");
+ return ipos[0];
+ }
+
+
public void addSingleItemtoListbox(XListBox xListBox, String ListItem, short iSelIndex) {
xListBox.addItem(ListItem, xListBox.getItemCount());
if (iSelIndex != -1)