LibreOffice Module sc (master)
1
sc
source
ui
inc
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
16
class
ScTabViewShell
;
17
class
ScDocument
;
18
19
#define MAX_DATAFORM_COLS 256
20
#define MAX_DATAFORM_ROWS 32000
21
22
class
ScDataFormDlg
:
public
weld::GenericDialogController
23
{
24
private
:
25
OUString
sNewRecord
;
26
27
ScTabViewShell
*
pTabViewShell
;
28
ScDocument
*
pDoc
;
29
sal_uInt16
aColLength
;
30
SCROW
nCurrentRow
;
31
SCCOL
nStartCol
;
32
SCCOL
nEndCol
;
33
SCROW
nStartRow
;
34
SCROW
nEndRow
;
35
SCTAB
nTab
;
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
48
public
:
49
ScDataFormDlg
(
weld::Window
* pParent,
ScTabViewShell
*
pTabViewShell
);
50
virtual
~ScDataFormDlg
()
override
;
51
52
void
FillCtrls
();
53
private
:
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: */
ScDataFormDlg
Definition:
datafdlg.hxx:23
ScDataFormDlg::nStartCol
SCCOL nStartCol
Definition:
datafdlg.hxx:31
ScDataFormDlg::m_aEntries
std::vector< std::unique_ptr< ScDataFormFragment > > m_aEntries
Definition:
datafdlg.hxx:46
ScDataFormDlg::m_xBtnRestore
std::unique_ptr< weld::Button > m_xBtnRestore
Definition:
datafdlg.hxx:39
ScDataFormDlg::DECL_LINK
DECL_LINK(Impl_ScrollHdl, weld::ScrolledWindow &, void)
ScDataFormDlg::aColLength
sal_uInt16 aColLength
Definition:
datafdlg.hxx:29
ScDataFormDlg::nEndRow
SCROW nEndRow
Definition:
datafdlg.hxx:34
ScDataFormDlg::m_xFixedText
std::unique_ptr< weld::Label > m_xFixedText
Definition:
datafdlg.hxx:45
ScDataFormDlg::~ScDataFormDlg
virtual ~ScDataFormDlg() override
Definition:
datafdlg.cxx:190
ScDataFormDlg::nCurrentRow
SCROW nCurrentRow
Definition:
datafdlg.hxx:30
ScDataFormDlg::m_xBtnClose
std::unique_ptr< weld::Button > m_xBtnClose
Definition:
datafdlg.hxx:42
ScDataFormDlg::FillCtrls
void FillCtrls()
Definition:
datafdlg.cxx:194
ScDataFormDlg::DECL_LINK
DECL_LINK(Impl_DataModifyHdl, weld::Entry &, void)
ScDataFormDlg::pTabViewShell
ScTabViewShell * pTabViewShell
Definition:
datafdlg.hxx:27
ScDataFormDlg::pDoc
ScDocument * pDoc
Definition:
datafdlg.hxx:28
ScDataFormDlg::SetButtonState
void SetButtonState()
Definition:
datafdlg.cxx:320
ScDataFormDlg::m_xSlider
std::unique_ptr< weld::ScrolledWindow > m_xSlider
Definition:
datafdlg.hxx:43
ScDataFormDlg::m_xGrid
std::unique_ptr< weld::Container > m_xGrid
Definition:
datafdlg.hxx:44
ScDataFormDlg::sNewRecord
OUString sNewRecord
Definition:
datafdlg.hxx:25
ScDataFormDlg::ScDataFormDlg
ScDataFormDlg(weld::Window *pParent, ScTabViewShell *pTabViewShell)
Definition:
datafdlg.cxx:20
ScDataFormDlg::m_xBtnPrev
std::unique_ptr< weld::Button > m_xBtnPrev
Definition:
datafdlg.hxx:40
ScDataFormDlg::nStartRow
SCROW nStartRow
Definition:
datafdlg.hxx:33
ScDataFormDlg::DECL_LINK
DECL_LINK(Impl_RestoreHdl, weld::Button &, void)
ScDataFormDlg::DECL_LINK
DECL_LINK(Impl_CloseHdl, weld::Button &, void)
ScDataFormDlg::m_xBtnDelete
std::unique_ptr< weld::Button > m_xBtnDelete
Definition:
datafdlg.hxx:38
ScDataFormDlg::m_xBtnNext
std::unique_ptr< weld::Button > m_xBtnNext
Definition:
datafdlg.hxx:41
ScDataFormDlg::DECL_LINK
DECL_LINK(Impl_NewHdl, weld::Button &, void)
ScDataFormDlg::m_xBtnNew
std::unique_ptr< weld::Button > m_xBtnNew
Definition:
datafdlg.hxx:37
ScDataFormDlg::DECL_LINK
DECL_LINK(Impl_PrevHdl, weld::Button &, void)
ScDataFormDlg::nTab
SCTAB nTab
Definition:
datafdlg.hxx:35
ScDataFormDlg::DECL_LINK
DECL_LINK(Impl_NextHdl, weld::Button &, void)
ScDataFormDlg::nEndCol
SCCOL nEndCol
Definition:
datafdlg.hxx:32
ScDataFormDlg::DECL_LINK
DECL_LINK(Impl_DeleteHdl, weld::Button &, void)
ScDocument
Definition:
document.hxx:323
ScTabViewShell
Definition:
tabvwsh.hxx:95
weld::Button
weld::Entry
weld::GenericDialogController
weld::ScrolledWindow
weld::Window
SCTAB
sal_Int16 SCTAB
Definition:
types.hxx:22
SCCOL
sal_Int16 SCCOL
Definition:
types.hxx:21
SCROW
sal_Int32 SCROW
Definition:
types.hxx:17
viewfunc.hxx
weld.hxx
Generated on Sun Jul 30 2023 04:29:20 for LibreOffice Module sc (master) by
1.9.3