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