LibreOffice Module svx (master)  1
Classes | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
FmXUndoEnvironment Class Referencefinal

#include <fmundo.hxx>

Inheritance diagram for FmXUndoEnvironment:
[legend]
Collaboration diagram for FmXUndoEnvironment:
[legend]

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
 
SfxBroadcasterGetBroadcasterJOE (sal_uInt16 nNo) const
 
void RemoveBroadcaster_Impl (SfxBroadcaster &rBC)
 

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

FmFormModelrModel
 
voidm_pPropertySetCache
 
::svxform::PFormScriptingEnvironment m_pScriptingEnv
 
oslInterlockedCount m_Locks
 
::osl::Mutex m_aMutex
 
bool bReadOnly
 
bool m_bDisposed
 
css::uno::Reference< css::script::XScriptListener > m_vbaListener
 

Detailed Description

Definition at line 119 of file fmundo.hxx.

Constructor & Destructor Documentation

FmXUndoEnvironment::FmXUndoEnvironment ( FmFormModel _rModel)

Definition at line 173 of file fmundo.cxx.

References Exception, and m_vbaListener.

FmXUndoEnvironment::~FmXUndoEnvironment ( )
overridevirtual

Definition at line 190 of file fmundo.cxx.

References m_bDisposed, m_pPropertySetCache, and m_pScriptingEnv.

Member Function Documentation

void FmXUndoEnvironment::AddElement ( const css::uno::Reference< css::uno::XInterface > &  Element)
private

Definition at line 920 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 787 of file fmundo.cxx.

References AddElement(), Lock(), and UnLock().

Referenced by FmFormPageImpl::getForms().

void FmXUndoEnvironment::dispose ( void  )
private
void SAL_CALL FmXUndoEnvironment::disposing ( const css::lang::EventObject &  Source)
overrideprivatevirtual

Definition at line 514 of file fmundo.cxx.

References m_pPropertySetCache.

void SAL_CALL FmXUndoEnvironment::elementInserted ( const css::container::ContainerEvent &  rEvent)
overrideprivatevirtual

Definition at line 727 of file fmundo.cxx.

References AddElement(), implSetModified(), and m_aMutex.

void SAL_CALL FmXUndoEnvironment::elementRemoved ( const css::container::ContainerEvent &  rEvent)
overrideprivatevirtual

Definition at line 768 of file fmundo.cxx.

References implSetModified(), m_aMutex, and RemoveElement().

void SAL_CALL FmXUndoEnvironment::elementReplaced ( const css::container::ContainerEvent &  rEvent)
overrideprivatevirtual

Definition at line 751 of file fmundo.cxx.

References AddElement(), implSetModified(), m_aMutex, and RemoveElement().

void FmXUndoEnvironment::implSetModified ( )
private
void FmXUndoEnvironment::Inserted ( SdrObject pObj)

Definition at line 339 of file fmundo.cxx.

References FmForm, SdrObject::GetObjInventor(), SdrObject::GetSubList(), and SdrObject::IsGroupObject().

Referenced by Notify().

void FmXUndoEnvironment::Inserted ( FmFormObj pObj)
static
bool FmXUndoEnvironment::IsLocked ( ) const
inline
bool FmXUndoEnvironment::IsReadOnly ( ) const
inline

Definition at line 148 of file fmundo.hxx.

References bReadOnly.

void FmXUndoEnvironment::Lock ( )
inline
void FmXUndoEnvironment::ModeChanged ( )
private
void SAL_CALL FmXUndoEnvironment::modified ( const css::lang::EventObject &  aEvent)
overrideprivatevirtual

Definition at line 781 of file fmundo.cxx.

References implSetModified().

void FmXUndoEnvironment::Notify ( SfxBroadcaster rBC,
const SfxHint rHint 
)
overrideprivatevirtual
void SAL_CALL FmXUndoEnvironment::propertyChange ( const css::beans::PropertyChangeEvent &  evt)
overrideprivatevirtual
void FmXUndoEnvironment::Removed ( SdrObject pObj)
void FmXUndoEnvironment::Removed ( FmFormObj pObj)
static
void FmXUndoEnvironment::RemoveElement ( const css::uno::Reference< css::uno::XInterface > &  Element)
private
void FmXUndoEnvironment::RemoveForms ( const css::uno::Reference< css::container::XNameContainer > &  rForms)

Definition at line 795 of file fmundo.cxx.

References Lock(), RemoveElement(), and UnLock().

void FmXUndoEnvironment::SetReadOnly ( bool  bRead,
const Accessor  
)
inline

Definition at line 147 of file fmundo.hxx.

References bReadOnly.

void FmXUndoEnvironment::switchListening ( const css::uno::Reference< css::container::XIndexContainer > &  _rxContainer,
bool  _bStartListening 
)
private

Referenced by AddElement(), and RemoveElement().

void FmXUndoEnvironment::switchListening ( const css::uno::Reference< css::uno::XInterface > &  _rxObject,
bool  _bStartListening 
)
private
void FmXUndoEnvironment::TogglePropertyListening ( const css::uno::Reference< css::uno::XInterface > &  Element)
private

Definition at line 803 of file fmundo.cxx.

References bReadOnly, and i.

Referenced by ModeChanged().

void FmXUndoEnvironment::UnLock ( )
inline

Member Data Documentation

bool FmXUndoEnvironment::bReadOnly
private
::osl::Mutex FmXUndoEnvironment::m_aMutex
private

Definition at line 191 of file fmundo.hxx.

Referenced by elementInserted(), elementRemoved(), elementReplaced(), and propertyChange().

bool FmXUndoEnvironment::m_bDisposed
private

Definition at line 193 of file fmundo.hxx.

Referenced by AddElement(), dispose(), RemoveElement(), and ~FmXUndoEnvironment().

oslInterlockedCount FmXUndoEnvironment::m_Locks
private

Definition at line 190 of file fmundo.hxx.

Referenced by IsLocked(), Lock(), and UnLock().

void* FmXUndoEnvironment::m_pPropertySetCache
private

Definition at line 188 of file fmundo.hxx.

Referenced by disposing(), propertyChange(), and ~FmXUndoEnvironment().

::svxform::PFormScriptingEnvironment FmXUndoEnvironment::m_pScriptingEnv
private

Definition at line 189 of file fmundo.hxx.

Referenced by dispose(), and ~FmXUndoEnvironment().

css::uno::Reference< css::script::XScriptListener > FmXUndoEnvironment::m_vbaListener
private

Definition at line 194 of file fmundo.hxx.

Referenced by FmXUndoEnvironment().

FmFormModel& FmXUndoEnvironment::rModel
private

Definition at line 187 of file fmundo.hxx.

Referenced by dispose(), implSetModified(), ModeChanged(), Notify(), and propertyChange().


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