xref: /trunk/main/sw/source/ui/inc/optpage.hxx (revision cdf0e10c4e3984b49a9502b011690b615761d4a3)
1*cdf0e10cSrcweir /*************************************************************************
2*cdf0e10cSrcweir  *
3*cdf0e10cSrcweir  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4*cdf0e10cSrcweir  *
5*cdf0e10cSrcweir  * Copyright 2000, 2010 Oracle and/or its affiliates.
6*cdf0e10cSrcweir  *
7*cdf0e10cSrcweir  * OpenOffice.org - a multi-platform office productivity suite
8*cdf0e10cSrcweir  *
9*cdf0e10cSrcweir  * This file is part of OpenOffice.org.
10*cdf0e10cSrcweir  *
11*cdf0e10cSrcweir  * OpenOffice.org is free software: you can redistribute it and/or modify
12*cdf0e10cSrcweir  * it under the terms of the GNU Lesser General Public License version 3
13*cdf0e10cSrcweir  * only, as published by the Free Software Foundation.
14*cdf0e10cSrcweir  *
15*cdf0e10cSrcweir  * OpenOffice.org is distributed in the hope that it will be useful,
16*cdf0e10cSrcweir  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17*cdf0e10cSrcweir  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18*cdf0e10cSrcweir  * GNU Lesser General Public License version 3 for more details
19*cdf0e10cSrcweir  * (a copy is included in the LICENSE file that accompanied this code).
20*cdf0e10cSrcweir  *
21*cdf0e10cSrcweir  * You should have received a copy of the GNU Lesser General Public License
22*cdf0e10cSrcweir  * version 3 along with OpenOffice.org.  If not, see
23*cdf0e10cSrcweir  * <http://www.openoffice.org/license.html>
24*cdf0e10cSrcweir  * for a copy of the LGPLv3 License.
25*cdf0e10cSrcweir  *
26*cdf0e10cSrcweir  ************************************************************************/
27*cdf0e10cSrcweir #ifndef _OPTPAGE_HXX
28*cdf0e10cSrcweir #define _OPTPAGE_HXX
29*cdf0e10cSrcweir #include <sfx2/tabdlg.hxx>
30*cdf0e10cSrcweir 
31*cdf0e10cSrcweir #ifndef _GROUP_HXX //autogen
32*cdf0e10cSrcweir #include <vcl/group.hxx>
33*cdf0e10cSrcweir #endif
34*cdf0e10cSrcweir 
35*cdf0e10cSrcweir #ifndef _BUTTON_HXX //autogen
36*cdf0e10cSrcweir #include <vcl/button.hxx>
37*cdf0e10cSrcweir #endif
38*cdf0e10cSrcweir 
39*cdf0e10cSrcweir #ifndef _LSTBOX_HXX //autogen
40*cdf0e10cSrcweir #include <vcl/lstbox.hxx>
41*cdf0e10cSrcweir #endif
42*cdf0e10cSrcweir 
43*cdf0e10cSrcweir #ifndef _FIELD_HXX //autogen
44*cdf0e10cSrcweir #include <vcl/field.hxx>
45*cdf0e10cSrcweir #endif
46*cdf0e10cSrcweir 
47*cdf0e10cSrcweir #ifndef _FIXED_HXX //autogen
48*cdf0e10cSrcweir #include <vcl/fixed.hxx>
49*cdf0e10cSrcweir #endif
50*cdf0e10cSrcweir #include <svtools/ctrlbox.hxx>
51*cdf0e10cSrcweir #include <svx/fntctrl.hxx>
52*cdf0e10cSrcweir #include <fontcfg.hxx>
53*cdf0e10cSrcweir class SvStringsDtor;
54*cdf0e10cSrcweir class SfxPrinter;
55*cdf0e10cSrcweir class SwStdFontConfig;
56*cdf0e10cSrcweir class SwWrtShell;
57*cdf0e10cSrcweir class FontList;
58*cdf0e10cSrcweir 
59*cdf0e10cSrcweir /*-----------------31.08.96 10.09-------------------
60*cdf0e10cSrcweir 
61*cdf0e10cSrcweir --------------------------------------------------*/
62*cdf0e10cSrcweir 
63*cdf0e10cSrcweir class SwContentOptPage : public SfxTabPage
64*cdf0e10cSrcweir {
65*cdf0e10cSrcweir     //visual aids
66*cdf0e10cSrcweir     FixedLine   aLineFL;
67*cdf0e10cSrcweir     CheckBox    aCrossCB;
68*cdf0e10cSrcweir     CheckBox    aSolidHandleCB;
69*cdf0e10cSrcweir     CheckBox    aBigHandleCB;
70*cdf0e10cSrcweir 
71*cdf0e10cSrcweir     //view
72*cdf0e10cSrcweir     FixedLine   aWindowFL;
73*cdf0e10cSrcweir     CheckBox    aHScrollBox;
74*cdf0e10cSrcweir     CheckBox    aVScrollBox;
75*cdf0e10cSrcweir     CheckBox    aAnyRulerCB;
76*cdf0e10cSrcweir     CheckBox    aHRulerCBox;
77*cdf0e10cSrcweir     ListBox     aHMetric;
78*cdf0e10cSrcweir     CheckBox    aVRulerCBox;
79*cdf0e10cSrcweir     CheckBox    aVRulerRightCBox;
80*cdf0e10cSrcweir     ListBox     aVMetric;
81*cdf0e10cSrcweir     CheckBox    aSmoothCBox;
82*cdf0e10cSrcweir 
83*cdf0e10cSrcweir     //display
84*cdf0e10cSrcweir     FixedLine   aDispFL;
85*cdf0e10cSrcweir     CheckBox    aGrfCB;
86*cdf0e10cSrcweir     CheckBox    aTblCB;
87*cdf0e10cSrcweir     CheckBox    aDrwCB;
88*cdf0e10cSrcweir     CheckBox    aFldNameCB;
89*cdf0e10cSrcweir     CheckBox    aPostItCB;
90*cdf0e10cSrcweir 
91*cdf0e10cSrcweir     FixedLine   aSettingsFL;
92*cdf0e10cSrcweir     FixedText   aMetricFT;
93*cdf0e10cSrcweir     ListBox     aMetricLB;
94*cdf0e10cSrcweir 
95*cdf0e10cSrcweir     DECL_LINK(VertRulerHdl, CheckBox*);
96*cdf0e10cSrcweir     DECL_LINK(AnyRulerHdl, CheckBox*);
97*cdf0e10cSrcweir public:
98*cdf0e10cSrcweir                         SwContentOptPage( Window* pParent,
99*cdf0e10cSrcweir                                            const SfxItemSet& rSet );
100*cdf0e10cSrcweir                         ~SwContentOptPage();
101*cdf0e10cSrcweir 
102*cdf0e10cSrcweir     static SfxTabPage*  Create( Window* pParent,
103*cdf0e10cSrcweir                                 const SfxItemSet& rAttrSet);
104*cdf0e10cSrcweir 
105*cdf0e10cSrcweir     virtual sal_Bool        FillItemSet( SfxItemSet& rSet );
106*cdf0e10cSrcweir     virtual void        Reset( const SfxItemSet& rSet );
107*cdf0e10cSrcweir 
108*cdf0e10cSrcweir };
109*cdf0e10cSrcweir 
110*cdf0e10cSrcweir /*-------- OS 27.01.95 -----------------------------------
111*cdf0e10cSrcweir  TabPage Druckereinstellungen Zusaetze
112*cdf0e10cSrcweir --------------------------------------------------------- */
113*cdf0e10cSrcweir 
114*cdf0e10cSrcweir 
115*cdf0e10cSrcweir class SwAddPrinterTabPage : public SfxTabPage
116*cdf0e10cSrcweir {
117*cdf0e10cSrcweir     FixedLine       aFL1;
118*cdf0e10cSrcweir     CheckBox        aGrfCB;
119*cdf0e10cSrcweir //  CheckBox        aTabCB;
120*cdf0e10cSrcweir //  CheckBox        aDrawCB;
121*cdf0e10cSrcweir     CheckBox        aCtrlFldCB;
122*cdf0e10cSrcweir     CheckBox        aBackgroundCB;
123*cdf0e10cSrcweir     CheckBox        aBlackFontCB;
124*cdf0e10cSrcweir     CheckBox        aPrintHiddenTextCB;
125*cdf0e10cSrcweir     CheckBox        aPrintTextPlaceholderCB;
126*cdf0e10cSrcweir 
127*cdf0e10cSrcweir     FixedLine       aSeparatorLFL;
128*cdf0e10cSrcweir 
129*cdf0e10cSrcweir     FixedLine       aFL2;
130*cdf0e10cSrcweir     CheckBox        aLeftPageCB;
131*cdf0e10cSrcweir     CheckBox        aRightPageCB;
132*cdf0e10cSrcweir //  CheckBox        aReverseCB;
133*cdf0e10cSrcweir     CheckBox        aProspectCB;
134*cdf0e10cSrcweir     CheckBox        aProspectCB_RTL;
135*cdf0e10cSrcweir 
136*cdf0e10cSrcweir     FixedLine       aSeparatorRFL;
137*cdf0e10cSrcweir 
138*cdf0e10cSrcweir     FixedLine        aFL3;
139*cdf0e10cSrcweir     RadioButton     aNoRB;
140*cdf0e10cSrcweir     RadioButton     aOnlyRB;
141*cdf0e10cSrcweir     RadioButton     aEndRB;
142*cdf0e10cSrcweir     RadioButton     aEndPageRB;
143*cdf0e10cSrcweir     FixedLine        aFL4;
144*cdf0e10cSrcweir     CheckBox        aPrintEmptyPagesCB;
145*cdf0e10cSrcweir //    CheckBox        aSingleJobsCB;
146*cdf0e10cSrcweir     CheckBox        aPaperFromSetupCB;
147*cdf0e10cSrcweir     FixedText       aFaxFT;
148*cdf0e10cSrcweir     ListBox         aFaxLB;
149*cdf0e10cSrcweir     String          sNone;
150*cdf0e10cSrcweir 
151*cdf0e10cSrcweir     sal_Bool        bAttrModified;
152*cdf0e10cSrcweir     sal_Bool        bPreview;
153*cdf0e10cSrcweir 
154*cdf0e10cSrcweir     void        Init();
155*cdf0e10cSrcweir                 DECL_LINK( AutoClickHdl, CheckBox * );
156*cdf0e10cSrcweir                 DECL_LINK( SelectHdl, ListBox * );
157*cdf0e10cSrcweir 
158*cdf0e10cSrcweir 
159*cdf0e10cSrcweir                 SwAddPrinterTabPage( Window* pParent,
160*cdf0e10cSrcweir                                            const SfxItemSet& rSet );
161*cdf0e10cSrcweir public:
162*cdf0e10cSrcweir 
163*cdf0e10cSrcweir     static SfxTabPage*  Create( Window* pParent,
164*cdf0e10cSrcweir                                 const SfxItemSet& rAttrSet );
165*cdf0e10cSrcweir 
166*cdf0e10cSrcweir     virtual sal_Bool        FillItemSet( SfxItemSet& rSet );
167*cdf0e10cSrcweir     virtual void        Reset( const SfxItemSet& rSet );
168*cdf0e10cSrcweir     void                SetFax( const SvStringsDtor& );
169*cdf0e10cSrcweir     void                SelectFax( const String& );
170*cdf0e10cSrcweir     void                SetPreview(sal_Bool bPrev);
171*cdf0e10cSrcweir     virtual void        PageCreated (SfxAllItemSet aSet);
172*cdf0e10cSrcweir 
173*cdf0e10cSrcweir };
174*cdf0e10cSrcweir 
175*cdf0e10cSrcweir /*-----------------03.09.96 11.50-------------------
176*cdf0e10cSrcweir 
177*cdf0e10cSrcweir --------------------------------------------------*/
178*cdf0e10cSrcweir 
179*cdf0e10cSrcweir class SwStdFontTabPage : public SfxTabPage
180*cdf0e10cSrcweir {
181*cdf0e10cSrcweir     FixedLine       aStdChrFL  ;
182*cdf0e10cSrcweir 
183*cdf0e10cSrcweir     FixedText       aTypeFT;
184*cdf0e10cSrcweir 
185*cdf0e10cSrcweir     FixedText       aStandardLbl;
186*cdf0e10cSrcweir     ComboBox        aStandardBox;
187*cdf0e10cSrcweir 
188*cdf0e10cSrcweir     FixedText       aHeightFT;
189*cdf0e10cSrcweir     FontSizeBox     aStandardHeightLB;
190*cdf0e10cSrcweir 
191*cdf0e10cSrcweir     FixedText       aTitleLbl   ;
192*cdf0e10cSrcweir     ComboBox        aTitleBox   ;
193*cdf0e10cSrcweir     FontSizeBox     aTitleHeightLB;
194*cdf0e10cSrcweir 
195*cdf0e10cSrcweir     FixedText       aListLbl    ;
196*cdf0e10cSrcweir     ComboBox        aListBox    ;
197*cdf0e10cSrcweir     FontSizeBox     aListHeightLB;
198*cdf0e10cSrcweir 
199*cdf0e10cSrcweir     FixedText       aLabelLbl   ;
200*cdf0e10cSrcweir     ComboBox        aLabelBox   ;
201*cdf0e10cSrcweir     FontSizeBox     aLabelHeightLB;
202*cdf0e10cSrcweir 
203*cdf0e10cSrcweir     FixedText       aIdxLbl     ;
204*cdf0e10cSrcweir     ComboBox        aIdxBox     ;
205*cdf0e10cSrcweir     FontSizeBox     aIndexHeightLB;
206*cdf0e10cSrcweir 
207*cdf0e10cSrcweir     CheckBox        aDocOnlyCB  ;
208*cdf0e10cSrcweir     PushButton      aStandardPB;
209*cdf0e10cSrcweir 
210*cdf0e10cSrcweir     String          sShellStd;
211*cdf0e10cSrcweir     String          sShellTitle;
212*cdf0e10cSrcweir     String          sShellList;
213*cdf0e10cSrcweir     String          sShellLabel;
214*cdf0e10cSrcweir     String          sShellIndex;
215*cdf0e10cSrcweir 
216*cdf0e10cSrcweir     SfxPrinter*         pPrt;
217*cdf0e10cSrcweir     FontList*           pFontList;
218*cdf0e10cSrcweir     SwStdFontConfig*    pFontConfig;
219*cdf0e10cSrcweir     SwWrtShell*         pWrtShell;
220*cdf0e10cSrcweir     LanguageType        eLanguage;
221*cdf0e10cSrcweir     // waren nur defaults vorhanden? wurden sie mit den Boxen ueberschrieben
222*cdf0e10cSrcweir     sal_Bool    bListDefault    :1;
223*cdf0e10cSrcweir     sal_Bool    bSetListDefault :1;
224*cdf0e10cSrcweir     sal_Bool    bLabelDefault   :1;
225*cdf0e10cSrcweir     sal_Bool    bSetLabelDefault :1;
226*cdf0e10cSrcweir     sal_Bool    bIdxDefault     :1;
227*cdf0e10cSrcweir     sal_Bool    bSetIdxDefault  :1;
228*cdf0e10cSrcweir     sal_Bool    bDeletePrinter :1;
229*cdf0e10cSrcweir 
230*cdf0e10cSrcweir     sal_Bool    bListHeightDefault    :1;
231*cdf0e10cSrcweir     sal_Bool    bSetListHeightDefault :1;
232*cdf0e10cSrcweir     sal_Bool    bLabelHeightDefault   :1;
233*cdf0e10cSrcweir     sal_Bool    bSetLabelHeightDefault :1;
234*cdf0e10cSrcweir     sal_Bool    bIndexHeightDefault     :1;
235*cdf0e10cSrcweir     sal_Bool    bSetIndexHeightDefault  :1;
236*cdf0e10cSrcweir 
237*cdf0e10cSrcweir     sal_uInt8 nFontGroup; //fontcfg.hxx: FONT_GROUP_[STANDARD|CJK|CTL]
238*cdf0e10cSrcweir 
239*cdf0e10cSrcweir     String sScriptWestern;
240*cdf0e10cSrcweir     String sScriptAsian;
241*cdf0e10cSrcweir     String sScriptComplex;
242*cdf0e10cSrcweir 
243*cdf0e10cSrcweir     DECL_LINK( StandardHdl, PushButton * );
244*cdf0e10cSrcweir     DECL_LINK( ModifyHdl, ComboBox * );
245*cdf0e10cSrcweir     DECL_LINK( ModifyHeightHdl, FontSizeBox * );
246*cdf0e10cSrcweir     DECL_LINK( LoseFocusHdl, ComboBox * );
247*cdf0e10cSrcweir 
248*cdf0e10cSrcweir             SwStdFontTabPage( Window* pParent,
249*cdf0e10cSrcweir                                        const SfxItemSet& rSet );
250*cdf0e10cSrcweir             ~SwStdFontTabPage();
251*cdf0e10cSrcweir 
252*cdf0e10cSrcweir public:
253*cdf0e10cSrcweir     static SfxTabPage*  Create( Window* pParent,
254*cdf0e10cSrcweir                                 const SfxItemSet& rAttrSet );
255*cdf0e10cSrcweir 
256*cdf0e10cSrcweir     virtual sal_Bool        FillItemSet( SfxItemSet& rSet );
257*cdf0e10cSrcweir     virtual void        Reset( const SfxItemSet& rSet );
258*cdf0e10cSrcweir 
259*cdf0e10cSrcweir     void    SetFontMode(sal_uInt8 nGroup) {nFontGroup = nGroup;}
260*cdf0e10cSrcweir     virtual void        PageCreated (SfxAllItemSet aSet);
261*cdf0e10cSrcweir };
262*cdf0e10cSrcweir 
263*cdf0e10cSrcweir /*-----------------18.01.97 12.10-------------------
264*cdf0e10cSrcweir 
265*cdf0e10cSrcweir --------------------------------------------------*/
266*cdf0e10cSrcweir 
267*cdf0e10cSrcweir class SwTableOptionsTabPage : public SfxTabPage
268*cdf0e10cSrcweir {
269*cdf0e10cSrcweir     FixedLine   aTableFL;
270*cdf0e10cSrcweir     CheckBox    aHeaderCB;
271*cdf0e10cSrcweir     CheckBox    aRepeatHeaderCB;
272*cdf0e10cSrcweir     CheckBox    aDontSplitCB;
273*cdf0e10cSrcweir     CheckBox    aBorderCB;
274*cdf0e10cSrcweir 
275*cdf0e10cSrcweir     FixedLine   aSeparatorFL;
276*cdf0e10cSrcweir 
277*cdf0e10cSrcweir     FixedLine   aTableInsertFL;
278*cdf0e10cSrcweir     CheckBox    aNumFormattingCB;
279*cdf0e10cSrcweir     CheckBox    aNumFmtFormattingCB;
280*cdf0e10cSrcweir     CheckBox    aNumAlignmentCB;
281*cdf0e10cSrcweir 
282*cdf0e10cSrcweir     FixedLine   aMoveFL;
283*cdf0e10cSrcweir     FixedText   aMoveFT;
284*cdf0e10cSrcweir     FixedText   aRowMoveFT;
285*cdf0e10cSrcweir     MetricField aRowMoveMF;
286*cdf0e10cSrcweir     FixedText   aColMoveFT;
287*cdf0e10cSrcweir     MetricField aColMoveMF;
288*cdf0e10cSrcweir 
289*cdf0e10cSrcweir     FixedText   aInsertFT;
290*cdf0e10cSrcweir     FixedText   aRowInsertFT;
291*cdf0e10cSrcweir     MetricField aRowInsertMF;
292*cdf0e10cSrcweir     FixedText   aColInsertFT;
293*cdf0e10cSrcweir     MetricField aColInsertMF;
294*cdf0e10cSrcweir 
295*cdf0e10cSrcweir     FixedText   aHandlingFT;
296*cdf0e10cSrcweir     RadioButton aFixRB;
297*cdf0e10cSrcweir     RadioButton aFixPropRB;
298*cdf0e10cSrcweir     RadioButton aVarRB;
299*cdf0e10cSrcweir     FixedText   aFixFT;
300*cdf0e10cSrcweir     FixedText   aFixPropFT;
301*cdf0e10cSrcweir     FixedText   aVarFT;
302*cdf0e10cSrcweir 
303*cdf0e10cSrcweir     SwWrtShell* pWrtShell;
304*cdf0e10cSrcweir     sal_Bool        bHTMLMode;
305*cdf0e10cSrcweir 
306*cdf0e10cSrcweir     DECL_LINK(CheckBoxHdl, CheckBox *pCB);
307*cdf0e10cSrcweir 
308*cdf0e10cSrcweir 
309*cdf0e10cSrcweir                 SwTableOptionsTabPage( Window* pParent,
310*cdf0e10cSrcweir                                            const SfxItemSet& rSet );
311*cdf0e10cSrcweir                 ~SwTableOptionsTabPage();
312*cdf0e10cSrcweir 
313*cdf0e10cSrcweir public:
314*cdf0e10cSrcweir 
315*cdf0e10cSrcweir     static SfxTabPage*  Create( Window* pParent,
316*cdf0e10cSrcweir                                 const SfxItemSet& rAttrSet );
317*cdf0e10cSrcweir 
318*cdf0e10cSrcweir     virtual sal_Bool        FillItemSet( SfxItemSet& rSet );
319*cdf0e10cSrcweir     virtual void        Reset( const SfxItemSet& rSet );
320*cdf0e10cSrcweir 
321*cdf0e10cSrcweir     void SetWrtShell(SwWrtShell* pSh) {pWrtShell = pSh;}
322*cdf0e10cSrcweir     virtual void        PageCreated (SfxAllItemSet aSet);
323*cdf0e10cSrcweir 
324*cdf0e10cSrcweir };
325*cdf0e10cSrcweir /*-----------------31.10.97 17:55-------------------
326*cdf0e10cSrcweir  TabPage fuer ShadowCrsr
327*cdf0e10cSrcweir --------------------------------------------------*/
328*cdf0e10cSrcweir class SwShdwCrsrOptionsTabPage : public SfxTabPage
329*cdf0e10cSrcweir {
330*cdf0e10cSrcweir     //nonprinting characters
331*cdf0e10cSrcweir     FixedLine   aUnprintFL;
332*cdf0e10cSrcweir     CheckBox    aParaCB;
333*cdf0e10cSrcweir     CheckBox    aSHyphCB;
334*cdf0e10cSrcweir     CheckBox    aSpacesCB;
335*cdf0e10cSrcweir     CheckBox    aHSpacesCB;
336*cdf0e10cSrcweir     CheckBox    aTabCB;
337*cdf0e10cSrcweir     CheckBox    aBreakCB;
338*cdf0e10cSrcweir     CheckBox    aCharHiddenCB;
339*cdf0e10cSrcweir     CheckBox    aFldHiddenCB;
340*cdf0e10cSrcweir     CheckBox    aFldHiddenParaCB;
341*cdf0e10cSrcweir 
342*cdf0e10cSrcweir     FixedLine   aSeparatorFL;
343*cdf0e10cSrcweir 
344*cdf0e10cSrcweir     FixedLine       aFlagFL;
345*cdf0e10cSrcweir     CheckBox        aOnOffCB;
346*cdf0e10cSrcweir 
347*cdf0e10cSrcweir     FixedText       aFillModeFT;
348*cdf0e10cSrcweir     RadioButton     aFillMarginRB;
349*cdf0e10cSrcweir     RadioButton     aFillIndentRB;
350*cdf0e10cSrcweir     RadioButton     aFillTabRB;
351*cdf0e10cSrcweir     RadioButton     aFillSpaceRB;
352*cdf0e10cSrcweir 
353*cdf0e10cSrcweir     FixedLine       aCrsrOptFL;
354*cdf0e10cSrcweir     CheckBox        aCrsrInProtCB;
355*cdf0e10cSrcweir 
356*cdf0e10cSrcweir     FixedLine       m_aLayoutOptionsFL;
357*cdf0e10cSrcweir     CheckBox        m_aMathBaselineAlignmentCB;
358*cdf0e10cSrcweir 
359*cdf0e10cSrcweir     SwWrtShell *    m_pWrtShell;
360*cdf0e10cSrcweir 
361*cdf0e10cSrcweir 
362*cdf0e10cSrcweir     SwShdwCrsrOptionsTabPage( Window* pParent, const SfxItemSet& rSet );
363*cdf0e10cSrcweir     ~SwShdwCrsrOptionsTabPage();
364*cdf0e10cSrcweir 
365*cdf0e10cSrcweir public:
366*cdf0e10cSrcweir 
367*cdf0e10cSrcweir     static SfxTabPage*  Create( Window* pParent, const SfxItemSet& rAttrSet );
368*cdf0e10cSrcweir 
369*cdf0e10cSrcweir     virtual sal_Bool        FillItemSet( SfxItemSet& rSet );
370*cdf0e10cSrcweir     virtual void        Reset( const SfxItemSet& rSet );
371*cdf0e10cSrcweir 
372*cdf0e10cSrcweir     void    SetWrtShell( SwWrtShell * pSh ) { m_pWrtShell = pSh; }
373*cdf0e10cSrcweir     virtual void        PageCreated( SfxAllItemSet aSet );
374*cdf0e10cSrcweir };
375*cdf0e10cSrcweir 
376*cdf0e10cSrcweir /*-----------------------------------------------------------------------
377*cdf0e10cSrcweir     Beschreibung: Markierungsvorschau
378*cdf0e10cSrcweir  -----------------------------------------------------------------------*/
379*cdf0e10cSrcweir 
380*cdf0e10cSrcweir class SwMarkPreview : public Window
381*cdf0e10cSrcweir {
382*cdf0e10cSrcweir     Color           m_aBgCol;           // background
383*cdf0e10cSrcweir     Color           m_aTransCol;        // transparency
384*cdf0e10cSrcweir     Color           m_aMarkCol;         // marks
385*cdf0e10cSrcweir     Color           m_aLineCol;         // general lines
386*cdf0e10cSrcweir     Color           m_aShadowCol;       // shadow
387*cdf0e10cSrcweir     Color           m_aTxtCol;          // text
388*cdf0e10cSrcweir     Color           m_aPrintAreaCol;    // frame for print area
389*cdf0e10cSrcweir 
390*cdf0e10cSrcweir     Rectangle       aPage;
391*cdf0e10cSrcweir     Rectangle       aLeftPagePrtArea;
392*cdf0e10cSrcweir     Rectangle       aRightPagePrtArea;
393*cdf0e10cSrcweir 
394*cdf0e10cSrcweir     sal_uInt16          nMarkPos;
395*cdf0e10cSrcweir 
396*cdf0e10cSrcweir     using OutputDevice::DrawRect;
397*cdf0e10cSrcweir     void            DrawRect(const Rectangle &rRect, const Color &rFillColor, const Color &rLineColor);
398*cdf0e10cSrcweir 
399*cdf0e10cSrcweir     void            Paint(const Rectangle&);
400*cdf0e10cSrcweir     void            PaintPage(const Rectangle &rRect);
401*cdf0e10cSrcweir     void            InitColors( void );
402*cdf0e10cSrcweir 
403*cdf0e10cSrcweir protected:
404*cdf0e10cSrcweir     virtual void    DataChanged( const DataChangedEvent& rDCEvt );
405*cdf0e10cSrcweir 
406*cdf0e10cSrcweir public:
407*cdf0e10cSrcweir                     SwMarkPreview(Window* pParent, const ResId& rResID);
408*cdf0e10cSrcweir     virtual         ~SwMarkPreview();
409*cdf0e10cSrcweir 
410*cdf0e10cSrcweir     inline void     SetColor(const Color& rCol) { m_aMarkCol = rCol; }
411*cdf0e10cSrcweir     inline void     SetMarkPos(sal_uInt16 nPos) { nMarkPos = nPos; }
412*cdf0e10cSrcweir };
413*cdf0e10cSrcweir 
414*cdf0e10cSrcweir /*-----------------------------------------------------------------------
415*cdf0e10cSrcweir     Beschreibung: Redlining-Optionen
416*cdf0e10cSrcweir  -----------------------------------------------------------------------*/
417*cdf0e10cSrcweir 
418*cdf0e10cSrcweir class SwRedlineOptionsTabPage : public SfxTabPage
419*cdf0e10cSrcweir {
420*cdf0e10cSrcweir     FixedLine           aInsertFL;
421*cdf0e10cSrcweir 
422*cdf0e10cSrcweir     FixedText           aInsertFT;
423*cdf0e10cSrcweir     FixedText           aInsertAttrFT;
424*cdf0e10cSrcweir     ListBox             aInsertLB;
425*cdf0e10cSrcweir     FixedText           aInsertColorFT;
426*cdf0e10cSrcweir     ColorListBox        aInsertColorLB;
427*cdf0e10cSrcweir     SvxFontPrevWindow   aInsertedPreviewWN;
428*cdf0e10cSrcweir 
429*cdf0e10cSrcweir     FixedText           aDeletedFT;
430*cdf0e10cSrcweir     FixedText           aDeletedAttrFT;
431*cdf0e10cSrcweir     ListBox             aDeletedLB;
432*cdf0e10cSrcweir     FixedText           aDeletedColorFT;
433*cdf0e10cSrcweir     ColorListBox        aDeletedColorLB;
434*cdf0e10cSrcweir     SvxFontPrevWindow   aDeletedPreviewWN;
435*cdf0e10cSrcweir 
436*cdf0e10cSrcweir     FixedText           aChangedFT;
437*cdf0e10cSrcweir     FixedText           aChangedAttrFT;
438*cdf0e10cSrcweir     ListBox             aChangedLB;
439*cdf0e10cSrcweir     FixedText           aChangedColorFT;
440*cdf0e10cSrcweir     ColorListBox        aChangedColorLB;
441*cdf0e10cSrcweir     SvxFontPrevWindow   aChangedPreviewWN;
442*cdf0e10cSrcweir 
443*cdf0e10cSrcweir     FixedLine           aChangedFL;
444*cdf0e10cSrcweir 
445*cdf0e10cSrcweir     FixedText           aMarkPosFT;
446*cdf0e10cSrcweir     ListBox             aMarkPosLB;
447*cdf0e10cSrcweir     FixedText           aMarkColorFT;
448*cdf0e10cSrcweir     ColorListBox        aMarkColorLB;
449*cdf0e10cSrcweir     SwMarkPreview       aMarkPreviewWN;
450*cdf0e10cSrcweir 
451*cdf0e10cSrcweir     String              sAuthor;
452*cdf0e10cSrcweir     String              sNone;
453*cdf0e10cSrcweir 
454*cdf0e10cSrcweir     SwRedlineOptionsTabPage( Window* pParent, const SfxItemSet& rSet );
455*cdf0e10cSrcweir     ~SwRedlineOptionsTabPage();
456*cdf0e10cSrcweir 
457*cdf0e10cSrcweir     DECL_LINK( AttribHdl, ListBox *pLB );
458*cdf0e10cSrcweir     DECL_LINK( ChangedMaskPrevHdl, ListBox *pLB = 0 );
459*cdf0e10cSrcweir     DECL_LINK( ColorHdl, ColorListBox *pColorLB );
460*cdf0e10cSrcweir 
461*cdf0e10cSrcweir     void                InitFontStyle(SvxFontPrevWindow& rExampleWin);
462*cdf0e10cSrcweir 
463*cdf0e10cSrcweir public:
464*cdf0e10cSrcweir 
465*cdf0e10cSrcweir     static SfxTabPage*  Create( Window* pParent, const SfxItemSet& rAttrSet );
466*cdf0e10cSrcweir 
467*cdf0e10cSrcweir     virtual sal_Bool        FillItemSet( SfxItemSet& rSet );
468*cdf0e10cSrcweir     virtual void        Reset( const SfxItemSet& rSet );
469*cdf0e10cSrcweir };
470*cdf0e10cSrcweir 
471*cdf0e10cSrcweir /*--------OS 11.01.95 -----------------------------------
472*cdf0e10cSrcweir  TabPage Testeinstellungen fuer SW
473*cdf0e10cSrcweir --------------------------------------------------------- */
474*cdf0e10cSrcweir 
475*cdf0e10cSrcweir #ifdef DBG_UTIL
476*cdf0e10cSrcweir 
477*cdf0e10cSrcweir class SwTestTabPage : public SfxTabPage
478*cdf0e10cSrcweir {
479*cdf0e10cSrcweir public:
480*cdf0e10cSrcweir                         SwTestTabPage( Window* pParent,
481*cdf0e10cSrcweir                                            const SfxItemSet& rSet );
482*cdf0e10cSrcweir 
483*cdf0e10cSrcweir     static SfxTabPage*  Create( Window* pParent,
484*cdf0e10cSrcweir                                 const SfxItemSet& rAttrSet );
485*cdf0e10cSrcweir 
486*cdf0e10cSrcweir     virtual sal_Bool        FillItemSet( SfxItemSet& rSet );
487*cdf0e10cSrcweir     virtual void        Reset( const SfxItemSet& rSet );
488*cdf0e10cSrcweir 
489*cdf0e10cSrcweir private:
490*cdf0e10cSrcweir     FixedLine aTestFL;
491*cdf0e10cSrcweir     CheckBox aTest1CBox;
492*cdf0e10cSrcweir     CheckBox aTest2CBox;
493*cdf0e10cSrcweir     CheckBox aTest3CBox;
494*cdf0e10cSrcweir     CheckBox aTest4CBox;
495*cdf0e10cSrcweir     CheckBox aTest5CBox;
496*cdf0e10cSrcweir     CheckBox aTest6CBox;
497*cdf0e10cSrcweir     CheckBox aTest7CBox;
498*cdf0e10cSrcweir     CheckBox aTest8CBox;
499*cdf0e10cSrcweir     CheckBox aTest9CBox;
500*cdf0e10cSrcweir     CheckBox aTest10CBox;
501*cdf0e10cSrcweir 
502*cdf0e10cSrcweir     sal_Bool        bAttrModified;
503*cdf0e10cSrcweir 
504*cdf0e10cSrcweir     void        Init();
505*cdf0e10cSrcweir     DECL_LINK( AutoClickHdl, CheckBox * );
506*cdf0e10cSrcweir 
507*cdf0e10cSrcweir };
508*cdf0e10cSrcweir #endif //PRODUCT
509*cdf0e10cSrcweir #endif
510