1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: attrlistimpl.hxx,v $
10 * $Revision: 1.5.10.1 $
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 ************************************************************************/
31 #ifndef _SAX_ATTRLISTIMPL_HXX
32 #define _SAX_ATTRLISTIMPL_HXX
34 #include "sal/config.h"
35 //#include "sax/saxdllapi.h"
37 #include <cppuhelper/implbase2.hxx>
39 #include <com/sun/star/uno/RuntimeException.hpp>
40 #include <com/sun/star/util/XCloneable.hpp>
41 #include <com/sun/star/xml/sax/XAttributeList.hpp>
43 namespace sax_expatwrap
46 struct AttributeList_impl
;
49 class /*SAX_DLLPUBLIC*/ AttributeList
:
50 public ::cppu::WeakImplHelper2
<
51 ::com::sun::star::xml::sax::XAttributeList
,
52 ::com::sun::star::util::XCloneable
>
56 AttributeList( const AttributeList
& );
57 virtual ~AttributeList();
59 void addAttribute( const ::rtl::OUString
&sName
,
60 const ::rtl::OUString
&sType
, const ::rtl::OUString
&sValue
);
64 virtual sal_Int16 SAL_CALL
getLength(void)
65 throw(::com::sun::star::uno::RuntimeException
);
66 virtual ::rtl::OUString SAL_CALL
getNameByIndex(sal_Int16 i
)
67 throw(::com::sun::star::uno::RuntimeException
);
68 virtual ::rtl::OUString SAL_CALL
getTypeByIndex(sal_Int16 i
)
69 throw(::com::sun::star::uno::RuntimeException
);
70 virtual ::rtl::OUString SAL_CALL
getTypeByName(const ::rtl::OUString
& aName
)
71 throw(::com::sun::star::uno::RuntimeException
);
72 virtual ::rtl::OUString SAL_CALL
getValueByIndex(sal_Int16 i
)
73 throw(::com::sun::star::uno::RuntimeException
);
74 virtual ::rtl::OUString SAL_CALL
getValueByName(const ::rtl::OUString
& aName
)
75 throw( ::com::sun::star::uno::RuntimeException
);
78 virtual ::com::sun::star::uno::Reference
< XCloneable
> SAL_CALL
79 createClone() throw(::com::sun::star::uno::RuntimeException
);
82 struct AttributeList_impl
*m_pImpl
;