LibreOffice Module dbaccess (master) 1
|
#include <singledoccontroller.hxx>
Public Member Functions | |
SfxUndoManager & | GetUndoManager () const |
need for undo's and redo's More... | |
void | ClearUndoManager () |
complete clears the Undo/Redo stacks More... | |
void | addUndoActionAndInvalidate (std::unique_ptr< SfxUndoAction > pAction) |
addUndoActionAndInvalidate adds an undo action to the undoManager, additionally invalidates the UNDO and REDO slot More... | |
virtual FeatureState | GetState (sal_uInt16 nId) const override |
virtual void | Execute (sal_uInt16 nId, const css::uno::Sequence< css::beans::PropertyValue > &aArgs) override |
virtual css::uno::Reference< css::document::XUndoManager > SAL_CALL | getUndoManager () override |
Protected Member Functions | |
OSingleDocumentController (const css::uno::Reference< css::uno::XComponentContext > &_rxORB) | |
virtual | ~OSingleDocumentController () override |
virtual void SAL_CALL | disposing () override |
Private Attributes | |
std::unique_ptr< UndoManager > | m_pUndoManager |
Definition at line 39 of file singledoccontroller.hxx.
|
protected |
Definition at line 39 of file singledoccontroller.cxx.
References getMutex().
|
overrideprotectedvirtual |
Definition at line 45 of file singledoccontroller.cxx.
void dbaui::OSingleDocumentController::addUndoActionAndInvalidate | ( | std::unique_ptr< SfxUndoAction > | pAction | ) |
addUndoActionAndInvalidate adds an undo action to the undoManager, additionally invalidates the UNDO and REDO slot
pAction | the undo action to add |
Definition at line 66 of file singledoccontroller.cxx.
References SfxUndoManager::AddUndoAction(), GetUndoManager(), ID_BROWSER_REDO, and ID_BROWSER_UNDO.
Referenced by dbaui::OSelectionBrowseBox::appendUndoAction(), dbaui::OQueryTextView::clear(), dbaui::OSelectionBrowseBox::ColumnMoved(), dbaui::OSelectionBrowseBox::ColumnResized(), and dbaui::OSelectionBrowseBox::RemoveField().
void dbaui::OSingleDocumentController::ClearUndoManager | ( | ) |
complete clears the Undo/Redo stacks
Definition at line 56 of file singledoccontroller.cxx.
References SfxUndoManager::Clear(), and GetUndoManager().
Referenced by disposing(), dbaui::OQueryController::impl_initialize(), dbaui::OTableController::impl_initialize(), dbaui::OQueryDesignView::initByFieldDescriptions(), dbaui::OTableController::reload(), dbaui::OQueryController::reset(), and dbaui::OTableController::reSyncRows().
|
overrideprotectedvirtual |
Reimplemented in dbaui::OJoinController, dbaui::OJoinController, dbaui::OQueryController, and dbaui::OTableController.
Definition at line 49 of file singledoccontroller.cxx.
References ClearUndoManager(), and m_pUndoManager.
Referenced by dbaui::OJoinController::disposing().
|
overridevirtual |
Reimplemented in dbaui::OJoinController, dbaui::OQueryController, dbaui::ORelationController, and dbaui::OTableController.
Definition at line 139 of file singledoccontroller.cxx.
References GetUndoManager(), ID_BROWSER_REDO, ID_BROWSER_UNDO, nCount, SfxUndoManager::Redo(), and SfxUndoManager::Undo().
Referenced by dbaui::OJoinController::Execute(), and dbaui::OTableController::Execute().
|
overridevirtual |
Reimplemented in dbaui::OJoinController, dbaui::OQueryController, dbaui::ORelationController, and dbaui::OTableController.
Definition at line 85 of file singledoccontroller.cxx.
References aSeq, dbaui::FeatureState::aValue, dbaui::FeatureState::bEnabled, DBA_RES, SfxUndoManager::GetRedoActionComment(), SfxUndoManager::GetRedoActionCount(), SfxUndoManager::GetUndoActionComment(), SfxUndoManager::GetUndoActionCount(), GetUndoManager(), ID_BROWSER_REDO, ID_BROWSER_UNDO, n, nCount, and dbaui::FeatureState::sTitle.
Referenced by dbaui::OJoinController::GetState(), and dbaui::OTableController::GetState().
SfxUndoManager & dbaui::OSingleDocumentController::GetUndoManager | ( | ) | const |
need for undo's and redo's
Definition at line 61 of file singledoccontroller.cxx.
References m_pUndoManager.
Referenced by addUndoActionAndInvalidate(), ClearUndoManager(), dbaui::OQueryController::Execute(), Execute(), GetState(), dbaui::OTableEditorCtrl::GetUndoManager(), and dbaui::OSelectionBrowseBox::SaveModified().
|
overridevirtual |
Definition at line 79 of file singledoccontroller.cxx.
References m_pUndoManager.
|
private |
Definition at line 73 of file singledoccontroller.hxx.
Referenced by disposing(), GetUndoManager(), and getUndoManager().