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/.
10 #ifndef INCLUDED_SC_SOURCE_UI_INC_DATAFDLG_HXX
11 #define INCLUDED_SC_SOURCE_UI_INC_DATAFDLG_HXX
13 #include <vcl/dialog.hxx>
14 #include <vcl/button.hxx>
15 #include <vcl/fixed.hxx>
19 #include "tabvwsh.hxx"
20 #include <sfx2/bindings.hxx>
21 #include <sfx2/dispatch.hxx>
23 #define MAX_DATAFORM_COLS 256
24 #define MAX_DATAFORM_ROWS 32000
26 class ScDataFormDlg
: public ModalDialog
30 VclPtr
<PushButton
> m_pBtnNew
;
31 VclPtr
<PushButton
> m_pBtnDelete
;
32 VclPtr
<PushButton
> m_pBtnRestore
;
33 VclPtr
<PushButton
> m_pBtnPrev
;
34 VclPtr
<PushButton
> m_pBtnNext
;
35 VclPtr
<PushButton
> m_pBtnClose
;
36 VclPtr
<ScrollBar
> m_pSlider
;
37 VclPtr
<VclGrid
> m_pGrid
;
38 VclPtr
<FixedText
> m_pFixedText
;
41 ScTabViewShell
* pTabViewShell
;
43 sal_uInt16 aColLength
;
52 std::vector
<VclPtr
<FixedText
> > maFixedTexts
;
53 std::vector
<VclPtr
<Edit
> > maEdits
;
56 ScDataFormDlg( vcl::Window
* pParent
, ScTabViewShell
* pTabViewShell
);
57 virtual ~ScDataFormDlg();
58 virtual void dispose() SAL_OVERRIDE
;
60 void FillCtrls(SCROW nCurrentRow
);
63 void SetButtonState();
66 DECL_LINK(Impl_NewHdl
, void *);
67 DECL_LINK(Impl_PrevHdl
, void *);
68 DECL_LINK(Impl_NextHdl
, void *);
70 DECL_LINK(Impl_RestoreHdl
, void *);
71 DECL_LINK(Impl_DeleteHdl
, void *);
72 DECL_LINK(Impl_CloseHdl
, void *);
74 DECL_LINK(Impl_ScrollHdl
, void *);
75 DECL_LINK( Impl_DataModifyHdl
, Edit
* );
77 #endif // INCLUDED_SC_SOURCE_UI_INC_DATAFDLG_HXX
79 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */