Date: prev next · Thread: first prev next last
2013 Archives by date, by thread · List index


Hi,

I would like you to review the following patch:

    https://gerrit.libreoffice.org/5289

To pull it, you can do:

    git pull ssh://gerrit.libreoffice.org:29418/dev-tools refs/changes/89/5289/1

Add code to "spy" on Pages text component.

Change-Id: I0150a79c313e2f0dca8651befd819095bf9d74ea
---
M NSAXSpy/NSAXSpy/main.m
1 file changed, 20 insertions(+), 0 deletions(-)



diff --git a/NSAXSpy/NSAXSpy/main.m b/NSAXSpy/NSAXSpy/main.m
index e96ed40..47490f1 100644
--- a/NSAXSpy/NSAXSpy/main.m
+++ b/NSAXSpy/NSAXSpy/main.m
@@ -154,6 +154,26 @@
     return err;
 }
 
+static AXError findPagesTextComponent(AXObserverCallback callback, AXObserverRef *observer, 
AXUIElementRef *component) {
+    AXError err = kAXErrorSuccess;
+    AX_APPLICATION(@"Pages", Pages, callback, observer) {
+        AX_CHILD(Pages, Window, 0, window) {
+            AX_CHILD(window, SplitGroup, 0, splitGroup) {
+                AX_CHILD(splitGroup, ScrollArea, 0, scrollArea) {
+                    AX_CHILD(scrollArea, LayoutArea, 0, layoutArea) {
+                        AX_CHILD(layoutArea, Group, 0, group) {
+                            AX_CHILD(group, TextArea, 0, textArea) {
+                                *component = textArea;
+                            }
+                        }
+                    }
+                }
+            }
+        }
+    }
+    return err;
+}
+
 static AXError reportOnAXTextArea(AXUIElementRef textArea) {
     AXError err = kAXErrorSuccess;
     AX_VALUE(textArea, CFNumberRef, length, NumberOfCharacters) {

-- 
To view, visit https://gerrit.libreoffice.org/5289
To unsubscribe, visit https://gerrit.libreoffice.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I0150a79c313e2f0dca8651befd819095bf9d74ea
Gerrit-PatchSet: 1
Gerrit-Project: dev-tools
Gerrit-Branch: master
Gerrit-Owner: Boris Dušek <me@dusek.me>


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.