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 #ifndef INCLUDED_SC_SOURCE_UI_INC_CONDFORMATMGR_HXX
11 #define INCLUDED_SC_SOURCE_UI_INC_CONDFORMATMGR_HXX
12 
13 #include <vcl/weld.hxx>
14 
15 class ScDocument;
18 
20 {
21 private:
22  void Init();
23  void setColSizes();
24 
28 
29 public:
31 
32  void DeleteSelection();
34 };
35 
37 {
38 public:
39  ScCondFormatManagerDlg(weld::Window* pParent, ScDocument& rDoc, const ScConditionalFormatList* pFormatList);
40  virtual ~ScCondFormatManagerDlg() override;
41 
42  std::unique_ptr<ScConditionalFormatList> GetConditionalFormatList();
43 
44  bool CondFormatsChanged() const;
45  void SetModified();
46 
48 
49 private:
51  std::unique_ptr<ScConditionalFormatList> m_xFormatList;
52 
53  std::unique_ptr<weld::Button> m_xBtnAdd;
54  std::unique_ptr<weld::Button> m_xBtnRemove;
55  std::unique_ptr<weld::Button> m_xBtnEdit;
56  std::unique_ptr<weld::TreeView> m_xTreeView;
57  std::unique_ptr<ScCondFormatManagerWindow> m_xCtrlManager;
58 
60 
61  DECL_LINK(RemoveBtnHdl, weld::Button&, void);
62  DECL_LINK(EditBtnClickHdl, weld::Button&, void);
63  DECL_LINK(AddBtnHdl, weld::Button&, void);
64  DECL_LINK(EditBtnHdl, weld::TreeView&, bool);
65 };
66 
67 #endif
68 
69 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
ScConditionalFormatList * mpFormatList
ScConditionalFormat * GetSelection()
std::unique_ptr< ScCondFormatManagerWindow > m_xCtrlManager
std::unique_ptr< weld::TreeView > m_xTreeView
ScConditionalFormat * GetCondFormatSelected()
bool CondFormatsChanged() const
std::unique_ptr< ScConditionalFormatList > m_xFormatList
std::unique_ptr< ScConditionalFormatList > GetConditionalFormatList()
weld::TreeView & mrTreeView
ScCondFormatManagerWindow(weld::TreeView &rTreeView, ScDocument &rDoc, ScConditionalFormatList *pFormatList)
std::unique_ptr< weld::Button > m_xBtnAdd
ScCondFormatManagerDlg(weld::Window *pParent, ScDocument &rDoc, const ScConditionalFormatList *pFormatList)
std::unique_ptr< weld::Button > m_xBtnRemove
DECL_LINK(RemoveBtnHdl, weld::Button &, void)
std::unique_ptr< weld::Button > m_xBtnEdit
virtual ~ScCondFormatManagerDlg() override