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 #ifndef INCLUDED_SC_INC_SCOPETOOLS_HXX
11 #define INCLUDED_SC_INC_SCOPETOOLS_HXX
12 
13 #include "scdllapi.h"
14 
15 class ScDocument;
16 class ScColumn;
17 namespace vcl
18 {
19 class Window;
20 }
21 
22 namespace sc
23 {
28 {
30  bool mbOldValue;
31 
32  AutoCalcSwitch(AutoCalcSwitch const&) = delete;
33  AutoCalcSwitch(AutoCalcSwitch&&) = delete;
34  AutoCalcSwitch& operator=(AutoCalcSwitch const&) = delete;
35  AutoCalcSwitch& operator=(AutoCalcSwitch&&) = delete;
36 
37 public:
38  AutoCalcSwitch(ScDocument& rDoc, bool bAutoCalc);
39  ~AutoCalcSwitch();
40 };
41 
43 {
45  bool mbOldValue;
46 
47 public:
48  ExpandRefsSwitch(ScDocument& rDoc, bool bExpandRefs);
50 };
51 
53 {
55  bool mbOldValue;
56 
57 public:
58  UndoSwitch(ScDocument& rDoc, bool bUndo);
59  ~UndoSwitch();
60 };
61 
63 {
65  bool mbOldValue;
66 
67 public:
68  IdleSwitch(ScDocument& rDoc, bool bEnableIdle);
69  ~IdleSwitch();
70 };
71 
74 {
76  bool const mbOldValue;
77 
78 public:
79  DelayFormulaGroupingSwitch(ScDocument& rDoc, bool delay);
80  ~DelayFormulaGroupingSwitch() COVERITY_NOEXCEPT_FALSE;
81  void reset();
82 };
83 
86 {
88  bool const mbOldValue;
89 
90 public:
91  DelayStartListeningFormulaCells(ScColumn& column, bool delay);
92  DelayStartListeningFormulaCells(ScColumn& column);
93  DelayStartListeningFormulaCells(const DelayStartListeningFormulaCells&) = delete;
94  ~DelayStartListeningFormulaCells();
95  void set();
96 };
97 }
98 
99 #endif
100 
101 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
~DelayFormulaGroupingSwitch() COVERITY_NOEXCEPT_FALSE
Definition: scopetools.cxx:66
Temporarily switch on/off auto calculation mode.
Definition: scopetools.hxx:27
Wrapper for ScDocument::EnableDelayStartListeningFormulaCells()
Definition: scopetools.hxx:85
ExpandRefsSwitch(ScDocument &rDoc, bool bExpandRefs)
Definition: scopetools.cxx:27
ScDocument & mrDoc
Definition: scopetools.hxx:29
IdleSwitch(ScDocument &rDoc, bool bEnableIdle)
Definition: scopetools.cxx:49
ScDocument & mrDoc
Definition: scopetools.hxx:44
ScDocument & mrDoc
Definition: scopetools.hxx:64
ScDocument & mrDoc
Definition: scopetools.hxx:54
#define SC_DLLPUBLIC
Definition: scdllapi.h:28
DelayFormulaGroupingSwitch(ScDocument &rDoc, bool delay)
Definition: scopetools.cxx:60
void set(css::uno::UnoInterfaceReference const &value)
Wrapper for ScDocument::DelayFormulaGrouping()
Definition: scopetools.hxx:73