summaryrefslogtreecommitdiff
path: root/accessibility
diff options
context:
space:
mode:
authorVladimir Glazounov <vg@openoffice.org>2003-12-17 14:31:04 +0000
committerVladimir Glazounov <vg@openoffice.org>2003-12-17 14:31:04 +0000
commit7c6f291d42a0f9c90ded11f4e08cb50bedc97ef2 (patch)
treeaa1b7af4f50ede34eda1435a0e0f3b5659398170 /accessibility
parent4a5103629ada23ca1ab85d04833a9e4e5d6aac6b (diff)
INTEGRATION: CWS geordi2q11 (1.6.28); FILE MERGED
2003/12/15 16:13:01 hr 1.6.28.1: #111934#: join CWS gnomeaccpp1r1
Diffstat (limited to 'accessibility')
-rw-r--r--accessibility/bridge/org/openoffice/java/accessibility/Container.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/accessibility/bridge/org/openoffice/java/accessibility/Container.java b/accessibility/bridge/org/openoffice/java/accessibility/Container.java
index f4844f0c8de5..d3500782c2c2 100644
--- a/accessibility/bridge/org/openoffice/java/accessibility/Container.java
+++ b/accessibility/bridge/org/openoffice/java/accessibility/Container.java
@@ -248,6 +248,9 @@ public class Container extends java.awt.Container implements javax.accessibility
break;
case AccessibleStateType.ENABLED:
setEnabled(enable);
+ // Since we can't access awt.Componet.accessibleContext, we need to fire
+ // this event manually ..
+ fireStatePropertyChange(AccessibleState.ENABLED, enable);
break;
case AccessibleStateType.FOCUSED:
getEventQueue().postEvent(new java.awt.event.FocusEvent(
@@ -488,6 +491,12 @@ public class Container extends java.awt.Container implements javax.accessibility
if (unoAS.contains(AccessibleStateType.MULTI_SELECTABLE)) {
states.add(AccessibleState.MULTISELECTABLE);
}
+ if (unoAS.contains(AccessibleStateType.HORIZONTAL)) {
+ states.add(AccessibleState.HORIZONTAL);
+ }
+ if (unoAS.contains(AccessibleStateType.VERTICAL)) {
+ states.add(AccessibleState.VERTICAL);
+ }
}
} catch (com.sun.star.uno.RuntimeException e) {
}