xref: /trunk/main/sw/source/ui/inc/convert.hxx (revision cdf0e10c)
1 /*************************************************************************
2  *
3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4  *
5  * Copyright 2000, 2010 Oracle and/or its affiliates.
6  *
7  * OpenOffice.org - a multi-platform office productivity suite
8  *
9  * This file is part of OpenOffice.org.
10  *
11  * OpenOffice.org is free software: you can redistribute it and/or modify
12  * it under the terms of the GNU Lesser General Public License version 3
13  * only, as published by the Free Software Foundation.
14  *
15  * OpenOffice.org is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18  * GNU Lesser General Public License version 3 for more details
19  * (a copy is included in the LICENSE file that accompanied this code).
20  *
21  * You should have received a copy of the GNU Lesser General Public License
22  * version 3 along with OpenOffice.org.  If not, see
23  * <http://www.openoffice.org/license.html>
24  * for a copy of the LGPLv3 License.
25  *
26  ************************************************************************/
27 #ifndef _SW_CONVERT_HXX
28 #define _SW_CONVERT_HXX
29 
30 #include <vcl/fixed.hxx>
31 #ifndef _BUTTON_HXX //autogen
32 #include <vcl/button.hxx>
33 #endif
34 #include <vcl/edit.hxx>
35 #include <sfx2/basedlgs.hxx>
36 #include <textcontrolcombo.hxx>
37 
38 class SwTableAutoFmt;
39 class SwView;
40 class SwWrtShell;
41 class NumericField;
42 struct SwInsertTableOptions;
43 
44 class SwConvertTableDlg: public SfxModalDialog
45 {
46 	RadioButton		aTabBtn;
47 	RadioButton		aSemiBtn;
48 	RadioButton		aParaBtn;
49 	RadioButton		aOtherBtn;
50 	Edit 			aOtherEd;
51 	CheckBox		aKeepColumn;
52     FixedLine       aDelimFL;
53 
54 	CheckBox		aHeaderCB;
55 	CheckBox		aRepeatHeaderCB;
56 
57     FixedText       aRepeatHeaderFT;    // "dummy" to build before and after FT
58     FixedText           aRepeatHeaderBeforeFT;
59     NumericField        aRepeatHeaderNF;
60     FixedText           aRepeatHeaderAfterFT;
61     TextControlCombo    aRepeatHeaderCombo;
62 
63     FixedLine       aOptionsFL;
64     CheckBox        aDontSplitCB;
65 	CheckBox		aBorderCB;
66     PushButton      aAutoFmtBtn;
67 
68 	OKButton		aOkBtn;
69 	CancelButton	aCancelBtn;
70 	HelpButton		aHelpBtn;
71 
72 	String			sConvertTextTable;
73 	SwTableAutoFmt*	pTAutoFmt;
74 	SwWrtShell*		pShell;
75 
76 	DECL_LINK( AutoFmtHdl, PushButton* );
77 	DECL_LINK( BtnHdl, Button* );
78 	DECL_LINK( CheckBoxHdl, CheckBox *pCB = 0 );
79 	DECL_LINK( ReapeatHeaderCheckBoxHdl, void* p = 0 );
80 
81 public:
82 	SwConvertTableDlg( SwView& rView, bool bToTable );
83 	~SwConvertTableDlg();
84 
85     void GetValues( sal_Unicode& rDelim,
86 					SwInsertTableOptions& rInsTblOpts,
87 					SwTableAutoFmt *& prTAFmt );
88 };
89 
90 
91 #endif
92