xref: /aoo41x/main/sw/source/ui/inc/break.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 _BREAK_HXX
24 #define _BREAK_HXX
25 
26 #include <svx/stddlg.hxx>
27 
28 #ifndef _BUTTON_HXX //autogen
29 #include <vcl/button.hxx>
30 #endif
31 
32 #ifndef _FIXED_HXX //autogen
33 #include <vcl/fixed.hxx>
34 #endif
35 
36 #ifndef _LSTBOX_HXX //autogen
37 #include <vcl/lstbox.hxx>
38 #endif
39 
40 #ifndef _FIELD_HXX //autogen
41 #include <vcl/field.hxx>
42 #endif
43 
44 class SwWrtShell;
45 
46 class SwBreakDlg: public SvxStandardDialog
47 {
48 	SwWrtShell	   &rSh;
49 	FixedLine       aBreakFL;
50 	RadioButton		aLineBtn;
51 	RadioButton		aColumnBtn;
52 	RadioButton		aPageBtn;
53 	FixedText		aPageCollText;
54 	ListBox			aPageCollBox;
55 	CheckBox		aPageNumBox;
56 	NumericField	aPageNumEdit;
57 
58 	OKButton		aOkBtn;
59 	CancelButton	aCancelBtn;
60 	HelpButton		aHelpBtn;
61 
62     String          aTemplate;
63     sal_uInt16          nKind;
64     sal_uInt16          nPgNum;
65 
66 	sal_Bool 			bHtmlMode;
67 
68 	DECL_LINK( ClickHdl, void * );
69 	DECL_LINK( PageNumHdl, CheckBox * );
70 	DECL_LINK( PageNumModifyHdl, Edit * );
71 	DECL_LINK( OkHdl, Button * );
72 
73 	void CheckEnable();
74 
75 protected:
76 	virtual void Apply();
77 
78 public:
79 	SwBreakDlg( Window *pParent, SwWrtShell &rSh );
80 	~SwBreakDlg();
81 
GetTemplateName()82     String  GetTemplateName() { return aTemplate; }
GetKind()83     sal_uInt16  GetKind() { return nKind; }
GetPageNumber()84     sal_uInt16  GetPageNumber() { return nPgNum; }
85 };
86 
87 #endif
88 
89