nss: upgrade to release 3.73
[LibreOffice.git] / sc / source / ui / inc / colorformat.hxx
blobbf887cc3aaec0459b027b6edd497b1f7c58b79f2
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
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 */
10 #ifndef INCLUDED_SC_SOURCE_UI_INC_COLORFORMAT_HXX
11 #define INCLUDED_SC_SOURCE_UI_INC_COLORFORMAT_HXX
13 #include <vcl/weld.hxx>
14 #include <svx/colorbox.hxx>
15 #include <address.hxx>
17 struct ScDataBarFormatData;
18 class ScDocument;
19 class SvNumberFormatter;
21 class ScDataBarSettingsDlg : public weld::GenericDialogController
23 private:
24 OUString maStrWarnSameValue;
25 SvNumberFormatter* mpNumberFormatter;
27 ScDocument* mpDoc;
28 ScAddress maPos;
30 std::unique_ptr<weld::Button> mxBtnOk;
31 std::unique_ptr<weld::Button> mxBtnCancel;
33 std::unique_ptr<ColorListBox> mxLbPos;
34 std::unique_ptr<ColorListBox> mxLbNeg;
35 std::unique_ptr<ColorListBox> mxLbAxisCol;
37 std::unique_ptr<weld::ComboBox> mxLbFillType;
38 std::unique_ptr<weld::ComboBox> mxLbTypeMin;
39 std::unique_ptr<weld::ComboBox> mxLbTypeMax;
40 std::unique_ptr<weld::ComboBox> mxLbAxisPos;
42 std::unique_ptr<weld::Entry> mxEdMin;
43 std::unique_ptr<weld::Entry> mxEdMax;
44 std::unique_ptr<weld::Entry> mxLenMin;
45 std::unique_ptr<weld::Entry> mxLenMax;
47 std::unique_ptr<weld::CheckButton> mxCbOnlyBar;
49 std::unique_ptr<weld::Label> mxStrSameValueFT;
51 DECL_LINK(OkBtnHdl, weld::Button&, void);
52 DECL_LINK(TypeSelectHdl, weld::ComboBox&, void);
53 DECL_LINK(PosSelectHdl, weld::ComboBox&, void);
55 void Init();
57 public:
58 ScDataBarSettingsDlg(weld::Window* pParent, const ScDataBarFormatData& rData, ScDocument* pDoc,
59 const ScAddress& rPos);
60 virtual ~ScDataBarSettingsDlg() override;
62 ScDataBarFormatData* GetData();
65 #endif // INCLUDED_SC_SOURCE_UI_INC_COLORFORMAT_HXX
67 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */