Bump version to 4.3-4
[LibreOffice.git] / sc / inc / scopetools.hxx
blob785fd70a035ec20e454fd2c8cf6c700146ecd1ad
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
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 */
10 #ifndef INCLUDED_SC_INC_SCOPETOOLS_HXX
11 #define INCLUDED_SC_INC_SCOPETOOLS_HXX
13 #include "scdllapi.h"
15 class ScDocument;
16 class Window;
18 namespace sc {
20 /**
21 * Temporarily switch on/off auto calculation mode.
23 class SC_DLLPUBLIC AutoCalcSwitch
25 ScDocument& mrDoc;
26 bool mbOldValue;
27 public:
28 AutoCalcSwitch(ScDocument& rDoc, bool bAutoCalc);
29 ~AutoCalcSwitch();
32 class SC_DLLPUBLIC ExpandRefsSwitch
34 ScDocument& mrDoc;
35 bool mbOldValue;
36 public:
37 ExpandRefsSwitch(ScDocument& rDoc, bool bExpandRefs);
38 ~ExpandRefsSwitch();
41 class SC_DLLPUBLIC UndoSwitch
43 ScDocument& mrDoc;
44 bool mbOldValue;
45 public:
46 UndoSwitch(ScDocument& rDoc, bool bUndo);
47 ~UndoSwitch();
50 class SC_DLLPUBLIC IdleSwitch
52 ScDocument& mrDoc;
53 bool mbOldValue;
54 public:
55 IdleSwitch(ScDocument& rDoc, bool bEnableIdle);
56 ~IdleSwitch();
59 class WaitPointerSwitch
61 Window* mpFrameWin;
62 public:
63 WaitPointerSwitch(Window* pWin);
64 ~WaitPointerSwitch();
69 #endif
71 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */