1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */
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/.
12 #include "anyrefdg.hxx"
13 #include <svl/lstner.hxx>
14 #include <conditio.hxx>
17 class ScConditionalFormat
;
22 class ConditionalFormatEasyDialog
: public ScAnyRefDlgController
, public SfxListener
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);
37 void SetDescription(std::u16string_view rCondition
);
39 ScViewData
* mpViewData
;
40 ScDocument
& mrDocument
;
41 ScConditionMode meMode
;
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
;
57 /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */