LibreOffice Module sc (master) 1
|
#include <undoblk.hxx>
Public Member Functions | |
ScUndoDeleteCells (ScDocShell *pNewDocShell, const ScRange &rRange, SCTAB nNewCount, std::unique_ptr< SCTAB[]> pNewTabs, std::unique_ptr< SCTAB[]> pNewScenarios, DelCellCmd eNewCmd, ScDocumentUniquePtr pUndoDocument, std::unique_ptr< ScRefUndoData > pRefData) | |
virtual | ~ScUndoDeleteCells () 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 bool bUndo) |
void | SetChangeTrack () |
Private Attributes | |
ScRange | aEffRange |
SCTAB | nCount |
std::unique_ptr< SCTAB[]> | pTabs |
std::unique_ptr< SCTAB[]> | pScenarios |
sal_uLong | nStartChangeAction |
sal_uLong | nEndChangeAction |
DelCellCmd | eCmd |
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 73 of file undoblk.hxx.
ScUndoDeleteCells::ScUndoDeleteCells | ( | ScDocShell * | pNewDocShell, |
const ScRange & | rRange, | ||
SCTAB | nNewCount, | ||
std::unique_ptr< SCTAB[]> | pNewTabs, | ||
std::unique_ptr< SCTAB[]> | pNewScenarios, | ||
DelCellCmd | eNewCmd, | ||
ScDocumentUniquePtr | pUndoDocument, | ||
std::unique_ptr< ScRefUndoData > | pRefData | ||
) |
Definition at line 345 of file undoblk.cxx.
References aEffRange, ScRange::aEnd, ScRange::aStart, Cols, eCmd, ScDocShell::GetDocument(), ScDocument::MaxCol(), ScDocument::MaxRow(), nCount, ScSimpleUndo::pDocShell, Rows, SetChangeTrack(), ScAddress::SetCol(), and ScAddress::SetRow().
|
overridevirtual |
Definition at line 372 of file undoblk.cxx.
|
overridevirtual |
|
private |
Definition at line 391 of file undoblk.cxx.
References ScDocShell::AdjustRowHeight(), aEffRange, ScRange::aEnd, ALL, ScDocument::ApplyPatternArea(), ScRange::aStart, CellsLeft, CellsUp, ScAddress::Col(), Cols, COLUMN_HEADER, ScDocument::DeleteCol(), ScDocument::DeleteRow(), eCmd, ScDocument::ExtendMerge(), ScTabViewShell::GetActiveViewShell(), ScDocument::GetChangeTrack(), ScDocShell::GetDocument(), ScPatternAttr::GetItemSet(), ScDocument::GetPool(), ScDocument::GetSheetLimits(), ScViewData::GetTabNo(), ScTabView::GetViewData(), Grid, ScDocument::HasAttrib(), i, ScDocument::InsertCol(), ScDocument::InsertRow(), comphelper::LibreOfficeKit::isActive(), Left, ScDocument::MaxCol(), ScDocument::MaxRow(), Merged, nCount, nEndChangeAction, NOCAPTIONS, ScTabViewShell::notifyAllViewsHeaderInvalidation(), ScTabViewShell::notifyAllViewsSheetGeomInvalidation(), nStartChangeAction, ScViewFunc::OnLOKInsertDeleteColumn(), ScViewFunc::OnLOKInsertDeleteRow(), Overlapped, ScSimpleUndo::pDocShell, ScDocShell::PostDataChanged(), ScDocShell::PostPaint(), ScMoveUndo::pRefUndoDoc, pScenarios, pTabs, SfxItemSet::Put(), ScAddress::Row(), ROW_HEADER, Rows, SC_PF_LINES, ScMarkData::SelectOneTable(), SetChangeTrack(), ScAddress::SetCol(), ScAddress::SetRow(), ScAddress::Tab(), Top, and ScChangeTrack::Undo().
|
overridevirtual |
|
overridevirtual |
Reimplemented from SfxUndoAction.
Definition at line 602 of file undoblk.cxx.
References aEffRange, ScRange::aEnd, ScRange::aStart, ScSimpleUndo::BeginRedo(), ScAddress::Col(), DoChange(), ScTabView::DoneBlockMode(), ScSimpleUndo::EndRedo(), ScDocShell::GetActiveDialogParent(), ScTabViewShell::GetActiveViewShell(), ScDocShell::GetDocument(), i, nCount, ScSimpleUndo::pDocShell, pTabs, ScDocument::RefreshAutoFilter(), ScAddress::Row(), ScDocument::SetDrawPageSize(), and SfxGetpApp().
|
overridevirtual |
Reimplemented from SfxUndoAction.
Definition at line 627 of file undoblk.cxx.
|
private |
Definition at line 381 of file undoblk.cxx.
References aEffRange, ScChangeTrack::AppendDeleteRange(), ScDocument::GetChangeTrack(), ScDocShell::GetDocument(), nEndChangeAction, nStartChangeAction, ScSimpleUndo::pDocShell, and ScMoveUndo::pRefUndoDoc.
Referenced by DoChange(), and ScUndoDeleteCells().
|
overridevirtual |
Reimplemented from SfxUndoAction.
Definition at line 566 of file undoblk.cxx.
References aEffRange, ScRange::aEnd, ScRange::aStart, ScMoveUndo::BeginUndo(), ScAddress::Col(), DoChange(), ScMoveUndo::EndUndo(), ScDocShell::GetActiveDialogParent(), ScTabViewShell::GetActiveViewShell(), ScDocShell::GetDocument(), i, ScTabView::MarkRange(), ScDocument::MaxRow(), nCount, ScSimpleUndo::pDocShell, pScenarios, pTabs, ScDocument::RefreshAutoFilter(), ScAddress::Row(), ScDocument::SetDrawPageSize(), and SfxGetpApp().
|
private |
Definition at line 90 of file undoblk.hxx.
Referenced by DoChange(), Redo(), ScUndoDeleteCells(), SetChangeTrack(), and Undo().
|
private |
Definition at line 98 of file undoblk.hxx.
Referenced by DoChange(), Repeat(), and ScUndoDeleteCells().
|
private |
Definition at line 91 of file undoblk.hxx.
Referenced by DoChange(), Redo(), and Undo().
|
private |
Definition at line 97 of file undoblk.hxx.
Referenced by DoChange(), and SetChangeTrack().
|
private |
Definition at line 96 of file undoblk.hxx.
Referenced by DoChange(), and SetChangeTrack().
|
private |
Definition at line 95 of file undoblk.hxx.
Referenced by DoChange(), and Undo().
|
private |
Definition at line 93 of file undoblk.hxx.
Referenced by DoChange(), Redo(), and Undo().