LibreOffice Module sc (master) 1
|
#include <undoblk.hxx>
Public Member Functions | |
ScUndoReplace (ScDocShell *pNewDocShell, const ScMarkData &rMark, SCCOL nCurX, SCROW nCurY, SCTAB nCurZ, OUString aNewUndoStr, ScDocumentUniquePtr pNewUndoDoc, const SvxSearchItem *pItem) | |
virtual | ~ScUndoReplace () 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 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 | SetChangeTrack () |
Private Attributes | |
ScAddress | aCursorPos |
ScMarkData | aMarkData |
OUString | aUndoStr |
ScDocumentUniquePtr | pUndoDoc |
std::unique_ptr< SvxSearchItem > | pSearchItem |
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 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 ScSimpleUndo | |
ScDocShell * | pDocShell |
std::unique_ptr< SfxUndoAction > | pDetectiveUndo |
ViewShellId | mnViewShellId |
Definition at line 475 of file undoblk.hxx.
ScUndoReplace::ScUndoReplace | ( | ScDocShell * | pNewDocShell, |
const ScMarkData & | rMark, | ||
SCCOL | nCurX, | ||
SCROW | nCurY, | ||
SCTAB | nCurZ, | ||
OUString | aNewUndoStr, | ||
ScDocumentUniquePtr | pNewUndoDoc, | ||
const SvxSearchItem * | pItem | ||
) |
Definition at line 918 of file undoblk3.cxx.
References pSearchItem, and SetChangeTrack().
|
overridevirtual |
Definition at line 932 of file undoblk3.cxx.
References pSearchItem, and pUndoDoc.
|
overridevirtual |
|
overridevirtual |
Reimplemented from SfxUndoAction.
Definition at line 967 of file undoblk3.cxx.
References ScResId().
|
overridevirtual |
Reimplemented from SfxUndoAction.
Definition at line 1050 of file undoblk3.cxx.
References aCursorPos, aMarkData, ScSimpleUndo::BeginRedo(), ScAddress::Col(), ScSimpleUndo::EndRedo(), ScTabViewShell::GetActiveViewShell(), ScDocShell::GetDocument(), ScTabView::MoveCursorAbs(), ScSimpleUndo::pDocShell, ScDocShell::PostPaintGridAll(), pSearchItem, pUndoDoc, ScDocument::ReplaceStyle(), ScAddress::Row(), SC_FOLLOW_JUMP, ScViewFunc::SearchAndReplace(), SetChangeTrack(), ScSimpleUndo::SetViewMarkData(), and ScAddress::Tab().
|
overridevirtual |
Reimplemented from SfxUndoAction.
Definition at line 1086 of file undoblk3.cxx.
References pSearchItem, and rTarget.
|
private |
UndoDoc includes only the changed cells,
Definition at line 938 of file undoblk3.cxx.
References aCursorPos, ScChangeTrack::Append(), ScChangeTrack::AppendContentsIfInRefDoc(), ScCellValue::assign(), aUndoStr, ScChangeTrack::GetActionMax(), ScDocument::GetChangeTrack(), ScDocShell::GetDocument(), nEndChangeAction, nStartChangeAction, ScSimpleUndo::pDocShell, pUndoDoc, ScChangeActionContent::SetNewValue(), and ScChangeActionContent::SetOldValue().
Referenced by Redo(), and ScUndoReplace().
|
overridevirtual |
selected sheet select range ?
Reimplemented from SfxUndoAction.
Definition at line 972 of file undoblk3.cxx.
References aCursorPos, aMarkData, ATTRIB, aUndoStr, ScSimpleUndo::BeginUndo(), ScAddress::Col(), CONTENTS, EditEngine::CreateTextObject(), ScSimpleUndo::EndUndo(), ScTabViewShell::GetActiveViewShell(), ScDocument::GetChangeTrack(), ScDocShell::GetDocument(), ScDocument::GetEditEngine(), ScDocument::GetNote(), ScDocument::MaxCol(), ScDocument::MaxRow(), MAXTAB, ScTabView::MoveCursorAbs(), nEndChangeAction, nStartChangeAction, ScSimpleUndo::pDocShell, ScDocShell::PostPaintGridAll(), pSearchItem, pUndoDoc, ScDocument::ReplaceStyle(), ScAddress::Row(), SC_FOLLOW_JUMP, ScDocument::SetEditText(), ScDocument::SetString(), ScPostIt::SetText(), ScEditEngineDefaulter::SetTextCurrentDefaults(), ScSimpleUndo::SetViewMarkData(), ScSimpleUndo::ShowTable(), ScAddress::Tab(), and ScChangeTrack::Undo().
|
private |
Definition at line 493 of file undoblk.hxx.
Referenced by Redo(), SetChangeTrack(), and Undo().
|
private |
Definition at line 494 of file undoblk.hxx.
|
private |
Definition at line 495 of file undoblk.hxx.
Referenced by SetChangeTrack(), and Undo().
|
private |
Definition at line 499 of file undoblk.hxx.
Referenced by SetChangeTrack(), and Undo().
|
private |
Definition at line 498 of file undoblk.hxx.
Referenced by SetChangeTrack(), and Undo().
|
private |
Definition at line 497 of file undoblk.hxx.
Referenced by Redo(), Repeat(), ScUndoReplace(), Undo(), and ~ScUndoReplace().
|
private |
Definition at line 496 of file undoblk.hxx.
Referenced by Redo(), SetChangeTrack(), Undo(), and ~ScUndoReplace().