1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #ifndef INCLUDED_EDITENG_XMLCNITM_HXX
21 #define INCLUDED_EDITENG_XMLCNITM_HXX
23 #include <svl/poolitem.hxx>
24 #include <editeng/editengdllapi.h>
26 class SvXMLNamespaceMap
;
30 class SvXMLAttrContainerData
;
32 class EDITENG_DLLPUBLIC SvXMLAttrContainerItem
: public SfxPoolItem
34 SvXMLAttrContainerData
*pImpl
;
39 SvXMLAttrContainerItem( sal_uInt16 nWhich
= 0 );
40 SvXMLAttrContainerItem( const SvXMLAttrContainerItem
& );
41 virtual ~SvXMLAttrContainerItem();
43 virtual bool operator==( const SfxPoolItem
& ) const SAL_OVERRIDE
;
44 using SfxPoolItem::Compare
;
45 virtual int Compare( const SfxPoolItem
&rWith
) const SAL_OVERRIDE
;
47 virtual bool GetPresentation(
48 SfxItemPresentation ePresentation
,
49 SfxMapUnit eCoreMetric
,
50 SfxMapUnit ePresentationMetric
,
52 const IntlWrapper
*pIntlWrapper
= 0 ) const SAL_OVERRIDE
;
54 virtual sal_uInt16
GetVersion( sal_uInt16 nFileFormatVersion
) const SAL_OVERRIDE
;
56 virtual bool QueryValue( com::sun::star::uno::Any
& rVal
, sal_uInt8 nMemberId
= 0 ) const SAL_OVERRIDE
;
57 virtual bool PutValue( const com::sun::star::uno::Any
& rVal
, sal_uInt8 nMemberId
= 0 ) SAL_OVERRIDE
;
59 virtual SfxPoolItem
*Clone( SfxItemPool
* = 0) const SAL_OVERRIDE
60 { return new SvXMLAttrContainerItem( *this ); }
62 bool AddAttr( const OUString
& rLName
,
63 const OUString
& rValue
);
64 bool AddAttr( const OUString
& rPrefix
,
65 const OUString
& rNamespace
,
66 const OUString
& rLName
,
67 const OUString
& rValue
);
69 sal_uInt16
GetAttrCount() const;
70 OUString
GetAttrNamespace( sal_uInt16 i
) const;
71 OUString
GetAttrPrefix( sal_uInt16 i
) const;
72 const OUString
& GetAttrLName( sal_uInt16 i
) const;
73 const OUString
& GetAttrValue( sal_uInt16 i
) const;
75 sal_uInt16
GetFirstNamespaceIndex() const;
76 sal_uInt16
GetNextNamespaceIndex( sal_uInt16 nIdx
) const;
77 const OUString
& GetNamespace( sal_uInt16 i
) const;
78 const OUString
& GetPrefix( sal_uInt16 i
) const;
81 #endif // INCLUDED_EDITENG_XMLCNITM_HXX
83 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */