summaryrefslogtreecommitdiffstats
path: root/wizards
diff options
context:
space:
mode:
authorVladimir Glazounov <vg@openoffice.org>2008-01-28 14:30:00 +0000
committerVladimir Glazounov <vg@openoffice.org>2008-01-28 14:30:00 +0000
commitcfbc19e312c372c218c3c9a24080c2470b70633b (patch)
tree66b6fc4f534302b3f272ba4e1eb6edf034309c08 /wizards
parentINTEGRATION: CWS tbe32 (1.2.16); FILE MERGED (diff)
downloadcore-cfbc19e312c372c218c3c9a24080c2470b70633b.tar.gz
core-cfbc19e312c372c218c3c9a24080c2470b70633b.zip
INTEGRATION: CWS dbawizards (1.12.58); FILE MERGED
2008/01/02 13:44:40 bc 1.12.58.1: #i72887# incorrect behaviour of < in wizard
Diffstat (limited to 'wizards')
-rw-r--r--wizards/com/sun/star/wizards/db/CommandMetaData.java18
1 files changed, 16 insertions, 2 deletions
diff --git a/wizards/com/sun/star/wizards/db/CommandMetaData.java b/wizards/com/sun/star/wizards/db/CommandMetaData.java
index 43cf41a57607..ebfec54db3da 100644
--- a/wizards/com/sun/star/wizards/db/CommandMetaData.java
+++ b/wizards/com/sun/star/wizards/db/CommandMetaData.java
@@ -4,9 +4,9 @@
*
* $RCSfile: CommandMetaData.java,v $
*
- * $Revision: 1.12 $
+ * $Revision: 1.13 $
*
- * last change: $Author: rt $ $Date: 2006-12-01 16:29:23 $
+ * last change: $Author: vg $ $Date: 2008-01-28 15:30:00 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -324,6 +324,20 @@ public class CommandMetaData extends DBMetaData {
}
}
+ public String[] getFieldNames(String[] _sDisplayFieldNames, String _sCommandName){
+ Vector sFieldNamesVector = new java.util.Vector();
+ for (int i = 0; i < FieldColumns.length; i++) {
+ if (_sCommandName.equals(FieldColumns[i].CommandName)) {
+ if (JavaTools.FieldInList(_sDisplayFieldNames, FieldColumns[i].DisplayFieldName) > -1) {
+ sFieldNamesVector.addElement(FieldColumns[i].FieldName);
+ }
+ }
+ }
+ String[] sFieldNames = new String[sFieldNamesVector.size()];
+ sFieldNamesVector.toArray(sFieldNames);
+ return sFieldNames;
+ }
+
public String[] getFieldNames(){
String[] sFieldNames = new String[FieldColumns.length];
for (int i = 0; i < FieldColumns.length; i++) {