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