update dev300-m58
[ooovba.git] / sw / source / ui / inc / uiitems.hxx
blob43237c42586f66398fe612330bc71880ab67dc92
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: uiitems.hxx,v $
10 * $Revision: 1.7 $
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 ************************************************************************/
30 #ifndef _UIITEMS_HXX
31 #define _UIITEMS_HXX
33 #include <svtools/intitem.hxx>
34 #include "swdllapi.h"
35 #include "cmdid.h"
36 #include "pagedesc.hxx"
38 class SwNumRule;
39 class IntlWrapper;
41 /*--------------------------------------------------------------------
42 Beschreibung: Container fuer FootNote
43 --------------------------------------------------------------------*/
44 class SW_DLLPUBLIC SwPageFtnInfoItem : public SfxPoolItem
46 SwPageFtnInfo aFtnInfo;
48 public:
50 SwPageFtnInfoItem(const USHORT nId, SwPageFtnInfo& rInfo);
51 SwPageFtnInfoItem(const SwPageFtnInfoItem& rItem );
52 ~SwPageFtnInfoItem();
54 virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
55 virtual int operator==( const SfxPoolItem& ) const;
56 virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
57 SfxMapUnit eCoreMetric,
58 SfxMapUnit ePresMetric,
59 String &rText,
60 const IntlWrapper* pIntl = 0 ) const;
62 virtual BOOL QueryValue( com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 ) const;
63 virtual BOOL PutValue( const com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 );
65 SwPageFtnInfo& GetPageFtnInfo() { return aFtnInfo; }
66 const SwPageFtnInfo& GetPageFtnInfo() const { return aFtnInfo; }
67 void SetPageFtnInfo(SwPageFtnInfo& rInf) { aFtnInfo = rInf; }
70 /*******************************************************************/
72 class SW_DLLPUBLIC SwPtrItem : public SfxPoolItem
74 void* pMisc;
76 public:
77 SwPtrItem( const USHORT nId = FN_PARAM_GRF_DIALOG, void* pPtr = 0);
78 SwPtrItem( const SwPtrItem& rItem );
80 virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
81 virtual int operator==( const SfxPoolItem& ) const;
83 void SetValue(void * pPtr) { pMisc= pPtr; }
84 void* GetValue() const { return pMisc; }
87 /*******************************************************************/
89 class SW_DLLPUBLIC SwUINumRuleItem : public SfxPoolItem
91 SwNumRule* pRule;
93 public:
94 SwUINumRuleItem( const SwNumRule& rRule, const USHORT = FN_PARAM_ACT_NUMBER);
95 SwUINumRuleItem( const SwUINumRuleItem& rItem );
96 virtual ~SwUINumRuleItem();
98 virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
99 virtual int operator==( const SfxPoolItem& ) const;
101 virtual BOOL QueryValue( com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 ) const;
102 virtual BOOL PutValue( const com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 );
104 const SwNumRule* GetNumRule() const { return pRule; }
105 SwNumRule* GetNumRule() { return pRule; }
108 /* -----------------17.06.98 17:40-------------------
110 * --------------------------------------------------*/
111 class SwBackgroundDestinationItem : public SfxUInt16Item
113 public:
114 SwBackgroundDestinationItem(USHORT nWhich, USHORT nValue);
116 virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
119 #endif // _UIITEMS_HXX