LibreOffice Module vcl (master) 1
a11ywrapper.h
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 */
19
20#pragma once
21
22#include "osxvcltypes.h"
23#include <com/sun/star/accessibility/XAccessibleAction.hpp>
24#include <com/sun/star/accessibility/XAccessibleContext.hpp>
25#include <com/sun/star/accessibility/XAccessibleComponent.hpp>
26#include <com/sun/star/accessibility/XAccessibleExtendedComponent.hpp>
27#include <com/sun/star/accessibility/XAccessibleSelection.hpp>
28#include <com/sun/star/accessibility/XAccessibleTable.hpp>
29#include <com/sun/star/accessibility/XAccessibleText.hpp>
30#include <com/sun/star/accessibility/XAccessibleTextAttributes.hpp>
31#include <com/sun/star/accessibility/XAccessibleEditableText.hpp>
32#include <com/sun/star/accessibility/XAccessibleValue.hpp>
33#include <com/sun/star/accessibility/XAccessibleMultiLineText.hpp>
34#include <com/sun/star/accessibility/XAccessibleTextMarkup.hpp>
35
36// rAccessibleXYZ as a field in an Objective-C-Class would not call Con-/Destructor, so use a struct instead
38{
39 css::uno::Reference < css::accessibility::XAccessibleAction > rAccessibleAction;
40 css::uno::Reference < css::accessibility::XAccessibleContext > rAccessibleContext;
41 css::uno::Reference < css::accessibility::XAccessibleComponent > rAccessibleComponent;
42 css::uno::Reference < css::accessibility::XAccessibleExtendedComponent > rAccessibleExtendedComponent;
43 css::uno::Reference < css::accessibility::XAccessibleSelection > rAccessibleSelection;
44 css::uno::Reference < css::accessibility::XAccessibleTable > rAccessibleTable;
45 css::uno::Reference < css::accessibility::XAccessibleText > rAccessibleText;
46 css::uno::Reference < css::accessibility::XAccessibleEditableText > rAccessibleEditableText;
47 css::uno::Reference < css::accessibility::XAccessibleValue > rAccessibleValue;
48 css::uno::Reference < css::accessibility::XAccessibleTextAttributes > rAccessibleTextAttributes;
49 css::uno::Reference < css::accessibility::XAccessibleMultiLineText > rAccessibleMultiLineText;
50 css::uno::Reference < css::accessibility::XAccessibleTextMarkup > rAccessibleTextMarkup;
51};
52
53@interface AquaA11yWrapper : NSAccessibilityElement
54 <NSAccessibilityElement,
55 NSAccessibilityGroup,
56 NSAccessibilityButton,
57 NSAccessibilitySwitch,
58 NSAccessibilityRadioButton,
59 NSAccessibilityCheckBox,
60 NSAccessibilityStaticText,
61 NSAccessibilityNavigableStaticText,
62 NSAccessibilityProgressIndicator,
63 NSAccessibilityStepper,
64 NSAccessibilitySlider,
65 NSAccessibilityImage>
66{
67 ReferenceWrapper maReferenceWrapper;
70}
71// NSAccessibility Protocol
72-(id)accessibilityAttributeValue:(NSString *)attribute;
73-(BOOL)accessibilityIsIgnored;
74-(NSArray *)accessibilityAttributeNames;
75-(BOOL)accessibilityIsAttributeSettable:(NSString *)attribute;
76-(NSArray *)accessibilityParameterizedAttributeNames;
77-(BOOL)accessibilitySetOverrideValue:(id)value forAttribute:(NSString *)attribute;
78-(void)accessibilitySetValue:(id)value forAttribute:(NSString *)attribute;
79-(id)accessibilityAttributeValue:(NSString *)attribute forParameter:(id)parameter;
80-(id)accessibilityFocusedUIElement;
81-(NSString *)accessibilityActionDescription:(NSString *)action;
82-(void)accessibilityPerformAction:(NSString *)action;
83-(BOOL)performAction:(NSString *)action;
84-(NSArray *)accessibilityActionNames;
85-(id)accessibilityHitTest:(NSPoint)point;
86// Attribute values
87-(id)parentAttribute;
88-(id)valueAttribute;
89-(id)titleAttribute;
90-(id)helpAttribute;
91-(id)numberOfCharactersAttribute;
92-(id)selectedTextAttribute;
93-(id)selectedTextRangeAttribute;
94-(id)visibleCharacterRangeAttribute;
95-(id)childrenAttribute;
96-(id)orientationAttribute;
97-(id)windowAttribute;
98// Wrapper-specific
99-(void)setActsAsRadioGroup:(BOOL)actsAsRadioGroup;
100-(BOOL)actsAsRadioGroup;
101-(NSWindow*)windowForParent;
102-(id)init;
103-(id)initWithAccessibleContext: (css::uno::Reference < css::accessibility::XAccessibleContext >) anAccessibleContext;
104-(void) setDefaults: (css::uno::Reference < css::accessibility::XAccessibleContext >) rxAccessibleContext;
105+(void)setPopupMenuOpen:(BOOL)popupMenuOpen;
106-(css::accessibility::XAccessibleAction *)accessibleAction;
107-(css::accessibility::XAccessibleContext *)accessibleContext;
108-(css::accessibility::XAccessibleComponent *)accessibleComponent;
109-(css::accessibility::XAccessibleExtendedComponent *)accessibleExtendedComponent;
110-(css::accessibility::XAccessibleSelection *)accessibleSelection;
111-(css::accessibility::XAccessibleTable *)accessibleTable;
112-(css::accessibility::XAccessibleText *)accessibleText;
113-(css::accessibility::XAccessibleEditableText *)accessibleEditableText;
114-(css::accessibility::XAccessibleValue *)accessibleValue;
115-(css::accessibility::XAccessibleTextAttributes *)accessibleTextAttributes;
116-(css::accessibility::XAccessibleMultiLineText *)accessibleMultiLineText;
117-(css::accessibility::XAccessibleTextMarkup *)accessibleTextMarkup;
118@end
119
120
121/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
FILE * init(int, char **)
< NSAccessibilityElement, NSAccessibilityGroup, NSAccessibilityButton, NSAccessibilitySwitch, NSAccessibilityRadioButton, NSAccessibilityCheckBox, NSAccessibilityStaticText, NSAccessibilityNavigableStaticText, NSAccessibilityProgressIndicator, NSAccessibilityStepper, NSAccessibilitySlider, NSAccessibilityImage > BOOL mActsAsRadioGroup
Definition: a11ywrapper.h:66
Reference
const wchar_t *typedef BOOL
css::uno::Reference< css::accessibility::XAccessibleEditableText > rAccessibleEditableText
Definition: a11ywrapper.h:46
css::uno::Reference< css::accessibility::XAccessibleMultiLineText > rAccessibleMultiLineText
Definition: a11ywrapper.h:49
css::uno::Reference< css::accessibility::XAccessibleComponent > rAccessibleComponent
Definition: a11ywrapper.h:41
css::uno::Reference< css::accessibility::XAccessibleTextAttributes > rAccessibleTextAttributes
Definition: a11ywrapper.h:48
css::uno::Reference< css::accessibility::XAccessibleExtendedComponent > rAccessibleExtendedComponent
Definition: a11ywrapper.h:42
css::uno::Reference< css::accessibility::XAccessibleSelection > rAccessibleSelection
Definition: a11ywrapper.h:43
css::uno::Reference< css::accessibility::XAccessibleValue > rAccessibleValue
Definition: a11ywrapper.h:47
css::uno::Reference< css::accessibility::XAccessibleText > rAccessibleText
Definition: a11ywrapper.h:45
css::uno::Reference< css::accessibility::XAccessibleTable > rAccessibleTable
Definition: a11ywrapper.h:44
css::uno::Reference< css::accessibility::XAccessibleContext > rAccessibleContext
Definition: a11ywrapper.h:40
css::uno::Reference< css::accessibility::XAccessibleTextMarkup > rAccessibleTextMarkup
Definition: a11ywrapper.h:50
css::uno::Reference< css::accessibility::XAccessibleAction > rAccessibleAction
Definition: a11ywrapper.h:39