[PATCH] Add code to "spy" on Pages text component.
Boris Dušek (via_Code_Review)
gerrit at gerrit.libreoffice.org
Mon Aug 5 14:24:47 PDT 2013
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 at dusek.me>
More information about the LibreOffice
mailing list