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