summaryrefslogtreecommitdiff
path: root/wizards
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2005-09-23 14:30:01 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2005-09-23 14:30:01 +0000
commit060563b679f2a9af327a5c9b9dc800c073a500eb (patch)
tree2e7d4ac814826d870dab9b08076d149ab4e70bcd /wizards
parent3b78668de0db195cfd5ef34563b7ac40cd77dadb (diff)
INTEGRATION: CWS qwizardsbf6 (1.3.54); FILE MERGED
2005/07/19 11:52:37 tv 1.3.54.1: #i48944# dynamically check installed letter wizard template and display the languages accordingly
Diffstat (limited to 'wizards')
-rw-r--r--wizards/com/sun/star/wizards/common/Resource.java20
1 files changed, 18 insertions, 2 deletions
diff --git a/wizards/com/sun/star/wizards/common/Resource.java b/wizards/com/sun/star/wizards/common/Resource.java
index 7fa495a94fb3..4645d0f5d38a 100644
--- a/wizards/com/sun/star/wizards/common/Resource.java
+++ b/wizards/com/sun/star/wizards/common/Resource.java
@@ -4,9 +4,9 @@
*
* $RCSfile: Resource.java,v $
*
- * $Revision: 1.4 $
+ * $Revision: 1.5 $
*
- * last change: $Author: rt $ $Date: 2005-09-09 09:21:26 $
+ * last change: $Author: hr $ $Date: 2005-09-23 15:30:01 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -36,6 +36,7 @@
import com.sun.star.lang.IllegalArgumentException;
import com.sun.star.lang.XMultiServiceFactory;
import com.sun.star.script.XInvocation;
+import com.sun.star.beans.PropertyValue;
public class Resource {
XInvocation xInvocation;
@@ -65,6 +66,21 @@ public class Resource {
}
}
+ public PropertyValue[] getStringList(int nID) {
+ try {
+ short[][] PointerArray = new short[1][];
+ Object[][] DummyArray = new Object[1][];
+ Object[] nIDArray = new Object[1];
+ nIDArray[0] = new Integer(nID);
+ //Object bla = xInvocation.invoke("getStringList", nIDArray, PointerArray, DummyArray);
+ PropertyValue [] ResProp = (PropertyValue []) xInvocation.invoke("getStringList", nIDArray, PointerArray, DummyArray);
+ return ResProp;
+ } catch (Exception exception) {
+ exception.printStackTrace();
+ throw new java.lang.IllegalArgumentException("Resource with ID not" + String.valueOf(nID) + "not found");
+ }
+ }
+
public String[] getResArray(int nID, int iCount) {
try {
String[] ResArray = new String[iCount];