LibreOffice Module sc (master)
1
sc
inc
scopetools.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 "
scdllapi.h
"
13
14
class
ScDocument
;
15
class
ScColumn
;
16
namespace
vcl
17
{
18
class
Window
;
19
}
20
21
namespace
sc
22
{
26
class
SC_DLLPUBLIC
AutoCalcSwitch
27
{
28
ScDocument
&
mrDoc
;
29
bool
mbOldValue
;
30
31
AutoCalcSwitch
(
AutoCalcSwitch
const
&) =
delete
;
32
AutoCalcSwitch
(
AutoCalcSwitch
&&) =
delete
;
33
AutoCalcSwitch
&
operator=
(
AutoCalcSwitch
const
&) =
delete
;
34
AutoCalcSwitch
&
operator=
(
AutoCalcSwitch
&&) =
delete
;
35
36
public
:
37
AutoCalcSwitch
(
ScDocument
& rDoc,
bool
bAutoCalc);
38
~AutoCalcSwitch
();
39
};
40
41
class
ExpandRefsSwitch
42
{
43
ScDocument
&
mrDoc
;
44
bool
mbOldValue
;
45
46
public
:
47
ExpandRefsSwitch
(
ScDocument
& rDoc,
bool
bExpandRefs);
48
~ExpandRefsSwitch
();
49
};
50
51
class
SC_DLLPUBLIC
UndoSwitch
52
{
53
ScDocument
&
mrDoc
;
54
bool
mbOldValue
;
55
56
public
:
57
UndoSwitch
(
ScDocument
& rDoc,
bool
bUndo);
58
~UndoSwitch
();
59
};
60
61
class
IdleSwitch
62
{
63
ScDocument
&
mrDoc
;
64
bool
mbOldValue
;
65
66
public
:
67
IdleSwitch
(
ScDocument
& rDoc,
bool
bEnableIdle);
68
~IdleSwitch
();
69
};
70
72
class
DelayFormulaGroupingSwitch
73
{
74
ScDocument
&
mrDoc
;
75
bool
const
mbOldValue
;
76
77
public
:
78
DelayFormulaGroupingSwitch
(
ScDocument
& rDoc,
bool
delay);
79
~DelayFormulaGroupingSwitch
() COVERITY_NOEXCEPT_FALSE;
80
void
reset
();
81
};
82
84
class
DelayStartListeningFormulaCells
85
{
86
ScColumn
&
mColumn
;
87
bool
const
mbOldValue
;
88
89
public
:
90
DelayStartListeningFormulaCells
(
ScColumn
& column,
bool
delay);
91
DelayStartListeningFormulaCells
(
ScColumn
& column);
92
DelayStartListeningFormulaCells
(
const
DelayStartListeningFormulaCells
&) =
delete
;
93
~DelayStartListeningFormulaCells
();
94
void
set
();
95
};
96
98
class
DelayDeletingBroadcasters
99
{
100
ScDocument
&
mDoc
;
101
const
bool
mOldValue
;
102
103
public
:
104
DelayDeletingBroadcasters
(
ScDocument
& doc);
105
~DelayDeletingBroadcasters
();
106
};
107
}
108
109
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
ScColumn
Definition:
column.hxx:182
ScDocument
Definition:
document.hxx:323
sc::AutoCalcSwitch
Temporarily switch on/off auto calculation mode.
Definition:
scopetools.hxx:27
sc::AutoCalcSwitch::operator=
AutoCalcSwitch & operator=(AutoCalcSwitch const &)=delete
sc::AutoCalcSwitch::operator=
AutoCalcSwitch & operator=(AutoCalcSwitch &&)=delete
sc::AutoCalcSwitch::mrDoc
ScDocument & mrDoc
Definition:
scopetools.hxx:28
sc::AutoCalcSwitch::AutoCalcSwitch
AutoCalcSwitch(AutoCalcSwitch const &)=delete
sc::AutoCalcSwitch::mbOldValue
bool mbOldValue
Definition:
scopetools.hxx:29
sc::AutoCalcSwitch::AutoCalcSwitch
AutoCalcSwitch(AutoCalcSwitch &&)=delete
sc::DelayDeletingBroadcasters
Wrapper for ScDocument::EnableDelayDeletingBroadcasters()
Definition:
scopetools.hxx:99
sc::DelayDeletingBroadcasters::mDoc
ScDocument & mDoc
Definition:
scopetools.hxx:100
sc::DelayDeletingBroadcasters::mOldValue
const bool mOldValue
Definition:
scopetools.hxx:101
sc::DelayFormulaGroupingSwitch
Wrapper for ScDocument::DelayFormulaGrouping()
Definition:
scopetools.hxx:73
sc::DelayFormulaGroupingSwitch::reset
void reset()
Definition:
scopetools.cxx:71
sc::DelayFormulaGroupingSwitch::DelayFormulaGroupingSwitch
DelayFormulaGroupingSwitch(ScDocument &rDoc, bool delay)
Definition:
scopetools.cxx:60
sc::DelayFormulaGroupingSwitch::~DelayFormulaGroupingSwitch
~DelayFormulaGroupingSwitch() COVERITY_NOEXCEPT_FALSE
Definition:
scopetools.cxx:66
sc::DelayFormulaGroupingSwitch::mrDoc
ScDocument & mrDoc
Definition:
scopetools.hxx:74
sc::DelayFormulaGroupingSwitch::mbOldValue
bool const mbOldValue
Definition:
scopetools.hxx:75
sc::DelayStartListeningFormulaCells
Wrapper for ScDocument::EnableDelayStartListeningFormulaCells()
Definition:
scopetools.hxx:85
sc::DelayStartListeningFormulaCells::DelayStartListeningFormulaCells
DelayStartListeningFormulaCells(const DelayStartListeningFormulaCells &)=delete
sc::DelayStartListeningFormulaCells::mbOldValue
bool const mbOldValue
Definition:
scopetools.hxx:87
sc::DelayStartListeningFormulaCells::mColumn
ScColumn & mColumn
Definition:
scopetools.hxx:86
sc::ExpandRefsSwitch
Definition:
scopetools.hxx:42
sc::ExpandRefsSwitch::mbOldValue
bool mbOldValue
Definition:
scopetools.hxx:44
sc::ExpandRefsSwitch::~ExpandRefsSwitch
~ExpandRefsSwitch()
Definition:
scopetools.cxx:33
sc::ExpandRefsSwitch::mrDoc
ScDocument & mrDoc
Definition:
scopetools.hxx:43
sc::ExpandRefsSwitch::ExpandRefsSwitch
ExpandRefsSwitch(ScDocument &rDoc, bool bExpandRefs)
Definition:
scopetools.cxx:27
sc::IdleSwitch
Definition:
scopetools.hxx:62
sc::IdleSwitch::mbOldValue
bool mbOldValue
Definition:
scopetools.hxx:64
sc::IdleSwitch::IdleSwitch
IdleSwitch(ScDocument &rDoc, bool bEnableIdle)
Definition:
scopetools.cxx:49
sc::IdleSwitch::mrDoc
ScDocument & mrDoc
Definition:
scopetools.hxx:63
sc::IdleSwitch::~IdleSwitch
~IdleSwitch()
Definition:
scopetools.cxx:55
sc::UndoSwitch
Definition:
scopetools.hxx:52
sc::UndoSwitch::mrDoc
ScDocument & mrDoc
Definition:
scopetools.hxx:53
sc::UndoSwitch::mbOldValue
bool mbOldValue
Definition:
scopetools.hxx:54
set
void set(css::uno::UnoInterfaceReference const &value)
sc
CAUTION! The following defines must be in the same namespace as the respective type.
Definition:
broadcast.cxx:15
vcl
scdllapi.h
SC_DLLPUBLIC
#define SC_DLLPUBLIC
Definition:
scdllapi.h:27
EViewType::Window
@ Window
Generated on Sun Jul 30 2023 04:27:49 for LibreOffice Module sc (master) by
1.9.3