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 { class Window; }
18 
19 namespace sc {
20 
25 {
27  bool mbOldValue;
28 
29  AutoCalcSwitch(AutoCalcSwitch const &) = delete;
30  AutoCalcSwitch(AutoCalcSwitch &&) = delete;
31  AutoCalcSwitch & operator =(AutoCalcSwitch const &) = delete;
32  AutoCalcSwitch & operator =(AutoCalcSwitch &&) = delete;
33 
34 public:
35  AutoCalcSwitch(ScDocument& rDoc, bool bAutoCalc);
36  ~AutoCalcSwitch();
37 };
38 
40 {
42  bool mbOldValue;
43 public:
44  ExpandRefsSwitch(ScDocument& rDoc, bool bExpandRefs);
46 };
47 
49 {
51  bool mbOldValue;
52 public:
53  UndoSwitch(ScDocument& rDoc, bool bUndo);
54  ~UndoSwitch();
55 };
56 
58 {
60  bool mbOldValue;
61 public:
62  IdleSwitch(ScDocument& rDoc, bool bEnableIdle);
63  ~IdleSwitch();
64 };
65 
68 {
70  bool const mbOldValue;
71 public:
72  DelayFormulaGroupingSwitch(ScDocument& rDoc, bool delay);
73  ~DelayFormulaGroupingSwitch() COVERITY_NOEXCEPT_FALSE;
74  void reset();
75 };
76 
79 {
81  bool const mbOldValue;
82 public:
83  DelayStartListeningFormulaCells(ScColumn& column, bool delay);
84  DelayStartListeningFormulaCells(ScColumn& column);
85  DelayStartListeningFormulaCells(const DelayStartListeningFormulaCells&) = delete;
86  ~DelayStartListeningFormulaCells();
87  void set();
88 };
89 
90 }
91 
92 #endif
93 
94 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
~DelayFormulaGroupingSwitch() COVERITY_NOEXCEPT_FALSE
Definition: scopetools.cxx:67
Temporarily switch on/off auto calculation mode.
Definition: scopetools.hxx:24
Wrapper for ScDocument::EnableDelayStartListeningFormulaCells()
Definition: scopetools.hxx:78
ExpandRefsSwitch(ScDocument &rDoc, bool bExpandRefs)
Definition: scopetools.cxx:28
ScDocument & mrDoc
Definition: scopetools.hxx:26
IdleSwitch(ScDocument &rDoc, bool bEnableIdle)
Definition: scopetools.cxx:50
ScDocument & mrDoc
Definition: scopetools.hxx:41
ScDocument & mrDoc
Definition: scopetools.hxx:59
ScDocument & mrDoc
Definition: scopetools.hxx:50
#define SC_DLLPUBLIC
Definition: scdllapi.h:28
DelayFormulaGroupingSwitch(ScDocument &rDoc, bool delay)
Definition: scopetools.cxx:61
void set(css::uno::UnoInterfaceReference const &value)
Wrapper for ScDocument::DelayFormulaGrouping()
Definition: scopetools.hxx:67