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:
[legend]

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

ScDocumentmpDoc
 
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 53 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 )
privatedelete

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   
)
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().

Member Data Documentation

std::unique_ptr< ScChartLockGuard > ScTemporaryChartLock::mapScChartLockGuard
private

Definition at line 66 of file chartlock.hxx.

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

Timer ScTemporaryChartLock::maTimer
private

Definition at line 65 of file chartlock.hxx.

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

ScDocument* ScTemporaryChartLock::mpDoc
private

Definition at line 64 of file chartlock.hxx.

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


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