LibreOffice Module svx (master) 1
|
Aggregation of arbitrarily many UndoActions to a single UndoAction. More...
#include <svdundo.hxx>
Public Member Functions | |
SdrUndoGroup (SdrModel &rNewMod) | |
virtual | ~SdrUndoGroup () override |
sal_Int32 | GetActionCount () const |
SdrUndoAction * | GetAction (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 DateTime & | GetDateTime () 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 | |
SdrModel & | rMod |
ViewShellId | m_nViewShellId |
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.
SdrUndoGroup::SdrUndoGroup | ( | SdrModel & | rNewMod | ) |
Definition at line 112 of file svdundo.cxx.
References NONE.
|
overridevirtual |
Definition at line 117 of file svdundo.cxx.
void SdrUndoGroup::AddAction | ( | std::unique_ptr< SdrUndoAction > | pAct | ) |
Definition at line 121 of file svdundo.cxx.
References maActions.
|
overridevirtual |
Reimplemented from SdrUndoAction.
Definition at line 143 of file svdundo.cxx.
References SdrMarkView::AreObjectsMarked(), CombineOnePoly, CombinePolyPoly, ConvertToPath, ConvertToPoly, Delete, DismantleLines, DismantlePolys, eFunction, Group, ImportMtf, SdrEditView::IsCombinePossible(), SdrEditView::IsConvertToPathObjPossible(), SdrEditView::IsConvertToPolyObjPossible(), SdrEditView::IsDismantlePossible(), SdrEditView::IsGroupPossible(), SdrEditView::IsImportMtfPossible(), SdrEditView::IsReverseOrderPossible(), SdrEditView::IsToBtmPossible(), SdrEditView::IsToTopPossible(), SdrEditView::IsUnGroupPossible(), MoveToBottom, MoveToTop, NONE, PutToBottom, PutToTop, ReverseOrder, and Ungroup.
|
inline |
Definition at line 107 of file svdundo.hxx.
|
inline |
Definition at line 106 of file svdundo.hxx.
|
overridevirtual |
Reimplemented from SfxUndoAction.
Definition at line 138 of file svdundo.cxx.
References aComment, and aObjDescription.
|
overridevirtual |
Reimplemented from SdrUndoAction.
Definition at line 192 of file svdundo.cxx.
References aComment, and SvxResId().
|
overridevirtual |
|
overridevirtual |
Reimplemented from SdrUndoAction.
Definition at line 168 of file svdundo.cxx.
References SdrEditView::CombineMarkedObjects(), CombineOnePoly, CombinePolyPoly, SdrEditView::ConvertMarkedToPathObj(), SdrEditView::ConvertMarkedToPolyObj(), ConvertToPath, ConvertToPoly, Delete, SdrView::DeleteMarked(), DismantleLines, SdrEditView::DismantleMarkedObjects(), DismantlePolys, SdrEditView::DoImportMarkedMtf(), eFunction, Group, SdrEditView::GroupMarked(), ImportMtf, MoveToBottom, MoveToTop, SdrEditView::MovMarkedToBtm(), SdrEditView::MovMarkedToTop(), NONE, SdrEditView::PutMarkedToBtm(), SdrEditView::PutMarkedToTop(), PutToBottom, PutToTop, ReverseOrder, SdrEditView::ReverseOrderOfMarked(), Ungroup, and SdrEditView::UnGroupMarked().
|
inline |
Definition at line 110 of file svdundo.hxx.
|
inline |
Definition at line 111 of file svdundo.hxx.
|
inline |
Definition at line 120 of file svdundo.hxx.
|
overridevirtual |
|
private |
Definition at line 97 of file svdundo.hxx.
Referenced by GetComment(), and GetSdrRepeatComment().
|
private |
Definition at line 98 of file svdundo.hxx.
Referenced by GetComment().
|
private |
Definition at line 100 of file svdundo.hxx.
Referenced by CanSdrRepeat(), and SdrRepeat().
|
private |
Definition at line 94 of file svdundo.hxx.
Referenced by AddAction(), Redo(), and Undo().