tdf#130857 qt weld: Implement QtInstanceWidget::strip_mnemonic
[LibreOffice.git] / sc / source / ui / inc / condformateasydlg.hxx
blob933d2e51e2075eeefade5cfa92b7f42b4d3e875c
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */
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 "anyrefdg.hxx"
13 #include <svl/lstner.hxx>
14 #include <conditio.hxx>
16 class ScViewData;
17 class ScConditionalFormat;
18 class ScTabViewShell;
20 namespace sc
22 class ConditionalFormatEasyDialog : public ScAnyRefDlgController, public SfxListener
24 public:
25 ConditionalFormatEasyDialog(SfxBindings*, SfxChildWindow*, weld::Window*, ScViewData*);
26 virtual ~ConditionalFormatEasyDialog() override;
28 virtual void SetReference(const ScRange&, ScDocument&) override;
29 virtual void SetActive() override;
30 virtual void Close() override;
32 virtual void Notify(SfxBroadcaster&, const SfxHint&) override;
34 DECL_LINK(ButtonPressed, weld::Button&, void);
36 private:
37 void SetDescription(std::u16string_view rCondition);
39 ScViewData* mpViewData;
40 ScDocument& mrDocument;
41 ScConditionMode meMode;
42 ScAddress maPosition;
44 std::unique_ptr<weld::Entry> mxNumberEntry;
45 std::unique_ptr<weld::Entry> mxNumberEntry2;
46 std::unique_ptr<weld::Container> mxAllInputs;
47 std::unique_ptr<formula::RefEdit> mxRangeEntry;
48 std::unique_ptr<formula::RefButton> mxButtonRangeEdit;
49 std::unique_ptr<weld::ComboBox> mxStyles;
50 std::unique_ptr<weld::Label> mxDescription;
51 std::unique_ptr<weld::Button> mxButtonOk;
52 std::unique_ptr<weld::Button> mxButtonCancel;
55 } // namespace sc
57 /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */