xref: /aoo41x/main/sw/source/ui/inc/drpcps.hxx (revision 1d2dbeb0)
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 _DRPCPS_HXX
24 #define _DRPCPS_HXX
25 
26 #include <sfx2/basedlgs.hxx>
27 #include <sfx2/tabdlg.hxx>
28 
29 #ifndef _BUTTON_HXX //autogen
30 #include <vcl/button.hxx>
31 #endif
32 
33 #ifndef _FIXED_HXX //autogen
34 #include <vcl/fixed.hxx>
35 #endif
36 
37 #ifndef _FIELD_HXX //autogen
38 #include <vcl/field.hxx>
39 #endif
40 
41 #ifndef _EDIT_HXX //autogen
42 #include <vcl/edit.hxx>
43 #endif
44 
45 #ifndef _LSTBOX_HXX //autogen
46 #include <vcl/lstbox.hxx>
47 #endif
48 
49 class SwWrtShell;
50 
51 // class SwDropCapsDlg ******************************************************
52 
53 class SwDropCapsDlg : public SfxSingleTabDialog
54 {
55 
56 public:
57 
58 	 SwDropCapsDlg(Window *pParent, const SfxItemSet &rSet );
59 	~SwDropCapsDlg();
60 
61 };
62 
63 class SwDropCapsPict;
64 
65 // class SwDropCapsPage *****************************************************
66 
67 class SwDropCapsPage : public SfxTabPage
68 {
69 friend class SwDropCapsPict;
70 
71 	FixedLine       aSettingsFL;
72 	CheckBox  		aDropCapsBox;
73 	CheckBox  		aWholeWordCB;
74 	FixedText		aSwitchText;
75 	NumericField  	aDropCapsField;
76 	FixedText 		aLinesText;
77 	NumericField 	aLinesField;
78 	FixedText 		aDistanceText;
79 	MetricField 	aDistanceField;
80 
81 	FixedLine       aContentFL;
82 	FixedText      	aTextText;
83 	Edit           	aTextEdit;
84 	FixedText      	aTemplateText;
85 	ListBox        	aTemplateBox;
86 
87 	SwDropCapsPict 	*pPict;
88 
89 	sal_Bool 			bModified;
90 	sal_Bool 			bFormat;
91 	sal_Bool			bHtmlMode;
92 
93 	SwWrtShell &rSh;
94 
95 	 SwDropCapsPage(Window *pParent, const SfxItemSet &rSet);
96 	~SwDropCapsPage();
97 
98 	virtual int     DeactivatePage(SfxItemSet *pSet);
99 	void 	FillSet( SfxItemSet &rSet );
100 
101 	DECL_LINK( ClickHdl, Button * );
102 	DECL_LINK( ModifyHdl, Edit * );
103 	DECL_LINK( SelectHdl, ListBox * );
104 	DECL_LINK( WholeWordHdl, CheckBox * );
105 
106     using SfxTabPage::ActivatePage;
107     using SfxTabPage::DeactivatePage;
108 
109 public:
110 
111 	static SfxTabPage *Create(Window *pParent, const SfxItemSet &rSet);
112 	static sal_uInt16* GetRanges();
113 
114 	virtual sal_Bool FillItemSet(      SfxItemSet &rSet);
115 	virtual void Reset      (const SfxItemSet &rSet);
116 
SetFormat(sal_Bool bSet)117 	void 	SetFormat(sal_Bool bSet){bFormat = bSet;}
118 };
119 
120 #endif
121 
122