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#pragma once
11
12#include <vcl/weld.hxx>
13#include <types.hxx>
14#include "viewfunc.hxx"
15
16class ScTabViewShell;
17class ScDocument;
18
19#define MAX_DATAFORM_COLS 256
20#define MAX_DATAFORM_ROWS 32000
21
23{
24private:
25 OUString sNewRecord;
26
29 sal_uInt16 aColLength;
36
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;
47
48public:
50 virtual ~ScDataFormDlg() override;
51
52 void FillCtrls();
53private:
54
55 void SetButtonState();
56
57 // Handler:
58 DECL_LINK(Impl_NewHdl, weld::Button&, void);
59 DECL_LINK(Impl_PrevHdl, weld::Button&, void);
60 DECL_LINK(Impl_NextHdl, weld::Button&, void);
61
62 DECL_LINK(Impl_RestoreHdl, weld::Button&, void);
63 DECL_LINK(Impl_DeleteHdl, weld::Button&, void);
64 DECL_LINK(Impl_CloseHdl, weld::Button&, void);
65
66 DECL_LINK(Impl_ScrollHdl, weld::ScrolledWindow&, void);
67 DECL_LINK(Impl_DataModifyHdl, weld::Entry&, void);
68};
69
70/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
SCCOL nStartCol
Definition: datafdlg.hxx:31
std::vector< std::unique_ptr< ScDataFormFragment > > m_aEntries
Definition: datafdlg.hxx:46
std::unique_ptr< weld::Button > m_xBtnRestore
Definition: datafdlg.hxx:39
DECL_LINK(Impl_ScrollHdl, weld::ScrolledWindow &, void)
sal_uInt16 aColLength
Definition: datafdlg.hxx:29
SCROW nEndRow
Definition: datafdlg.hxx:34
std::unique_ptr< weld::Label > m_xFixedText
Definition: datafdlg.hxx:45
virtual ~ScDataFormDlg() override
Definition: datafdlg.cxx:190
SCROW nCurrentRow
Definition: datafdlg.hxx:30
std::unique_ptr< weld::Button > m_xBtnClose
Definition: datafdlg.hxx:42
void FillCtrls()
Definition: datafdlg.cxx:194
DECL_LINK(Impl_DataModifyHdl, weld::Entry &, void)
ScTabViewShell * pTabViewShell
Definition: datafdlg.hxx:27
ScDocument * pDoc
Definition: datafdlg.hxx:28
void SetButtonState()
Definition: datafdlg.cxx:320
std::unique_ptr< weld::ScrolledWindow > m_xSlider
Definition: datafdlg.hxx:43
std::unique_ptr< weld::Container > m_xGrid
Definition: datafdlg.hxx:44
OUString sNewRecord
Definition: datafdlg.hxx:25
ScDataFormDlg(weld::Window *pParent, ScTabViewShell *pTabViewShell)
Definition: datafdlg.cxx:20
std::unique_ptr< weld::Button > m_xBtnPrev
Definition: datafdlg.hxx:40
SCROW nStartRow
Definition: datafdlg.hxx:33
DECL_LINK(Impl_RestoreHdl, weld::Button &, void)
DECL_LINK(Impl_CloseHdl, weld::Button &, void)
std::unique_ptr< weld::Button > m_xBtnDelete
Definition: datafdlg.hxx:38
std::unique_ptr< weld::Button > m_xBtnNext
Definition: datafdlg.hxx:41
DECL_LINK(Impl_NewHdl, weld::Button &, void)
std::unique_ptr< weld::Button > m_xBtnNew
Definition: datafdlg.hxx:37
DECL_LINK(Impl_PrevHdl, weld::Button &, void)
DECL_LINK(Impl_NextHdl, weld::Button &, void)
SCCOL nEndCol
Definition: datafdlg.hxx:32
DECL_LINK(Impl_DeleteHdl, weld::Button &, void)
sal_Int16 SCTAB
Definition: types.hxx:22
sal_Int16 SCCOL
Definition: types.hxx:21
sal_Int32 SCROW
Definition: types.hxx:17