LibreOffice Module svx (master) 1
|
#include <fmundo.hxx>
Classes | |
struct | Accessor |
Public Member Functions | |
FmXUndoEnvironment (FmFormModel &_rModel) | |
virtual | ~FmXUndoEnvironment () override |
void | Lock () |
void | UnLock () |
bool | IsLocked () const |
void | AddForms (const css::uno::Reference< css::container::XNameContainer > &rForms) |
void | RemoveForms (const css::uno::Reference< css::container::XNameContainer > &rForms) |
void | SetReadOnly (bool bRead, const Accessor &) |
bool | IsReadOnly () const |
void | Inserted (SdrObject *pObj) |
void | Removed (SdrObject *pObj) |
Public Member Functions inherited from SfxListener | |
SfxListener () | |
SfxListener (const SfxListener &rCopy) | |
virtual | ~SfxListener () COVERITY_NOEXCEPT_FALSE |
void | StartListening (SfxBroadcaster &rBroadcaster, DuplicateHandling eDuplicateHanding=DuplicateHandling::Unexpected) |
void | EndListening (SfxBroadcaster &rBroadcaster, bool bRemoveAllDuplicates=false) |
void | EndListeningAll () |
bool | IsListening (SfxBroadcaster &rBroadcaster) const |
sal_uInt16 | GetBroadcasterCount () const |
SfxBroadcaster * | GetBroadcasterJOE (sal_uInt16 nNo) const |
virtual void | Notify (SfxBroadcaster &rBC, const SfxHint &rHint) |
void | RemoveBroadcaster_Impl (SfxBroadcaster &rBC) |
virtual bool | IsSdrView () const |
Static Public Member Functions | |
static void | Inserted (FmFormObj *pObj) |
static void | Removed (FmFormObj *pObj) |
Private Member Functions | |
virtual void SAL_CALL | disposing (const css::lang::EventObject &Source) override |
virtual void SAL_CALL | propertyChange (const css::beans::PropertyChangeEvent &evt) override |
virtual void SAL_CALL | elementInserted (const css::container::ContainerEvent &rEvent) override |
virtual void SAL_CALL | elementReplaced (const css::container::ContainerEvent &rEvent) override |
virtual void SAL_CALL | elementRemoved (const css::container::ContainerEvent &rEvent) override |
virtual void SAL_CALL | modified (const css::lang::EventObject &aEvent) override |
void | ModeChanged () |
void | dispose () |
virtual void | Notify (SfxBroadcaster &rBC, const SfxHint &rHint) override |
void | AddElement (const css::uno::Reference< css::uno::XInterface > &Element) |
void | RemoveElement (const css::uno::Reference< css::uno::XInterface > &Element) |
void | TogglePropertyListening (const css::uno::Reference< css::uno::XInterface > &Element) |
void | implSetModified () |
void | switchListening (const css::uno::Reference< css::container::XIndexContainer > &_rxContainer, bool _bStartListening) |
void | switchListening (const css::uno::Reference< css::uno::XInterface > &_rxObject, bool _bStartListening) |
Private Attributes | |
FmFormModel & | rModel |
void * | m_pPropertySetCache |
::rtl::Reference< svxform::FormScriptingEnvironment > | m_pScriptingEnv |
oslInterlockedCount | m_Locks |
::osl::Mutex | m_aMutex |
bool | bReadOnly |
bool | m_bDisposed |
css::uno::Reference< css::script::XScriptListener > | m_vbaListener |
Definition at line 118 of file fmundo.hxx.
FmXUndoEnvironment::FmXUndoEnvironment | ( | FmFormModel & | _rModel | ) |
Definition at line 171 of file fmundo.cxx.
References Exception, m_bDisposed, and m_vbaListener.
|
overridevirtual |
Definition at line 188 of file fmundo.cxx.
References m_bDisposed, m_pPropertySetCache, and m_pScriptingEnv.
|
private |
Definition at line 916 of file fmundo.cxx.
References m_bDisposed, and switchListening().
Referenced by AddForms(), elementInserted(), and elementReplaced().
void FmXUndoEnvironment::AddForms | ( | const css::uno::Reference< css::container::XNameContainer > & | rForms | ) |
Definition at line 783 of file fmundo.cxx.
References AddElement(), Lock(), and UnLock().
Referenced by FmFormPageImpl::getForms().
|
private |
Definition at line 197 of file fmundo.cxx.
References SfxListener::EndListening(), FmFormPage::GetForms(), SdrModel::GetMasterPage(), SdrModel::GetMasterPageCount(), FmFormModel::GetObjectShell(), SdrModel::GetPage(), SdrModel::GetPageCount(), i, SfxListener::IsListening(), Lock(), m_bDisposed, m_pScriptingEnv, nCount, RemoveElement(), rModel, and UnLock().
Referenced by Notify().
|
overrideprivatevirtual |
Definition at line 510 of file fmundo.cxx.
References m_pPropertySetCache.
|
overrideprivatevirtual |
Definition at line 723 of file fmundo.cxx.
References AddElement(), implSetModified(), and m_aMutex.
|
overrideprivatevirtual |
Definition at line 764 of file fmundo.cxx.
References implSetModified(), m_aMutex, and RemoveElement().
|
overrideprivatevirtual |
Definition at line 747 of file fmundo.cxx.
References AddElement(), implSetModified(), m_aMutex, and RemoveElement().
|
private |
Definition at line 738 of file fmundo.cxx.
References FmFormModel::GetObjectShell(), IsLocked(), rModel, and SfxObjectShell::SetModified().
Referenced by elementInserted(), elementRemoved(), elementReplaced(), and modified().
|
static |
Definition at line 389 of file fmundo.cxx.
References Any, DBG_ASSERT, DBG_UNHANDLED_EXCEPTION, Exception, FmFormPageImpl::findPlaceInFormComponentHierarchy(), FmFormPage::GetForms(), FmFormPage::GetImpl(), nPos, FmFormPageImpl::setUniqueName(), and xModel.
void FmXUndoEnvironment::Inserted | ( | SdrObject * | pObj | ) |
Definition at line 337 of file fmundo.cxx.
References FmForm, SdrObject::GetObjInventor(), SdrObject::GetSubList(), Inserted(), SdrObject::IsGroupObject(), SdrObjListIter::IsMore(), and SdrObjListIter::Next().
Referenced by Inserted(), and Notify().
|
inline |
Definition at line 136 of file fmundo.hxx.
References m_Locks.
Referenced by implSetModified(), propertyChange(), FmUndoPropertyAction::Redo(), FmUndoContainerAction::Redo(), FmUndoPropertyAction::Undo(), and FmUndoContainerAction::Undo().
|
inline |
Definition at line 147 of file fmundo.hxx.
References bReadOnly.
|
inline |
Definition at line 134 of file fmundo.hxx.
References m_Locks.
Referenced by AddForms(), FmFormView::ChangeDesignMode(), dispose(), FmUndoPropertyAction::Redo(), FmUndoContainerAction::Redo(), RemoveForms(), FmFormShell::SetDesignMode(), FmUndoPropertyAction::Undo(), and FmUndoContainerAction::Undo().
|
private |
Definition at line 245 of file fmundo.cxx.
References bReadOnly, SfxListener::EndListening(), FmFormPage::GetForms(), SdrModel::GetMasterPage(), SdrModel::GetMasterPageCount(), FmFormModel::GetObjectShell(), SdrModel::GetPage(), SdrModel::GetPageCount(), i, SfxObjectShell::IsReadOnly(), SfxObjectShell::IsReadOnlyUI(), nCount, rModel, SfxListener::StartListening(), and TogglePropertyListening().
Referenced by Notify().
|
overrideprivatevirtual |
Definition at line 777 of file fmundo.cxx.
References implSetModified().
|
overrideprivatevirtual |
Reimplemented from SfxListener.
Definition at line 288 of file fmundo.cxx.
References dispose(), SfxHint::GetId(), SdrHint::GetKind(), SdrHint::GetObject(), Inserted(), ModeChanged(), ObjectInserted, ObjectRemoved, Removed(), rModel, and FmFormModel::SetObjectShell().
|
overrideprivatevirtual |
Definition at line 528 of file fmundo.cxx.
References SdrModel::AddUndo(), Any, DBG_ASSERT, DBG_UNHANDLED_EXCEPTION, Exception, FM_PROP_CONTROLSOURCE, FM_PROP_CONTROLSOURCEPROPERTY, FM_PROP_DATE, FM_PROP_DEFAULT_DATE, FM_PROP_DEFAULT_SELECT_SEQ, FM_PROP_DEFAULT_TEXT, FM_PROP_DEFAULT_TIME, FM_PROP_DEFAULT_VALUE, FM_PROP_DEFAULTCHECKED, FM_PROP_EFFECTIVE_DEFAULT, FM_PROP_EFFECTIVE_VALUE, FM_PROP_SELECT_SEQ, FM_PROP_STATE, FM_PROP_STRINGITEMLIST, FM_PROP_TEXT, FM_PROP_TIME, FM_PROP_VALUE, i, IsLocked(), SdrModel::IsUndoEnabled(), m_aMutex, m_pPropertySetCache, nAttributes, rModel, SAL_N_ELEMENTS, u, and xSink.
|
static |
Definition at line 467 of file fmundo.cxx.
References DBG_ASSERT, DBG_UNHANDLED_EXCEPTION, Exception, getElementPos(), and nPos.
void FmXUndoEnvironment::Removed | ( | SdrObject * | pObj | ) |
Definition at line 446 of file fmundo.cxx.
References FmForm, SdrObject::GetObjInventor(), SdrObject::GetSubList(), SdrObject::IsGroupObject(), SdrObjListIter::IsMore(), SdrObject::IsVirtualObj(), SdrObjListIter::Next(), and Removed().
|
private |
Definition at line 929 of file fmundo.cxx.
References Any, bReadOnly, FM_PROP_ACTIVE_CONNECTION, isEmbeddedInDatabase(), m_bDisposed, and switchListening().
Referenced by dispose(), elementRemoved(), elementReplaced(), and RemoveForms().
void FmXUndoEnvironment::RemoveForms | ( | const css::uno::Reference< css::container::XNameContainer > & | rForms | ) |
Definition at line 791 of file fmundo.cxx.
References Lock(), RemoveElement(), and UnLock().
|
inline |
Definition at line 146 of file fmundo.hxx.
References bReadOnly.
|
private |
Referenced by AddElement(), and RemoveElement().
|
private |
|
private |
Definition at line 799 of file fmundo.cxx.
References bReadOnly, i, nCount, and TogglePropertyListening().
Referenced by ModeChanged(), and TogglePropertyListening().
|
inline |
Definition at line 135 of file fmundo.hxx.
References m_Locks.
Referenced by AddForms(), FmFormView::ChangeDesignMode(), dispose(), FmUndoPropertyAction::Redo(), FmUndoContainerAction::Redo(), RemoveForms(), FmFormShell::SetDesignMode(), FmUndoPropertyAction::Undo(), and FmUndoContainerAction::Undo().
|
private |
Definition at line 191 of file fmundo.hxx.
Referenced by IsReadOnly(), ModeChanged(), RemoveElement(), SetReadOnly(), and TogglePropertyListening().
|
private |
Definition at line 190 of file fmundo.hxx.
Referenced by elementInserted(), elementRemoved(), elementReplaced(), and propertyChange().
|
private |
Definition at line 192 of file fmundo.hxx.
Referenced by AddElement(), dispose(), RemoveElement(), and ~FmXUndoEnvironment().
|
private |
Definition at line 189 of file fmundo.hxx.
Referenced by IsLocked(), Lock(), and UnLock().
|
private |
Definition at line 187 of file fmundo.hxx.
Referenced by disposing(), propertyChange(), and ~FmXUndoEnvironment().
|
private |
Definition at line 188 of file fmundo.hxx.
Referenced by dispose(), and ~FmXUndoEnvironment().
|
private |
Definition at line 193 of file fmundo.hxx.
Referenced by FmXUndoEnvironment().
|
private |
Definition at line 186 of file fmundo.hxx.
Referenced by dispose(), implSetModified(), ModeChanged(), Notify(), and propertyChange().