xref: /aoo41x/main/sw/source/ui/inc/cfgitems.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 _CFGITEMS_HXX
24cdf0e10cSrcweir #define _CFGITEMS_HXX
25cdf0e10cSrcweir 
26cdf0e10cSrcweir #include <tools/color.hxx>
27cdf0e10cSrcweir #include <svl/poolitem.hxx>
28cdf0e10cSrcweir #include "swdllapi.h"
29cdf0e10cSrcweir #include <printdata.hxx>
30cdf0e10cSrcweir 
31cdf0e10cSrcweir #include <cmdid.h>
32cdf0e10cSrcweir 
33cdf0e10cSrcweir class SwWriterApp;
34cdf0e10cSrcweir class SwModule;
35cdf0e10cSrcweir #ifdef DBG_UTIL
36cdf0e10cSrcweir class SwTestTabPage;
37cdf0e10cSrcweir #endif
38cdf0e10cSrcweir class SwAddPrinterTabPage;
39cdf0e10cSrcweir class SfxPrinter;
40cdf0e10cSrcweir class ViewShell;
41cdf0e10cSrcweir class SwViewOption;
42cdf0e10cSrcweir class SwContentOptPage;
43cdf0e10cSrcweir class SwShdwCrsrOptionsTabPage;
44cdf0e10cSrcweir class SwDocEditDialog;
45cdf0e10cSrcweir 
46cdf0e10cSrcweir SfxPrinter* GetPrt( ViewShell* );
47cdf0e10cSrcweir void 		SetPrt( SfxPrinter* );
48cdf0e10cSrcweir 
49cdf0e10cSrcweir 
50cdf0e10cSrcweir /*--------OS 12.01.95 -----------------------------------
51cdf0e10cSrcweir Item fuer Einstellungsdialog - Dokumentanzeige
52cdf0e10cSrcweir --------------------------------------------------------- */
53cdf0e10cSrcweir class SW_DLLPUBLIC SwDocDisplayItem : public SfxPoolItem
54cdf0e10cSrcweir {
55cdf0e10cSrcweir 	friend class SwWriterApp;
56cdf0e10cSrcweir     friend class SwShdwCrsrOptionsTabPage;
57cdf0e10cSrcweir     friend class SwModule;
58cdf0e10cSrcweir 
59cdf0e10cSrcweir     sal_Bool bParagraphEnd      :1;
60cdf0e10cSrcweir     sal_Bool bTab               :1;
61cdf0e10cSrcweir     sal_Bool bSpace             :1;
62cdf0e10cSrcweir     sal_Bool bNonbreakingSpace  :1;
63cdf0e10cSrcweir     sal_Bool bSoftHyphen        :1;
64cdf0e10cSrcweir     sal_Bool bCharHiddenText    :1;
65cdf0e10cSrcweir     sal_Bool bFldHiddenText     :1;
66cdf0e10cSrcweir     sal_Bool bManualBreak       :1;
67cdf0e10cSrcweir     sal_Bool bShowHiddenPara    :1;
68cdf0e10cSrcweir 
69cdf0e10cSrcweir 	Color aIndexBackgrndCol;
70cdf0e10cSrcweir 
71cdf0e10cSrcweir 
72cdf0e10cSrcweir public:
73cdf0e10cSrcweir 								TYPEINFO();
74cdf0e10cSrcweir 								SwDocDisplayItem( sal_uInt16 nWhich = FN_PARAM_DOCDISP );
75cdf0e10cSrcweir 								SwDocDisplayItem(
76cdf0e10cSrcweir 									const SwDocDisplayItem& rSwDocDisplayItem );
77cdf0e10cSrcweir 								SwDocDisplayItem( const SwViewOption& rVOpt,
78cdf0e10cSrcweir 																sal_uInt16 nWhich );
79cdf0e10cSrcweir 
80cdf0e10cSrcweir 
81cdf0e10cSrcweir 	virtual SfxPoolItem*    	Clone( SfxItemPool *pPool = 0 ) const;
82cdf0e10cSrcweir 	virtual int             	operator==( const SfxPoolItem& ) const;
83cdf0e10cSrcweir 	void             			operator=( const SwDocDisplayItem& );
84cdf0e10cSrcweir 	void 						FillViewOptions( SwViewOption& rVOpt) const;
85cdf0e10cSrcweir };
86cdf0e10cSrcweir /*--------OS 12.01.95 -----------------------------------
87cdf0e10cSrcweir Item fuer Einstellungsdialog, Elementeseite
88cdf0e10cSrcweir --------------------------------------------------------- */
89cdf0e10cSrcweir class SW_DLLPUBLIC SwElemItem : public SfxPoolItem
90cdf0e10cSrcweir {
91cdf0e10cSrcweir     //view
92cdf0e10cSrcweir     sal_Bool bHorzScrollbar :1;
93cdf0e10cSrcweir 	sal_Bool bVertScrollbar	:1;
94cdf0e10cSrcweir     sal_Bool bAnyRuler : 1;
95cdf0e10cSrcweir     sal_Bool bHorzRuler     :1;
96cdf0e10cSrcweir 	sal_Bool bVertRuler		:1;
97cdf0e10cSrcweir     sal_Bool bVertRulerRight:1;
98cdf0e10cSrcweir     sal_Bool bSmoothScroll  :1;
99cdf0e10cSrcweir     //visual aids
100cdf0e10cSrcweir 	sal_Bool bCrosshair		:1;
101cdf0e10cSrcweir 	sal_Bool bHandles		:1;
102cdf0e10cSrcweir 	sal_Bool bBigHandles	:1;
103cdf0e10cSrcweir     //display
104cdf0e10cSrcweir     sal_Bool bTable             :1;
105cdf0e10cSrcweir 	sal_Bool bGraphic 			:1;
106cdf0e10cSrcweir 	sal_Bool bDrawing 			:1;
107cdf0e10cSrcweir 	sal_Bool bFieldName			:1;
108cdf0e10cSrcweir 	sal_Bool bNotes				:1;
109cdf0e10cSrcweir 
110cdf0e10cSrcweir     friend class SwContentOptPage;
111cdf0e10cSrcweir 
112cdf0e10cSrcweir public:
113cdf0e10cSrcweir 							TYPEINFO();
114cdf0e10cSrcweir 							SwElemItem( sal_uInt16 nWhich = FN_PARAM_ELEM );
115cdf0e10cSrcweir 							SwElemItem(const SwElemItem& rElemItem);
116cdf0e10cSrcweir 							SwElemItem(const SwViewOption& rVOpt, sal_uInt16 nWhich);
117cdf0e10cSrcweir 
118cdf0e10cSrcweir 
119cdf0e10cSrcweir 	virtual SfxPoolItem*    Clone( SfxItemPool *pPool = 0 ) const;
120cdf0e10cSrcweir 	virtual int             operator==( const SfxPoolItem& ) const;
121cdf0e10cSrcweir 	void             		operator=( const SwElemItem& );
122cdf0e10cSrcweir 
123cdf0e10cSrcweir 	void 					FillViewOptions( SwViewOption& rVOpt) const;
124cdf0e10cSrcweir 
125cdf0e10cSrcweir };
126cdf0e10cSrcweir /*--------OS 12.01.95 -----------------------------------
127cdf0e10cSrcweir Item fuer Einstellungsdialog - Drucker/Zusaetze
128cdf0e10cSrcweir --------------------------------------------------------- */
129cdf0e10cSrcweir 
130cdf0e10cSrcweir class SW_DLLPUBLIC SwAddPrinterItem : public SfxPoolItem, public SwPrintData
131cdf0e10cSrcweir {
132cdf0e10cSrcweir 	friend class SwAddPrinterTabPage;
133cdf0e10cSrcweir 
134cdf0e10cSrcweir     using  SwPrintData::operator ==;
135cdf0e10cSrcweir 
136cdf0e10cSrcweir public:
137cdf0e10cSrcweir 	TYPEINFO();
138cdf0e10cSrcweir 	SwAddPrinterItem( sal_uInt16 nWhich = FN_PARAM_ADDPRINTER );
139cdf0e10cSrcweir     SwAddPrinterItem( sal_uInt16 nWhich, const SwPrintData& rPrtData );
140cdf0e10cSrcweir 	SwAddPrinterItem( const SwAddPrinterItem& rAddPrinterItem);
141cdf0e10cSrcweir 
142cdf0e10cSrcweir 	virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
143cdf0e10cSrcweir 
144cdf0e10cSrcweir 	virtual int          operator==( const SfxPoolItem& ) const;
145cdf0e10cSrcweir 
GetFax() const146cdf0e10cSrcweir     const rtl::OUString &GetFax() const              { return sFaxName; }
SetFax(const String & rFax)147cdf0e10cSrcweir 	void		  SetFax( const String& rFax) { sFaxName = rFax; }
148cdf0e10cSrcweir 
149cdf0e10cSrcweir 
IsPrintProspect() const150cdf0e10cSrcweir 	sal_Bool   IsPrintProspect() const      { return bPrintProspect; }
IsPrintProspectRTL() const151cdf0e10cSrcweir     sal_Bool   IsPrintProspectRTL() const      { return bPrintProspectRTL; }
SetPrintProspect(sal_Bool bFlag)152cdf0e10cSrcweir 	void   SetPrintProspect(sal_Bool bFlag ){ bPrintProspect = bFlag; }
SetPrintProspectRTL(sal_Bool bFlag)153cdf0e10cSrcweir     void   SetPrintProspectRTL(sal_Bool bFlag ){ bPrintProspectRTL = bFlag; }
IsPrintGraphic() const154cdf0e10cSrcweir 	sal_Bool IsPrintGraphic () const { return bPrintGraphic; }
IsPrintTable() const155cdf0e10cSrcweir 	sal_Bool IsPrintTable () const { return bPrintTable; }
IsPrintDraw() const156cdf0e10cSrcweir     sal_Bool IsPrintDraw () const { return bPrintDraw; }
IsPrintControl() const157cdf0e10cSrcweir 	sal_Bool IsPrintControl	() const { return bPrintControl; }
IsPrintLeftPage() const158cdf0e10cSrcweir     sal_Bool IsPrintLeftPage () const { return bPrintLeftPages; }
IsPrintRightPage() const159cdf0e10cSrcweir     sal_Bool IsPrintRightPage() const { return bPrintRightPages; }
IsPrintReverse() const160cdf0e10cSrcweir 	sal_Bool IsPrintReverse  () const { return bPrintReverse; }
IsPaperFromSetup() const161cdf0e10cSrcweir 	sal_Bool IsPaperFromSetup() const { return bPaperFromSetup; }
IsPrintEmptyPages() const162cdf0e10cSrcweir     sal_Bool IsPrintEmptyPages() const { return bPrintEmptyPages; }
IsPrintPageBackground() const163cdf0e10cSrcweir     sal_Bool IsPrintPageBackground() const { return bPrintPageBackground; }
IsPrintBlackFont() const164cdf0e10cSrcweir 	sal_Bool IsPrintBlackFont() const { return bPrintBlackFont; }
165cdf0e10cSrcweir     //#i81434# - printing of hidden text
IsPrintHiddenText() const166cdf0e10cSrcweir     sal_Bool IsPrintHiddenText() const { return bPrintHiddenText; }
IsPrintTextPlaceholder() const167cdf0e10cSrcweir     sal_Bool IsPrintTextPlaceholder() const { return bPrintTextPlaceholder; }
168cdf0e10cSrcweir 
IsPrintSingleJobs() const169cdf0e10cSrcweir 	sal_Bool IsPrintSingleJobs() const { return bPrintSingleJobs; }
GetPrintPostIts() const170cdf0e10cSrcweir     sal_uLong GetPrintPostIts () const { return nPrintPostIts; }
171cdf0e10cSrcweir 
172cdf0e10cSrcweir };
173cdf0e10cSrcweir 
174cdf0e10cSrcweir 
175cdf0e10cSrcweir /*--------OS 12.01.95 -----------------------------------
176cdf0e10cSrcweir Item fuer Einstellungsdialog, ShadowCursorSeite
177cdf0e10cSrcweir --------------------------------------------------------- */
178cdf0e10cSrcweir 
179cdf0e10cSrcweir class SW_DLLPUBLIC SwShadowCursorItem : public SfxPoolItem
180cdf0e10cSrcweir {
181cdf0e10cSrcweir 	sal_uInt8 eMode;
182cdf0e10cSrcweir 	sal_Bool bOn;
183cdf0e10cSrcweir public:
184cdf0e10cSrcweir 	TYPEINFO();
185cdf0e10cSrcweir 	SwShadowCursorItem( sal_uInt16 nWhich = FN_PARAM_SHADOWCURSOR );
186cdf0e10cSrcweir 	SwShadowCursorItem( const SwShadowCursorItem& rElemItem );
187cdf0e10cSrcweir 	SwShadowCursorItem( const SwViewOption& rVOpt, sal_uInt16 nWhich );
188cdf0e10cSrcweir 
189cdf0e10cSrcweir 
190cdf0e10cSrcweir 	virtual SfxPoolItem*    Clone( SfxItemPool *pPool = 0 ) const;
191cdf0e10cSrcweir 	virtual int             operator==( const SfxPoolItem& ) const;
192cdf0e10cSrcweir 	void             		operator=( const SwShadowCursorItem& );
193cdf0e10cSrcweir 
194cdf0e10cSrcweir 	void FillViewOptions( SwViewOption& rVOpt) const;
195cdf0e10cSrcweir 
GetMode() const196cdf0e10cSrcweir 	sal_uInt8 GetMode() const				{ return eMode; }
IsOn() const197cdf0e10cSrcweir 	sal_Bool IsOn() const					{ return bOn; }
198cdf0e10cSrcweir 
SetMode(sal_uInt8 eM)199cdf0e10cSrcweir 	void SetMode( sal_uInt8 eM ) 			{ eMode = eM; }
SetOn(sal_Bool bFlag)200cdf0e10cSrcweir 	void SetOn( sal_Bool bFlag ) 			{ bOn = bFlag; }
201cdf0e10cSrcweir };
202cdf0e10cSrcweir 
203cdf0e10cSrcweir #ifdef DBG_UTIL
204cdf0e10cSrcweir /*--------OS 12.01.95 -----------------------------------
205cdf0e10cSrcweir Item fuer Einstellungsdialog - Testeinstellungen
206cdf0e10cSrcweir --------------------------------------------------------- */
207cdf0e10cSrcweir class SW_DLLPUBLIC SwTestItem : public SfxPoolItem
208cdf0e10cSrcweir {
209cdf0e10cSrcweir 	friend class SwModule;
210cdf0e10cSrcweir 	friend class SwWriterApp;
211cdf0e10cSrcweir 	friend class SwTestTabPage;
212cdf0e10cSrcweir 	friend class SwDocEditDialog;
213cdf0e10cSrcweir 
214cdf0e10cSrcweir 	sal_Bool	bTest1:1;
215cdf0e10cSrcweir 	sal_Bool	bTest2:1;
216cdf0e10cSrcweir 	sal_Bool	bTest3:1;
217cdf0e10cSrcweir 	sal_Bool	bTest4:1;
218cdf0e10cSrcweir 	sal_Bool	bTest5:1;
219cdf0e10cSrcweir 	sal_Bool	bTest6:1;
220cdf0e10cSrcweir 	sal_Bool	bTest7:1;
221cdf0e10cSrcweir 	sal_Bool	bTest8:1;
222cdf0e10cSrcweir 	sal_Bool    bTest9:1;
223cdf0e10cSrcweir 	sal_Bool    bTest10:1;
224cdf0e10cSrcweir 
225cdf0e10cSrcweir public:
SwTestItem(sal_uInt16 _nWhich)226cdf0e10cSrcweir                             SwTestItem( sal_uInt16 _nWhich):
227cdf0e10cSrcweir                                             SfxPoolItem(_nWhich){};
228cdf0e10cSrcweir 							SwTestItem( const SwTestItem& pTestItem);
229cdf0e10cSrcweir 
230cdf0e10cSrcweir 	virtual SfxPoolItem*    Clone( SfxItemPool *pPool = 0 ) const;
231cdf0e10cSrcweir 	virtual int             operator==( const SfxPoolItem& ) const;
232cdf0e10cSrcweir 
233cdf0e10cSrcweir };
234cdf0e10cSrcweir #endif
235cdf0e10cSrcweir 
236cdf0e10cSrcweir #endif
237cdf0e10cSrcweir 
238cdf0e10cSrcweir 
239