diff options
author | Stephan Wunderlich <sw@openoffice.org> | 2003-02-21 07:27:34 +0000 |
---|---|---|
committer | Stephan Wunderlich <sw@openoffice.org> | 2003-02-21 07:27:34 +0000 |
commit | 6cfe014f3de80eb13ac4fc251fd7663574bcbfc7 (patch) | |
tree | 5924e30d880218a8df393b65a6cbc3b92bb88660 /qadevOOo/runner/util/AccessibilityTools.java | |
parent | c9cc30ebcb2305bbe70121b83e5e4e2869153bc5 (diff) |
CHG: enhanced printAccessibleTree
Diffstat (limited to 'qadevOOo/runner/util/AccessibilityTools.java')
-rw-r--r-- | qadevOOo/runner/util/AccessibilityTools.java | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/qadevOOo/runner/util/AccessibilityTools.java b/qadevOOo/runner/util/AccessibilityTools.java index 6ead10c19c18..c10b8a53140d 100644 --- a/qadevOOo/runner/util/AccessibilityTools.java +++ b/qadevOOo/runner/util/AccessibilityTools.java @@ -2,9 +2,9 @@ * * $RCSfile: AccessibilityTools.java,v $ * - * $Revision: 1.1 $ + * $Revision: 1.2 $ * - * last change:$Date: 2003-01-27 16:27:11 $ + * last change:$Date: 2003-02-21 08:27:34 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -207,6 +207,19 @@ public class AccessibilityTools { ac.getAccessibleName() + "(" + ac.getAccessibleDescription() + "):" + utils.getImplName(ac)); + XAccessibleComponent aComp = (XAccessibleComponent) + UnoRuntime.queryInterface(XAccessibleComponent.class,xacc); + if (aComp != null) { + String bounds = "(" + aComp.getBounds().X+","+aComp.getBounds().Y+")" + + " (" + aComp.getBounds().Width+","+aComp.getBounds().Height+")"; + bounds = "The boundary Rectangle is "+bounds; + log.println(indent+indent+bounds); + } + + boolean isShowing = ac.getAccessibleStateSet().contains( + drafts.com.sun.star.accessibility.AccessibleStateType.SHOWING); + log.println(indent+indent+"StateType contains SHOWING: "+isShowing); + int k = ac.getAccessibleChildCount(); if (ac.getAccessibleChildCount() > 100) { |