LibreOffice Module svl (master) 1
Classes | Public Member Functions | Private Attributes | List of all members
SfxListUndoAction Class Referencefinal

do not make use of these implementation details, unless you really really have to! More...

#include <undo.hxx>

Inheritance diagram for SfxListUndoAction:
[legend]
Collaboration diagram for SfxListUndoAction:
[legend]

Classes

struct  Impl
 

Public Member Functions

 SfxListUndoAction (const OUString &rComment, const OUString &rRepeatComment, sal_uInt16 nId, ViewShellId nViewShellId, SfxUndoArray *pFather)
 
virtual ~SfxListUndoAction () override
 
virtual void Undo () override
 
virtual void UndoWithContext (SfxUndoContext &i_context) override
 
virtual void Redo () override
 
virtual void RedoWithContext (SfxUndoContext &i_context) override
 
virtual void Repeat (SfxRepeatTarget &) override
 
virtual bool CanRepeat (SfxRepeatTarget &) const override
 
virtual bool Merge (SfxUndoAction *pNextAction) override
 
virtual OUString GetComment () const override
 
ViewShellId GetViewShellId () const override
 See SfxUndoAction::GetViewShellId(). More...
 
virtual OUString GetRepeatComment (SfxRepeatTarget &) const override
 
sal_uInt16 GetId () const
 
void SetComment (const OUString &rComment)
 
void dumpAsXml (xmlTextWriterPtr pWriter) const override
 
- Public Member Functions inherited from SfxUndoAction
 SfxUndoAction ()
 
virtual ~SfxUndoAction () COVERITY_NOEXCEPT_FALSE
 
virtual void Undo ()
 
virtual void UndoWithContext (SfxUndoContext &i_context)
 
virtual void Redo ()
 
virtual void RedoWithContext (SfxUndoContext &i_context)
 
virtual void Repeat (SfxRepeatTarget &)
 
virtual bool CanRepeat (SfxRepeatTarget &) const
 
virtual bool Merge (SfxUndoAction *pNextAction)
 
virtual OUString GetComment () const
 
virtual OUString GetRepeatComment (SfxRepeatTarget &) const
 
virtual ViewShellId GetViewShellId () const
 ID of the view shell that created this undo action. More...
 
const DateTimeGetDateTime () const
 Timestamp when this undo item was created. More...
 
virtual void dumpAsXml (xmlTextWriterPtr pWriter) const
 
- Public Member Functions inherited from SfxUndoArray
 SfxUndoArray (size_t nMax=0)
 
virtual ~SfxUndoArray ()
 
SfxUndoArrayoperator= (SfxUndoArray const &)=delete
 
 SfxUndoArray (SfxUndoArray const &)=delete
 
SfxUndoActionGetUndoAction (size_t idx)
 
std::unique_ptr< SfxUndoActionRemove (int idx)
 
void Remove (size_t i_pos, size_t i_count)
 
void Insert (std::unique_ptr< SfxUndoAction > i_action, size_t i_pos)
 

Private Attributes

std::unique_ptr< ImplmpImpl
 

Additional Inherited Members

- Public Attributes inherited from SfxUndoArray
std::vector< MarkedUndoActionmaUndoActions
 
size_t nMaxUndoActions
 
size_t nCurUndoAction
 
SfxUndoArraypFatherUndoArray
 

Detailed Description

do not make use of these implementation details, unless you really really have to!

Definition at line 123 of file undo.hxx.

Constructor & Destructor Documentation

◆ SfxListUndoAction()

SfxListUndoAction::SfxListUndoAction ( const OUString &  rComment,
const OUString &  rRepeatComment,
sal_uInt16  nId,
ViewShellId  nViewShellId,
SfxUndoArray pFather 
)

Definition at line 1304 of file undo.cxx.

References nId, SfxUndoArray::nMaxUndoActions, and SfxUndoArray::pFatherUndoArray.

◆ ~SfxListUndoAction()

SfxListUndoAction::~SfxListUndoAction ( )
overridevirtual

Definition at line 1316 of file undo.cxx.

Member Function Documentation

◆ CanRepeat()

bool SfxListUndoAction::CanRepeat ( SfxRepeatTarget &  r) const
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 1359 of file undo.cxx.

References i, SfxUndoArray::maUndoActions, and SfxUndoArray::nCurUndoAction.

◆ dumpAsXml()

void SfxListUndoAction::dumpAsXml ( xmlTextWriterPtr  pWriter) const
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 1375 of file undo.cxx.

References SfxUndoAction::dumpAsXml(), i, and SfxUndoArray::maUndoActions.

◆ GetComment()

OUString SfxListUndoAction::GetComment ( ) const
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 1284 of file undo.cxx.

References mpImpl.

Referenced by SfxUndoManager::ImplLeaveListAction().

◆ GetId()

sal_uInt16 SfxListUndoAction::GetId ( ) const

Definition at line 1279 of file undo.cxx.

References mpImpl.

◆ GetRepeatComment()

OUString SfxListUndoAction::GetRepeatComment ( SfxRepeatTarget &  ) const
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 1299 of file undo.cxx.

References mpImpl.

◆ GetViewShellId()

ViewShellId SfxListUndoAction::GetViewShellId ( ) const
overridevirtual

See SfxUndoAction::GetViewShellId().

Reimplemented from SfxUndoAction.

Definition at line 1289 of file undo.cxx.

References mpImpl.

◆ Merge()

bool SfxListUndoAction::Merge ( SfxUndoAction pNextAction)
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 1370 of file undo.cxx.

References SfxUndoArray::maUndoActions.

◆ Redo()

void SfxListUndoAction::Redo ( )
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 1336 of file undo.cxx.

References i, SfxUndoArray::maUndoActions, and SfxUndoArray::nCurUndoAction.

◆ RedoWithContext()

void SfxListUndoAction::RedoWithContext ( SfxUndoContext i_context)
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 1344 of file undo.cxx.

References i, SfxUndoArray::maUndoActions, and SfxUndoArray::nCurUndoAction.

◆ Repeat()

void SfxListUndoAction::Repeat ( SfxRepeatTarget &  rTarget)
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 1352 of file undo.cxx.

References i, SfxUndoArray::maUndoActions, SfxUndoArray::nCurUndoAction, and rTarget.

◆ SetComment()

void SfxListUndoAction::SetComment ( const OUString &  rComment)

Definition at line 1294 of file undo.cxx.

References mpImpl.

Referenced by SfxUndoManager::ImplLeaveListAction().

◆ Undo()

void SfxListUndoAction::Undo ( )
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 1320 of file undo.cxx.

References i, SfxUndoArray::maUndoActions, and SfxUndoArray::nCurUndoAction.

◆ UndoWithContext()

void SfxListUndoAction::UndoWithContext ( SfxUndoContext i_context)
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 1328 of file undo.cxx.

References i, SfxUndoArray::maUndoActions, and SfxUndoArray::nCurUndoAction.

Member Data Documentation

◆ mpImpl

std::unique_ptr<Impl> SfxListUndoAction::mpImpl
private

Definition at line 134 of file undo.hxx.

Referenced by GetComment(), GetId(), GetRepeatComment(), GetViewShellId(), and SetComment().


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