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 : NSView
54{
58}
59// NSAccessibility Protocol
60-(id)accessibilityAttributeValue:(NSString *)attribute;
61-(BOOL)accessibilityIsIgnored;
62-(NSArray *)accessibilityAttributeNames;
63-(BOOL)accessibilityIsAttributeSettable:(NSString *)attribute;
64-(NSArray *)accessibilityParameterizedAttributeNames;
65-(BOOL)accessibilitySetOverrideValue:(id)value forAttribute:(NSString *)attribute;
66-(void)accessibilitySetValue:(id)value forAttribute:(NSString *)attribute;
67-(id)accessibilityAttributeValue:(NSString *)attribute forParameter:(id)parameter;
68-(id)accessibilityFocusedUIElement;
69-(NSString *)accessibilityActionDescription:(NSString *)action;
70-(void)accessibilityPerformAction:(NSString *)action;
71-(NSArray *)accessibilityActionNames;
72-(id)accessibilityHitTest:(NSPoint)point;
73// Attribute values
74-(id)parentAttribute;
75-(id)valueAttribute;
76-(id)titleAttribute;
77-(id)helpAttribute;
78-(id)numberOfCharactersAttribute;
79-(id)selectedTextAttribute;
80-(id)selectedTextRangeAttribute;
81-(id)visibleCharacterRangeAttribute;
82-(id)childrenAttribute;
83-(id)orientationAttribute;
84-(id)windowAttribute;
85// Wrapper-specific
86-(void)setActsAsRadioGroup:(BOOL)actsAsRadioGroup;
87-(BOOL)actsAsRadioGroup;
88-(NSWindow*)windowForParent;
89-(id)initWithAccessibleContext: (css::uno::Reference < css::accessibility::XAccessibleContext >) anAccessibleContext;
90-(void) setDefaults: (css::uno::Reference < css::accessibility::XAccessibleContext >) rxAccessibleContext;
91-(void) dealloc;
92+(void)setPopupMenuOpen:(BOOL)popupMenuOpen;
93-(css::accessibility::XAccessibleAction *)accessibleAction;
94-(css::accessibility::XAccessibleContext *)accessibleContext;
95-(css::accessibility::XAccessibleComponent *)accessibleComponent;
96-(css::accessibility::XAccessibleExtendedComponent *)accessibleExtendedComponent;
97-(css::accessibility::XAccessibleSelection *)accessibleSelection;
98-(css::accessibility::XAccessibleTable *)accessibleTable;
99-(css::accessibility::XAccessibleText *)accessibleText;
100-(css::accessibility::XAccessibleEditableText *)accessibleEditableText;
101-(css::accessibility::XAccessibleValue *)accessibleValue;
102-(css::accessibility::XAccessibleTextAttributes *)accessibleTextAttributes;
103-(css::accessibility::XAccessibleMultiLineText *)accessibleMultiLineText;
104-(css::accessibility::XAccessibleTextMarkup *)accessibleTextMarkup;
105@end
106
107
108/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
BOOL mActsAsRadioGroup
Definition: a11ywrapper.h:56
ReferenceWrapper * mpReferenceWrapper
Definition: a11ywrapper.h:55
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