xref: /trunk/main/sw/source/ui/inc/instable.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 _INSTABLE_HXX
24 #define _INSTABLE_HXX
25 
26 #ifndef _BUTTON_HXX //autogen
27 #include <vcl/button.hxx>
28 #endif
29 #ifndef _FIELD_HXX //autogen
30 #include <vcl/field.hxx>
31 #endif
32 #ifndef _FIXED_HXX //autogen
33 #include <vcl/fixed.hxx>
34 #endif
35 #ifndef _EDIT_HXX //autogen
36 #include <vcl/edit.hxx>
37 #endif
38 #include <sfx2/basedlgs.hxx>
39 #include <actctrl.hxx>
40 #include <textcontrolcombo.hxx>
41 
42 class SwWrtShell;
43 class SwTableAutoFmt;
44 class SwView;
45 struct SwInsertTableOptions;
46 
47 
48 class SwInsTableDlg : public SfxModalDialog
49 {
50     FixedText       aNameFT;
51     TableNameEdit   aNameEdit;
52 
53     FixedLine       aFL;
54     FixedText       aColLbl;
55 	NumericField 	aColEdit;
56 	FixedText   	aRowLbl;
57 	NumericField 	aRowEdit;
58 
59     FixedLine       aOptionsFL;
60     CheckBox        aHeaderCB;
61 	CheckBox		aRepeatHeaderCB;
62 	FixedText		aRepeatHeaderFT;	// "dummy" to build before and after FT
63 	FixedText		aRepeatHeaderBeforeFT;
64 	NumericField	aRepeatHeaderNF;
65 	FixedText		aRepeatHeaderAfterFT;
66 	TextControlCombo	aRepeatHeaderCombo;
67 
68 	CheckBox		aDontSplitCB;
69 	CheckBox		aBorderCB;
70 
71     OKButton        aOkBtn;
72 	CancelButton 	aCancelBtn;
73 	HelpButton 		aHelpBtn;
74 	PushButton 		aAutoFmtBtn;
75 
76 	SwWrtShell*		pShell;
77 	SwTableAutoFmt*	pTAutoFmt;
78     sal_Int64       nEnteredValRepeatHeaderNF;
79 
80 	DECL_LINK( ModifyName, Edit * );
81 	DECL_LINK( ModifyRowCol, NumericField * );
82 	DECL_LINK( AutoFmtHdl, PushButton* );
83 	DECL_LINK( CheckBoxHdl, CheckBox *pCB = 0 );
84 	DECL_LINK( ReapeatHeaderCheckBoxHdl, void* p = 0 );
85 	DECL_LINK( ModifyRepeatHeaderNF_Hdl, void* p = 0 );
86 
87 public:
88 	SwInsTableDlg( SwView& rView );
89 	~SwInsTableDlg();
90 
91 	void GetValues( String& rName, sal_uInt16& rRow, sal_uInt16& rCol,
92                     SwInsertTableOptions& rInsTblOpts, String& rTableAutoFmtName,
93 					SwTableAutoFmt *& prTAFmt );
94 };
95 
96 #endif
97