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