LibreOffice Module dbaccess (master) 1
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
dbaui::OSingleDocumentController Class Reference

#include <singledoccontroller.hxx>

Inheritance diagram for dbaui::OSingleDocumentController:
[legend]
Collaboration diagram for dbaui::OSingleDocumentController:
[legend]

Public Member Functions

SfxUndoManagerGetUndoManager () 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< UndoManagerm_pUndoManager
 

Detailed Description

Definition at line 39 of file singledoccontroller.hxx.

Constructor & Destructor Documentation

◆ OSingleDocumentController()

dbaui::OSingleDocumentController::OSingleDocumentController ( const css::uno::Reference< css::uno::XComponentContext > &  _rxORB)
protected

Definition at line 39 of file singledoccontroller.cxx.

References getMutex().

◆ ~OSingleDocumentController()

dbaui::OSingleDocumentController::~OSingleDocumentController ( )
overrideprotectedvirtual

Definition at line 45 of file singledoccontroller.cxx.

Member Function Documentation

◆ addUndoActionAndInvalidate()

void dbaui::OSingleDocumentController::addUndoActionAndInvalidate ( std::unique_ptr< SfxUndoAction pAction)

addUndoActionAndInvalidate adds an undo action to the undoManager, additionally invalidates the UNDO and REDO slot

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

◆ ClearUndoManager()

void dbaui::OSingleDocumentController::ClearUndoManager ( )

◆ disposing()

void SAL_CALL dbaui::OSingleDocumentController::disposing ( )
overrideprotectedvirtual

◆ Execute()

void dbaui::OSingleDocumentController::Execute ( sal_uInt16  nId,
const css::uno::Sequence< css::beans::PropertyValue > &  aArgs 
)
overridevirtual

◆ GetState()

FeatureState dbaui::OSingleDocumentController::GetState ( sal_uInt16  nId) const
overridevirtual

◆ GetUndoManager()

SfxUndoManager & dbaui::OSingleDocumentController::GetUndoManager ( ) const

◆ getUndoManager()

Reference< XUndoManager > SAL_CALL dbaui::OSingleDocumentController::getUndoManager ( )
overridevirtual

Definition at line 79 of file singledoccontroller.cxx.

References m_pUndoManager.

Member Data Documentation

◆ m_pUndoManager

std::unique_ptr<UndoManager> dbaui::OSingleDocumentController::m_pUndoManager
private

Definition at line 73 of file singledoccontroller.hxx.

Referenced by disposing(), GetUndoManager(), and getUndoManager().


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