LibreOffice Module sc (master)  1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
ScTemporaryChartLock Class Referencefinal

Use this to lock all charts in the calc for a little time. More...

#include <chartlock.hxx>

Collaboration diagram for ScTemporaryChartLock:

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

Timer maTimer
std::unique_ptr< ScChartLockGuardmapScChartLockGuard

Detailed Description

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.

Constructor & Destructor Documentation

ScTemporaryChartLock::ScTemporaryChartLock ( ScDocument pDoc)
ScTemporaryChartLock::~ScTemporaryChartLock ( )

Definition at line 150 of file chartlock.cxx.

References mpDoc, and StopLocking().

ScTemporaryChartLock::ScTemporaryChartLock ( const ScTemporaryChartLock )

Member Function Documentation

void ScTemporaryChartLock::AlsoLockThisChart ( const css::uno::Reference< css::frame::XModel > &  xModel)

Definition at line 169 of file chartlock.cxx.

References mapScChartLockGuard.

ScTemporaryChartLock::DECL_LINK ( TimeoutHdl  ,
Timer ,
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().

Member Data Documentation

std::unique_ptr< ScChartLockGuard > ScTemporaryChartLock::mapScChartLockGuard

Definition at line 65 of file chartlock.hxx.

Referenced by AlsoLockThisChart(), StartOrContinueLocking(), and StopLocking().

Timer ScTemporaryChartLock::maTimer

Definition at line 64 of file chartlock.hxx.

Referenced by ScTemporaryChartLock(), StartOrContinueLocking(), and StopLocking().

ScDocument* ScTemporaryChartLock::mpDoc

Definition at line 63 of file chartlock.hxx.

Referenced by StartOrContinueLocking(), and ~ScTemporaryChartLock().

The documentation for this class was generated from the following files: