LibreOffice Module sc (master)
1
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
sc
source
ui
inc
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
;
16
class
ScConditionalFormat
;
17
class
ScConditionalFormatList
;
18
19
class
ScCondFormatManagerWindow
20
{
21
private
:
22
void
Init
();
23
void
setColSizes
();
24
25
weld::TreeView
&
mrTreeView
;
26
ScDocument
&
mrDoc
;
27
ScConditionalFormatList
*
mpFormatList
;
28
29
public
:
30
ScCondFormatManagerWindow
(
weld::TreeView
& rTreeView,
ScDocument
& rDoc,
ScConditionalFormatList
* pFormatList);
31
32
void
DeleteSelection
();
33
ScConditionalFormat
*
GetSelection
();
34
};
35
36
class
ScCondFormatManagerDlg
:
public
weld::GenericDialogController
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
47
ScConditionalFormat
*
GetCondFormatSelected
();
48
49
private
:
50
bool
m_bModified
;
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
59
void
UpdateButtonSensitivity
();
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: */
ScCondFormatManagerWindow::mpFormatList
ScConditionalFormatList * mpFormatList
Definition:
condformatmgr.hxx:27
ScCondFormatManagerWindow::GetSelection
ScConditionalFormat * GetSelection()
Definition:
condformatmgr.cxx:67
ScCondFormatManagerDlg::m_xCtrlManager
std::unique_ptr< ScCondFormatManagerWindow > m_xCtrlManager
Definition:
condformatmgr.hxx:57
ScCondFormatManagerDlg::SetModified
void SetModified()
Definition:
condformatmgr.cxx:156
ScCondFormatManagerDlg::m_xTreeView
std::unique_ptr< weld::TreeView > m_xTreeView
Definition:
condformatmgr.hxx:56
ScCondFormatManagerDlg::GetCondFormatSelected
ScConditionalFormat * GetCondFormatSelected()
Definition:
condformatmgr.cxx:120
ScCondFormatManagerWindow::setColSizes
void setColSizes()
Definition:
condformatmgr.cxx:77
ScCondFormatManagerDlg
Definition:
condformatmgr.hxx:36
ScCondFormatManagerDlg::CondFormatsChanged
bool CondFormatsChanged() const
Definition:
condformatmgr.cxx:162
weld::Window
ScCondFormatManagerDlg::m_xFormatList
std::unique_ptr< ScConditionalFormatList > m_xFormatList
Definition:
condformatmgr.hxx:51
ScConditionalFormat
Definition:
conditio.hxx:540
weld::Button
weld::TreeView
ScCondFormatManagerWindow::Init
void Init()
Definition:
condformatmgr.cxx:31
ScCondFormatManagerDlg::m_bModified
bool m_bModified
Definition:
condformatmgr.hxx:50
ScCondFormatManagerDlg::GetConditionalFormatList
std::unique_ptr< ScConditionalFormatList > GetConditionalFormatList()
Definition:
condformatmgr.cxx:106
ScCondFormatManagerWindow::mrTreeView
weld::TreeView & mrTreeView
Definition:
condformatmgr.hxx:25
ScConditionalFormatList
Definition:
conditio.hxx:626
ScCondFormatManagerWindow::ScCondFormatManagerWindow
ScCondFormatManagerWindow(weld::TreeView &rTreeView, ScDocument &rDoc, ScConditionalFormatList *pFormatList)
Definition:
condformatmgr.cxx:16
ScCondFormatManagerDlg::m_xBtnAdd
std::unique_ptr< weld::Button > m_xBtnAdd
Definition:
condformatmgr.hxx:53
weld::GenericDialogController
ScCondFormatManagerWindow::mrDoc
ScDocument & mrDoc
Definition:
condformatmgr.hxx:26
ScCondFormatManagerDlg::ScCondFormatManagerDlg
ScCondFormatManagerDlg(weld::Window *pParent, ScDocument &rDoc, const ScConditionalFormatList *pFormatList)
Definition:
condformatmgr.cxx:84
ScCondFormatManagerDlg::m_xBtnRemove
std::unique_ptr< weld::Button > m_xBtnRemove
Definition:
condformatmgr.hxx:54
ScCondFormatManagerWindow
Definition:
condformatmgr.hxx:19
ScCondFormatManagerDlg::DECL_LINK
DECL_LINK(RemoveBtnHdl, weld::Button &, void)
weld.hxx
ScCondFormatManagerDlg::m_xBtnEdit
std::unique_ptr< weld::Button > m_xBtnEdit
Definition:
condformatmgr.hxx:55
ScCondFormatManagerDlg::~ScCondFormatManagerDlg
virtual ~ScCondFormatManagerDlg() override
Definition:
condformatmgr.cxx:102
ScCondFormatManagerWindow::DeleteSelection
void DeleteSelection()
Definition:
condformatmgr.cxx:55
ScDocument
Definition:
document.hxx:312
ScCondFormatManagerDlg::UpdateButtonSensitivity
void UpdateButtonSensitivity()
Definition:
condformatmgr.cxx:111
Generated on Thu Jan 21 2021 08:28:34 for LibreOffice Module sc (master) by
1.8.10