LibreOffice Module sc (master) 1
condformatmgr.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
14class ScDocument;
17
19{
20private:
21 void Init();
22 void setColSizes();
23
27
28public:
30
31 void DeleteSelection();
33};
34
36{
37public:
38 ScCondFormatManagerDlg(weld::Window* pParent, ScDocument& rDoc, const ScConditionalFormatList* pFormatList);
39 virtual ~ScCondFormatManagerDlg() override;
40
41 std::unique_ptr<ScConditionalFormatList> GetConditionalFormatList();
42
43 bool CondFormatsChanged() const;
44 void SetModified();
45
47
48private:
50 std::unique_ptr<ScConditionalFormatList> m_xFormatList;
51
52 std::unique_ptr<weld::Button> m_xBtnAdd;
53 std::unique_ptr<weld::Button> m_xBtnRemove;
54 std::unique_ptr<weld::Button> m_xBtnEdit;
55 std::unique_ptr<weld::TreeView> m_xTreeView;
56 std::unique_ptr<ScCondFormatManagerWindow> m_xCtrlManager;
57
59
60 DECL_LINK(RemoveBtnHdl, weld::Button&, void);
61 DECL_LINK(EditBtnClickHdl, weld::Button&, void);
62 DECL_LINK(AddBtnHdl, weld::Button&, void);
63 DECL_LINK(EditBtnHdl, weld::TreeView&, bool);
64};
65
66/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
ScConditionalFormat * GetCondFormatSelected()
std::unique_ptr< weld::TreeView > m_xTreeView
bool CondFormatsChanged() const
ScCondFormatManagerDlg(weld::Window *pParent, ScDocument &rDoc, const ScConditionalFormatList *pFormatList)
std::unique_ptr< weld::Button > m_xBtnEdit
std::unique_ptr< weld::Button > m_xBtnAdd
DECL_LINK(RemoveBtnHdl, weld::Button &, void)
std::unique_ptr< ScConditionalFormatList > m_xFormatList
std::unique_ptr< ScCondFormatManagerWindow > m_xCtrlManager
DECL_LINK(EditBtnHdl, weld::TreeView &, bool)
virtual ~ScCondFormatManagerDlg() override
DECL_LINK(EditBtnClickHdl, weld::Button &, void)
DECL_LINK(AddBtnHdl, weld::Button &, void)
std::unique_ptr< weld::Button > m_xBtnRemove
std::unique_ptr< ScConditionalFormatList > GetConditionalFormatList()
weld::TreeView & mrTreeView
ScCondFormatManagerWindow(weld::TreeView &rTreeView, ScDocument &rDoc, ScConditionalFormatList *pFormatList)
ScConditionalFormatList * mpFormatList
ScConditionalFormat * GetSelection()