LibreOffice Module sd (master) 1
Public Member Functions | Private Attributes | List of all members
SdUndoGroup Class Referencefinal

#include <sdundogr.hxx>

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

Public Member Functions

 SdUndoGroup (SdDrawDocument *pSdDrawDocument)
 
virtual ~SdUndoGroup () override
 
virtual bool Merge (SfxUndoAction *pNextAction) override
 
virtual void Undo () override
 Undo, reverse order of execution. More...
 
virtual void Redo () override
 
void AddAction (SdUndoAction *pAction)
 
- Public Member Functions inherited from SdUndoAction
 SdUndoAction (SdDrawDocument *pSdDrawDocument)
 
void SetComment (const OUString &rStr)
 
virtual OUString GetComment () const override
 
virtual SdUndoActionClone () const
 
ViewShellId GetViewShellId () const override
 See SfxUndoAction::GetViewShellId(). More...
 
- 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
 
const DateTimeGetDateTime () const
 
virtual void dumpAsXml (xmlTextWriterPtr pWriter) const
 

Private Attributes

std::vector< std::unique_ptr< SdUndoAction > > aCtn
 

Additional Inherited Members

- Protected Attributes inherited from SdUndoAction
SdDrawDocumentmpDoc
 
ViewShellId mnViewShellId
 

Detailed Description

Definition at line 28 of file sdundogr.hxx.

Constructor & Destructor Documentation

◆ SdUndoGroup()

SdUndoGroup::SdUndoGroup ( SdDrawDocument pSdDrawDocument)
inline

Definition at line 32 of file sdundogr.hxx.

◆ ~SdUndoGroup()

SdUndoGroup::~SdUndoGroup ( )
overridevirtualdefault

Member Function Documentation

◆ AddAction()

void SdUndoGroup::AddAction ( SdUndoAction pAction)

Definition at line 64 of file sdundogr.cxx.

References aCtn.

Referenced by SdDrawDocument::AdaptPageSizeForAllPages(), sd::HeaderFooterDialog::change(), and Merge().

◆ Merge()

bool SdUndoGroup::Merge ( SfxUndoAction pNextAction)
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 25 of file sdundogr.cxx.

References AddAction(), and SdUndoAction::Clone().

◆ Redo()

void SdUndoGroup::Redo ( )
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 55 of file sdundogr.cxx.

References aCtn.

◆ Undo()

void SdUndoGroup::Undo ( )
overridevirtual

Undo, reverse order of execution.

Reimplemented from SfxUndoAction.

Definition at line 46 of file sdundogr.cxx.

References aCtn.

Member Data Documentation

◆ aCtn

std::vector<std::unique_ptr<SdUndoAction> > SdUndoGroup::aCtn
private

Definition at line 30 of file sdundogr.hxx.

Referenced by AddAction(), Redo(), and Undo().


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