LibreOffice Module sc (master)  1
datafdlg.hxx
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3  * This file is part of the LibreOffice project.
4  *
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/.
8  */
9 
10 #ifndef INCLUDED_SC_SOURCE_UI_INC_DATAFDLG_HXX
11 #define INCLUDED_SC_SOURCE_UI_INC_DATAFDLG_HXX
12 
13 #include <vcl/weld.hxx>
14 #include <types.hxx>
15 #include "viewfunc.hxx"
16 
17 class ScTabViewShell;
18 class ScDocument;
19 
20 #define MAX_DATAFORM_COLS 256
21 #define MAX_DATAFORM_ROWS 32000
22 
24 {
25 private:
26  OUString sNewRecord;
27 
30  sal_uInt16 aColLength;
37 
38  std::unique_ptr<weld::Button> m_xBtnNew;
39  std::unique_ptr<weld::Button> m_xBtnDelete;
40  std::unique_ptr<weld::Button> m_xBtnRestore;
41  std::unique_ptr<weld::Button> m_xBtnPrev;
42  std::unique_ptr<weld::Button> m_xBtnNext;
43  std::unique_ptr<weld::Button> m_xBtnClose;
44  std::unique_ptr<weld::ScrolledWindow> m_xSlider;
45  std::unique_ptr<weld::Container> m_xGrid;
46  std::unique_ptr<weld::Label> m_xFixedText;
47  std::vector<std::unique_ptr<ScDataFormFragment>> m_aEntries;
48 
49 public:
50  ScDataFormDlg(weld::Window* pParent, ScTabViewShell* pTabViewShell);
51  virtual ~ScDataFormDlg() override;
52 
53  void FillCtrls();
54 private:
55 
56  void SetButtonState();
57 
58  // Handler:
59  DECL_LINK(Impl_NewHdl, weld::Button&, void);
60  DECL_LINK(Impl_PrevHdl, weld::Button&, void);
61  DECL_LINK(Impl_NextHdl, weld::Button&, void);
62 
63  DECL_LINK(Impl_RestoreHdl, weld::Button&, void);
64  DECL_LINK(Impl_DeleteHdl, weld::Button&, void);
65  DECL_LINK(Impl_CloseHdl, weld::Button&, void);
66 
67  DECL_LINK(Impl_ScrollHdl, weld::ScrolledWindow&, void);
68  DECL_LINK(Impl_DataModifyHdl, weld::Entry&, void);
69 };
70 #endif // INCLUDED_SC_SOURCE_UI_INC_DATAFDLG_HXX
71 
72 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
SCROW nEndRow
Definition: datafdlg.hxx:35
std::unique_ptr< weld::Label > m_xFixedText
Definition: datafdlg.hxx:46
SCCOL nStartCol
Definition: datafdlg.hxx:32
std::unique_ptr< weld::ScrolledWindow > m_xSlider
Definition: datafdlg.hxx:44
SCROW nStartRow
Definition: datafdlg.hxx:34
std::unique_ptr< weld::Button > m_xBtnDelete
Definition: datafdlg.hxx:39
std::unique_ptr< weld::Button > m_xBtnRestore
Definition: datafdlg.hxx:40
void SetButtonState()
Definition: datafdlg.cxx:324
OUString sNewRecord
Definition: datafdlg.hxx:26
void FillCtrls()
Definition: datafdlg.cxx:198
SCROW nCurrentRow
Definition: datafdlg.hxx:31
virtual ~ScDataFormDlg() override
Definition: datafdlg.cxx:194
sal_Int16 SCCOL
Definition: types.hxx:22
std::unique_ptr< weld::Button > m_xBtnNew
Definition: datafdlg.hxx:38
SCCOL nEndCol
Definition: datafdlg.hxx:33
DECL_LINK(Impl_NewHdl, weld::Button &, void)
std::unique_ptr< weld::Button > m_xBtnPrev
Definition: datafdlg.hxx:41
sal_uInt16 aColLength
Definition: datafdlg.hxx:30
ScTabViewShell * pTabViewShell
Definition: datafdlg.hxx:28
std::unique_ptr< weld::Button > m_xBtnNext
Definition: datafdlg.hxx:42
ScDocument * pDoc
Definition: datafdlg.hxx:29
std::unique_ptr< weld::Button > m_xBtnClose
Definition: datafdlg.hxx:43
sal_Int32 SCROW
Definition: types.hxx:18
std::vector< std::unique_ptr< ScDataFormFragment > > m_aEntries
Definition: datafdlg.hxx:47
ScDataFormDlg(weld::Window *pParent, ScTabViewShell *pTabViewShell)
Definition: datafdlg.cxx:22
std::unique_ptr< weld::Container > m_xGrid
Definition: datafdlg.hxx:45
sal_Int16 SCTAB
Definition: types.hxx:23