LibreOffice Module sc (master)
1
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
#pragma once
11
12
#include <
vcl/weld.hxx
>
13
14
class
ScDocument
;
15
class
ScConditionalFormat
;
16
class
ScConditionalFormatList
;
17
18
class
ScCondFormatManagerWindow
19
{
20
private
:
21
void
Init
();
22
void
setColSizes
();
23
24
weld::TreeView
&
mrTreeView
;
25
ScDocument
&
mrDoc
;
26
ScConditionalFormatList
*
mpFormatList
;
27
28
public
:
29
ScCondFormatManagerWindow
(
weld::TreeView
& rTreeView,
ScDocument
& rDoc,
ScConditionalFormatList
* pFormatList);
30
31
void
DeleteSelection
();
32
ScConditionalFormat
*
GetSelection
();
33
};
34
35
class
ScCondFormatManagerDlg
:
public
weld::GenericDialogController
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
46
ScConditionalFormat
*
GetCondFormatSelected
();
47
48
private
:
49
bool
m_bModified
;
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
58
void
UpdateButtonSensitivity
();
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: */
ScCondFormatManagerDlg
Definition:
condformatmgr.hxx:36
ScCondFormatManagerDlg::GetCondFormatSelected
ScConditionalFormat * GetCondFormatSelected()
Definition:
condformatmgr.cxx:131
ScCondFormatManagerDlg::m_xTreeView
std::unique_ptr< weld::TreeView > m_xTreeView
Definition:
condformatmgr.hxx:55
ScCondFormatManagerDlg::CondFormatsChanged
bool CondFormatsChanged() const
Definition:
condformatmgr.cxx:173
ScCondFormatManagerDlg::ScCondFormatManagerDlg
ScCondFormatManagerDlg(weld::Window *pParent, ScDocument &rDoc, const ScConditionalFormatList *pFormatList)
Definition:
condformatmgr.cxx:88
ScCondFormatManagerDlg::m_xBtnEdit
std::unique_ptr< weld::Button > m_xBtnEdit
Definition:
condformatmgr.hxx:54
ScCondFormatManagerDlg::m_xBtnAdd
std::unique_ptr< weld::Button > m_xBtnAdd
Definition:
condformatmgr.hxx:52
ScCondFormatManagerDlg::DECL_LINK
DECL_LINK(RemoveBtnHdl, weld::Button &, void)
ScCondFormatManagerDlg::m_xFormatList
std::unique_ptr< ScConditionalFormatList > m_xFormatList
Definition:
condformatmgr.hxx:50
ScCondFormatManagerDlg::m_xCtrlManager
std::unique_ptr< ScCondFormatManagerWindow > m_xCtrlManager
Definition:
condformatmgr.hxx:56
ScCondFormatManagerDlg::DECL_LINK
DECL_LINK(EditBtnHdl, weld::TreeView &, bool)
ScCondFormatManagerDlg::~ScCondFormatManagerDlg
virtual ~ScCondFormatManagerDlg() override
Definition:
condformatmgr.cxx:110
ScCondFormatManagerDlg::DECL_LINK
DECL_LINK(EditBtnClickHdl, weld::Button &, void)
ScCondFormatManagerDlg::UpdateButtonSensitivity
void UpdateButtonSensitivity()
Definition:
condformatmgr.cxx:122
ScCondFormatManagerDlg::DECL_LINK
DECL_LINK(AddBtnHdl, weld::Button &, void)
ScCondFormatManagerDlg::m_xBtnRemove
std::unique_ptr< weld::Button > m_xBtnRemove
Definition:
condformatmgr.hxx:53
ScCondFormatManagerDlg::m_bModified
bool m_bModified
Definition:
condformatmgr.hxx:49
ScCondFormatManagerDlg::GetConditionalFormatList
std::unique_ptr< ScConditionalFormatList > GetConditionalFormatList()
Definition:
condformatmgr.cxx:117
ScCondFormatManagerDlg::SetModified
void SetModified()
Definition:
condformatmgr.cxx:167
ScCondFormatManagerWindow
Definition:
condformatmgr.hxx:19
ScCondFormatManagerWindow::mrDoc
ScDocument & mrDoc
Definition:
condformatmgr.hxx:25
ScCondFormatManagerWindow::mrTreeView
weld::TreeView & mrTreeView
Definition:
condformatmgr.hxx:24
ScCondFormatManagerWindow::ScCondFormatManagerWindow
ScCondFormatManagerWindow(weld::TreeView &rTreeView, ScDocument &rDoc, ScConditionalFormatList *pFormatList)
Definition:
condformatmgr.cxx:18
ScCondFormatManagerWindow::mpFormatList
ScConditionalFormatList * mpFormatList
Definition:
condformatmgr.hxx:26
ScCondFormatManagerWindow::setColSizes
void setColSizes()
Definition:
condformatmgr.cxx:79
ScCondFormatManagerWindow::DeleteSelection
void DeleteSelection()
Definition:
condformatmgr.cxx:57
ScCondFormatManagerWindow::GetSelection
ScConditionalFormat * GetSelection()
Definition:
condformatmgr.cxx:69
ScCondFormatManagerWindow::Init
void Init()
Definition:
condformatmgr.cxx:33
ScConditionalFormatList
Definition:
conditio.hxx:628
ScConditionalFormat
Definition:
conditio.hxx:540
ScDocument
Definition:
document.hxx:323
weld::Button
weld::GenericDialogController
weld::TreeView
weld::Window
weld.hxx
Generated on Sun Jul 30 2023 04:29:19 for LibreOffice Module sc (master) by
1.9.3