1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
20 #ifndef INCLUDED_VCL_OSX_A11YTEXTWRAPPER_H
21 #define INCLUDED_VCL_OSX_A11YTEXTWRAPPER_H
23 #include "osx/osxvcltypes.h"
24 #include "osx/a11ywrapper.h"
26 @interface AquaA11yTextWrapper
: NSObject
29 +(id
)valueAttributeForElement
:(AquaA11yWrapper
*)wrapper
;
30 +(id
)numberOfCharactersAttributeForElement
:(AquaA11yWrapper
*)wrapper
;
31 +(id
)selectedTextAttributeForElement
:(AquaA11yWrapper
*)wrapper
;
32 +(id
)selectedTextRangeAttributeForElement
:(AquaA11yWrapper
*)wrapper
;
33 +(id
)visibleCharacterRangeAttributeForElement
:(AquaA11yWrapper
*)wrapper
;
34 +(id
)sharedTextUIElementsAttributeForElement
:(AquaA11yWrapper
*)wrapper
;
35 +(id
)sharedCharacterRangeAttributeForElement
:(AquaA11yWrapper
*)wrapper
;
36 +(id
)stringForRangeAttributeForElement
:(AquaA11yWrapper
*)wrapper forParameter
:(id
)range
;
37 +(id
)attributedStringForRangeAttributeForElement
:(AquaA11yWrapper
*)wrapper forParameter
:(id
)range
;
38 +(id
)rangeForIndexAttributeForElement
:(AquaA11yWrapper
*)wrapper forParameter
:(id
)index
;
39 +(id
)rangeForPositionAttributeForElement
:(AquaA11yWrapper
*)wrapper forParameter
:(id
)point
;
40 +(id
)boundsForRangeAttributeForElement
:(AquaA11yWrapper
*)wrapper forParameter
:(id
)range
;
41 +(id
)styleRangeForIndexAttributeForElement
:(AquaA11yWrapper
*)wrapper forParameter
:(id
)index
;
42 +(id
)rTFForRangeAttributeForElement
:(AquaA11yWrapper
*)wrapper forParameter
:(id
)range
;
43 +(id
)lineForIndexAttributeForElement
:(AquaA11yWrapper
*)wrapper forParameter
:(id
)index
;
44 +(id
)rangeForLineAttributeForElement
:(AquaA11yWrapper
*)wrapper forParameter
:(id
)line
;
45 +(void)addAttributeNamesTo
:(NSMutableArray
*)attributeNames
;
46 +(void)addParameterizedAttributeNamesTo
:(NSMutableArray
*)attributeNames
;
47 +(NSArray
*)specialAttributeNames
;
48 +(NSArray
*)specialParameterizedAttributeNames
;
49 +(BOOL
)isAttributeSettable
:(NSString
*)attribute forElement
:(AquaA11yWrapper
*)wrapper
;
50 +(void)setVisibleCharacterRangeAttributeForElement
:(AquaA11yWrapper
*)wrapper to
:(id
)value
;
51 +(void)setSelectedTextRangeAttributeForElement
:(AquaA11yWrapper
*)wrapper to
:(id
)value
;
52 +(void)setSelectedTextAttributeForElement
:(AquaA11yWrapper
*)wrapper to
:(id
)value
;
53 +(void)setValueAttributeForElement
:(AquaA11yWrapper
*)wrapper to
:(id
)value
;
56 #endif // INCLUDED_VCL_OSX_A11YTEXTWRAPPER_H
58 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */