/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* * This file is part of the LibreOffice project. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * This file incorporates work covered by the following license notice: * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed * with this work for additional information regarding copyright * ownership. The ASF licenses this file to you under the Apache * License, Version 2.0 (the "License"); you may not use this file * except in compliance with the License. You may obtain a copy of * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ #pragma once #include "osxvcltypes.h" #include #include #include #include #include #include #include #include #include #include #include #include #include // rAccessibleXYZ as a field in an Objective-C-Class would not call Con-/Destructor, so use a struct instead struct ReferenceWrapper { css::uno::Reference < css::accessibility::XAccessibleAction > rAccessibleAction; css::uno::Reference < css::accessibility::XAccessibleContext > rAccessibleContext; css::uno::Reference < css::accessibility::XAccessibleContext2 > rAccessibleContext2; css::uno::Reference < css::accessibility::XAccessibleComponent > rAccessibleComponent; css::uno::Reference < css::accessibility::XAccessibleExtendedComponent > rAccessibleExtendedComponent; css::uno::Reference < css::accessibility::XAccessibleSelection > rAccessibleSelection; css::uno::Reference < css::accessibility::XAccessibleTable > rAccessibleTable; css::uno::Reference < css::accessibility::XAccessibleText > rAccessibleText; css::uno::Reference < css::accessibility::XAccessibleEditableText > rAccessibleEditableText; css::uno::Reference < css::accessibility::XAccessibleValue > rAccessibleValue; css::uno::Reference < css::accessibility::XAccessibleTextAttributes > rAccessibleTextAttributes; css::uno::Reference < css::accessibility::XAccessibleMultiLineText > rAccessibleMultiLineText; css::uno::Reference < css::accessibility::XAccessibleTextMarkup > rAccessibleTextMarkup; }; @interface AquaA11yWrapper : NSAccessibilityElement { ReferenceWrapper maReferenceWrapper; BOOL mActsAsRadioGroup; BOOL mIsTableCell; BOOL mIsDisposed; } // NSAccessibility Protocol -(id)accessibilityAttributeValue:(NSString *)attribute; -(BOOL)accessibilityIsIgnored; -(NSArray *)accessibilityAttributeNames; -(BOOL)accessibilityIsAttributeSettable:(NSString *)attribute; -(NSArray *)accessibilityParameterizedAttributeNames; -(BOOL)accessibilitySetOverrideValue:(id)value forAttribute:(NSString *)attribute; -(void)accessibilitySetValue:(id)value forAttribute:(NSString *)attribute; -(id)accessibilityAttributeValue:(NSString *)attribute forParameter:(id)parameter; -(id)accessibilityFocusedUIElement; -(NSString *)accessibilityActionDescription:(NSString *)action; -(void)accessibilityPerformAction:(NSString *)action; -(BOOL)performAction:(NSString *)action; -(NSArray *)accessibilityActionNames; -(id)accessibilityHitTest:(NSPoint)point; // Attribute values -(id)parentAttribute; -(id)valueAttribute; -(id)titleAttribute; -(id)helpAttribute; -(id)numberOfCharactersAttribute; -(id)selectedTextAttribute; -(id)selectedTextRangeAttribute; -(id)visibleCharacterRangeAttribute; -(id)childrenAttribute; -(id)orientationAttribute; -(id)windowAttribute; // Wrapper-specific -(void)setActsAsRadioGroup:(BOOL)actsAsRadioGroup; -(BOOL)actsAsRadioGroup; -(NSWindow*)windowForParent; -(id)init; -(id)initWithAccessibleContext: (css::uno::Reference < css::accessibility::XAccessibleContext >) anAccessibleContext; -(void)setDisposed; -(void) setDefaults: (css::uno::Reference < css::accessibility::XAccessibleContext >) rxAccessibleContext; +(void)setPopupMenuOpen:(BOOL)popupMenuOpen; -(css::accessibility::XAccessibleAction *)accessibleAction; -(css::accessibility::XAccessibleContext *)accessibleContext; -(css::accessibility::XAccessibleComponent *)accessibleComponent; -(css::accessibility::XAccessibleExtendedComponent *)accessibleExtendedComponent; -(css::accessibility::XAccessibleSelection *)accessibleSelection; -(css::accessibility::XAccessibleTable *)accessibleTable; -(css::accessibility::XAccessibleText *)accessibleText; -(css::accessibility::XAccessibleEditableText *)accessibleEditableText; -(css::accessibility::XAccessibleValue *)accessibleValue; -(css::accessibility::XAccessibleTextAttributes *)accessibleTextAttributes; -(css::accessibility::XAccessibleMultiLineText *)accessibleMultiLineText; -(css::accessibility::XAccessibleTextMarkup *)accessibleTextMarkup; @end /* vim:set shiftwidth=4 softtabstop=4 expandtab: */