LibreOffice Module reportdesign (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
rptui::OPropertyMediator Class Referencefinal

This class ensures the communication between two XPropertySet instances. More...

#include <PropertyForward.hxx>

Inheritance diagram for rptui::OPropertyMediator:
[legend]
Collaboration diagram for rptui::OPropertyMediator:
[legend]

Public Member Functions

 OPropertyMediator (const css::uno::Reference< css::beans::XPropertySet > &_xSource, const css::uno::Reference< css::beans::XPropertySet > &_xDest, TPropertyNamePair &&_aNameMap, bool _bReverse=false)
 
virtual void SAL_CALL propertyChange (const css::beans::PropertyChangeEvent &evt) override
 
virtual void SAL_CALL disposing (const css::lang::EventObject &_rSource) override
 
void stopListening ()
 stop the listening mode. More...
 
void startListening ()
 starts the listening mode again. More...
 

Private Member Functions

 OPropertyMediator (OPropertyMediator const &)=delete
 
void operator= (OPropertyMediator const &)=delete
 
virtual ~OPropertyMediator () override
 
virtual void SAL_CALL disposing () override
 this function is called upon disposing the component More...
 

Private Attributes

TPropertyNamePair m_aNameMap
 
css::uno::Reference< css::beans::XPropertySetm_xSource
 
css::uno::Reference< css::beans::XPropertySetInfo > m_xSourceInfo
 
css::uno::Reference< css::beans::XPropertySetm_xDest
 
css::uno::Reference< css::beans::XPropertySetInfo > m_xDestInfo
 
bool m_bInChange
 

Additional Inherited Members

- Protected Attributes inherited from cppu::BaseMutex
mutable::osl::Mutex m_aMutex
 

Detailed Description

This class ensures the communication between two XPropertySet instances.

Identical properties will be set at the other propertyset.

Definition at line 42 of file PropertyForward.hxx.

Constructor & Destructor Documentation

◆ OPropertyMediator() [1/2]

rptui::OPropertyMediator::OPropertyMediator ( OPropertyMediator const &  )
privatedelete

◆ ~OPropertyMediator()

rptui::OPropertyMediator::~OPropertyMediator ( )
overrideprivatevirtual

Definition at line 80 of file PropertyForward.cxx.

◆ OPropertyMediator() [2/2]

rptui::OPropertyMediator::OPropertyMediator ( const css::uno::Reference< css::beans::XPropertySet > &  _xSource,
const css::uno::Reference< css::beans::XPropertySet > &  _xDest,
TPropertyNamePair &&  _aNameMap,
bool  _bReverse = false 
)

Member Function Documentation

◆ disposing() [1/2]

void SAL_CALL rptui::OPropertyMediator::disposing ( )
overrideprivatevirtual

this function is called upon disposing the component

Definition at line 151 of file PropertyForward.cxx.

References m_xDest, and m_xSource.

◆ disposing() [2/2]

void SAL_CALL rptui::OPropertyMediator::disposing ( const css::lang::EventObject &  _rSource)
overridevirtual

Definition at line 145 of file PropertyForward.cxx.

References m_aMutex.

◆ operator=()

void rptui::OPropertyMediator::operator= ( OPropertyMediator const &  )
privatedelete

◆ propertyChange()

void SAL_CALL rptui::OPropertyMediator::propertyChange ( const css::beans::PropertyChangeEvent &  evt)
overridevirtual

◆ startListening()

void rptui::OPropertyMediator::startListening ( )

starts the listening mode again.

Definition at line 168 of file PropertyForward.cxx.

References m_xDest, and m_xSource.

◆ stopListening()

void rptui::OPropertyMediator::stopListening ( )

stop the listening mode.

Definition at line 160 of file PropertyForward.cxx.

References m_xDest, and m_xSource.

Member Data Documentation

◆ m_aNameMap

TPropertyNamePair rptui::OPropertyMediator::m_aNameMap
private

Definition at line 45 of file PropertyForward.hxx.

◆ m_bInChange

bool rptui::OPropertyMediator::m_bInChange
private

Definition at line 50 of file PropertyForward.hxx.

◆ m_xDest

css::uno::Reference< css::beans::XPropertySet> rptui::OPropertyMediator::m_xDest
private

Definition at line 48 of file PropertyForward.hxx.

◆ m_xDestInfo

css::uno::Reference< css::beans::XPropertySetInfo> rptui::OPropertyMediator::m_xDestInfo
private

Definition at line 49 of file PropertyForward.hxx.

◆ m_xSource

css::uno::Reference< css::beans::XPropertySet> rptui::OPropertyMediator::m_xSource
private

Definition at line 46 of file PropertyForward.hxx.

◆ m_xSourceInfo

css::uno::Reference< css::beans::XPropertySetInfo> rptui::OPropertyMediator::m_xSourceInfo
private

Definition at line 47 of file PropertyForward.hxx.


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