LibreOffice Module sc (master)  1
colorformat.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 <svx/colorbox.hxx>
14 #include <address.hxx>
15 
16 struct ScDataBarFormatData;
17 class ScDocument;
18 class SvNumberFormatter;
19 
21 {
22 private:
25 
28 
29  std::unique_ptr<weld::Button> mxBtnOk;
30  std::unique_ptr<weld::Button> mxBtnCancel;
31 
32  std::unique_ptr<ColorListBox> mxLbPos;
33  std::unique_ptr<ColorListBox> mxLbNeg;
34  std::unique_ptr<ColorListBox> mxLbAxisCol;
35 
36  std::unique_ptr<weld::ComboBox> mxLbFillType;
37  std::unique_ptr<weld::ComboBox> mxLbTypeMin;
38  std::unique_ptr<weld::ComboBox> mxLbTypeMax;
39  std::unique_ptr<weld::ComboBox> mxLbAxisPos;
40 
41  std::unique_ptr<weld::Entry> mxEdMin;
42  std::unique_ptr<weld::Entry> mxEdMax;
43  std::unique_ptr<weld::Entry> mxLenMin;
44  std::unique_ptr<weld::Entry> mxLenMax;
45 
46  std::unique_ptr<weld::CheckButton> mxCbOnlyBar;
47 
48  std::unique_ptr<weld::Label> mxStrSameValueFT;
49 
50  DECL_LINK(OkBtnHdl, weld::Button&, void);
51  DECL_LINK(TypeSelectHdl, weld::ComboBox&, void);
52  DECL_LINK(PosSelectHdl, weld::ComboBox&, void);
53 
54  void Init();
55 
56 public:
58  const ScAddress& rPos);
59  virtual ~ScDataBarSettingsDlg() override;
60 
62 };
63 
64 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
std::unique_ptr< weld::Entry > mxLenMin
Definition: colorformat.hxx:43
std::unique_ptr< weld::ComboBox > mxLbTypeMin
Definition: colorformat.hxx:37
std::unique_ptr< weld::ComboBox > mxLbFillType
Definition: colorformat.hxx:36
SvNumberFormatter * mpNumberFormatter
Definition: colorformat.hxx:24
DECL_LINK(OkBtnHdl, weld::Button &, void)
std::unique_ptr< weld::Entry > mxLenMax
Definition: colorformat.hxx:44
std::unique_ptr< weld::CheckButton > mxCbOnlyBar
Definition: colorformat.hxx:46
std::unique_ptr< ColorListBox > mxLbNeg
Definition: colorformat.hxx:33
virtual ~ScDataBarSettingsDlg() override
std::unique_ptr< weld::Entry > mxEdMax
Definition: colorformat.hxx:42
ScDataBarFormatData * GetData()
std::unique_ptr< weld::ComboBox > mxLbAxisPos
Definition: colorformat.hxx:39
std::unique_ptr< weld::Label > mxStrSameValueFT
Definition: colorformat.hxx:48
std::unique_ptr< weld::Entry > mxEdMin
Definition: colorformat.hxx:41
ScDocument * mpDoc
Definition: colorformat.hxx:26
std::unique_ptr< weld::Button > mxBtnCancel
Definition: colorformat.hxx:30
ScDataBarSettingsDlg(weld::Window *pParent, const ScDataBarFormatData &rData, ScDocument *pDoc, const ScAddress &rPos)
Definition: colorformat.cxx:70
std::unique_ptr< ColorListBox > mxLbAxisCol
Definition: colorformat.hxx:34
std::unique_ptr< weld::Button > mxBtnOk
Definition: colorformat.hxx:29
std::unique_ptr< weld::ComboBox > mxLbTypeMax
Definition: colorformat.hxx:38
OUString maStrWarnSameValue
Definition: colorformat.hxx:23
std::unique_ptr< ColorListBox > mxLbPos
Definition: colorformat.hxx:32