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: xmlcnitm.hxx,v $
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 _SVX_XMLCNITM_HXX
32 #define _SVX_XMLCNITM_HXX
34 #ifndef _SFXPOOLITEM_HXX
35 #include <bf_svtools/poolitem.hxx>
37 namespace rtl
{ class OUString
; }
39 class SvXMLNamespaceMap
;
40 class SvXMLAttrContainerData
;
41 //STRIP008 namespace rtl { class OUString; }
43 //============================================================================
46 class SvXMLAttrContainerItem
: public SfxPoolItem
48 SvXMLAttrContainerData
*pImpl
;
53 SvXMLAttrContainerItem( sal_uInt16 nWhich
= 0 );
54 SvXMLAttrContainerItem( const SvXMLAttrContainerItem
& );
55 virtual ~SvXMLAttrContainerItem();
57 virtual int operator==( const SfxPoolItem
& ) const;
60 virtual sal_uInt16
GetVersion( sal_uInt16 nFileFormatVersion
) const;
62 virtual BOOL
QueryValue( ::com::sun::star::uno::Any
& rVal
, BYTE nMemberId
= 0 ) const;
63 virtual BOOL
PutValue( const ::com::sun::star::uno::Any
& rVal
, BYTE nMemberId
= 0 );
65 virtual SfxPoolItem
*Clone( SfxItemPool
* = 0) const
66 { return new SvXMLAttrContainerItem( *this ); }
68 sal_Bool
AddAttr( const ::rtl::OUString
& rLName
,
69 const ::rtl::OUString
& rValue
);
70 sal_Bool
AddAttr( const ::rtl::OUString
& rPrefix
,
71 const ::rtl::OUString
& rNamespace
,
72 const ::rtl::OUString
& rLName
,
73 const ::rtl::OUString
& rValue
);
75 sal_uInt16
GetAttrCount() const;
76 ::rtl::OUString
GetAttrNamespace( sal_uInt16 i
) const;
77 ::rtl::OUString
GetAttrPrefix( sal_uInt16 i
) const;
78 const ::rtl::OUString
& GetAttrLName( sal_uInt16 i
) const;
79 const ::rtl::OUString
& GetAttrValue( sal_uInt16 i
) const;
81 sal_uInt16
GetFirstNamespaceIndex() const;
82 sal_uInt16
GetNextNamespaceIndex( sal_uInt16 nIdx
) const;
83 const ::rtl::OUString
& GetNamespace( sal_uInt16 i
) const;
84 const ::rtl::OUString
& GetPrefix( sal_uInt16 i
) const;
87 }//end of namespace binfilter
88 #endif // _SVX_XMLCNITM_HXX