LibreOffice Module svl (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
SfxUndoAction Class Reference

#include <undo.hxx>

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

Public Member Functions

 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
 

Private Member Functions

 SfxUndoAction (const SfxUndoAction &)=delete
 
SfxUndoActionoperator= (const SfxUndoAction &)=delete
 

Private Attributes

DateTime m_aDateTime
 

Detailed Description

Definition at line 55 of file undo.hxx.

Constructor & Destructor Documentation

◆ SfxUndoAction() [1/2]

SfxUndoAction::SfxUndoAction ( )

Definition at line 53 of file undo.cxx.

References DateTime::ConvertToUTC(), and m_aDateTime.

◆ ~SfxUndoAction()

SfxUndoAction::~SfxUndoAction ( )
virtual

Definition at line 48 of file undo.cxx.

◆ SfxUndoAction() [2/2]

SfxUndoAction::SfxUndoAction ( const SfxUndoAction )
privatedelete

Member Function Documentation

◆ CanRepeat()

bool SfxUndoAction::CanRepeat ( SfxRepeatTarget &  ) const
virtual

Reimplemented in SfxListUndoAction.

Definition at line 121 of file undo.cxx.

Referenced by SfxUndoManager::Repeat().

◆ dumpAsXml()

void SfxUndoAction::dumpAsXml ( xmlTextWriterPtr  pWriter) const
virtual

◆ GetComment()

OUString SfxUndoAction::GetComment ( ) const
virtual

◆ GetDateTime()

const DateTime & SfxUndoAction::GetDateTime ( ) const

Timestamp when this undo item was created.

Definition at line 77 of file undo.cxx.

References m_aDateTime.

Referenced by lcl_ActionToJson().

◆ GetRepeatComment()

OUString SfxUndoAction::GetRepeatComment ( SfxRepeatTarget &  ) const
virtual

Reimplemented in SfxListUndoAction.

Definition at line 82 of file undo.cxx.

References GetComment().

◆ GetViewShellId()

ViewShellId SfxUndoAction::GetViewShellId ( ) const
virtual

ID of the view shell that created this undo action.

Reimplemented in SfxListUndoAction.

Definition at line 72 of file undo.cxx.

Referenced by dumpAsXml(), and lcl_ActionToJson().

◆ Merge()

bool SfxUndoAction::Merge ( SfxUndoAction pNextAction)
virtual

Reimplemented in SfxListUndoAction.

Definition at line 60 of file undo.cxx.

Referenced by SfxUndoManager::ImplAddUndoAction_NoNotify().

◆ operator=()

SfxUndoAction & SfxUndoAction::operator= ( const SfxUndoAction )
privatedelete

◆ Redo()

void SfxUndoAction::Redo ( )
virtual

Reimplemented in SfxListUndoAction.

Definition at line 101 of file undo.cxx.

Referenced by SfxUndoManager::ImplRedo(), and RedoWithContext().

◆ RedoWithContext()

void SfxUndoAction::RedoWithContext ( SfxUndoContext i_context)
virtual

Reimplemented in SfxListUndoAction.

Definition at line 108 of file undo.cxx.

References Redo().

Referenced by SfxUndoManager::ImplRedo().

◆ Repeat()

void SfxUndoAction::Repeat ( SfxRepeatTarget &  )
virtual

Reimplemented in SfxListUndoAction.

Definition at line 114 of file undo.cxx.

Referenced by SfxUndoManager::Repeat().

◆ Undo()

void SfxUndoAction::Undo ( )
virtual

Reimplemented in SfxListUndoAction.

Definition at line 88 of file undo.cxx.

Referenced by SfxUndoManager::ImplUndo(), and UndoWithContext().

◆ UndoWithContext()

void SfxUndoAction::UndoWithContext ( SfxUndoContext i_context)
virtual

Reimplemented in SfxListUndoAction.

Definition at line 95 of file undo.cxx.

References Undo().

Referenced by SfxUndoManager::ImplUndo().

Member Data Documentation

◆ m_aDateTime

DateTime SfxUndoAction::m_aDateTime
private

Definition at line 82 of file undo.hxx.

Referenced by dumpAsXml(), GetDateTime(), and SfxUndoAction().


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