1 /************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance 9 * with the License. You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, 14 * software distributed under the License is distributed on an 15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 * KIND, either express or implied. See the License for the 17 * specific language governing permissions and limitations 18 * under the License. 19 * 20 *************************************************************/ 21 22 23 24 #ifndef _SV_AQUA11WRAPPER_H 25 #define _SV_AQUA11WRAPPER_H 26 27 #include "aquavcltypes.h" 28 #include <com/sun/star/accessibility/XAccessibleAction.hpp> 29 #include <com/sun/star/accessibility/XAccessibleContext.hpp> 30 #include <com/sun/star/accessibility/XAccessibleComponent.hpp> 31 #include <com/sun/star/accessibility/XAccessibleExtendedComponent.hpp> 32 #include <com/sun/star/accessibility/XAccessibleSelection.hpp> 33 #include <com/sun/star/accessibility/XAccessibleTable.hpp> 34 #include <com/sun/star/accessibility/XAccessibleText.hpp> 35 #include <com/sun/star/accessibility/XAccessibleTextAttributes.hpp> 36 #include <com/sun/star/accessibility/XAccessibleEditableText.hpp> 37 #include <com/sun/star/accessibility/XAccessibleValue.hpp> 38 #include <com/sun/star/accessibility/XAccessibleMultiLineText.hpp> 39 40 // rAccessibleXYZ as a field in an Objective-C-Class would not call Con-/Destructor, so use a struct instead 41 struct ReferenceWrapper 42 { 43 ::com::sun::star::uno::Reference < ::com::sun::star::accessibility::XAccessibleAction > rAccessibleAction; 44 ::com::sun::star::uno::Reference < ::com::sun::star::accessibility::XAccessibleContext > rAccessibleContext; 45 ::com::sun::star::uno::Reference < ::com::sun::star::accessibility::XAccessibleComponent > rAccessibleComponent; 46 ::com::sun::star::uno::Reference < ::com::sun::star::accessibility::XAccessibleExtendedComponent > rAccessibleExtendedComponent; 47 ::com::sun::star::uno::Reference < ::com::sun::star::accessibility::XAccessibleSelection > rAccessibleSelection; 48 ::com::sun::star::uno::Reference < ::com::sun::star::accessibility::XAccessibleTable > rAccessibleTable; 49 ::com::sun::star::uno::Reference < ::com::sun::star::accessibility::XAccessibleText > rAccessibleText; 50 ::com::sun::star::uno::Reference < ::com::sun::star::accessibility::XAccessibleEditableText > rAccessibleEditableText; 51 ::com::sun::star::uno::Reference < ::com::sun::star::accessibility::XAccessibleValue > rAccessibleValue; 52 ::com::sun::star::uno::Reference < ::com::sun::star::accessibility::XAccessibleTextAttributes > rAccessibleTextAttributes; 53 ::com::sun::star::uno::Reference < ::com::sun::star::accessibility::XAccessibleMultiLineText > rAccessibleMultiLineText; 54 }; 55 56 @interface AquaA11yWrapper : NSView 57 { 58 ReferenceWrapper * mpReferenceWrapper; 59 NSString * mpDefaultFontname; 60 float mDefaultFontsize; 61 BOOL mActsAsRadioGroup; 62 BOOL mIsTableCell; 63 } 64 // NSAccessibility Protocol accessibilityAttributeValue:(NSString*)65-(id)accessibilityAttributeValue:(NSString *)attribute; accessibilityIsIgnored()66-(BOOL)accessibilityIsIgnored; accessibilityAttributeNames()67-(NSArray *)accessibilityAttributeNames; accessibilityIsAttributeSettable:(NSString*)68-(BOOL)accessibilityIsAttributeSettable:(NSString *)attribute; accessibilityParameterizedAttributeNames()69-(NSArray *)accessibilityParameterizedAttributeNames; accessibilitySetOverrideValue:forAttribute:(id,NSString*)70-(BOOL)accessibilitySetOverrideValue:(id)value forAttribute:(NSString *)attribute; accessibilitySetValue:forAttribute:(id,NSString*)71-(void)accessibilitySetValue:(id)value forAttribute:(NSString *)attribute; accessibilityAttributeValue:forParameter:(NSString*,id)72-(id)accessibilityAttributeValue:(NSString *)attribute forParameter:(id)parameter; accessibilityFocusedUIElement()73-(id)accessibilityFocusedUIElement; accessibilityActionDescription:(NSString*)74-(NSString *)accessibilityActionDescription:(NSString *)action; accessibilityPerformAction:(NSString*)75-(void)accessibilityPerformAction:(NSString *)action; accessibilityActionNames()76-(NSArray *)accessibilityActionNames; accessibilityHitTest:(NSPoint)77-(id)accessibilityHitTest:(NSPoint)point; 78 // Attribute values parentAttribute()79-(id)parentAttribute; valueAttribute()80-(id)valueAttribute; titleAttribute()81-(id)titleAttribute; helpAttribute()82-(id)helpAttribute; numberOfCharactersAttribute()83-(id)numberOfCharactersAttribute; selectedTextAttribute()84-(id)selectedTextAttribute; selectedTextRangeAttribute()85-(id)selectedTextRangeAttribute; visibleCharacterRangeAttribute()86-(id)visibleCharacterRangeAttribute; childrenAttribute()87-(id)childrenAttribute; orientationAttribute()88-(id)orientationAttribute; windowAttribute()89-(id)windowAttribute; 90 // Wrapper-specific setActsAsRadioGroup:(BOOL)91-(void)setActsAsRadioGroup:(BOOL)actsAsRadioGroup; actsAsRadioGroup()92-(BOOL)actsAsRadioGroup; windowForParent()93-(NSWindow*)windowForParent; initWithAccessibleContext:(initWithAccessibleContext initWithAccessibleContext com com com sun sun sun star star star uno uno uno Reference Reference Reference Reference com com com sun sun sun star star star accessibility accessibility accessibility XAccessibleContext XAccessibleContext)94-(id)initWithAccessibleContext: (::com::sun::star::uno::Reference < ::com::sun::star::accessibility::XAccessibleContext >) anAccessibleContext; setDefaults:(setDefaults setDefaults com com com sun sun sun star star star uno uno uno Reference Reference Reference Reference com com com sun sun sun star star star accessibility accessibility accessibility XAccessibleContext XAccessibleContext)95-(void) setDefaults: (::com::sun::star::uno::Reference < ::com::sun::star::accessibility::XAccessibleContext >) rxAccessibleContext; dealloc()96-(void) dealloc; setDefaultFontname:(NSString*)97-(void)setDefaultFontname:(NSString *)fontname; defaultFontname()98-(NSString *)defaultFontname; setDefaultFontsize:(float)99-(void)setDefaultFontsize:(float)fontsize; defaultFontsize()100-(float)defaultFontsize; 101 +(void)setPopupMenuOpen:(BOOL)popupMenuOpen; accessibleAction()102-(::com::sun::star::accessibility::XAccessibleAction *)accessibleAction; accessibleContext()103-(::com::sun::star::accessibility::XAccessibleContext *)accessibleContext; accessibleComponent()104-(::com::sun::star::accessibility::XAccessibleComponent *)accessibleComponent; accessibleExtendedComponent()105-(::com::sun::star::accessibility::XAccessibleExtendedComponent *)accessibleExtendedComponent; accessibleSelection()106-(::com::sun::star::accessibility::XAccessibleSelection *)accessibleSelection; accessibleTable()107-(::com::sun::star::accessibility::XAccessibleTable *)accessibleTable; accessibleText()108-(::com::sun::star::accessibility::XAccessibleText *)accessibleText; accessibleEditableText()109-(::com::sun::star::accessibility::XAccessibleEditableText *)accessibleEditableText; accessibleValue()110-(::com::sun::star::accessibility::XAccessibleValue *)accessibleValue; accessibleTextAttributes()111-(::com::sun::star::accessibility::XAccessibleTextAttributes *)accessibleTextAttributes; accessibleMultiLineText()112-(::com::sun::star::accessibility::XAccessibleMultiLineText *)accessibleMultiLineText; 113 @end 114 115 #endif // _SV_AQUA11WRAPPER_H 116