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 52 of file chartlock.hxx.

Constructor & Destructor Documentation

◆ ScTemporaryChartLock() [1/2]

ScTemporaryChartLock::ScTemporaryChartLock ( ScDocument pDoc)

◆ ~ScTemporaryChartLock()

ScTemporaryChartLock::~ScTemporaryChartLock ( )

Definition at line 150 of file chartlock.cxx.

References mpDoc, and StopLocking().

◆ ScTemporaryChartLock() [2/2]

ScTemporaryChartLock::ScTemporaryChartLock ( const ScTemporaryChartLock )
privatedelete

Member Function Documentation

◆ AlsoLockThisChart()

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

Definition at line 169 of file chartlock.cxx.

References mapScChartLockGuard, and xModel.

◆ DECL_LINK()

ScTemporaryChartLock::DECL_LINK ( TimeoutHdl  ,
Timer ,
void   
)
private

◆ StartOrContinueLocking()

void ScTemporaryChartLock::StartOrContinueLocking ( )

Definition at line 156 of file chartlock.cxx.

References mapScChartLockGuard, maTimer, mpDoc, and Timer::Start().

◆ StopLocking()

void ScTemporaryChartLock::StopLocking ( )

Definition at line 163 of file chartlock.cxx.

References mapScChartLockGuard, maTimer, and Task::Stop().

Referenced by ~ScTemporaryChartLock().

Member Data Documentation

◆ mapScChartLockGuard

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

Definition at line 65 of file chartlock.hxx.

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

◆ maTimer

Timer ScTemporaryChartLock::maTimer
private

Definition at line 64 of file chartlock.hxx.

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

◆ mpDoc

ScDocument* ScTemporaryChartLock::mpDoc
private

Definition at line 63 of file chartlock.hxx.

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


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