LibreOffice Module sc (master) 1
|
#include <undoblk.hxx>
Public Member Functions | |
ScUndoDeleteMulti (ScDocShell *pNewDocShell, bool bNewRows, bool bNeedsRefresh, SCTAB nNewTab, std::vector< sc::ColRowSpan > &&rSpans, ScDocumentUniquePtr pUndoDocument, std::unique_ptr< ScRefUndoData > pRefData) | |
virtual | ~ScUndoDeleteMulti () override |
virtual void | Undo () override |
virtual void | Redo () override |
virtual void | Repeat (SfxRepeatTarget &rTarget) override |
virtual bool | CanRepeat (SfxRepeatTarget &rTarget) const override |
virtual OUString | GetComment () const override |
Public Member Functions inherited from ScMoveUndo | |
ScMoveUndo (ScDocShell *pDocSh, ScDocumentUniquePtr pRefDoc, std::unique_ptr< ScRefUndoData > pRefData) | |
virtual | ~ScMoveUndo () override |
Public Member Functions inherited from ScSimpleUndo | |
ScSimpleUndo (ScDocShell *pDocSh) | |
virtual bool | Merge (SfxUndoAction *pNextAction) override |
ViewShellId | GetViewShellId () const override |
See SfxUndoAction::GetViewShellId(). More... | |
virtual std::optional< ScRange > | getAffectedRange () const |
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 Member Functions | |
void | DoChange () const |
void | SetChangeTrack () |
Private Attributes | |
bool | mbRows:1 |
bool | mbRefresh:1 |
SCTAB | nTab |
std::vector< sc::ColRowSpan > | maSpans |
sal_uLong | nStartChangeAction |
sal_uLong | nEndChangeAction |
Additional Inherited Members | |
Public Types inherited from ScSimpleUndo | |
typedef std::map< SCTAB, std::unique_ptr< sc::ColumnSpanSet > > | DataSpansType |
Protected Member Functions inherited from ScMoveUndo | |
void | BeginUndo () |
void | EndUndo () |
Protected Member Functions inherited from ScSimpleUndo | |
bool | IsPaintLocked () const |
bool | SetViewMarkData (const ScMarkData &rMarkData) |
void | BeginUndo () |
void | EndUndo () |
void | BeginRedo () |
void | EndRedo () |
void | BroadcastChanges (const ScRange &rRange) |
void | BroadcastChanges (const DataSpansType &rSpans) |
Broadcast changes on specified spans. More... | |
Static Protected Member Functions inherited from ScSimpleUndo | |
static void | ShowTable (SCTAB nTab) |
static void | ShowTable (const ScRange &rRange) |
Protected Attributes inherited from ScMoveUndo | |
std::unique_ptr< SdrUndoAction > | pDrawUndo |
ScDocumentUniquePtr | pRefUndoDoc |
std::unique_ptr< ScRefUndoData > | pRefUndoData |
Protected Attributes inherited from ScSimpleUndo | |
ScDocShell * | pDocShell |
std::unique_ptr< SfxUndoAction > | pDetectiveUndo |
ViewShellId | mnViewShellId |
Definition at line 104 of file undoblk.hxx.
ScUndoDeleteMulti::ScUndoDeleteMulti | ( | ScDocShell * | pNewDocShell, |
bool | bNewRows, | ||
bool | bNeedsRefresh, | ||
SCTAB | nNewTab, | ||
std::vector< sc::ColRowSpan > && | rSpans, | ||
ScDocumentUniquePtr | pUndoDocument, | ||
std::unique_ptr< ScRefUndoData > | pRefData | ||
) |
Definition at line 639 of file undoblk.cxx.
References SetChangeTrack().
|
overridevirtual |
Definition at line 653 of file undoblk.cxx.
|
overridevirtual |
|
private |
Definition at line 662 of file undoblk.cxx.
References ScTabView::CellContentChanged(), ScDocument::ExtendMerge(), ScTabViewShell::GetActiveViewShell(), ScDocShell::GetDocument(), Grid, Hor, Left, maSpans, ScDocument::MaxCol(), ScDocument::MaxRow(), mbRefresh, mbRows, nTab, ScSimpleUndo::pDocShell, ScDocShell::PostDataChanged(), ScDocShell::PostPaint(), ScDocument::RemoveFlagsTab(), ScSimpleUndo::ShowTable(), Top, and Ver.
|
overridevirtual |
|
overridevirtual |
Reimplemented from SfxUndoAction.
Definition at line 777 of file undoblk.cxx.
References ScSimpleUndo::BeginRedo(), ScDocument::DeleteCol(), ScDocument::DeleteRow(), DoChange(), ScSimpleUndo::EndRedo(), ScDocShell::GetActiveDialogParent(), ScDocShell::GetDocument(), maSpans, ScDocument::MaxCol(), ScDocument::MaxRow(), mbRows, nTab, ScSimpleUndo::pDocShell, SetChangeTrack(), and SfxGetpApp().
|
overridevirtual |
Reimplemented from SfxUndoAction.
Definition at line 804 of file undoblk.cxx.
|
private |
Definition at line 698 of file undoblk.cxx.
References ScRange::aEnd, ScChangeTrack::AppendDeleteRange(), ScRange::aStart, ScChangeTrack::GetActionMax(), ScDocument::GetChangeTrack(), ScDocShell::GetDocument(), maSpans, ScDocument::MaxCol(), ScDocument::MaxRow(), mbRows, nEndChangeAction, nStartChangeAction, nTab, ScSimpleUndo::pDocShell, ScMoveUndo::pRefUndoDoc, ScAddress::SetCol(), and ScAddress::SetRow().
Referenced by Redo(), and ScUndoDeleteMulti().
|
overridevirtual |
redrawing the selection is not possible at the moment since no data for selection exist
Reimplemented from SfxUndoAction.
Definition at line 735 of file undoblk.cxx.
References ALL, ScMoveUndo::BeginUndo(), DoChange(), ScMoveUndo::EndUndo(), ScDocShell::GetActiveDialogParent(), ScDocument::GetChangeTrack(), ScDocShell::GetDocument(), ScDocument::InsertCol(), ScDocument::InsertRow(), maSpans, ScDocument::MaxCol(), ScDocument::MaxRow(), mbRows, nEndChangeAction, nStartChangeAction, nTab, ScSimpleUndo::pDocShell, ScMoveUndo::pRefUndoDoc, SfxGetpApp(), and ScChangeTrack::Undo().
|
private |
Definition at line 126 of file undoblk.hxx.
Referenced by DoChange(), Redo(), SetChangeTrack(), and Undo().
|
private |
Definition at line 124 of file undoblk.hxx.
Referenced by DoChange().
|
private |
Definition at line 123 of file undoblk.hxx.
Referenced by DoChange(), Redo(), SetChangeTrack(), and Undo().
|
private |
Definition at line 128 of file undoblk.hxx.
Referenced by SetChangeTrack(), and Undo().
|
private |
Definition at line 127 of file undoblk.hxx.
Referenced by SetChangeTrack(), and Undo().
|
private |
Definition at line 125 of file undoblk.hxx.
Referenced by DoChange(), Redo(), SetChangeTrack(), and Undo().