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 
14 class ScDocument;
17 
19 {
20 private:
21  void Init();
22  void setColSizes();
23 
27 
28 public:
30 
31  void DeleteSelection();
33 };
34 
36 {
37 public:
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 
48 private:
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: */
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