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 _XMLOFF_XMLCNITM_HXX
32 #define _XMLOFF_XMLCNITM_HXX
34 #ifndef _SFXPOOLITEM_HXX
35 #include <bf_svtools/poolitem.hxx>
37 namespace rtl
{ class OUString
; }
40 class SvXMLNamespaceMap
;
42 //============================================================================
44 class SvXMLAttrContainerItem_Impl
;
46 class SvXMLAttrContainerItem
: public SfxPoolItem
48 SvXMLAttrContainerItem_Impl
*pImpl
;
53 SvXMLAttrContainerItem( sal_uInt16 nWhich
= 0 );
54 SvXMLAttrContainerItem( const SvXMLAttrContainerItem
& );
55 virtual ~SvXMLAttrContainerItem();
57 virtual int operator==( const SfxPoolItem
& ) const;
58 virtual int Compare( const SfxPoolItem
&rWith
) const;
60 virtual SfxItemPresentation
GetPresentation(
61 SfxItemPresentation ePresentation
,
62 SfxMapUnit eCoreMetric
,
63 SfxMapUnit ePresentationMetric
,
65 const ::IntlWrapper
*pIntlWrapper
= 0 ) const;
67 virtual sal_uInt16
GetVersion( sal_uInt16 nFileFormatVersion
) const;
69 virtual BOOL
QueryValue( ::com::sun::star::uno::Any
& rVal
, BYTE nMemberId
= 0 ) const;
70 virtual BOOL
PutValue( const ::com::sun::star::uno::Any
& rVal
, BYTE nMemberId
= 0 );
72 virtual SfxPoolItem
*Clone( SfxItemPool
* = 0) const
73 { return new SvXMLAttrContainerItem( *this ); }
75 sal_Bool
AddAttr( const ::rtl::OUString
& rLName
,
76 const ::rtl::OUString
& rValue
);
77 sal_Bool
AddAttr( const ::rtl::OUString
& rPrefix
,
78 const ::rtl::OUString
& rNamespace
,
79 const ::rtl::OUString
& rLName
,
80 const ::rtl::OUString
& rValue
);
82 sal_uInt16
GetAttrCount() const;
83 ::rtl::OUString
GetAttrNamespace( sal_uInt16 i
) const;
84 ::rtl::OUString
GetAttrPrefix( sal_uInt16 i
) const;
85 const ::rtl::OUString
& GetAttrLName( sal_uInt16 i
) const;
86 const ::rtl::OUString
& GetAttrValue( sal_uInt16 i
) const;
88 sal_uInt16
GetFirstNamespaceIndex() const;
89 sal_uInt16
GetNextNamespaceIndex( sal_uInt16 nIdx
) const;
90 const ::rtl::OUString
& GetNamespace( sal_uInt16 i
) const;
91 const ::rtl::OUString
& GetPrefix( sal_uInt16 i
) const;
94 }//end of namespace binfilter
95 #endif // _XMLOFF_XMLCNITM_HXX