LibreOffice Module sc (master) 1
|
#include <undocell.hxx>
Public Member Functions | |
ScUndoThesaurus (ScDocShell *pNewDocShell, SCCOL nNewCol, SCROW nNewRow, SCTAB nNewTab, ScCellValue aOldText, ScCellValue aNewText) | |
virtual | ~ScUndoThesaurus () 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 | DoChange (bool bUndo, const ScCellValue &rText) |
void | SetChangeTrack (const ScCellValue &rOldCell) |
Private Attributes | |
SCCOL | nCol |
SCROW | nRow |
SCTAB | nTab |
sal_uLong | nEndChangeAction |
ScCellValue | maOldText |
ScCellValue | maNewText |
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 214 of file undocell.hxx.
ScUndoThesaurus::ScUndoThesaurus | ( | ScDocShell * | pNewDocShell, |
SCCOL | nNewCol, | ||
SCROW | nNewRow, | ||
SCTAB | nNewTab, | ||
ScCellValue | aOldText, | ||
ScCellValue | aNewText | ||
) |
Definition at line 650 of file undocell.cxx.
References maOldText, and SetChangeTrack().
|
overridevirtual |
Definition at line 663 of file undocell.cxx.
|
overridevirtual |
|
private |
Definition at line 684 of file undocell.cxx.
References ScCellValue::commit(), ScTabViewShell::GetActiveViewShell(), ScDocShell::GetDocument(), maOldText, ScTabView::MoveCursorAbs(), nCol, nRow, nTab, ScSimpleUndo::pDocShell, ScDocShell::PostPaintCell(), SC_FOLLOW_JUMP, SetChangeTrack(), and ScTabView::SetTabNo().
|
overridevirtual |
Reimplemented from SfxUndoAction.
Definition at line 665 of file undocell.cxx.
References ScResId().
|
overridevirtual |
Reimplemented from SfxUndoAction.
Definition at line 713 of file undocell.cxx.
References ScSimpleUndo::BeginRedo(), DoChange(), ScSimpleUndo::EndRedo(), and maNewText.
|
overridevirtual |
|
private |
Definition at line 670 of file undocell.cxx.
References ScChangeTrack::AppendContent(), ScChangeTrack::GetActionMax(), ScDocument::GetChangeTrack(), ScDocShell::GetDocument(), nCol, nEndChangeAction, nRow, nTab, and ScSimpleUndo::pDocShell.
Referenced by DoChange(), and ScUndoThesaurus().
|
overridevirtual |
Reimplemented from SfxUndoAction.
Definition at line 703 of file undocell.cxx.
References ScSimpleUndo::BeginUndo(), DoChange(), ScSimpleUndo::EndUndo(), ScDocument::GetChangeTrack(), ScDocShell::GetDocument(), maOldText, nEndChangeAction, ScSimpleUndo::pDocShell, and ScChangeTrack::Undo().
|
private |
Definition at line 236 of file undocell.hxx.
Referenced by Redo().
|
private |
Definition at line 235 of file undocell.hxx.
Referenced by DoChange(), ScUndoThesaurus(), and Undo().
|
private |
Definition at line 230 of file undocell.hxx.
Referenced by DoChange(), and SetChangeTrack().
|
private |
Definition at line 233 of file undocell.hxx.
Referenced by SetChangeTrack(), and Undo().
|
private |
Definition at line 231 of file undocell.hxx.
Referenced by DoChange(), and SetChangeTrack().
|
private |
Definition at line 232 of file undocell.hxx.
Referenced by DoChange(), and SetChangeTrack().