1 /************************************************************************* 2 * 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 * 5 * Copyright 2000, 2010 Oracle and/or its affiliates. 6 * 7 * OpenOffice.org - a multi-platform office productivity suite 8 * 9 * This file is part of OpenOffice.org. 10 * 11 * OpenOffice.org is free software: you can redistribute it and/or modify 12 * it under the terms of the GNU Lesser General Public License version 3 13 * only, as published by the Free Software Foundation. 14 * 15 * OpenOffice.org is distributed in the hope that it will be useful, 16 * but WITHOUT ANY WARRANTY; without even the implied warranty of 17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 * GNU Lesser General Public License version 3 for more details 19 * (a copy is included in the LICENSE file that accompanied this code). 20 * 21 * You should have received a copy of the GNU Lesser General Public License 22 * version 3 along with OpenOffice.org. If not, see 23 * <http://www.openoffice.org/license.html> 24 * for a copy of the LGPLv3 License. 25 * 26 ************************************************************************/ 27 #ifndef _UIITEMS_HXX 28 #define _UIITEMS_HXX 29 30 #include <svl/intitem.hxx> 31 #include "swdllapi.h" 32 #include "cmdid.h" 33 #include "pagedesc.hxx" 34 35 class SwNumRule; 36 class IntlWrapper; 37 38 /*-------------------------------------------------------------------- 39 Beschreibung: Container fuer FootNote 40 --------------------------------------------------------------------*/ 41 class SW_DLLPUBLIC SwPageFtnInfoItem : public SfxPoolItem 42 { 43 SwPageFtnInfo aFtnInfo; 44 45 public: 46 47 SwPageFtnInfoItem(const sal_uInt16 nId, SwPageFtnInfo& rInfo); 48 SwPageFtnInfoItem(const SwPageFtnInfoItem& rItem ); 49 ~SwPageFtnInfoItem(); 50 51 virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const; 52 virtual int operator==( const SfxPoolItem& ) const; 53 virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres, 54 SfxMapUnit eCoreMetric, 55 SfxMapUnit ePresMetric, 56 String &rText, 57 const IntlWrapper* pIntl = 0 ) const; 58 59 virtual sal_Bool QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const; 60 virtual sal_Bool PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ); 61 62 SwPageFtnInfo& GetPageFtnInfo() { return aFtnInfo; } 63 const SwPageFtnInfo& GetPageFtnInfo() const { return aFtnInfo; } 64 void SetPageFtnInfo(SwPageFtnInfo& rInf) { aFtnInfo = rInf; } 65 }; 66 67 /*******************************************************************/ 68 69 class SW_DLLPUBLIC SwPtrItem : public SfxPoolItem 70 { 71 void* pMisc; 72 73 public: 74 SwPtrItem( const sal_uInt16 nId = FN_PARAM_GRF_DIALOG, void* pPtr = 0); 75 SwPtrItem( const SwPtrItem& rItem ); 76 77 virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const; 78 virtual int operator==( const SfxPoolItem& ) const; 79 80 void SetValue(void * pPtr) { pMisc= pPtr; } 81 void* GetValue() const { return pMisc; } 82 }; 83 84 /*******************************************************************/ 85 86 class SW_DLLPUBLIC SwUINumRuleItem : public SfxPoolItem 87 { 88 SwNumRule* pRule; 89 90 public: 91 SwUINumRuleItem( const SwNumRule& rRule, const sal_uInt16 = FN_PARAM_ACT_NUMBER); 92 SwUINumRuleItem( const SwUINumRuleItem& rItem ); 93 virtual ~SwUINumRuleItem(); 94 95 virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const; 96 virtual int operator==( const SfxPoolItem& ) const; 97 98 virtual sal_Bool QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const; 99 virtual sal_Bool PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ); 100 101 const SwNumRule* GetNumRule() const { return pRule; } 102 SwNumRule* GetNumRule() { return pRule; } 103 }; 104 105 /* -----------------17.06.98 17:40------------------- 106 * 107 * --------------------------------------------------*/ 108 class SwBackgroundDestinationItem : public SfxUInt16Item 109 { 110 public: 111 SwBackgroundDestinationItem(sal_uInt16 nWhich, sal_uInt16 nValue); 112 113 virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const; 114 }; 115 116 #endif // _UIITEMS_HXX 117