1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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/.
10 #ifndef INCLUDED_SC_INC_SCOPETOOLS_HXX
11 #define INCLUDED_SC_INC_SCOPETOOLS_HXX
14 #include <vcl/vclptr.hxx>
17 namespace vcl
{ class Window
; }
22 * Temporarily switch on/off auto calculation mode.
24 class SC_DLLPUBLIC AutoCalcSwitch
29 AutoCalcSwitch(ScDocument
& rDoc
, bool bAutoCalc
);
33 class SC_DLLPUBLIC ExpandRefsSwitch
38 ExpandRefsSwitch(ScDocument
& rDoc
, bool bExpandRefs
);
42 class SC_DLLPUBLIC UndoSwitch
47 UndoSwitch(ScDocument
& rDoc
, bool bUndo
);
51 class SC_DLLPUBLIC IdleSwitch
56 IdleSwitch(ScDocument
& rDoc
, bool bEnableIdle
);
60 class WaitPointerSwitch
62 VclPtr
<vcl::Window
> mpFrameWin
;
64 WaitPointerSwitch(vcl::Window
* pWin
);
72 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */