Update ooo320-m1
[ooovba.git] / offapi / com / sun / star / xml / input / XAttributes.idl
blob7536fd84ef67eb4a6b8ccad50633091d624e6e6b
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: XAttributes.idl,v $
10 * $Revision: 1.6 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
30 #if ! defined INCLUDED__com_sun_star_xml_input_XAttributes_idl__
31 #define INCLUDED__com_sun_star_xml_input_XAttributes_idl__
33 #include <com/sun/star/uno/XInterface.idl>
36 module com { module sun { module star { module xml { module input {
38 /** An element's attributes
40 @internal
42 interface XAttributes : com::sun::star::uno::XInterface
44 /** Gets the number of attributes.
46 @return
47 number of attributes
49 long getLength();
51 /** Gets attribute index passing a QName.
53 @param qName
54 QName
55 @return
56 attribute index or -1, if not found
58 long getIndexByQName( [in] string qName );
60 /** Gets attribute index passing a namespace uid and a localname.
62 @param uid
63 namespace uid
64 @param localName
65 localname
66 @return
67 attribute index or -1, if not found
69 long getIndexByUidName( [in] long uid, [in] string localName );
71 /** Gets the QName of an attribute.
73 @param nIndex
74 index
75 @return
76 QName of attribute or empty string, if invalid index
78 string getQNameByIndex( [in] long nIndex );
80 /** Gets the namespace uid of an attribute.
82 @param nIndex
83 index
84 @return
85 namespace uid of attribute or -1, if invalid index
87 long getUidByIndex( [in] long nIndex );
89 /** Gets the localname of an attribute.
91 @param nIndex
92 index
93 @return
94 localname of attribute or empty string, if invalid index
96 string getLocalNameByIndex( [in] long nIndex );
98 /** Gets the value of an attribute.
100 @param nIndex
101 index
102 @return
103 value string or empty string, if invalid index
105 string getValueByIndex( [in] long nIndex );
107 /** For convenience: Gets the value of an attribute passing uid, localname.
109 @param uid
110 namespace uid
111 @param localName
112 localname
113 @return
114 value string or empty string, if invalid uid/localname
116 string getValueByUidName( [in] long uid, [in] string localName );
118 /** Gets the type of an attribute, if possible.
120 @param nIndex
121 index
122 @return
123 type of attribute (if possible, else empty string)
125 string getTypeByIndex( [in] long nIndex );
128 }; }; }; }; };
130 #endif