diff options
author | Matúš Kukan <matus.kukan@gmail.com> | 2013-10-31 10:14:53 +0100 |
---|---|---|
committer | Matúš Kukan <matus.kukan@gmail.com> | 2013-11-13 10:33:16 +0100 |
commit | 4753b9a2435a6ddab54c99aee12c52b25bad7c06 (patch) | |
tree | be4cd1481c7632dbed3bbf58d2345f975d77deb0 /sc/inc | |
parent | 52ee03760e26e2ac7eb2561e96ab557ad287de58 (diff) |
move ScRefreshTimerProtector into its own header file
So that, we don't have to include "refreshtimer.hxx" in docsh.hxx.
Also implement destructor in source file.
Change-Id: Ie0251ad3511b44cf1dd6dae34e22ade0ab32cec4
Diffstat (limited to 'sc/inc')
-rw-r--r-- | sc/inc/refreshtimer.hxx | 15 | ||||
-rw-r--r-- | sc/inc/refreshtimerprotector.hxx | 28 |
2 files changed, 28 insertions, 15 deletions
diff --git a/sc/inc/refreshtimer.hxx b/sc/inc/refreshtimer.hxx index 0ee9a374b50b..bbc5a9f1da63 100644 --- a/sc/inc/refreshtimer.hxx +++ b/sc/inc/refreshtimer.hxx @@ -46,21 +46,6 @@ public: ::osl::Mutex& GetMutex() { return aMutex; } }; -class ScRefreshTimerProtector -{ -private: - ScRefreshTimerControl * const * ppControl; - -public: - ScRefreshTimerProtector( ScRefreshTimerControl * const * pp ); - - ~ScRefreshTimerProtector() - { - if ( ppControl && *ppControl ) - (*ppControl)->SetAllowRefresh( true ); - } -}; - class ScRefreshTimer : public AutoTimer { private: diff --git a/sc/inc/refreshtimerprotector.hxx b/sc/inc/refreshtimerprotector.hxx new file mode 100644 index 000000000000..d2169cdc090d --- /dev/null +++ b/sc/inc/refreshtimerprotector.hxx @@ -0,0 +1,28 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + */ + +#ifndef SC_REFRESHTIMERPROTECTOR_HXX +#define SC_REFRESHTIMERPROTECTOR_HXX + +#include <sal/config.h> + +class ScRefreshTimerControl; + +class ScRefreshTimerProtector +{ + ScRefreshTimerControl * const * ppControl; + +public: + ScRefreshTimerProtector( ScRefreshTimerControl * const * pp ); + ~ScRefreshTimerProtector(); +}; + +#endif + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |