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
 
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

FmFormModelrModel
 
void * m_pPropertySetCache
 
::rtl::Reference< svxform::FormScriptingEnvironmentm_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 118 of file fmundo.hxx.

Constructor & Destructor Documentation

◆ FmXUndoEnvironment()

FmXUndoEnvironment::FmXUndoEnvironment ( FmFormModel _rModel)

Definition at line 171 of file fmundo.cxx.

References Exception, m_bDisposed, and m_vbaListener.

◆ ~FmXUndoEnvironment()

FmXUndoEnvironment::~FmXUndoEnvironment ( )
overridevirtual

Definition at line 188 of file fmundo.cxx.

References m_bDisposed, m_pPropertySetCache, and m_pScriptingEnv.

Member Function Documentation

◆ AddElement()

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

Definition at line 916 of file fmundo.cxx.

References m_bDisposed, and switchListening().

Referenced by AddForms(), elementInserted(), and elementReplaced().

◆ AddForms()

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().

◆ dispose()

void FmXUndoEnvironment::dispose ( void  )
private

◆ disposing()

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

Definition at line 510 of file fmundo.cxx.

References m_pPropertySetCache.

◆ elementInserted()

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

Definition at line 723 of file fmundo.cxx.

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

◆ elementRemoved()

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

Definition at line 764 of file fmundo.cxx.

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

◆ elementReplaced()

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

Definition at line 747 of file fmundo.cxx.

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

◆ implSetModified()

void FmXUndoEnvironment::implSetModified ( )
private

◆ Inserted() [1/2]

void FmXUndoEnvironment::Inserted ( FmFormObj *  pObj)
static

◆ Inserted() [2/2]

void FmXUndoEnvironment::Inserted ( SdrObject pObj)

◆ IsLocked()

bool FmXUndoEnvironment::IsLocked ( ) const
inline

◆ IsReadOnly()

bool FmXUndoEnvironment::IsReadOnly ( ) const
inline

Definition at line 147 of file fmundo.hxx.

References bReadOnly.

◆ Lock()

void FmXUndoEnvironment::Lock ( )
inline

◆ ModeChanged()

void FmXUndoEnvironment::ModeChanged ( )
private

◆ modified()

void SAL_CALL FmXUndoEnvironment::modified ( const css::lang::EventObject &  aEvent)
overrideprivatevirtual

Definition at line 777 of file fmundo.cxx.

References implSetModified().

◆ Notify()

void FmXUndoEnvironment::Notify ( SfxBroadcaster rBC,
const SfxHint rHint 
)
overrideprivatevirtual

◆ propertyChange()

void SAL_CALL FmXUndoEnvironment::propertyChange ( const css::beans::PropertyChangeEvent &  evt)
overrideprivatevirtual

◆ Removed() [1/2]

void FmXUndoEnvironment::Removed ( FmFormObj *  pObj)
static

Definition at line 467 of file fmundo.cxx.

References DBG_ASSERT, DBG_UNHANDLED_EXCEPTION, Exception, getElementPos(), and nPos.

◆ Removed() [2/2]

void FmXUndoEnvironment::Removed ( SdrObject pObj)

◆ RemoveElement()

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

◆ 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().

◆ SetReadOnly()

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

Definition at line 146 of file fmundo.hxx.

References bReadOnly.

◆ switchListening() [1/2]

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

Referenced by AddElement(), and RemoveElement().

◆ switchListening() [2/2]

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

◆ TogglePropertyListening()

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

Definition at line 799 of file fmundo.cxx.

References bReadOnly, i, nCount, and TogglePropertyListening().

Referenced by ModeChanged(), and TogglePropertyListening().

◆ UnLock()

void FmXUndoEnvironment::UnLock ( )
inline

Member Data Documentation

◆ bReadOnly

bool FmXUndoEnvironment::bReadOnly
private

◆ m_aMutex

::osl::Mutex FmXUndoEnvironment::m_aMutex
private

Definition at line 190 of file fmundo.hxx.

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

◆ m_bDisposed

bool FmXUndoEnvironment::m_bDisposed
private

Definition at line 192 of file fmundo.hxx.

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

◆ m_Locks

oslInterlockedCount FmXUndoEnvironment::m_Locks
private

Definition at line 189 of file fmundo.hxx.

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

◆ m_pPropertySetCache

void* FmXUndoEnvironment::m_pPropertySetCache
private

Definition at line 187 of file fmundo.hxx.

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

◆ m_pScriptingEnv

::rtl::Reference<svxform::FormScriptingEnvironment> FmXUndoEnvironment::m_pScriptingEnv
private

Definition at line 188 of file fmundo.hxx.

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

◆ m_vbaListener

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

Definition at line 193 of file fmundo.hxx.

Referenced by FmXUndoEnvironment().

◆ rModel

FmFormModel& FmXUndoEnvironment::rModel
private

Definition at line 186 of file fmundo.hxx.

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


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