merged tag ooo/OOO330_m14
[LibreOffice.git] / offapi / com / sun / star / accessibility / XAccessibleTextAttributes.idl
blob5bb632b0cbc2e84980a5ab4db54bce96c83f1b80
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * This file is part of OpenOffice.org.
11 * OpenOffice.org is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU Lesser General Public License version 3
13 * only, as published by the Free Software Foundation.
15 * OpenOffice.org is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU Lesser General Public License version 3 for more details
19 * (a copy is included in the LICENSE file that accompanied this code).
21 * You should have received a copy of the GNU Lesser General Public License
22 * version 3 along with OpenOffice.org. If not, see
23 * <http://www.openoffice.org/license.html>
24 * for a copy of the LGPLv3 License.
26 ************************************************************************/
28 #ifndef __com_sun_star_accessibility_XAccessibleTextAttributes_idl__
29 #define __com_sun_star_accessibility_XAccessibleTextAttributes_idl__
31 #ifndef __com_sun_star_lang_IndexOutOfBoundsException_idl__
32 #include <com/sun/star/lang/IndexOutOfBoundsException.idl>
33 #endif
34 #ifndef __com_sun_star_beans_PropertyValue_idl__
35 #include <com/sun/star/beans/PropertyValue.idl>
36 #endif
38 module com { module sun { module star { module accessibility {
40 /** Implement this interface to give access to the attributes of a text.
42 @since OOo 2.0.4
44 published interface XAccessibleTextAttributes
46 /** Get the default attribute set for the text.
48 <p>Returns a set of all default paragraph and default character
49 attributes that are associated for the text. To prevent the method
50 from returning possibly large sets of attributes that the caller
51 is not interested in the caller can provide a list of attributes
52 that he wants to be returned.</p>
54 @param RequestedAttributes
55 This string sequence defines the set of attributes that the
56 caller is interested in. When there are requested attributes
57 that are not defined for the text then they are ignored.
59 <p>When the sequence is empty all attributes are returned.</p>
61 @return
62 Returns the requested attributes of the text. Each attribute
63 is represented by a <type scope="::com::sun::star::beans">PropertyValue</type>
64 object.
66 sequence<::com::sun::star::beans::PropertyValue>
67 getDefaultAttributes ( [in] sequence<string> RequestedAttributes );
69 /** Get the run attribute set for the specified position.
71 <p>Returns a set of character attributes that are associated for
72 the character at the given index and are directly set or are set
73 via a character style. To prevent the method from returning all of
74 these attributes the caller can provide a list of attributes
75 that he wants to be returned.</p>
77 @param Index
78 The index of the character for which to return its attributes.
79 The valid range is 0..length of text-1.
81 @param RequestedAttributes
82 This string sequence defines the set of attributes that the
83 caller is interested in. When there are requested attributes
84 that are not defined for the text then they are ignored.
86 <p>When the sequence is empty all attributes are returned.</p>
88 @return
89 Returns the requested attributes of the specified character.
90 Each attribute is represented by a
91 <type scope="::com::sun::star::beans">PropertyValue</type> object.
93 @throws ::com::sun::star::lang::IndexOutOfBoundsException
94 if the index is invalid
96 sequence<::com::sun::star::beans::PropertyValue>
97 getRunAttributes ( [in] long Index,
98 [in] sequence<string> RequestedAttributes )
99 raises (::com::sun::star::lang::IndexOutOfBoundsException);
103 }; }; }; };
105 #endif