LibreOffice Module sfx2 (master) 1
Public Member Functions | Private Attributes | Friends | List of all members
sfx2::DocumentUndoManager Class Referencefinal

#include <docundomanager.hxx>

Inheritance diagram for sfx2::DocumentUndoManager:
[legend]
Collaboration diagram for sfx2::DocumentUndoManager:
[legend]

Public Member Functions

 DocumentUndoManager (SfxBaseModel &i_document)
 
virtual ~DocumentUndoManager () override
 
 DocumentUndoManager (const DocumentUndoManager &)=delete
 
DocumentUndoManageroperator= (const DocumentUndoManager &)=delete
 
void disposing ()
 
bool isInContext () const
 determines whether we have an open Undo context. More...
 
virtual void SAL_CALL acquire () noexcept override
 
virtual void SAL_CALL release () noexcept override
 
virtual void SAL_CALL enterUndoContext (const OUString &i_title) override
 
virtual void SAL_CALL enterHiddenUndoContext () override
 
virtual void SAL_CALL leaveUndoContext () override
 
virtual void SAL_CALL addUndoAction (const css::uno::Reference< css::document::XUndoAction > &i_action) override
 
virtual void SAL_CALL undo () override
 
virtual void SAL_CALL redo () override
 
virtual sal_Bool SAL_CALL isUndoPossible () override
 
virtual sal_Bool SAL_CALL isRedoPossible () override
 
virtual OUString SAL_CALL getCurrentUndoActionTitle () override
 
virtual OUString SAL_CALL getCurrentRedoActionTitle () override
 
virtual css::uno::Sequence< OUString > SAL_CALL getAllUndoActionTitles () override
 
virtual css::uno::Sequence< OUString > SAL_CALL getAllRedoActionTitles () override
 
virtual void SAL_CALL clear () override
 
virtual void SAL_CALL clearRedo () override
 
virtual void SAL_CALL reset () override
 
virtual void SAL_CALL addUndoManagerListener (const css::uno::Reference< css::document::XUndoManagerListener > &i_listener) override
 
virtual void SAL_CALL removeUndoManagerListener (const css::uno::Reference< css::document::XUndoManagerListener > &i_listener) override
 
virtual void SAL_CALL lock () override
 
virtual void SAL_CALL unlock () override
 
virtual sal_Bool SAL_CALL isLocked () override
 
virtual css::uno::Reference< css::uno::XInterface > SAL_CALL getParent () override
 
virtual void SAL_CALL setParent (const css::uno::Reference< css::uno::XInterface > &Parent) override
 
- Public Member Functions inherited from SfxModelSubComponent
void MethodEntryCheck ()
 checks whether the instance is alive, i.e. More...
 

Private Attributes

std::unique_ptr< DocumentUndoManager_Implm_pImpl
 

Friends

struct DocumentUndoManager_Impl
 

Additional Inherited Members

- Protected Member Functions inherited from SfxModelSubComponent
 SfxModelSubComponent (SfxBaseModel &i_model)
 
virtual ~SfxModelSubComponent ()
 
void acquireModel ()
 
void releaseModel ()
 
const SfxBaseModelgetBaseModel () const
 
SfxBaseModelgetBaseModel ()
 

Detailed Description

Definition at line 98 of file docundomanager.hxx.

Constructor & Destructor Documentation

◆ DocumentUndoManager() [1/2]

sfx2::DocumentUndoManager::DocumentUndoManager ( SfxBaseModel i_document)

Definition at line 202 of file docundomanager.cxx.

◆ ~DocumentUndoManager()

sfx2::DocumentUndoManager::~DocumentUndoManager ( )
overridevirtual

Definition at line 208 of file docundomanager.cxx.

◆ DocumentUndoManager() [2/2]

sfx2::DocumentUndoManager::DocumentUndoManager ( const DocumentUndoManager )
delete

Member Function Documentation

◆ acquire()

void SAL_CALL sfx2::DocumentUndoManager::acquire ( )
overridevirtualnoexcept

Definition at line 225 of file docundomanager.cxx.

References SfxModelSubComponent::acquireModel().

◆ addUndoAction()

void SAL_CALL sfx2::DocumentUndoManager::addUndoAction ( const css::uno::Reference< css::document::XUndoAction > &  i_action)
overridevirtual

Definition at line 269 of file docundomanager.cxx.

References m_pImpl.

◆ addUndoManagerListener()

void SAL_CALL sfx2::DocumentUndoManager::addUndoManagerListener ( const css::uno::Reference< css::document::XUndoManagerListener > &  i_listener)
overridevirtual

Definition at line 392 of file docundomanager.cxx.

References m_pImpl.

◆ clear()

void SAL_CALL sfx2::DocumentUndoManager::clear ( )
overridevirtual

Definition at line 341 of file docundomanager.cxx.

References m_pImpl.

◆ clearRedo()

void SAL_CALL sfx2::DocumentUndoManager::clearRedo ( )
overridevirtual

Definition at line 351 of file docundomanager.cxx.

References m_pImpl.

◆ disposing()

void sfx2::DocumentUndoManager::disposing ( )

Definition at line 212 of file docundomanager.cxx.

References m_pImpl.

◆ enterHiddenUndoContext()

void SAL_CALL sfx2::DocumentUndoManager::enterHiddenUndoContext ( )
overridevirtual

Definition at line 249 of file docundomanager.cxx.

References m_pImpl.

◆ enterUndoContext()

void SAL_CALL sfx2::DocumentUndoManager::enterUndoContext ( const OUString &  i_title)
overridevirtual

Definition at line 239 of file docundomanager.cxx.

References m_pImpl.

◆ getAllRedoActionTitles()

Sequence< OUString > SAL_CALL sfx2::DocumentUndoManager::getAllRedoActionTitles ( )
overridevirtual

Definition at line 334 of file docundomanager.cxx.

References m_pImpl.

◆ getAllUndoActionTitles()

Sequence< OUString > SAL_CALL sfx2::DocumentUndoManager::getAllUndoActionTitles ( )
overridevirtual

Definition at line 327 of file docundomanager.cxx.

References m_pImpl.

◆ getCurrentRedoActionTitle()

OUString SAL_CALL sfx2::DocumentUndoManager::getCurrentRedoActionTitle ( )
overridevirtual

Definition at line 320 of file docundomanager.cxx.

References m_pImpl.

◆ getCurrentUndoActionTitle()

OUString SAL_CALL sfx2::DocumentUndoManager::getCurrentUndoActionTitle ( )
overridevirtual

Definition at line 313 of file docundomanager.cxx.

References m_pImpl.

◆ getParent()

Reference< XInterface > SAL_CALL sfx2::DocumentUndoManager::getParent ( )
overridevirtual

Definition at line 406 of file docundomanager.cxx.

References SfxModelSubComponent::getBaseModel().

◆ isInContext()

bool sfx2::DocumentUndoManager::isInContext ( ) const

determines whether we have an open Undo context.

No mutex locking within this method, no disposal check - this is the responsibility of the owner.

Definition at line 218 of file docundomanager.cxx.

References m_pImpl.

◆ isLocked()

sal_Bool SAL_CALL sfx2::DocumentUndoManager::isLocked ( )
overridevirtual

Definition at line 385 of file docundomanager.cxx.

References m_pImpl.

◆ isRedoPossible()

sal_Bool SAL_CALL sfx2::DocumentUndoManager::isRedoPossible ( )
overridevirtual

Definition at line 306 of file docundomanager.cxx.

References m_pImpl.

◆ isUndoPossible()

sal_Bool SAL_CALL sfx2::DocumentUndoManager::isUndoPossible ( )
overridevirtual

Definition at line 299 of file docundomanager.cxx.

References m_pImpl.

◆ leaveUndoContext()

void SAL_CALL sfx2::DocumentUndoManager::leaveUndoContext ( )
overridevirtual

Definition at line 259 of file docundomanager.cxx.

References m_pImpl.

◆ lock()

void SAL_CALL sfx2::DocumentUndoManager::lock ( )
overridevirtual

Definition at line 371 of file docundomanager.cxx.

References m_pImpl.

◆ operator=()

DocumentUndoManager & sfx2::DocumentUndoManager::operator= ( const DocumentUndoManager )
delete

◆ redo()

void SAL_CALL sfx2::DocumentUndoManager::redo ( )
overridevirtual

Definition at line 289 of file docundomanager.cxx.

References m_pImpl.

◆ release()

void SAL_CALL sfx2::DocumentUndoManager::release ( )
overridevirtualnoexcept

Definition at line 232 of file docundomanager.cxx.

References SfxModelSubComponent::releaseModel().

◆ removeUndoManagerListener()

void SAL_CALL sfx2::DocumentUndoManager::removeUndoManagerListener ( const css::uno::Reference< css::document::XUndoManagerListener > &  i_listener)
overridevirtual

Definition at line 399 of file docundomanager.cxx.

References m_pImpl.

◆ reset()

void SAL_CALL sfx2::DocumentUndoManager::reset ( )
overridevirtual

Definition at line 361 of file docundomanager.cxx.

References m_pImpl.

◆ setParent()

void SAL_CALL sfx2::DocumentUndoManager::setParent ( const css::uno::Reference< css::uno::XInterface > &  Parent)
overridevirtual

Definition at line 413 of file docundomanager.cxx.

References m_pImpl.

◆ undo()

void SAL_CALL sfx2::DocumentUndoManager::undo ( )
overridevirtual

Definition at line 279 of file docundomanager.cxx.

References m_pImpl.

◆ unlock()

void SAL_CALL sfx2::DocumentUndoManager::unlock ( )
overridevirtual

Definition at line 378 of file docundomanager.cxx.

References m_pImpl.

Friends And Related Function Documentation

◆ DocumentUndoManager_Impl

friend struct DocumentUndoManager_Impl
friend

Definition at line 101 of file docundomanager.hxx.

Member Data Documentation

◆ m_pImpl

std::unique_ptr< DocumentUndoManager_Impl > sfx2::DocumentUndoManager::m_pImpl
private

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