1*4c5491eaSAndrew Rist /************************************************************** 2cdf0e10cSrcweir * 3*4c5491eaSAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4*4c5491eaSAndrew Rist * or more contributor license agreements. See the NOTICE file 5*4c5491eaSAndrew Rist * distributed with this work for additional information 6*4c5491eaSAndrew Rist * regarding copyright ownership. The ASF licenses this file 7*4c5491eaSAndrew Rist * to you under the Apache License, Version 2.0 (the 8*4c5491eaSAndrew Rist * "License"); you may not use this file except in compliance 9*4c5491eaSAndrew Rist * with the License. You may obtain a copy of the License at 10*4c5491eaSAndrew Rist * 11*4c5491eaSAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12*4c5491eaSAndrew Rist * 13*4c5491eaSAndrew Rist * Unless required by applicable law or agreed to in writing, 14*4c5491eaSAndrew Rist * software distributed under the License is distributed on an 15*4c5491eaSAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*4c5491eaSAndrew Rist * KIND, either express or implied. See the License for the 17*4c5491eaSAndrew Rist * specific language governing permissions and limitations 18*4c5491eaSAndrew Rist * under the License. 19*4c5491eaSAndrew Rist * 20*4c5491eaSAndrew Rist *************************************************************/ 21*4c5491eaSAndrew Rist 22*4c5491eaSAndrew Rist 23cdf0e10cSrcweir 24cdf0e10cSrcweir #ifndef _SVX_XMLCNITM_HXX 25cdf0e10cSrcweir #define _SVX_XMLCNITM_HXX 26cdf0e10cSrcweir 27cdf0e10cSrcweir #include <svl/poolitem.hxx> 28cdf0e10cSrcweir #include "editeng/editengdllapi.h" 29cdf0e10cSrcweir 30cdf0e10cSrcweir class SvXMLNamespaceMap; 31cdf0e10cSrcweir namespace rtl { class OUString; } 32cdf0e10cSrcweir 33cdf0e10cSrcweir //============================================================================ 34cdf0e10cSrcweir 35cdf0e10cSrcweir class SvXMLAttrContainerData; 36cdf0e10cSrcweir 37cdf0e10cSrcweir class EDITENG_DLLPUBLIC SvXMLAttrContainerItem: public SfxPoolItem 38cdf0e10cSrcweir { 39cdf0e10cSrcweir SvXMLAttrContainerData *pImpl; 40cdf0e10cSrcweir 41cdf0e10cSrcweir public: 42cdf0e10cSrcweir TYPEINFO(); 43cdf0e10cSrcweir 44cdf0e10cSrcweir SvXMLAttrContainerItem( sal_uInt16 nWhich = 0 ); 45cdf0e10cSrcweir SvXMLAttrContainerItem( const SvXMLAttrContainerItem& ); 46cdf0e10cSrcweir virtual ~SvXMLAttrContainerItem(); 47cdf0e10cSrcweir 48cdf0e10cSrcweir virtual int operator==( const SfxPoolItem& ) const; 49cdf0e10cSrcweir using SfxPoolItem::Compare; 50cdf0e10cSrcweir virtual int Compare( const SfxPoolItem &rWith ) const; 51cdf0e10cSrcweir 52cdf0e10cSrcweir virtual SfxItemPresentation GetPresentation( 53cdf0e10cSrcweir SfxItemPresentation ePresentation, 54cdf0e10cSrcweir SfxMapUnit eCoreMetric, 55cdf0e10cSrcweir SfxMapUnit ePresentationMetric, 56cdf0e10cSrcweir XubString &rText, 57cdf0e10cSrcweir const IntlWrapper *pIntlWrapper = 0 ) const; 58cdf0e10cSrcweir 59cdf0e10cSrcweir virtual sal_uInt16 GetVersion( sal_uInt16 nFileFormatVersion ) const; 60cdf0e10cSrcweir 61cdf0e10cSrcweir virtual sal_Bool QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const; 62cdf0e10cSrcweir virtual sal_Bool PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ); 63cdf0e10cSrcweir Clone(SfxItemPool * =0) const64cdf0e10cSrcweir virtual SfxPoolItem *Clone( SfxItemPool * = 0) const 65cdf0e10cSrcweir { return new SvXMLAttrContainerItem( *this ); } 66cdf0e10cSrcweir 67cdf0e10cSrcweir sal_Bool AddAttr( const ::rtl::OUString& rLName, 68cdf0e10cSrcweir const ::rtl::OUString& rValue ); 69cdf0e10cSrcweir sal_Bool AddAttr( const ::rtl::OUString& rPrefix, 70cdf0e10cSrcweir const ::rtl::OUString& rNamespace, 71cdf0e10cSrcweir const ::rtl::OUString& rLName, 72cdf0e10cSrcweir const ::rtl::OUString& rValue ); 73cdf0e10cSrcweir 74cdf0e10cSrcweir sal_uInt16 GetAttrCount() const; 75cdf0e10cSrcweir ::rtl::OUString GetAttrNamespace( sal_uInt16 i ) const; 76cdf0e10cSrcweir ::rtl::OUString GetAttrPrefix( sal_uInt16 i ) const; 77cdf0e10cSrcweir const ::rtl::OUString& GetAttrLName( sal_uInt16 i ) const; 78cdf0e10cSrcweir const ::rtl::OUString& GetAttrValue( sal_uInt16 i ) const; 79cdf0e10cSrcweir 80cdf0e10cSrcweir sal_uInt16 GetFirstNamespaceIndex() const; 81cdf0e10cSrcweir sal_uInt16 GetNextNamespaceIndex( sal_uInt16 nIdx ) const; 82cdf0e10cSrcweir const ::rtl::OUString& GetNamespace( sal_uInt16 i ) const; 83cdf0e10cSrcweir const ::rtl::OUString& GetPrefix( sal_uInt16 i ) const; 84cdf0e10cSrcweir }; 85cdf0e10cSrcweir 86cdf0e10cSrcweir #endif // _SVX_XMLCNITM_HXX 87cdf0e10cSrcweir 88