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/.
12 #include <vcl/weld.hxx>
14 #include "viewfunc.hxx"
19 #define MAX_DATAFORM_COLS 32
20 #define MAX_DATAFORM_ROWS 32000
22 class ScDataFormDlg
: public weld::GenericDialogController
27 ScTabViewShell
* pTabViewShell
;
29 sal_uInt16 aColLength
;
37 std::unique_ptr
<weld::Button
> m_xBtnNew
;
38 std::unique_ptr
<weld::Button
> m_xBtnDelete
;
39 std::unique_ptr
<weld::Button
> m_xBtnRestore
;
40 std::unique_ptr
<weld::Button
> m_xBtnPrev
;
41 std::unique_ptr
<weld::Button
> m_xBtnNext
;
42 std::unique_ptr
<weld::Button
> m_xBtnClose
;
43 std::unique_ptr
<weld::ScrolledWindow
> m_xSlider
;
44 std::unique_ptr
<weld::Container
> m_xGrid
;
45 std::unique_ptr
<weld::Label
> m_xFixedText
;
46 std::vector
<std::unique_ptr
<ScDataFormFragment
>> m_aEntries
;
49 ScDataFormDlg(weld::Window
* pParent
, ScTabViewShell
* pTabViewShell
);
50 virtual ~ScDataFormDlg() override
;
55 void SetButtonState();
58 DECL_LINK(Impl_NewHdl
, weld::Button
&, void);
59 DECL_LINK(Impl_PrevHdl
, weld::Button
&, void);
60 DECL_LINK(Impl_NextHdl
, weld::Button
&, void);
62 DECL_LINK(Impl_RestoreHdl
, weld::Button
&, void);
63 DECL_LINK(Impl_DeleteHdl
, weld::Button
&, void);
64 DECL_LINK(Impl_CloseHdl
, weld::Button
&, void);
66 DECL_LINK(Impl_ScrollHdl
, weld::ScrolledWindow
&, void);
67 DECL_LINK(Impl_DataModifyHdl
, weld::Entry
&, void);
70 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */