LibreOffice Module sc (master) 1
|
#include <undobase.hxx>
Public Member Functions | |
ScDBFuncUndo (ScDocShell *pDocSh, const ScRange &rOriginal) | |
virtual | ~ScDBFuncUndo () override |
void | BeginUndo () |
void | EndUndo () |
void | BeginRedo () |
void | EndRedo () |
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 |
Protected Attributes | |
std::unique_ptr< ScDBData > | pAutoDBRange |
ScRange | aOriginalRange |
Protected Attributes inherited from ScSimpleUndo | |
ScDocShell * | pDocShell |
std::unique_ptr< SfxUndoAction > | pDetectiveUndo |
ViewShellId | mnViewShellId |
Additional Inherited Members | |
Public Types inherited from ScSimpleUndo | |
typedef std::map< SCTAB, std::unique_ptr< sc::ColumnSpanSet > > | DataSpansType |
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) |
Definition at line 123 of file undobase.hxx.
ScDBFuncUndo::ScDBFuncUndo | ( | ScDocShell * | pDocSh, |
const ScRange & | rOriginal | ||
) |
Definition at line 457 of file undobase.cxx.
References ScDocShell::GetOldAutoDBRange(), and pAutoDBRange.
|
overridevirtual |
Definition at line 464 of file undobase.cxx.
References pAutoDBRange.
void ScDBFuncUndo::BeginRedo | ( | ) |
Definition at line 507 of file undobase.cxx.
References ScRange::aEnd, aOriginalRange, ScRange::aStart, ScSimpleUndo::BeginRedo(), ScAddress::Col(), ScDocShell::DBAreaDeleted(), ScDocument::GetAnonymousDBData(), ScDBData::GetArea(), ScDocShell::GetDocument(), pAutoDBRange, ScSimpleUndo::pDocShell, RedoSdrUndoAction(), ScAddress::Row(), ScDBData::SetArea(), ScDBData::SetAutoFilter(), ScDBData::SetByRow(), ScDBData::SetQueryParam(), ScDBData::SetSortParam(), ScDBData::SetSubTotalParam(), and ScAddress::Tab().
Referenced by ScUndoSubTotals::Redo(), ScUndoQuery::Redo(), and ScUndoAutoFilter::Redo().
void ScDBFuncUndo::BeginUndo | ( | ) |
Definition at line 469 of file undobase.cxx.
References ScSimpleUndo::BeginUndo(), DoSdrUndoAction(), ScDocShell::GetDocument(), and ScSimpleUndo::pDocShell.
Referenced by ScUndoSubTotals::Undo(), ScUndoQuery::Undo(), and ScUndoAutoFilter::Undo().
void ScDBFuncUndo::EndRedo | ( | ) |
Definition at line 544 of file undobase.cxx.
References ScSimpleUndo::EndRedo().
Referenced by ScUndoSubTotals::Redo(), ScUndoQuery::Redo(), and ScUndoAutoFilter::Redo().
void ScDBFuncUndo::EndUndo | ( | ) |
Definition at line 475 of file undobase.cxx.
References ScDocument::ApplyFlagsTab(), Auto, ScDocShell::DBAreaDeleted(), ScSimpleUndo::EndUndo(), ScDocument::GetAnonymousDBData(), ScDBData::GetArea(), ScDocShell::GetDocument(), ScDocument::GetVisibleTab(), Grid, pAutoDBRange, ScSimpleUndo::pDocShell, and ScDocShell::PostPaint().
Referenced by ScUndoSubTotals::Undo(), ScUndoQuery::Undo(), and ScUndoAutoFilter::Undo().
|
protected |
Definition at line 127 of file undobase.hxx.
Referenced by BeginRedo(), and ScUndoAutoFilter::DoChange().
|
protected |
Definition at line 126 of file undobase.hxx.
Referenced by BeginRedo(), EndUndo(), ScDBFuncUndo(), and ~ScDBFuncUndo().