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
 
ViewShellId GetViewShellId () const override
 See SfxUndoAction::GetViewShellId(). More...
 
- Public Member Functions inherited from SfxUndoAction
 SfxUndoAction ()
 
virtual ~SfxUndoAction () COVERITY_NOEXCEPT_FALSE
 
virtual void UndoWithContext (SfxUndoContext &i_context)
 
virtual void RedoWithContext (SfxUndoContext &i_context)
 
virtual bool Merge (SfxUndoAction *pNextAction)
 
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 85 of file svdundo.hxx.

Constructor & Destructor Documentation

SdrUndoGroup::SdrUndoGroup ( SdrModel rNewMod)

Definition at line 111 of file svdundo.cxx.

References NONE.

SdrUndoGroup::~SdrUndoGroup ( )
overridevirtual

Definition at line 116 of file svdundo.cxx.

Member Function Documentation

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

Definition at line 120 of file svdundo.cxx.

References maActions.

bool SdrUndoGroup::CanSdrRepeat ( SdrView rView) const
overridevirtual
SdrUndoAction* SdrUndoGroup::GetAction ( sal_Int32  nNum) const
inline

Definition at line 100 of file svdundo.hxx.

sal_Int32 SdrUndoGroup::GetActionCount ( ) const
inline

Definition at line 99 of file svdundo.hxx.

OUString SdrUndoGroup::GetComment ( ) const
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 137 of file svdundo.cxx.

References aComment, and aObjDescription.

OUString SdrUndoGroup::GetSdrRepeatComment ( ) const
overridevirtual

Reimplemented from SdrUndoAction.

Definition at line 191 of file svdundo.cxx.

References aComment, and SvxResId().

void SdrUndoGroup::Redo ( )
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 131 of file svdundo.cxx.

References maActions.

void SdrUndoGroup::SdrRepeat ( SdrView rView)
overridevirtual
void SdrUndoGroup::SetComment ( const OUString &  rStr)
inline

Definition at line 103 of file svdundo.hxx.

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

Definition at line 104 of file svdundo.hxx.

void SdrUndoGroup::SetRepeatFunction ( SdrRepeatFunc  eFunc)
inline

Definition at line 113 of file svdundo.hxx.

void SdrUndoGroup::Undo ( )
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 125 of file svdundo.cxx.

References maActions.

Member Data Documentation

OUString SdrUndoGroup::aComment
private

Definition at line 90 of file svdundo.hxx.

Referenced by GetComment(), and GetSdrRepeatComment().

OUString SdrUndoGroup::aObjDescription
private

Definition at line 91 of file svdundo.hxx.

Referenced by GetComment().

SdrRepeatFunc SdrUndoGroup::eFunction
private

Definition at line 93 of file svdundo.hxx.

Referenced by CanSdrRepeat(), and SdrRepeat().

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

Definition at line 87 of file svdundo.hxx.

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


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