LibreOffice Module forms (master) 1
|
class whose instances lock an OControlModel More...
#include <FormComponent.hxx>
Public Member Functions | |
ControlModelLock (OControlModel &_rModel) | |
~ControlModelLock () | |
void | acquire () |
void | release () |
OControlModel & | getModel () const |
void | addPropertyNotification (const sal_Int32 _nHandle, const css::uno::Any &_rOldValue, const css::uno::Any &_rNewValue) |
adds a property change notification, which is to be fired when the last lock on the model (in the current thread) is released. More... | |
Private Member Functions | |
void | impl_notifyAll_nothrow () |
ControlModelLock (const ControlModelLock &)=delete | |
ControlModelLock & | operator= (const ControlModelLock &)=delete |
Private Attributes | |
OControlModel & | m_rModel |
bool | m_bLocked |
std::vector< sal_Int32 > | m_aHandles |
std::vector< css::uno::Any > | m_aOldValues |
std::vector< css::uno::Any > | m_aNewValues |
class whose instances lock an OControlModel
Locking here merely means locking the OControlModel's mutex.
In addition to the locking facility, the class is also able to fire property change notifications. This happens when the last ControlModelLock instance on a stack dies.
Definition at line 87 of file FormComponent.hxx.
|
inline |
Definition at line 90 of file FormComponent.hxx.
References acquire().
|
inline |
Definition at line 97 of file FormComponent.hxx.
|
privatedelete |
|
inline |
Definition at line 1189 of file FormComponent.hxx.
References frm::OControlModel::lockInstance(), m_bLocked, and m_rModel.
Referenced by frm::OBoundControlModel::commit(), ControlModelLock(), frm::OBoundControlModel::transferControlValueToExternal(), and frm::OBoundControlModel::transferExternalValueToControl().
void frm::ControlModelLock::addPropertyNotification | ( | const sal_Int32 | _nHandle, |
const css::uno::Any & | _rOldValue, | ||
const css::uno::Any & | _rNewValue | ||
) |
adds a property change notification, which is to be fired when the last lock on the model (in the current thread) is released.
Definition at line 81 of file FormComponent.cxx.
References m_aHandles, m_aNewValues, and m_aOldValues.
Referenced by frm::OBoundControlModel::disposing().
|
inline |
Definition at line 105 of file FormComponent.hxx.
References m_rModel.
|
private |
Definition at line 76 of file FormComponent.cxx.
References frm::OControlModel::firePropertyChanges(), m_aHandles, m_aNewValues, m_aOldValues, and m_rModel.
Referenced by release().
|
privatedelete |
|
inline |
Definition at line 1194 of file FormComponent.hxx.
References impl_notifyAll_nothrow(), m_bLocked, m_rModel, and frm::OControlModel::unlockInstance().
Referenced by frm::OBoundControlModel::commit(), frm::OBoundControlModel::reset(), frm::OBoundControlModel::transferControlValueToExternal(), frm::OBoundControlModel::transferExternalValueToControl(), and ~ControlModelLock().
|
private |
Definition at line 121 of file FormComponent.hxx.
Referenced by addPropertyNotification(), and impl_notifyAll_nothrow().
|
private |
Definition at line 123 of file FormComponent.hxx.
Referenced by addPropertyNotification(), and impl_notifyAll_nothrow().
|
private |
Definition at line 122 of file FormComponent.hxx.
Referenced by addPropertyNotification(), and impl_notifyAll_nothrow().
|
private |
Definition at line 120 of file FormComponent.hxx.
Referenced by acquire(), release(), and ~ControlModelLock().
|
private |
Definition at line 119 of file FormComponent.hxx.
Referenced by acquire(), getModel(), impl_notifyAll_nothrow(), and release().