1*e6b30a3dSAndrew Rist /************************************************************** 2cdf0e10cSrcweir * 3*e6b30a3dSAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4*e6b30a3dSAndrew Rist * or more contributor license agreements. See the NOTICE file 5*e6b30a3dSAndrew Rist * distributed with this work for additional information 6*e6b30a3dSAndrew Rist * regarding copyright ownership. The ASF licenses this file 7*e6b30a3dSAndrew Rist * to you under the Apache License, Version 2.0 (the 8*e6b30a3dSAndrew Rist * "License"); you may not use this file except in compliance 9*e6b30a3dSAndrew Rist * with the License. You may obtain a copy of the License at 10cdf0e10cSrcweir * 11*e6b30a3dSAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12cdf0e10cSrcweir * 13*e6b30a3dSAndrew Rist * Unless required by applicable law or agreed to in writing, 14*e6b30a3dSAndrew Rist * software distributed under the License is distributed on an 15*e6b30a3dSAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*e6b30a3dSAndrew Rist * KIND, either express or implied. See the License for the 17*e6b30a3dSAndrew Rist * specific language governing permissions and limitations 18*e6b30a3dSAndrew Rist * under the License. 19cdf0e10cSrcweir * 20*e6b30a3dSAndrew Rist *************************************************************/ 21*e6b30a3dSAndrew Rist 22*e6b30a3dSAndrew Rist 23cdf0e10cSrcweir 24cdf0e10cSrcweir #ifndef _SV_AQUA11TEXTWRAPPER_H 25cdf0e10cSrcweir #define _SV_AQUA11TEXTWRAPPER_H 26cdf0e10cSrcweir 27cdf0e10cSrcweir #include "aqua/aquavcltypes.h" 28cdf0e10cSrcweir #include "aqua/aqua11ywrapper.h" 29cdf0e10cSrcweir 30cdf0e10cSrcweir @interface AquaA11yTextWrapper : NSObject 31cdf0e10cSrcweir { 32cdf0e10cSrcweir } 33cdf0e10cSrcweir +(id)valueAttributeForElement:(AquaA11yWrapper *)wrapper; 34cdf0e10cSrcweir +(id)numberOfCharactersAttributeForElement:(AquaA11yWrapper *)wrapper; 35cdf0e10cSrcweir +(id)selectedTextAttributeForElement:(AquaA11yWrapper *)wrapper; 36cdf0e10cSrcweir +(id)selectedTextRangeAttributeForElement:(AquaA11yWrapper *)wrapper; 37cdf0e10cSrcweir +(id)visibleCharacterRangeAttributeForElement:(AquaA11yWrapper *)wrapper; 38cdf0e10cSrcweir +(id)sharedTextUIElementsAttributeForElement:(AquaA11yWrapper *)wrapper; 39cdf0e10cSrcweir +(id)sharedCharacterRangeAttributeForElement:(AquaA11yWrapper *)wrapper; 40cdf0e10cSrcweir +(id)stringForRangeAttributeForElement:(AquaA11yWrapper *)wrapper forParameter:(id)range; 41cdf0e10cSrcweir +(id)attributedStringForRangeAttributeForElement:(AquaA11yWrapper *)wrapper forParameter:(id)range; 42cdf0e10cSrcweir +(id)rangeForIndexAttributeForElement:(AquaA11yWrapper *)wrapper forParameter:(id)index; 43cdf0e10cSrcweir +(id)rangeForPositionAttributeForElement:(AquaA11yWrapper *)wrapper forParameter:(id)point; 44cdf0e10cSrcweir +(id)boundsForRangeAttributeForElement:(AquaA11yWrapper *)wrapper forParameter:(id)range; 45cdf0e10cSrcweir +(id)styleRangeForIndexAttributeForElement:(AquaA11yWrapper *)wrapper forParameter:(id)index; 46cdf0e10cSrcweir +(id)rTFForRangeAttributeForElement:(AquaA11yWrapper *)wrapper forParameter:(id)range; 47cdf0e10cSrcweir +(id)lineForIndexAttributeForElement:(AquaA11yWrapper *)wrapper forParameter:(id)index; 48cdf0e10cSrcweir +(id)rangeForLineAttributeForElement:(AquaA11yWrapper *)wrapper forParameter:(id)line; 49cdf0e10cSrcweir +(void)addAttributeNamesTo:(NSMutableArray *)attributeNames; 50cdf0e10cSrcweir +(void)addParameterizedAttributeNamesTo:(NSMutableArray *)attributeNames; 51cdf0e10cSrcweir +(NSArray *)specialAttributeNames; 52cdf0e10cSrcweir +(NSArray *)specialParameterizedAttributeNames; 53cdf0e10cSrcweir +(BOOL)isAttributeSettable:(NSString *)attribute forElement:(AquaA11yWrapper *)wrapper; 54cdf0e10cSrcweir +(void)setVisibleCharacterRangeAttributeForElement:(AquaA11yWrapper *)wrapper to:(id)value; 55cdf0e10cSrcweir +(void)setSelectedTextRangeAttributeForElement:(AquaA11yWrapper *)wrapper to:(id)value; 56cdf0e10cSrcweir +(void)setSelectedTextAttributeForElement:(AquaA11yWrapper *)wrapper to:(id)value; 57cdf0e10cSrcweir +(void)setValueAttributeForElement:(AquaA11yWrapper *)wrapper to:(id)value; 58cdf0e10cSrcweir @end 59cdf0e10cSrcweir 60cdf0e10cSrcweir #endif // _SV_AQUA11TEXTWRAPPER_H 61