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

Aggregation of arbitrarily many UndoActions to a single UndoAction. More...

#include <svdundo.hxx>

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

Public Member Functions

 SdrUndoGroup (SdrModel &rNewMod)
 
virtual ~SdrUndoGroup () override
 
sal_Int32 GetActionCount () const
 
SdrUndoActionGetAction (sal_Int32 nNum) const
 
void AddAction (std::unique_ptr< SdrUndoAction > pAct)
 
void SetComment (const OUString &rStr)
 
void SetObjDescription (const OUString &rStr)
 
virtual OUString GetComment () const override
 
virtual OUString GetSdrRepeatComment () const override
 
virtual void Undo () override
 
virtual void Redo () override
 
virtual bool CanSdrRepeat (SdrView &rView) const override
 
virtual void SdrRepeat (SdrView &rView) override
 
void SetRepeatFunction (SdrRepeatFunc eFunc)
 
- Public Member Functions inherited from SdrUndoAction
virtual ~SdrUndoAction () override
 
virtual bool CanRepeat (SfxRepeatTarget &rView) const override
 
virtual void Repeat (SfxRepeatTarget &rView) override
 
virtual OUString GetRepeatComment (SfxRepeatTarget &rView) const override
 
virtual OUString GetSdrRepeatComment () const
 
virtual bool CanSdrRepeat (SdrView &rView) const
 
virtual void SdrRepeat (SdrView &rView)
 
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< SdrUndoAction > > maActions
 
OUString aComment
 
OUString aObjDescription
 
SdrRepeatFunc eFunction
 

Additional Inherited Members

- Protected Member Functions inherited from SdrUndoAction
 SdrUndoAction (SdrModel &rNewMod)
 
- Protected Attributes inherited from SdrUndoAction
SdrModelrMod
 
ViewShellId m_nViewShellId
 

Detailed Description

Aggregation of arbitrarily many UndoActions to a single UndoAction.

Undo() executes the single UndoActions backwards (LIFO, first the last ones attached), Redo() executes the UndoActions in the order they were added (FIFO).

Definition at line 92 of file svdundo.hxx.

Constructor & Destructor Documentation

◆ SdrUndoGroup()

SdrUndoGroup::SdrUndoGroup ( SdrModel rNewMod)

Definition at line 112 of file svdundo.cxx.

References NONE.

◆ ~SdrUndoGroup()

SdrUndoGroup::~SdrUndoGroup ( )
overridevirtual

Definition at line 117 of file svdundo.cxx.

Member Function Documentation

◆ AddAction()

void SdrUndoGroup::AddAction ( std::unique_ptr< SdrUndoAction pAct)

Definition at line 121 of file svdundo.cxx.

References maActions.

◆ CanSdrRepeat()

bool SdrUndoGroup::CanSdrRepeat ( SdrView rView) const
overridevirtual

◆ GetAction()

SdrUndoAction * SdrUndoGroup::GetAction ( sal_Int32  nNum) const
inline

Definition at line 107 of file svdundo.hxx.

◆ GetActionCount()

sal_Int32 SdrUndoGroup::GetActionCount ( ) const
inline

Definition at line 106 of file svdundo.hxx.

◆ GetComment()

OUString SdrUndoGroup::GetComment ( ) const
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 138 of file svdundo.cxx.

References aComment, and aObjDescription.

◆ GetSdrRepeatComment()

OUString SdrUndoGroup::GetSdrRepeatComment ( ) const
overridevirtual

Reimplemented from SdrUndoAction.

Definition at line 192 of file svdundo.cxx.

References aComment, and SvxResId().

◆ Redo()

void SdrUndoGroup::Redo ( )
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 132 of file svdundo.cxx.

References maActions.

◆ SdrRepeat()

void SdrUndoGroup::SdrRepeat ( SdrView rView)
overridevirtual

◆ SetComment()

void SdrUndoGroup::SetComment ( const OUString &  rStr)
inline

Definition at line 110 of file svdundo.hxx.

◆ SetObjDescription()

void SdrUndoGroup::SetObjDescription ( const OUString &  rStr)
inline

Definition at line 111 of file svdundo.hxx.

◆ SetRepeatFunction()

void SdrUndoGroup::SetRepeatFunction ( SdrRepeatFunc  eFunc)
inline

Definition at line 120 of file svdundo.hxx.

◆ Undo()

void SdrUndoGroup::Undo ( )
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 126 of file svdundo.cxx.

References maActions.

Member Data Documentation

◆ aComment

OUString SdrUndoGroup::aComment
private

Definition at line 97 of file svdundo.hxx.

Referenced by GetComment(), and GetSdrRepeatComment().

◆ aObjDescription

OUString SdrUndoGroup::aObjDescription
private

Definition at line 98 of file svdundo.hxx.

Referenced by GetComment().

◆ eFunction

SdrRepeatFunc SdrUndoGroup::eFunction
private

Definition at line 100 of file svdundo.hxx.

Referenced by CanSdrRepeat(), and SdrRepeat().

◆ maActions

std::vector<std::unique_ptr<SdrUndoAction> > SdrUndoGroup::maActions
private

Definition at line 94 of file svdundo.hxx.

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


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