summaryrefslogtreecommitdiff
path: root/toolkit
diff options
context:
space:
mode:
authorAndre Fischer <af@openoffice.org>2002-11-19 15:51:40 +0000
committerAndre Fischer <af@openoffice.org>2002-11-19 15:51:40 +0000
commitec1e241046903986ebd3569a633611fb0521137f (patch)
treed5c2e8b85d016488c4dc88ced1453970e9142ff3 /toolkit
parent1d9b77f6635fb90e1e5834337e3378e8d6dc5155 (diff)
Adaption to change of XAccessibleComponent and XAccessibleExtendedComponent interfaces.
Diffstat (limited to 'toolkit')
-rwxr-xr-xtoolkit/test/accessibility/AccessibilityWorkBench.java2
-rw-r--r--toolkit/test/accessibility/AccessibleComponentHandler.java21
-rw-r--r--toolkit/test/accessibility/AccessibleExtendedComponentHandler.java6
3 files changed, 24 insertions, 5 deletions
diff --git a/toolkit/test/accessibility/AccessibilityWorkBench.java b/toolkit/test/accessibility/AccessibilityWorkBench.java
index de09d30c8938..8e294d4ac084 100755
--- a/toolkit/test/accessibility/AccessibilityWorkBench.java
+++ b/toolkit/test/accessibility/AccessibilityWorkBench.java
@@ -43,7 +43,7 @@ public class AccessibilityWorkBench
MessageInterface,
XTerminateListener
{
- public static final String msVersion = "v1.5";
+ public static final String msVersion = "v1.6";
public String msFileName;
public String msOptionsFileName = ".AWBrc";
diff --git a/toolkit/test/accessibility/AccessibleComponentHandler.java b/toolkit/test/accessibility/AccessibleComponentHandler.java
index c59d4c265db8..877c99ec90c5 100644
--- a/toolkit/test/accessibility/AccessibleComponentHandler.java
+++ b/toolkit/test/accessibility/AccessibleComponentHandler.java
@@ -27,7 +27,7 @@ class AccessibleComponentHandler
public AccessibleComponentHandler (XAccessibleComponent xComponent)
{
if (xComponent != null)
- maChildList.setSize (4);
+ maChildList.setSize (6);
}
public AccessibleTreeNode createChild (AccessibleTreeNode aParent, int nIndex)
@@ -40,6 +40,7 @@ class AccessibleComponentHandler
if (xComponent != null)
{
+ int nColor;
switch (nIndex)
{
case 0:
@@ -67,6 +68,24 @@ class AccessibleComponentHandler
+ aBBox.Width + ", " + aBBox.Height,
aParent);
break;
+ case 4:
+ nColor = xComponent.getForeground();
+ aChild = new StringNode ("Foreground color: R"
+ + (nColor>>16&0xff)
+ + "G" + (nColor>>8&0xff)
+ + "B" + (nColor>>0&0xff)
+ + "A" + (nColor>>24&0xff),
+ aParent);
+ break;
+ case 5:
+ nColor = xComponent.getBackground();
+ aChild = new StringNode ("Background color: R"
+ + (nColor>>16&0xff)
+ + "G" + (nColor>>8&0xff)
+ + "B" + (nColor>>0&0xff)
+ + "A" + (nColor>>24&0xff),
+ aParent);
+ break;
}
}
}
diff --git a/toolkit/test/accessibility/AccessibleExtendedComponentHandler.java b/toolkit/test/accessibility/AccessibleExtendedComponentHandler.java
index c7cc60bb3eb9..968b9d731bc8 100644
--- a/toolkit/test/accessibility/AccessibleExtendedComponentHandler.java
+++ b/toolkit/test/accessibility/AccessibleExtendedComponentHandler.java
@@ -24,7 +24,7 @@ class AccessibleExtendedComponentHandler
public AccessibleExtendedComponentHandler (XAccessibleExtendedComponent xEComponent)
{
if (xEComponent != null)
- maChildList.setSize (2);
+ maChildList.setSize (0);
}
private static XAccessibleExtendedComponent getComponent (AccTreeNode aNode)
@@ -49,7 +49,7 @@ class AccessibleExtendedComponentHandler
{
case 0:
nColor = xEComponent.getForeground();
- aChild = new StringNode ("Foreground color: R"
+ aChild = new StringNode ("Depricated Foreground color: R"
+ (nColor>>16&0xff)
+ "G" + (nColor>>8&0xff)
+ "B" + (nColor>>0&0xff)
@@ -58,7 +58,7 @@ class AccessibleExtendedComponentHandler
break;
case 1:
nColor = xEComponent.getBackground();
- aChild = new StringNode ("Background color: R"
+ aChild = new StringNode ("Depricated Background color: R"
+ (nColor>>16&0xff)
+ "G" + (nColor>>8&0xff)
+ "B" + (nColor>>0&0xff)