xref: /aoo4110/main/sw/source/ui/inc/uiitems.hxx (revision b1cdbd2c)
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 #ifndef _UIITEMS_HXX
24 #define _UIITEMS_HXX
25 
26 #include <svl/intitem.hxx>
27 #include "swdllapi.h"
28 #include "cmdid.h"
29 #include "pagedesc.hxx"
30 
31 class SwNumRule;
32 class IntlWrapper;
33 
34 /*--------------------------------------------------------------------
35 	Beschreibung: Container fuer FootNote
36  --------------------------------------------------------------------*/
37 class SW_DLLPUBLIC SwPageFtnInfoItem : public SfxPoolItem
38 {
39 	SwPageFtnInfo aFtnInfo;
40 
41 public:
42 
43 	SwPageFtnInfoItem(const sal_uInt16 nId, SwPageFtnInfo& rInfo);
44 	SwPageFtnInfoItem(const SwPageFtnInfoItem& rItem );
45 	~SwPageFtnInfoItem();
46 
47 	virtual SfxPoolItem*    Clone( SfxItemPool *pPool = 0 ) const;
48 	virtual int             operator==( const SfxPoolItem& ) const;
49 	virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
50 									SfxMapUnit eCoreMetric,
51 									SfxMapUnit ePresMetric,
52 									String &rText,
53                                     const IntlWrapper*    pIntl = 0 ) const;
54 
55     virtual sal_Bool             QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const;
56 	virtual	sal_Bool			 PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 );
57 
GetPageFtnInfo()58     SwPageFtnInfo& GetPageFtnInfo()             { return aFtnInfo; }
GetPageFtnInfo() const59 	const SwPageFtnInfo& GetPageFtnInfo() const { return aFtnInfo; }
SetPageFtnInfo(SwPageFtnInfo & rInf)60 	void SetPageFtnInfo(SwPageFtnInfo& rInf) 	{ aFtnInfo = rInf; }
61 };
62 
63 /*******************************************************************/
64 
65 class SW_DLLPUBLIC SwPtrItem : public SfxPoolItem
66 {
67 	void* pMisc;
68 
69 public:
70 	SwPtrItem( const sal_uInt16 nId = FN_PARAM_GRF_DIALOG, void* pPtr = 0);
71 	SwPtrItem( const SwPtrItem& rItem );
72 
73 	virtual SfxPoolItem*    Clone( SfxItemPool *pPool = 0 ) const;
74 	virtual int             operator==( const SfxPoolItem& ) const;
75 
SetValue(void * pPtr)76 	void	SetValue(void * pPtr) 	{ pMisc= pPtr; }
GetValue() const77 	void*	GetValue() const 		{ return pMisc; }
78 };
79 
80 /*******************************************************************/
81 
82 class SW_DLLPUBLIC SwUINumRuleItem : public SfxPoolItem
83 {
84 	SwNumRule* pRule;
85 
86 public:
87 	SwUINumRuleItem( const SwNumRule& rRule, const sal_uInt16 = FN_PARAM_ACT_NUMBER);
88 	SwUINumRuleItem( const SwUINumRuleItem& rItem );
89 	virtual ~SwUINumRuleItem();
90 
91 	virtual SfxPoolItem*    Clone( SfxItemPool *pPool = 0 ) const;
92 	virtual int             operator==( const SfxPoolItem& ) const;
93 
94 	virtual	sal_Bool        	 QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const;
95 	virtual	sal_Bool			 PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 );
96 
GetNumRule() const97 	const SwNumRule* GetNumRule() const 		{ return pRule; }
GetNumRule()98 		  SwNumRule* GetNumRule() 				{ return pRule; }
99 };
100 
101 /* -----------------17.06.98 17:40-------------------
102  *
103  * --------------------------------------------------*/
104 class SwBackgroundDestinationItem : public SfxUInt16Item
105 {
106 public:
107 	SwBackgroundDestinationItem(sal_uInt16  nWhich, sal_uInt16 nValue);
108 
109 	virtual SfxPoolItem*     Clone( SfxItemPool *pPool = 0 ) const;
110 };
111 
112 #endif // _UIITEMS_HXX
113