summaryrefslogtreecommitdiff
path: root/qadevOOo/runner/util/ValueChanger.java
diff options
context:
space:
mode:
authorVladimir Glazounov <vg@openoffice.org>2005-02-24 16:23:09 +0000
committerVladimir Glazounov <vg@openoffice.org>2005-02-24 16:23:09 +0000
commitdbd19fe5b28f7696035591d78f0d045be5181fe6 (patch)
treeb5ca452cb84d9bdd321ce6538baa910fd957dbab /qadevOOo/runner/util/ValueChanger.java
parentd0fa165b3e77b8f573b3ad075e1e57e6413ce21a (diff)
INTEGRATION: CWS qadev21 (1.4.4); FILE MERGED
2005/02/18 09:07:51 sw 1.4.4.1: #i43006#
Diffstat (limited to 'qadevOOo/runner/util/ValueChanger.java')
-rw-r--r--qadevOOo/runner/util/ValueChanger.java19
1 files changed, 16 insertions, 3 deletions
diff --git a/qadevOOo/runner/util/ValueChanger.java b/qadevOOo/runner/util/ValueChanger.java
index e6bbe3344a65..213044a32a5c 100644
--- a/qadevOOo/runner/util/ValueChanger.java
+++ b/qadevOOo/runner/util/ValueChanger.java
@@ -2,9 +2,9 @@
*
* $RCSfile: ValueChanger.java,v $
*
- * $Revision: 1.4 $
+ * $Revision: 1.5 $
*
- * last change:$Date: 2004-12-10 17:01:46 $
+ * last change:$Date: 2005-02-24 17:23:09 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -63,6 +63,7 @@ package util;
import com.sun.star.awt.Size;
import com.sun.star.awt.Point;
+import com.sun.star.beans.PropertyValue;
import com.sun.star.drawing.PolygonFlags;
//import util.BitmapLoader;
import com.sun.star.uno.Enum ;
@@ -72,6 +73,7 @@ import java.lang.reflect.Modifier ;
import java.lang.reflect.Array ;
import com.sun.star.uno.Any;
import com.sun.star.uno.AnyConverter;
+import com.sun.star.beans.PropertyValue;
@@ -744,6 +746,12 @@ public class ValueChanger {
if (oldValue.equals(BT6)) newValue = BT7;
if (oldValue.equals(BT7)) newValue = BT1;
} else
+ if (oldValue instanceof PropertyValue){
+ PropertyValue newVal = new PropertyValue();
+ newVal.Name = ((PropertyValue)oldValue).Name;
+ newVal.Value = changePValue(((PropertyValue)oldValue).Value);
+ newValue = newVal;
+ } else
if (oldValue instanceof com.sun.star.sheet.ValidationAlertStyle){
com.sun.star.sheet.ValidationAlertStyle VAS1 = com.sun.star.sheet.ValidationAlertStyle.INFO;
com.sun.star.sheet.ValidationAlertStyle VAS2 = com.sun.star.sheet.ValidationAlertStyle.MACRO;
@@ -838,7 +846,12 @@ public class ValueChanger {
newArr[len] = "_dummy";
newValue = newArr;
} else
-
+ if (oldValue instanceof PropertyValue){
+ PropertyValue newVal = new PropertyValue();
+ newVal.Name = ((PropertyValue)oldValue).Name;
+ newVal.Value = changePValue(((PropertyValue)oldValue).Value);
+ newValue = newVal;
+ } else
if (oldValue instanceof com.sun.star.util.DateTime) {
com.sun.star.util.DateTime oldDT = (com.sun.star.util.DateTime) oldValue;
com.sun.star.util.DateTime newDT = new com.sun.star.util.DateTime();