LibreOffice Module sc (master)
1
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
sc
source
ui
inc
StatisticsInputOutputDialog.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
11
#ifndef INCLUDED_SC_SOURCE_UI_INC_STATISTICSINPUTOUTPUTDIALOG_HXX
12
#define INCLUDED_SC_SOURCE_UI_INC_STATISTICSINPUTOUTPUTDIALOG_HXX
13
14
#include <
address.hxx
>
15
#include "
anyrefdg.hxx
"
16
#include "
viewdata.hxx
"
17
18
class
ScStatisticsInputOutputDialog
:
public
ScAnyRefDlgController
19
{
20
public
:
21
enum
GroupedBy
{
22
BY_COLUMN
,
23
BY_ROW
24
};
25
26
ScStatisticsInputOutputDialog
(
27
SfxBindings
* pB,
SfxChildWindow
* pCW,
28
weld::Window
* pParent,
ScViewData
& rViewData,
29
const
OUString& rUIXMLDescription,
30
const
OString& rID);
31
32
virtual
~ScStatisticsInputOutputDialog
()
override
;
33
34
virtual
void
SetReference
(
const
ScRange
& rRef,
ScDocument
& rDoc )
override
;
35
virtual
void
SetActive
()
override
;
36
37
protected
:
38
void
CalculateInputAndWriteToOutput
();
39
40
virtual
ScRange
ApplyOutput
(
ScDocShell
* pDocShell) = 0;
41
virtual
const
char
*
GetUndoNameId
() = 0;
42
virtual
bool
InputRangesValid
();
43
void
ValidateDialogInput
();
44
45
// Widgets
46
std::unique_ptr<weld::Label>
mxInputRangeLabel
;
47
std::unique_ptr<formula::RefEdit>
mxInputRangeEdit
;
48
std::unique_ptr<formula::RefButton>
mxInputRangeButton
;
49
50
std::unique_ptr<weld::Label>
mxOutputRangeLabel
;
51
std::unique_ptr<formula::RefEdit>
mxOutputRangeEdit
;
52
std::unique_ptr<formula::RefButton>
mxOutputRangeButton
;
53
54
std::unique_ptr<weld::RadioButton>
mxGroupByColumnsRadio
;
55
std::unique_ptr<weld::RadioButton>
mxGroupByRowsRadio
;
56
57
// Data
58
ScViewData
&
mViewData
;
59
ScDocument
&
mDocument
;
60
61
ScRange
mInputRange
;
62
ScAddress::Details
mAddressDetails
;
63
ScAddress
mOutputAddress
;
64
GroupedBy
mGroupedBy
;
65
66
static
ScRangeList
MakeColumnRangeList
(
SCTAB
aTab,
ScAddress
const
& aStart,
ScAddress
const
& aEnd);
67
static
ScRangeList
MakeRowRangeList
(
SCTAB
aTab,
ScAddress
const
& aStart,
ScAddress
const
& aEnd);
68
69
private
:
70
// Widgets
71
std::unique_ptr<weld::Button>
mxButtonOk
;
72
std::unique_ptr<weld::Button>
mxButtonCancel
;
73
74
formula::RefEdit
*
mpActiveEdit
;
75
ScAddress
mCurrentAddress
;
76
bool
mDialogLostFocus
;
77
78
void
Init
();
79
void
GetRangeFromSelection
();
80
81
DECL_LINK
( GroupByChanged,
weld::ToggleButton
&,
void
);
82
DECL_LINK
( ButtonClicked,
weld::Button
&,
void
);
83
DECL_LINK
( GetEditFocusHandler,
formula::RefEdit
&,
void
);
84
DECL_LINK
( GetButtonFocusHandler,
formula::RefButton
&,
void
);
85
DECL_LINK
( LoseEditFocusHandler,
formula::RefEdit
&,
void
);
86
DECL_LINK
( LoseButtonFocusHandler,
formula::RefButton
&,
void
);
87
DECL_LINK
( RefInputModifyHandler,
formula::RefEdit
&,
void
);
88
};
89
90
91
#endif
92
93
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
ScStatisticsInputOutputDialog::mxInputRangeLabel
std::unique_ptr< weld::Label > mxInputRangeLabel
Definition:
StatisticsInputOutputDialog.hxx:46
ScStatisticsInputOutputDialog::MakeRowRangeList
static ScRangeList MakeRowRangeList(SCTAB aTab, ScAddress const &aStart, ScAddress const &aEnd)
Definition:
StatisticsInputOutputDialog.cxx:35
ScStatisticsInputOutputDialog::mViewData
ScViewData & mViewData
Definition:
StatisticsInputOutputDialog.hxx:58
ScStatisticsInputOutputDialog::BY_COLUMN
Definition:
StatisticsInputOutputDialog.hxx:22
ScStatisticsInputOutputDialog::ScStatisticsInputOutputDialog
ScStatisticsInputOutputDialog(SfxBindings *pB, SfxChildWindow *pCW, weld::Window *pParent, ScViewData &rViewData, const OUString &rUIXMLDescription, const OString &rID)
Definition:
StatisticsInputOutputDialog.cxx:49
ScStatisticsInputOutputDialog::mxOutputRangeLabel
std::unique_ptr< weld::Label > mxOutputRangeLabel
Definition:
StatisticsInputOutputDialog.hxx:50
ScStatisticsInputOutputDialog::mxOutputRangeButton
std::unique_ptr< formula::RefButton > mxOutputRangeButton
Definition:
StatisticsInputOutputDialog.hxx:52
ScAddress::Details
Definition:
address.hxx:211
ScStatisticsInputOutputDialog::mpActiveEdit
formula::RefEdit * mpActiveEdit
Definition:
StatisticsInputOutputDialog.hxx:74
ScStatisticsInputOutputDialog::CalculateInputAndWriteToOutput
void CalculateInputAndWriteToOutput()
Definition:
StatisticsInputOutputDialog.cxx:281
ScStatisticsInputOutputDialog::mDialogLostFocus
bool mDialogLostFocus
Definition:
StatisticsInputOutputDialog.hxx:76
ScRange
Definition:
address.hxx:497
ScStatisticsInputOutputDialog::GetRangeFromSelection
void GetRangeFromSelection()
Definition:
StatisticsInputOutputDialog.cxx:120
ScStatisticsInputOutputDialog::BY_ROW
Definition:
StatisticsInputOutputDialog.hxx:23
ScStatisticsInputOutputDialog::mxButtonCancel
std::unique_ptr< weld::Button > mxButtonCancel
Definition:
StatisticsInputOutputDialog.hxx:72
weld::Window
ScStatisticsInputOutputDialog::mCurrentAddress
ScAddress mCurrentAddress
Definition:
StatisticsInputOutputDialog.hxx:75
ScStatisticsInputOutputDialog::~ScStatisticsInputOutputDialog
virtual ~ScStatisticsInputOutputDialog() override
Definition:
StatisticsInputOutputDialog.cxx:83
weld::Button
viewdata.hxx
ScRangeList
Definition:
rangelst.hxx:32
ScStatisticsInputOutputDialog::mOutputAddress
ScAddress mOutputAddress
Definition:
StatisticsInputOutputDialog.hxx:63
ScStatisticsInputOutputDialog::ValidateDialogInput
void ValidateDialogInput()
Definition:
StatisticsInputOutputDialog.cxx:299
formula::RefButton
ScStatisticsInputOutputDialog::mDocument
ScDocument & mDocument
Definition:
StatisticsInputOutputDialog.hxx:59
address.hxx
ScAnyRefDlgController
Definition:
anyrefdg.hxx:158
ScStatisticsInputOutputDialog::mAddressDetails
ScAddress::Details mAddressDetails
Definition:
StatisticsInputOutputDialog.hxx:62
ScStatisticsInputOutputDialog::mxGroupByRowsRadio
std::unique_ptr< weld::RadioButton > mxGroupByRowsRadio
Definition:
StatisticsInputOutputDialog.hxx:55
ScStatisticsInputOutputDialog::mxInputRangeButton
std::unique_ptr< formula::RefButton > mxInputRangeButton
Definition:
StatisticsInputOutputDialog.hxx:48
SfxBindings
weld::ToggleButton
anyrefdg.hxx
ScStatisticsInputOutputDialog::GroupedBy
GroupedBy
Definition:
StatisticsInputOutputDialog.hxx:21
ScStatisticsInputOutputDialog::Init
void Init()
Definition:
StatisticsInputOutputDialog.cxx:87
ScDocShell
Definition:
docsh.hxx:79
ScStatisticsInputOutputDialog::mGroupedBy
GroupedBy mGroupedBy
Definition:
StatisticsInputOutputDialog.hxx:64
ScAddress
Definition:
address.hxx:194
ScStatisticsInputOutputDialog::mxButtonOk
std::unique_ptr< weld::Button > mxButtonOk
Definition:
StatisticsInputOutputDialog.hxx:71
formula::RefEdit
ScViewData
Definition:
viewdata.hxx:271
ScStatisticsInputOutputDialog::DECL_LINK
DECL_LINK(GroupByChanged, weld::ToggleButton &, void)
ScStatisticsInputOutputDialog
Definition:
StatisticsInputOutputDialog.hxx:18
ScStatisticsInputOutputDialog::InputRangesValid
virtual bool InputRangesValid()
Definition:
StatisticsInputOutputDialog.cxx:294
ScStatisticsInputOutputDialog::mxOutputRangeEdit
std::unique_ptr< formula::RefEdit > mxOutputRangeEdit
Definition:
StatisticsInputOutputDialog.hxx:51
ScStatisticsInputOutputDialog::SetReference
virtual void SetReference(const ScRange &rRef, ScDocument &rDoc) override
Definition:
StatisticsInputOutputDialog.cxx:142
ScStatisticsInputOutputDialog::mxInputRangeEdit
std::unique_ptr< formula::RefEdit > mxInputRangeEdit
Definition:
StatisticsInputOutputDialog.hxx:47
ScStatisticsInputOutputDialog::mInputRange
ScRange mInputRange
Definition:
StatisticsInputOutputDialog.hxx:61
ScStatisticsInputOutputDialog::MakeColumnRangeList
static ScRangeList MakeColumnRangeList(SCTAB aTab, ScAddress const &aStart, ScAddress const &aEnd)
Definition:
StatisticsInputOutputDialog.cxx:21
ScStatisticsInputOutputDialog::mxGroupByColumnsRadio
std::unique_ptr< weld::RadioButton > mxGroupByColumnsRadio
Definition:
StatisticsInputOutputDialog.hxx:54
ScDocument
Definition:
document.hxx:313
ScStatisticsInputOutputDialog::SetActive
virtual void SetActive() override
Definition:
StatisticsInputOutputDialog.cxx:127
SfxChildWindow
ScStatisticsInputOutputDialog::ApplyOutput
virtual ScRange ApplyOutput(ScDocShell *pDocShell)=0
SCTAB
sal_Int16 SCTAB
Definition:
types.hxx:23
ScStatisticsInputOutputDialog::GetUndoNameId
virtual const char * GetUndoNameId()=0
Generated on Sat Feb 27 2021 02:38:02 for LibreOffice Module sc (master) by
1.8.10