[Libreoffice-commits] dev-tools.git: NSAXSpy/NSAXSpy
Boris Dušek
me at dusek.me
Thu Aug 8 04:48:44 PDT 2013
NSAXSpy/NSAXSpy/main.m | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
New commits:
commit 20277bef69f8f13dd74a07a0883d65b106871c7f
Author: Boris Dušek <me at dusek.me>
Date: Mon Aug 5 23:24:15 2013 +0200
Add code to "spy" on Pages text component.
Change-Id: I0150a79c313e2f0dca8651befd819095bf9d74ea
Reviewed-on: https://gerrit.libreoffice.org/5289
Reviewed-by: Norbert Thiebaud <nthiebaud at gmail.com>
Tested-by: Norbert Thiebaud <nthiebaud at gmail.com>
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 @@ static AXError findLibreOfficeTextComponent(AXObserverCallback callback, AXObser
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) {
More information about the Libreoffice-commits
mailing list