|
LibreOffice Module reportdesign (master) 1
|
#include <UndoEnv.hxx>
Classes | |
| struct | Accessor |
| class | OUndoEnvLock |
| Create an object ob OUndoEnvLock locks the undo possibility As long as in the OUndoEnvLock scope, no undo is possible for manipulated object. More... | |
| class | OUndoMode |
| This is near the same as OUndoEnvLock but it is also possible to ask for the current mode. More... | |
Public Member Functions | |
| OXUndoEnvironment (OReportModel &_rModel) | |
| void | Lock () |
| void | UnLock () |
| bool | IsLocked () const |
| bool | IsUndoMode () const |
| void | Clear (const Accessor &_r) |
| 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 | RemoveSection (OReportPage const *_pPage) |
| removes the section from the page out of the undo env More... | |
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 |
Private Member Functions | |
| OXUndoEnvironment (const OXUndoEnvironment &)=delete | |
| OXUndoEnvironment & | operator= (const OXUndoEnvironment &)=delete |
| virtual | ~OXUndoEnvironment () override |
| void | SetUndoMode (bool _bUndo) |
| 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 () |
| virtual void | Notify (SfxBroadcaster &rBC, const SfxHint &rHint) override |
| void | implSetModified () |
| void | switchListening (const css::uno::Reference< css::container::XIndexAccess > &_rxContainer, bool _bStartListening) |
| void | switchListening (const css::uno::Reference< css::uno::XInterface > &_rxObject, bool _bStartListening) |
| ::std::vector< css::uno::Reference< css::container::XChild > >::const_iterator | getSection (const css::uno::Reference< css::container::XChild > &_xContainer) const |
Private Attributes | |
| const ::std::unique_ptr< OXUndoEnvironmentImpl > | m_pImpl |
Definition at line 40 of file UndoEnv.hxx.
|
privatedelete |
|
overrideprivatevirtual |
Definition at line 123 of file UndoEnv.cxx.
| rptui::OXUndoEnvironment::OXUndoEnvironment | ( | OReportModel & | _rModel | ) |
Definition at line 116 of file UndoEnv.cxx.
References m_pImpl, m_pImpl, and SfxListener::StartListening().
| void rptui::OXUndoEnvironment::AddElement | ( | const css::uno::Reference< css::uno::XInterface > & | Element | ) |
Definition at line 580 of file UndoEnv.cxx.
References IsLocked(), m_pImpl, and switchListening().
Referenced by AddSection(), elementInserted(), elementReplaced(), rptui::OOle2Obj::initializeChart(), rptui::OOle2Obj::initializeOle(), and rptui::OReportController::modifyGroup().
| void rptui::OXUndoEnvironment::AddSection | ( | const css::uno::Reference< css::report::XSection > & | _xSection | ) |
Definition at line 478 of file UndoEnv.cxx.
References AddElement(), DBG_UNHANDLED_EXCEPTION, and m_pImpl.
| void rptui::OXUndoEnvironment::Clear | ( | const Accessor & | _r | ) |
Definition at line 150 of file UndoEnv.cxx.
References SfxListener::EndListening(), i, SfxListener::IsListening(), m_pImpl, nCount, and RemoveSection().
|
overrideprivatevirtual |
Definition at line 197 of file UndoEnv.cxx.
References RemoveElement(), and RemoveSection().
|
overrideprivatevirtual |
Definition at line 354 of file UndoEnv.cxx.
References AddElement(), DBG_UNHANDLED_EXCEPTION, getSection(), implSetModified(), rptui::Inserted, rptui::OReportPage::insertObject(), IsLocked(), and m_pImpl.
|
overrideprivatevirtual |
Definition at line 427 of file UndoEnv.cxx.
References DBG_UNHANDLED_EXCEPTION, getSection(), implSetModified(), IsLocked(), m_pImpl, rptui::Removed, RemoveElement(), and rptui::OReportPage::removeSdrObject().
|
overrideprivatevirtual |
Definition at line 411 of file UndoEnv.cxx.
References AddElement(), implSetModified(), m_pImpl, and RemoveElement().
|
private |
Definition at line 337 of file UndoEnv.cxx.
References getSection(), and m_pImpl.
Referenced by elementInserted(), elementRemoved(), and getSection().
|
private |
Definition at line 405 of file UndoEnv.cxx.
References m_pImpl.
Referenced by elementInserted(), elementRemoved(), elementReplaced(), modified(), and propertyChange().
| bool rptui::OXUndoEnvironment::IsLocked | ( | ) | const |
Definition at line 138 of file UndoEnv.cxx.
References m_pImpl.
Referenced by AddElement(), elementInserted(), elementRemoved(), and propertyChange().
| bool rptui::OXUndoEnvironment::IsUndoMode | ( | ) | const |
Definition at line 611 of file UndoEnv.cxx.
References m_pImpl.
Referenced by rptui::OOle2Obj::NbcMove(), and rptui::OUnoObject::NbcMove().
| void rptui::OXUndoEnvironment::Lock | ( | ) |
Definition at line 127 of file UndoEnv.cxx.
References m_pImpl, and m_refCount.
Referenced by rptui::OXUndoEnvironment::OUndoEnvLock::OUndoEnvLock(), and rptui::OXUndoEnvironment::OUndoMode::OUndoMode().
|
private |
Definition at line 178 of file UndoEnv.cxx.
References SfxListener::EndListening(), m_pImpl, and SfxListener::StartListening().
Referenced by Notify().
|
overrideprivatevirtual |
Definition at line 472 of file UndoEnv.cxx.
References implSetModified().
|
overrideprivatevirtual |
Reimplemented from SfxListener.
Definition at line 189 of file UndoEnv.cxx.
References SfxHint::GetId(), and ModeChanged().
|
privatedelete |
|
overrideprivatevirtual |
Definition at line 213 of file UndoEnv.cxx.
References DBG_ASSERT, DBG_UNHANDLED_EXCEPTION, Exception, first, rptui::OGroupHelper::getMemberFunction(), rptui::OReportHelper::getMemberFunction(), implSetModified(), IsLocked(), m_pImpl, and xIntrospection.
| void rptui::OXUndoEnvironment::RemoveElement | ( | const css::uno::Reference< css::uno::XInterface > & | Element | ) |
Definition at line 594 of file UndoEnv.cxx.
References m_pImpl, and switchListening().
Referenced by disposing(), elementRemoved(), elementReplaced(), rptui::OReportController::modifyGroup(), RemoveSection(), rptui::OSectionUndo::~OSectionUndo(), and rptui::OUndoContainerAction::~OUndoContainerAction().
| void rptui::OXUndoEnvironment::RemoveSection | ( | const css::uno::Reference< css::report::XSection > & | _xSection | ) |
References elementInserted(), elementRemoved(), elementReplaced(), ModeChanged, and Notify().
Referenced by Clear(), and disposing().
| void rptui::OXUndoEnvironment::RemoveSection | ( | OReportPage const * | _pPage | ) |
removes the section from the page out of the undo env
| _pPage |
Definition at line 140 of file UndoEnv.cxx.
References rptui::OReportPage::getSection(), and RemoveElement().
|
private |
Definition at line 606 of file UndoEnv.cxx.
References m_pImpl.
Referenced by rptui::OXUndoEnvironment::OUndoMode::OUndoMode(), and rptui::OXUndoEnvironment::OUndoMode::~OUndoMode().
|
private |
Referenced by AddElement(), and RemoveElement().
|
private |
| void rptui::OXUndoEnvironment::UnLock | ( | ) |
Definition at line 132 of file UndoEnv.cxx.
References m_pImpl, and m_refCount.
Referenced by rptui::OXUndoEnvironment::OUndoEnvLock::~OUndoEnvLock(), and rptui::OXUndoEnvironment::OUndoMode::~OUndoMode().
|
private |
Definition at line 47 of file UndoEnv.hxx.
Referenced by AddElement(), AddSection(), Clear(), elementInserted(), elementRemoved(), elementReplaced(), getSection(), implSetModified(), IsLocked(), IsUndoMode(), Lock(), ModeChanged(), OXUndoEnvironment(), propertyChange(), RemoveElement(), SetUndoMode(), and UnLock().