LibreOffice Module sc (master) 1
|
Use this to lock all charts in the calc for a little time. More...
#include <chartlock.hxx>
Public Member Functions | |
ScTemporaryChartLock (ScDocument *pDoc) | |
~ScTemporaryChartLock () | |
void | StartOrContinueLocking () |
void | StopLocking () |
void | AlsoLockThisChart (const css::uno::Reference< css::frame::XModel > &xModel) |
Private Member Functions | |
DECL_LINK (TimeoutHdl, Timer *, void) | |
ScTemporaryChartLock (const ScTemporaryChartLock &)=delete | |
Private Attributes | |
ScDocument * | mpDoc |
Timer | maTimer |
std::unique_ptr< ScChartLockGuard > | mapScChartLockGuard |
Use this to lock all charts in the calc for a little time.
They will unlock automatically unless you call StartOrContinueLocking() again.
Definition at line 52 of file chartlock.hxx.
ScTemporaryChartLock::ScTemporaryChartLock | ( | ScDocument * | pDoc | ) |
Definition at line 143 of file chartlock.cxx.
References LINK, maTimer, SC_CHARTLOCKTIMEOUT, Timer::SetInvokeHandler(), and Timer::SetTimeout().
ScTemporaryChartLock::~ScTemporaryChartLock | ( | ) |
Definition at line 150 of file chartlock.cxx.
References mpDoc, and StopLocking().
|
privatedelete |
void ScTemporaryChartLock::AlsoLockThisChart | ( | const css::uno::Reference< css::frame::XModel > & | xModel | ) |
Definition at line 169 of file chartlock.cxx.
References mapScChartLockGuard, and xModel.
|
private |
void ScTemporaryChartLock::StartOrContinueLocking | ( | ) |
Definition at line 156 of file chartlock.cxx.
References mapScChartLockGuard, maTimer, mpDoc, and Timer::Start().
void ScTemporaryChartLock::StopLocking | ( | ) |
Definition at line 163 of file chartlock.cxx.
References mapScChartLockGuard, maTimer, and Task::Stop().
Referenced by ~ScTemporaryChartLock().
|
private |
Definition at line 65 of file chartlock.hxx.
Referenced by AlsoLockThisChart(), StartOrContinueLocking(), and StopLocking().
|
private |
Definition at line 64 of file chartlock.hxx.
Referenced by ScTemporaryChartLock(), StartOrContinueLocking(), and StopLocking().
|
private |
Definition at line 63 of file chartlock.hxx.
Referenced by StartOrContinueLocking(), and ~ScTemporaryChartLock().