1*8d192041SAndrew Rist /**************************************************************
2cdf0e10cSrcweir  *
3*8d192041SAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
4*8d192041SAndrew Rist  * or more contributor license agreements.  See the NOTICE file
5*8d192041SAndrew Rist  * distributed with this work for additional information
6*8d192041SAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
7*8d192041SAndrew Rist  * to you under the Apache License, Version 2.0 (the
8*8d192041SAndrew Rist  * "License"); you may not use this file except in compliance
9*8d192041SAndrew Rist  * with the License.  You may obtain a copy of the License at
10*8d192041SAndrew Rist  *
11*8d192041SAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
12*8d192041SAndrew Rist  *
13*8d192041SAndrew Rist  * Unless required by applicable law or agreed to in writing,
14*8d192041SAndrew Rist  * software distributed under the License is distributed on an
15*8d192041SAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*8d192041SAndrew Rist  * KIND, either express or implied.  See the License for the
17*8d192041SAndrew Rist  * specific language governing permissions and limitations
18*8d192041SAndrew Rist  * under the License.
19*8d192041SAndrew Rist  *
20*8d192041SAndrew Rist  *************************************************************/
21*8d192041SAndrew Rist 
22*8d192041SAndrew Rist 
23cdf0e10cSrcweir 
24cdf0e10cSrcweir #ifndef _SAX_ATTRLISTIMPL_HXX
25cdf0e10cSrcweir #define _SAX_ATTRLISTIMPL_HXX
26cdf0e10cSrcweir 
27cdf0e10cSrcweir #include "sal/config.h"
28cdf0e10cSrcweir #include <cppuhelper/implbase2.hxx>
29cdf0e10cSrcweir #include <com/sun/star/uno/RuntimeException.hpp>
30cdf0e10cSrcweir #include <com/sun/star/util/XCloneable.hpp>
31cdf0e10cSrcweir #include <com/sun/star/xml/sax/XAttributeList.hpp>
32cdf0e10cSrcweir 
33cdf0e10cSrcweir namespace sax_expatwrap
34cdf0e10cSrcweir {
35cdf0e10cSrcweir 
36cdf0e10cSrcweir struct AttributeList_impl;
37cdf0e10cSrcweir 
38cdf0e10cSrcweir //FIXME
39cdf0e10cSrcweir class /*SAX_DLLPUBLIC*/ AttributeList :
40cdf0e10cSrcweir 	public ::cppu::WeakImplHelper2<
41cdf0e10cSrcweir                 ::com::sun::star::xml::sax::XAttributeList,
42cdf0e10cSrcweir                 ::com::sun::star::util::XCloneable >
43cdf0e10cSrcweir {
44cdf0e10cSrcweir public:
45cdf0e10cSrcweir 	AttributeList();
46cdf0e10cSrcweir 	AttributeList( const AttributeList & );
47cdf0e10cSrcweir 	virtual ~AttributeList();
48cdf0e10cSrcweir 
49cdf0e10cSrcweir 	void addAttribute( const ::rtl::OUString &sName ,
50cdf0e10cSrcweir         const ::rtl::OUString &sType , const ::rtl::OUString &sValue );
51cdf0e10cSrcweir 	void clear();
52cdf0e10cSrcweir public:
53cdf0e10cSrcweir     // XAttributeList
54cdf0e10cSrcweir     virtual sal_Int16 SAL_CALL getLength(void)
55cdf0e10cSrcweir         throw(::com::sun::star::uno::RuntimeException);
56cdf0e10cSrcweir     virtual ::rtl::OUString SAL_CALL getNameByIndex(sal_Int16 i)
57cdf0e10cSrcweir         throw(::com::sun::star::uno::RuntimeException);
58cdf0e10cSrcweir     virtual ::rtl::OUString SAL_CALL getTypeByIndex(sal_Int16 i)
59cdf0e10cSrcweir         throw(::com::sun::star::uno::RuntimeException);
60cdf0e10cSrcweir     virtual ::rtl::OUString SAL_CALL getTypeByName(const ::rtl::OUString& aName)
61cdf0e10cSrcweir         throw(::com::sun::star::uno::RuntimeException);
62cdf0e10cSrcweir     virtual ::rtl::OUString SAL_CALL getValueByIndex(sal_Int16 i)
63cdf0e10cSrcweir         throw(::com::sun::star::uno::RuntimeException);
64cdf0e10cSrcweir     virtual ::rtl::OUString SAL_CALL getValueByName(const ::rtl::OUString& aName)
65cdf0e10cSrcweir         throw( ::com::sun::star::uno::RuntimeException);
66cdf0e10cSrcweir 
67cdf0e10cSrcweir     // XCloneable
68cdf0e10cSrcweir 	virtual ::com::sun::star::uno::Reference< XCloneable > SAL_CALL
69cdf0e10cSrcweir         createClone()	throw(::com::sun::star::uno::RuntimeException);
70cdf0e10cSrcweir 
71cdf0e10cSrcweir private:
72cdf0e10cSrcweir 	struct AttributeList_impl *m_pImpl;
73cdf0e10cSrcweir };
74cdf0e10cSrcweir 
75cdf0e10cSrcweir }
76cdf0e10cSrcweir 
77cdf0e10cSrcweir #endif
78cdf0e10cSrcweir 
79