LibreOffice Module sc (master) 1
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
14class ScDocument;
15class ScColumn;
16namespace vcl
17{
18class Window;
19}
20
21namespace sc
22{
27{
30
35
36public:
37 AutoCalcSwitch(ScDocument& rDoc, bool bAutoCalc);
39};
40
42{
45
46public:
47 ExpandRefsSwitch(ScDocument& rDoc, bool bExpandRefs);
49};
50
52{
55
56public:
57 UndoSwitch(ScDocument& rDoc, bool bUndo);
59};
60
62{
65
66public:
67 IdleSwitch(ScDocument& rDoc, bool bEnableIdle);
69};
70
73{
75 bool const mbOldValue;
76
77public:
78 DelayFormulaGroupingSwitch(ScDocument& rDoc, bool delay);
79 ~DelayFormulaGroupingSwitch() COVERITY_NOEXCEPT_FALSE;
80 void reset();
81};
82
85{
87 bool const mbOldValue;
88
89public:
90 DelayStartListeningFormulaCells(ScColumn& column, bool delay);
94 void set();
95};
96
99{
101 const bool mOldValue;
102
103public:
106};
107}
108
109/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Temporarily switch on/off auto calculation mode.
Definition: scopetools.hxx:27
AutoCalcSwitch & operator=(AutoCalcSwitch const &)=delete
AutoCalcSwitch & operator=(AutoCalcSwitch &&)=delete
ScDocument & mrDoc
Definition: scopetools.hxx:28
AutoCalcSwitch(AutoCalcSwitch const &)=delete
AutoCalcSwitch(AutoCalcSwitch &&)=delete
Wrapper for ScDocument::EnableDelayDeletingBroadcasters()
Definition: scopetools.hxx:99
Wrapper for ScDocument::DelayFormulaGrouping()
Definition: scopetools.hxx:73
DelayFormulaGroupingSwitch(ScDocument &rDoc, bool delay)
Definition: scopetools.cxx:60
~DelayFormulaGroupingSwitch() COVERITY_NOEXCEPT_FALSE
Definition: scopetools.cxx:66
Wrapper for ScDocument::EnableDelayStartListeningFormulaCells()
Definition: scopetools.hxx:85
DelayStartListeningFormulaCells(const DelayStartListeningFormulaCells &)=delete
ScDocument & mrDoc
Definition: scopetools.hxx:43
ExpandRefsSwitch(ScDocument &rDoc, bool bExpandRefs)
Definition: scopetools.cxx:27
IdleSwitch(ScDocument &rDoc, bool bEnableIdle)
Definition: scopetools.cxx:49
ScDocument & mrDoc
Definition: scopetools.hxx:63
ScDocument & mrDoc
Definition: scopetools.hxx:53
void set(css::uno::UnoInterfaceReference const &value)
CAUTION! The following defines must be in the same namespace as the respective type.
Definition: broadcast.cxx:15
#define SC_DLLPUBLIC
Definition: scdllapi.h:27