Update ooo320-m1
[ooovba.git] / svx / inc / xmlcnitm.hxx
blob52d14999f5bfb937f979b4c552275d5c71f0fb62
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: xmlcnitm.hxx,v $
10 * $Revision: 1.5 $
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 #include <svtools/poolitem.hxx>
35 #include "svx/svxdllapi.h"
37 class SvXMLNamespaceMap;
38 namespace rtl { class OUString; }
40 //============================================================================
42 class SvXMLAttrContainerData;
44 class SVX_DLLPUBLIC SvXMLAttrContainerItem: public SfxPoolItem
46 SvXMLAttrContainerData *pImpl;
48 public:
49 TYPEINFO();
51 SvXMLAttrContainerItem( sal_uInt16 nWhich = 0 );
52 SvXMLAttrContainerItem( const SvXMLAttrContainerItem& );
53 virtual ~SvXMLAttrContainerItem();
55 virtual int operator==( const SfxPoolItem& ) const;
56 using SfxPoolItem::Compare;
57 virtual int Compare( const SfxPoolItem &rWith ) const;
59 virtual SfxItemPresentation GetPresentation(
60 SfxItemPresentation ePresentation,
61 SfxMapUnit eCoreMetric,
62 SfxMapUnit ePresentationMetric,
63 XubString &rText,
64 const IntlWrapper *pIntlWrapper = 0 ) const;
66 virtual sal_uInt16 GetVersion( sal_uInt16 nFileFormatVersion ) const;
68 virtual BOOL QueryValue( com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 ) const;
69 virtual BOOL PutValue( const com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 );
71 virtual SfxPoolItem *Clone( SfxItemPool * = 0) const
72 { return new SvXMLAttrContainerItem( *this ); }
74 sal_Bool AddAttr( const ::rtl::OUString& rLName,
75 const ::rtl::OUString& rValue );
76 sal_Bool AddAttr( const ::rtl::OUString& rPrefix,
77 const ::rtl::OUString& rNamespace,
78 const ::rtl::OUString& rLName,
79 const ::rtl::OUString& rValue );
81 sal_uInt16 GetAttrCount() const;
82 ::rtl::OUString GetAttrNamespace( sal_uInt16 i ) const;
83 ::rtl::OUString GetAttrPrefix( sal_uInt16 i ) const;
84 const ::rtl::OUString& GetAttrLName( sal_uInt16 i ) const;
85 const ::rtl::OUString& GetAttrValue( sal_uInt16 i ) const;
87 sal_uInt16 GetFirstNamespaceIndex() const;
88 sal_uInt16 GetNextNamespaceIndex( sal_uInt16 nIdx ) const;
89 const ::rtl::OUString& GetNamespace( sal_uInt16 i ) const;
90 const ::rtl::OUString& GetPrefix( sal_uInt16 i ) const;
93 #endif // _SVX_XMLCNITM_HXX