LibreOffice Module reportdesign (master) 1
|
#include <ReportControllerObserver.hxx>
Classes | |
class | OEnvLock |
Create an object ob OUndoEnvLock locks the undo possibility As long as in the OUndoEnvLock scope, no undo is possible for manipulated object. More... | |
Public Member Functions | |
OXReportControllerObserver (const OReportController &_rController) | |
virtual void SAL_CALL | propertyChange (const css::beans::PropertyChangeEvent &evt) override |
virtual void SAL_CALL | disposing (const css::lang::EventObject &Source) 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 | AddElement (const css::uno::Reference< css::uno::XInterface > &Element) |
void | RemoveElement (const css::uno::Reference< css::uno::XInterface > &Element) |
void | AddSection (const css::uno::Reference< css::report::XSection > &_xSection) |
void | RemoveSection (const css::uno::Reference< css::report::XSection > &_xSection) |
void | Lock () |
void | UnLock () |
void | Clear () |
Private Member Functions | |
OXReportControllerObserver (const OXReportControllerObserver &)=delete | |
OXReportControllerObserver & | operator= (const OXReportControllerObserver &)=delete |
virtual | ~OXReportControllerObserver () override |
void | switchListening (const css::uno::Reference< css::container::XIndexAccess > &_rxContainer, bool _bStartListening) |
void | switchListening (const css::uno::Reference< css::uno::XInterface > &_rxObject, bool _bStartListening) |
DECL_LINK (SettingsChanged, VclSimpleEvent &, void) | |
Private Attributes | |
::std::vector< css::uno::Reference< css::container::XChild > > | m_aSections |
::osl::Mutex | m_aMutex |
oslInterlockedCount | m_nLocks |
FormattedFieldBeautifier | m_aFormattedFieldBeautifier |
FixedTextColor | m_aFixedTextColor |
Definition at line 42 of file ReportControllerObserver.hxx.
|
privatedelete |
|
overrideprivatevirtual |
Definition at line 53 of file ReportControllerObserver.cxx.
References LINK, Application::RemoveEventListener(), and SettingsChanged.
rptui::OXReportControllerObserver::OXReportControllerObserver | ( | const OReportController & | _rController | ) |
Definition at line 44 of file ReportControllerObserver.cxx.
References Application::AddEventListener(), LINK, and SettingsChanged.
void rptui::OXReportControllerObserver::AddElement | ( | const css::uno::Reference< css::uno::XInterface > & | Element | ) |
Definition at line 254 of file ReportControllerObserver.cxx.
References m_aFixedTextColor, m_aFormattedFieldBeautifier, rptui::FixedTextColor::notifyElementInserted(), rptui::FormattedFieldBeautifier::notifyElementInserted(), and switchListening().
Referenced by AddSection(), elementInserted(), and elementReplaced().
void rptui::OXReportControllerObserver::AddSection | ( | const css::uno::Reference< css::report::XSection > & | _xSection | ) |
Definition at line 146 of file ReportControllerObserver.cxx.
References AddElement(), DBG_UNHANDLED_EXCEPTION, and m_aSections.
Referenced by rptui::OReportController::listen().
void rptui::OXReportControllerObserver::Clear | ( | ) |
Definition at line 114 of file ReportControllerObserver.cxx.
References m_aSections.
|
private |
|
overridevirtual |
Definition at line 100 of file ReportControllerObserver.cxx.
References RemoveElement(), and RemoveSection().
|
overridevirtual |
Definition at line 280 of file ReportControllerObserver.cxx.
References AddElement(), and m_aMutex.
|
overridevirtual |
Definition at line 308 of file ReportControllerObserver.cxx.
References m_aMutex, and RemoveElement().
|
overridevirtual |
Definition at line 294 of file ReportControllerObserver.cxx.
References AddElement(), m_aMutex, and RemoveElement().
void rptui::OXReportControllerObserver::Lock | ( | ) |
Definition at line 133 of file ReportControllerObserver.cxx.
References m_nLocks, and m_refCount.
Referenced by rptui::OXReportControllerObserver::OEnvLock::OEnvLock().
|
overridevirtual |
Definition at line 249 of file ReportControllerObserver.cxx.
|
privatedelete |
|
overridevirtual |
Definition at line 121 of file ReportControllerObserver.cxx.
References m_aFixedTextColor, m_aFormattedFieldBeautifier, m_aMutex, m_nLocks, rptui::FixedTextColor::notifyPropertyChange(), and rptui::FormattedFieldBeautifier::notifyPropertyChange().
void rptui::OXReportControllerObserver::RemoveElement | ( | const css::uno::Reference< css::uno::XInterface > & | Element | ) |
Definition at line 268 of file ReportControllerObserver.cxx.
References switchListening().
Referenced by disposing(), elementRemoved(), elementReplaced(), and RemoveSection().
void rptui::OXReportControllerObserver::RemoveSection | ( | const css::uno::Reference< css::report::XSection > & | _xSection | ) |
Definition at line 163 of file ReportControllerObserver.cxx.
References DBG_UNHANDLED_EXCEPTION, m_aSections, and RemoveElement().
Referenced by disposing(), and rptui::OReportController::listen().
|
private |
Referenced by AddElement(), and RemoveElement().
|
private |
void rptui::OXReportControllerObserver::UnLock | ( | ) |
Definition at line 139 of file ReportControllerObserver.cxx.
References m_nLocks, and m_refCount.
Referenced by rptui::OXReportControllerObserver::OEnvLock::~OEnvLock().
|
private |
Definition at line 53 of file ReportControllerObserver.hxx.
Referenced by AddElement(), and propertyChange().
|
private |
Definition at line 52 of file ReportControllerObserver.hxx.
Referenced by AddElement(), and propertyChange().
|
private |
Definition at line 50 of file ReportControllerObserver.hxx.
Referenced by elementInserted(), elementRemoved(), elementReplaced(), and propertyChange().
|
private |
Definition at line 49 of file ReportControllerObserver.hxx.
Referenced by AddSection(), Clear(), and RemoveSection().
|
private |
Definition at line 51 of file ReportControllerObserver.hxx.
Referenced by Lock(), propertyChange(), and UnLock().