diff options
Diffstat (limited to 'accessibility/bridge/org/openoffice/accessibility/WindowsAccessBridgeAdapter.java')
-rw-r--r-- | accessibility/bridge/org/openoffice/accessibility/WindowsAccessBridgeAdapter.java | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/accessibility/bridge/org/openoffice/accessibility/WindowsAccessBridgeAdapter.java b/accessibility/bridge/org/openoffice/accessibility/WindowsAccessBridgeAdapter.java index 28e58940867d..299c5cc831ae 100644 --- a/accessibility/bridge/org/openoffice/accessibility/WindowsAccessBridgeAdapter.java +++ b/accessibility/bridge/org/openoffice/accessibility/WindowsAccessBridgeAdapter.java @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -49,7 +49,7 @@ public class WindowsAccessBridgeAdapter { protected static native boolean createMapping(long jvmaccess); - // On Windows all native frames must be registered to the access bridge. + // On Windows all native frames must be registered to the access bridge. // Therefor the bridge exports two methods that we try to find here. protected static void attach(XComponentContext xComponentContext) { try { @@ -65,7 +65,7 @@ public class WindowsAccessBridgeAdapter { revokeVirtualFrame = bridge.getMethod("revokeVirtualFrame", parameterTypes); - // load the native dll + // load the native dll System.loadLibrary("java_uno_accessbridge"); Object any = xComponentContext.getValueByName( @@ -124,7 +124,7 @@ public class WindowsAccessBridgeAdapter { protected static boolean isAttached() { return frameMap != null; } - + protected static Accessible getAccessibleWrapper(XAccessible xAccessible) { Accessible a = null; @@ -156,7 +156,7 @@ public class WindowsAccessBridgeAdapter { case AccessibleRole.TOOL_TIP: a = PopupWindow.create(xAccessible); break; - + default: a = (Accessible) AccessBridge.getTopWindow(xAccessible); break; @@ -232,7 +232,7 @@ public class WindowsAccessBridgeAdapter { e.getMessage()); } } - + if (a instanceof PopupWindow) { PopupWindow toolTipWindow = (PopupWindow) a; toolTipWindow.removeAll(); @@ -249,7 +249,7 @@ public class WindowsAccessBridgeAdapter { PopupMenuProxy(AccessibleContext ac) { menu = ac; menuComponent = menu.getAccessibleComponent(); - + /** calculate the bounding rectangle by iterating over the * the children. */ @@ -263,11 +263,11 @@ public class WindowsAccessBridgeAdapter { if (childAC != null) { AccessibleComponent comp = ac.getAccessibleComponent(); - + if (comp != null) { java.awt.Point p = comp.getLocationOnScreen(); java.awt.Dimension d = comp.getSize(); - + if (p != null && d != null) { if (p.x < x) { x = p.x; @@ -286,7 +286,7 @@ public class WindowsAccessBridgeAdapter { } } } - + width = x2 - x; height = y2 - y; } @@ -454,8 +454,8 @@ public class WindowsAccessBridgeAdapter { // Not supported by UNO accessibility API } - /** Returns the Accessible child, if one exists, contained at the local - * coordinate Point + /** Returns the Accessible child, if one exists, contained at the local + * coordinate Point */ public javax.accessibility.Accessible getAccessibleAt(java.awt.Point p) { java.awt.Point p2 = menuComponent.getLocationOnScreen(); @@ -471,7 +471,7 @@ public class WindowsAccessBridgeAdapter { menuComponent.requestFocus(); } } - + protected static class ListProxy extends AccessibleContext implements Accessible, AccessibleComponent { AccessibleContext list; @@ -601,7 +601,7 @@ public class WindowsAccessBridgeAdapter { } /** Gets the location of this component in the form of a point specifying - * the component's top-left corner + * the component's top-left corner */ public java.awt.Point getLocation() { // This object represents a toplevel object, so getLocation() should @@ -636,8 +636,8 @@ public class WindowsAccessBridgeAdapter { // Not supported by UNO accessibility API } - /** Returns the Accessible child, if one exists, contained at the local - * coordinate Point + /** Returns the Accessible child, if one exists, contained at the local + * coordinate Point */ public javax.accessibility.Accessible getAccessibleAt(java.awt.Point p) { return listComponent.getAccessibleAt(p); |