LibreOffice Module chart2 (master) 1
Public Member Functions | Private Attributes | List of all members
chart::ControllerLockGuardUNO Class Reference

This guard calls lockControllers at the given Model in the CTOR and unlockControllers in the DTOR. More...

#include <ControllerLockGuard.hxx>

Collaboration diagram for chart::ControllerLockGuardUNO:
[legend]

Public Member Functions

 ControllerLockGuardUNO (rtl::Reference<::chart::ChartModel > xModel)
 
 ~ControllerLockGuardUNO ()
 

Private Attributes

rtl::Reference<::chart::ChartModel > mxModel
 

Detailed Description

This guard calls lockControllers at the given Model in the CTOR and unlockControllers in the DTOR.

Using this ensures that controllers do not remain locked when leaving a function even in case an exception is thrown.

Definition at line 39 of file ControllerLockGuard.hxx.

Constructor & Destructor Documentation

◆ ControllerLockGuardUNO()

chart::ControllerLockGuardUNO::ControllerLockGuardUNO ( rtl::Reference<::chart::ChartModel >  xModel)
explicit

Definition at line 29 of file ControllerLockGuard.cxx.

References mxModel, mxModel, and xModel.

◆ ~ControllerLockGuardUNO()

chart::ControllerLockGuardUNO::~ControllerLockGuardUNO ( )

Definition at line 35 of file ControllerLockGuard.cxx.

References mxModel.

Member Data Documentation

◆ mxModel

rtl::Reference<::chart::ChartModel> chart::ControllerLockGuardUNO::mxModel
private

Definition at line 46 of file ControllerLockGuard.hxx.

Referenced by ControllerLockGuardUNO(), and ~ControllerLockGuardUNO().


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