1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
22 #include <vcl/button.hxx>
23 #include <vcl/field.hxx>
24 #include <vcl/edit.hxx>
25 #include <vcl/layout.hxx>
26 #include <sfx2/basedlgs.hxx>
27 #include <actctrl.hxx>
32 struct SwInsertTableOptions
;
35 class SwInsTableDlg
: public SfxModalDialog
37 TableNameEdit
* m_pNameEdit
;
39 NumericField
* m_pColNF
;
40 NumericField
* m_pRowNF
;
42 CheckBox
* m_pHeaderCB
;
43 CheckBox
* m_pRepeatHeaderCB
;
44 NumericField
* m_pRepeatHeaderNF
;
45 VclContainer
* m_pRepeatGroup
;
47 CheckBox
* m_pDontSplitCB
;
48 CheckBox
* m_pBorderCB
;
50 PushButton
* m_pInsertBtn
;
51 PushButton
* m_pAutoFmtBtn
;
54 SwTableAutoFmt
* pTAutoFmt
;
55 sal_Int64 nEnteredValRepeatHeaderNF
;
57 DECL_LINK( ModifyName
, Edit
* );
58 DECL_LINK( ModifyRowCol
, NumericField
* );
59 DECL_LINK( AutoFmtHdl
, PushButton
* );
60 DECL_LINK(OKHdl
, void*);
61 DECL_LINK(CheckBoxHdl
, void * = 0);
62 DECL_LINK( ReapeatHeaderCheckBoxHdl
, void* p
= 0 );
63 DECL_LINK( ModifyRepeatHeaderNF_Hdl
, void* p
= 0 );
66 SwInsTableDlg( SwView
& rView
);
69 void GetValues( String
& rName
, sal_uInt16
& rRow
, sal_uInt16
& rCol
,
70 SwInsertTableOptions
& rInsTblOpts
, String
& rTableAutoFmtName
,
71 SwTableAutoFmt
*& prTAFmt
);
76 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */