tdf#130857 qt weld: Implement QtInstanceWidget::strip_mnemonic
[LibreOffice.git] / sc / source / ui / inc / colorformat.hxx
blob5865527e3dc2f34a8975273065a6d02bfb577166
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 #pragma once
12 #include <vcl/weld.hxx>
13 #include <svx/colorbox.hxx>
14 #include <address.hxx>
16 struct ScDataBarFormatData;
17 class ScDocument;
18 class SvNumberFormatter;
20 class ScDataBarSettingsDlg : public weld::GenericDialogController
22 private:
23 OUString maStrWarnSameValue;
24 SvNumberFormatter* mpNumberFormatter;
26 ScDocument& mrDoc;
27 ScAddress maPos;
29 std::unique_ptr<weld::Button> mxBtnOk;
31 std::unique_ptr<ColorListBox> mxLbPos;
32 std::unique_ptr<ColorListBox> mxLbNeg;
33 std::unique_ptr<ColorListBox> mxLbAxisCol;
35 std::unique_ptr<weld::ComboBox> mxLbFillType;
36 std::unique_ptr<weld::ComboBox> mxLbTypeMin;
37 std::unique_ptr<weld::ComboBox> mxLbTypeMax;
38 std::unique_ptr<weld::ComboBox> mxLbAxisPos;
40 std::unique_ptr<weld::Entry> mxEdMin;
41 std::unique_ptr<weld::Entry> mxEdMax;
42 std::unique_ptr<weld::Entry> mxLenMin;
43 std::unique_ptr<weld::Entry> mxLenMax;
45 std::unique_ptr<weld::CheckButton> mxCbOnlyBar;
47 std::unique_ptr<weld::Label> mxStrSameValueFT;
49 DECL_LINK(OkBtnHdl, weld::Button&, void);
50 DECL_LINK(TypeSelectHdl, weld::ComboBox&, void);
51 DECL_LINK(PosSelectHdl, weld::ComboBox&, void);
53 void Init();
55 public:
56 ScDataBarSettingsDlg(weld::Window* pParent, const ScDataBarFormatData& rData, ScDocument& rDoc,
57 const ScAddress& rPos);
58 virtual ~ScDataBarSettingsDlg() override;
60 ScDataBarFormatData* GetData();
63 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */