LibreOffice Module sc (master) 1
SparklineDataRangeDialog.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 <address.hxx>
13#include "anyrefdg.hxx"
14#include "viewdata.hxx"
15
16#include <SparklineGroup.hxx>
18
19class ColorListBox;
20
21namespace sc
22{
25{
26private:
29
30 std::shared_ptr<sc::Sparkline> mpSparkline;
31
33
36
37 std::unique_ptr<weld::Button> mxButtonOk;
38 std::unique_ptr<weld::Button> mxButtonCancel;
39
40 std::unique_ptr<weld::Label> mxDataRangeLabel;
41 std::unique_ptr<formula::RefEdit> mxDataRangeEdit;
42 std::unique_ptr<formula::RefButton> mxDataRangeButton;
43
44 DECL_LINK(ButtonClicked, weld::Button&, void);
45 DECL_LINK(EditFocusHandler, formula::RefEdit&, void);
46 DECL_LINK(ButtonFocusHandler, formula::RefButton&, void);
47 DECL_LINK(LoseEditFocusHandler, formula::RefEdit&, void);
48 DECL_LINK(LoseButtonFocusHandler, formula::RefButton&, void);
49 DECL_LINK(RefInputModifyHandler, formula::RefEdit&, void);
50
51 void setupValues();
52
53 void perform();
55
56public:
57 SparklineDataRangeDialog(SfxBindings* pBindings, SfxChildWindow* pChildWindow,
58 weld::Window* pWindow, ScViewData& rViewData);
59 virtual ~SparklineDataRangeDialog() override;
60
61 void SetReference(const ScRange& rRef, ScDocument& rDocument) override;
62 void SetActive() override;
63 void Close() override;
64};
65}
66
67/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Dialog to change input data range for a sparkline
DECL_LINK(LoseEditFocusHandler, formula::RefEdit &, void)
SparklineDataRangeDialog(SfxBindings *pBindings, SfxChildWindow *pChildWindow, weld::Window *pWindow, ScViewData &rViewData)
DECL_LINK(ButtonClicked, weld::Button &, void)
std::unique_ptr< weld::Label > mxDataRangeLabel
std::shared_ptr< sc::Sparkline > mpSparkline
DECL_LINK(RefInputModifyHandler, formula::RefEdit &, void)
DECL_LINK(EditFocusHandler, formula::RefEdit &, void)
DECL_LINK(ButtonFocusHandler, formula::RefButton &, void)
void SetReference(const ScRange &rRef, ScDocument &rDocument) override
DECL_LINK(LoseButtonFocusHandler, formula::RefButton &, void)
std::unique_ptr< formula::RefEdit > mxDataRangeEdit
virtual ~SparklineDataRangeDialog() override
std::unique_ptr< weld::Button > mxButtonOk
std::unique_ptr< formula::RefButton > mxDataRangeButton
std::unique_ptr< weld::Button > mxButtonCancel
CAUTION! The following defines must be in the same namespace as the respective type.