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 "sax/saxdllapi.h" 29 30 #include <cppuhelper/implbase2.hxx> 31 32 #include <com/sun/star/uno/RuntimeException.hpp> 33 #include <com/sun/star/util/XCloneable.hpp> 34 #include <com/sun/star/xml/sax/XAttributeList.hpp> 35 36 namespace sax_expatwrap 37 { 38 39 struct AttributeList_impl; 40 41 //FIXME 42 class /*SAX_DLLPUBLIC*/ AttributeList : 43 public ::cppu::WeakImplHelper2< 44 ::com::sun::star::xml::sax::XAttributeList, 45 ::com::sun::star::util::XCloneable > 46 { 47 public: 48 AttributeList(); 49 AttributeList( const AttributeList & ); 50 virtual ~AttributeList(); 51 52 void addAttribute( const ::rtl::OUString &sName , 53 const ::rtl::OUString &sType , const ::rtl::OUString &sValue ); 54 void clear(); 55 public: 56 // XAttributeList 57 virtual sal_Int16 SAL_CALL getLength(void) 58 throw(::com::sun::star::uno::RuntimeException); 59 virtual ::rtl::OUString SAL_CALL getNameByIndex(sal_Int16 i) 60 throw(::com::sun::star::uno::RuntimeException); 61 virtual ::rtl::OUString SAL_CALL getTypeByIndex(sal_Int16 i) 62 throw(::com::sun::star::uno::RuntimeException); 63 virtual ::rtl::OUString SAL_CALL getTypeByName(const ::rtl::OUString& aName) 64 throw(::com::sun::star::uno::RuntimeException); 65 virtual ::rtl::OUString SAL_CALL getValueByIndex(sal_Int16 i) 66 throw(::com::sun::star::uno::RuntimeException); 67 virtual ::rtl::OUString SAL_CALL getValueByName(const ::rtl::OUString& aName) 68 throw( ::com::sun::star::uno::RuntimeException); 69 70 // XCloneable 71 virtual ::com::sun::star::uno::Reference< XCloneable > SAL_CALL 72 createClone() throw(::com::sun::star::uno::RuntimeException); 73 74 private: 75 struct AttributeList_impl *m_pImpl; 76 }; 77 78 } 79 80 #endif 81 82