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