xref: /aoo4110/main/sw/source/ui/inc/convert.hxx (revision b1cdbd2c)
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 _SW_CONVERT_HXX
24 #define _SW_CONVERT_HXX
25 
26 #include <vcl/fixed.hxx>
27 #ifndef _BUTTON_HXX //autogen
28 #include <vcl/button.hxx>
29 #endif
30 #include <vcl/edit.hxx>
31 #include <sfx2/basedlgs.hxx>
32 #include <textcontrolcombo.hxx>
33 
34 class SwTableAutoFmt;
35 class SwView;
36 class SwWrtShell;
37 class NumericField;
38 struct SwInsertTableOptions;
39 
40 class SwConvertTableDlg: public SfxModalDialog
41 {
42 	RadioButton		aTabBtn;
43 	RadioButton		aSemiBtn;
44 	RadioButton		aParaBtn;
45 	RadioButton		aOtherBtn;
46 	Edit 			aOtherEd;
47 	CheckBox		aKeepColumn;
48     FixedLine       aDelimFL;
49 
50 	CheckBox		aHeaderCB;
51 	CheckBox		aRepeatHeaderCB;
52 
53     FixedText       aRepeatHeaderFT;    // "dummy" to build before and after FT
54     FixedText           aRepeatHeaderBeforeFT;
55     NumericField        aRepeatHeaderNF;
56     FixedText           aRepeatHeaderAfterFT;
57     TextControlCombo    aRepeatHeaderCombo;
58 
59     FixedLine       aOptionsFL;
60     CheckBox        aDontSplitCB;
61 	CheckBox		aBorderCB;
62     PushButton      aAutoFmtBtn;
63 
64 	OKButton		aOkBtn;
65 	CancelButton	aCancelBtn;
66 	HelpButton		aHelpBtn;
67 
68 	String			sConvertTextTable;
69 	SwTableAutoFmt*	pTAutoFmt;
70 	SwWrtShell*		pShell;
71 
72 	DECL_LINK( AutoFmtHdl, PushButton* );
73 	DECL_LINK( BtnHdl, Button* );
74 	DECL_LINK( CheckBoxHdl, CheckBox *pCB = 0 );
75 	DECL_LINK( ReapeatHeaderCheckBoxHdl, void* p = 0 );
76 
77 public:
78 	SwConvertTableDlg( SwView& rView, bool bToTable );
79 	~SwConvertTableDlg();
80 
81     void GetValues( sal_Unicode& rDelim,
82 					SwInsertTableOptions& rInsTblOpts,
83 					SwTableAutoFmt *& prTAFmt );
84 };
85 
86 
87 #endif
88