xref: /aoo41x/main/sw/source/ui/inc/uiitems.hxx (revision 1d2dbeb0)
1*1d2dbeb0SAndrew Rist /**************************************************************
2cdf0e10cSrcweir  *
3*1d2dbeb0SAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
4*1d2dbeb0SAndrew Rist  * or more contributor license agreements.  See the NOTICE file
5*1d2dbeb0SAndrew Rist  * distributed with this work for additional information
6*1d2dbeb0SAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
7*1d2dbeb0SAndrew Rist  * to you under the Apache License, Version 2.0 (the
8*1d2dbeb0SAndrew Rist  * "License"); you may not use this file except in compliance
9*1d2dbeb0SAndrew Rist  * with the License.  You may obtain a copy of the License at
10*1d2dbeb0SAndrew Rist  *
11*1d2dbeb0SAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
12*1d2dbeb0SAndrew Rist  *
13*1d2dbeb0SAndrew Rist  * Unless required by applicable law or agreed to in writing,
14*1d2dbeb0SAndrew Rist  * software distributed under the License is distributed on an
15*1d2dbeb0SAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*1d2dbeb0SAndrew Rist  * KIND, either express or implied.  See the License for the
17*1d2dbeb0SAndrew Rist  * specific language governing permissions and limitations
18*1d2dbeb0SAndrew Rist  * under the License.
19*1d2dbeb0SAndrew Rist  *
20*1d2dbeb0SAndrew Rist  *************************************************************/
21*1d2dbeb0SAndrew Rist 
22*1d2dbeb0SAndrew Rist 
23cdf0e10cSrcweir #ifndef _UIITEMS_HXX
24cdf0e10cSrcweir #define _UIITEMS_HXX
25cdf0e10cSrcweir 
26cdf0e10cSrcweir #include <svl/intitem.hxx>
27cdf0e10cSrcweir #include "swdllapi.h"
28cdf0e10cSrcweir #include "cmdid.h"
29cdf0e10cSrcweir #include "pagedesc.hxx"
30cdf0e10cSrcweir 
31cdf0e10cSrcweir class SwNumRule;
32cdf0e10cSrcweir class IntlWrapper;
33cdf0e10cSrcweir 
34cdf0e10cSrcweir /*--------------------------------------------------------------------
35cdf0e10cSrcweir 	Beschreibung: Container fuer FootNote
36cdf0e10cSrcweir  --------------------------------------------------------------------*/
37cdf0e10cSrcweir class SW_DLLPUBLIC SwPageFtnInfoItem : public SfxPoolItem
38cdf0e10cSrcweir {
39cdf0e10cSrcweir 	SwPageFtnInfo aFtnInfo;
40cdf0e10cSrcweir 
41cdf0e10cSrcweir public:
42cdf0e10cSrcweir 
43cdf0e10cSrcweir 	SwPageFtnInfoItem(const sal_uInt16 nId, SwPageFtnInfo& rInfo);
44cdf0e10cSrcweir 	SwPageFtnInfoItem(const SwPageFtnInfoItem& rItem );
45cdf0e10cSrcweir 	~SwPageFtnInfoItem();
46cdf0e10cSrcweir 
47cdf0e10cSrcweir 	virtual SfxPoolItem*    Clone( SfxItemPool *pPool = 0 ) const;
48cdf0e10cSrcweir 	virtual int             operator==( const SfxPoolItem& ) const;
49cdf0e10cSrcweir 	virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
50cdf0e10cSrcweir 									SfxMapUnit eCoreMetric,
51cdf0e10cSrcweir 									SfxMapUnit ePresMetric,
52cdf0e10cSrcweir 									String &rText,
53cdf0e10cSrcweir                                     const IntlWrapper*    pIntl = 0 ) const;
54cdf0e10cSrcweir 
55cdf0e10cSrcweir     virtual sal_Bool             QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const;
56cdf0e10cSrcweir 	virtual	sal_Bool			 PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 );
57cdf0e10cSrcweir 
GetPageFtnInfo()58cdf0e10cSrcweir     SwPageFtnInfo& GetPageFtnInfo()             { return aFtnInfo; }
GetPageFtnInfo() const59cdf0e10cSrcweir 	const SwPageFtnInfo& GetPageFtnInfo() const { return aFtnInfo; }
SetPageFtnInfo(SwPageFtnInfo & rInf)60cdf0e10cSrcweir 	void SetPageFtnInfo(SwPageFtnInfo& rInf) 	{ aFtnInfo = rInf; }
61cdf0e10cSrcweir };
62cdf0e10cSrcweir 
63cdf0e10cSrcweir /*******************************************************************/
64cdf0e10cSrcweir 
65cdf0e10cSrcweir class SW_DLLPUBLIC SwPtrItem : public SfxPoolItem
66cdf0e10cSrcweir {
67cdf0e10cSrcweir 	void* pMisc;
68cdf0e10cSrcweir 
69cdf0e10cSrcweir public:
70cdf0e10cSrcweir 	SwPtrItem( const sal_uInt16 nId = FN_PARAM_GRF_DIALOG, void* pPtr = 0);
71cdf0e10cSrcweir 	SwPtrItem( const SwPtrItem& rItem );
72cdf0e10cSrcweir 
73cdf0e10cSrcweir 	virtual SfxPoolItem*    Clone( SfxItemPool *pPool = 0 ) const;
74cdf0e10cSrcweir 	virtual int             operator==( const SfxPoolItem& ) const;
75cdf0e10cSrcweir 
SetValue(void * pPtr)76cdf0e10cSrcweir 	void	SetValue(void * pPtr) 	{ pMisc= pPtr; }
GetValue() const77cdf0e10cSrcweir 	void*	GetValue() const 		{ return pMisc; }
78cdf0e10cSrcweir };
79cdf0e10cSrcweir 
80cdf0e10cSrcweir /*******************************************************************/
81cdf0e10cSrcweir 
82cdf0e10cSrcweir class SW_DLLPUBLIC SwUINumRuleItem : public SfxPoolItem
83cdf0e10cSrcweir {
84cdf0e10cSrcweir 	SwNumRule* pRule;
85cdf0e10cSrcweir 
86cdf0e10cSrcweir public:
87cdf0e10cSrcweir 	SwUINumRuleItem( const SwNumRule& rRule, const sal_uInt16 = FN_PARAM_ACT_NUMBER);
88cdf0e10cSrcweir 	SwUINumRuleItem( const SwUINumRuleItem& rItem );
89cdf0e10cSrcweir 	virtual ~SwUINumRuleItem();
90cdf0e10cSrcweir 
91cdf0e10cSrcweir 	virtual SfxPoolItem*    Clone( SfxItemPool *pPool = 0 ) const;
92cdf0e10cSrcweir 	virtual int             operator==( const SfxPoolItem& ) const;
93cdf0e10cSrcweir 
94cdf0e10cSrcweir 	virtual	sal_Bool        	 QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const;
95cdf0e10cSrcweir 	virtual	sal_Bool			 PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 );
96cdf0e10cSrcweir 
GetNumRule() const97cdf0e10cSrcweir 	const SwNumRule* GetNumRule() const 		{ return pRule; }
GetNumRule()98cdf0e10cSrcweir 		  SwNumRule* GetNumRule() 				{ return pRule; }
99cdf0e10cSrcweir };
100cdf0e10cSrcweir 
101cdf0e10cSrcweir /* -----------------17.06.98 17:40-------------------
102cdf0e10cSrcweir  *
103cdf0e10cSrcweir  * --------------------------------------------------*/
104cdf0e10cSrcweir class SwBackgroundDestinationItem : public SfxUInt16Item
105cdf0e10cSrcweir {
106cdf0e10cSrcweir public:
107cdf0e10cSrcweir 	SwBackgroundDestinationItem(sal_uInt16  nWhich, sal_uInt16 nValue);
108cdf0e10cSrcweir 
109cdf0e10cSrcweir 	virtual SfxPoolItem*     Clone( SfxItemPool *pPool = 0 ) const;
110cdf0e10cSrcweir };
111cdf0e10cSrcweir 
112cdf0e10cSrcweir #endif // _UIITEMS_HXX
113