LibreOffice Module sc (master) 1
|
#include <undocell.hxx>
Public Member Functions | |
ScUndoSetCell (ScDocShell *pDocSh, const ScAddress &rPos, ScCellValue aOldVal, ScCellValue aNewVal) | |
virtual | ~ScUndoSetCell () 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 |
virtual std::optional< ScRange > | getAffectedRange () 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 () |
void | SetValue (const ScCellValue &rVal) |
void | MoveCursorToCell () |
Private Attributes | |
ScAddress | maPos |
ScCellValue | maOldValue |
ScCellValue | maNewValue |
sal_uLong | mnEndChangeAction |
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 138 of file undocell.hxx.
ScUndoSetCell::ScUndoSetCell | ( | ScDocShell * | pDocSh, |
const ScAddress & | rPos, | ||
ScCellValue | aOldVal, | ||
ScCellValue | aNewVal | ||
) |
Definition at line 392 of file undocell.cxx.
References SetChangeTrack().
|
overridevirtual |
Definition at line 398 of file undocell.cxx.
|
overridevirtual |
Reimplemented from SfxUndoAction.
Definition at line 430 of file undocell.cxx.
|
inlineoverridevirtual |
|
overridevirtual |
Reimplemented from SfxUndoAction.
Definition at line 435 of file undocell.cxx.
References ScResId().
|
private |
Definition at line 490 of file undocell.cxx.
References ScAddress::Col(), ScTabViewShell::GetActiveViewShell(), maPos, ScTabView::MoveCursorAbs(), ScAddress::Row(), SC_FOLLOW_JUMP, ScTabView::SetTabNo(), and ScAddress::Tab().
|
overridevirtual |
Reimplemented from SfxUndoAction.
Definition at line 415 of file undocell.cxx.
References ScSimpleUndo::BeginRedo(), ScSimpleUndo::EndRedo(), maNewValue, maPos, MoveCursorToCell(), ScSimpleUndo::pDocShell, ScDocShell::PostPaintCell(), SetChangeTrack(), and SetValue().
|
overridevirtual |
Reimplemented from SfxUndoAction.
Definition at line 425 of file undocell.cxx.
|
private |
Definition at line 440 of file undocell.cxx.
References ScChangeTrack::AppendContent(), ScChangeTrack::GetActionMax(), ScDocument::GetChangeTrack(), ScDocShell::GetDocument(), maOldValue, maPos, mnEndChangeAction, and ScSimpleUndo::pDocShell.
Referenced by Redo(), and ScUndoSetCell().
|
private |
Definition at line 457 of file undocell.cxx.
References CELLTYPE_EDIT, CELLTYPE_FORMULA, CELLTYPE_NONE, CELLTYPE_STRING, CELLTYPE_VALUE, ScFormulaCell::Clone(), EditTextObject::Clone(), ScDocShell::GetDocument(), ScCellValue::getDouble(), ScCellValue::getEditText(), ScCellValue::getFormula(), ScCellValue::getSharedString(), svl::SharedString::getString(), ScCellValue::getType(), ScSetStringParam::Keep, maPos, ScSetStringParam::meSetTextNumFormat, ScSimpleUndo::pDocShell, ScDocument::SetEditText(), ScDocument::SetEmptyCell(), ScDocument::SetFormulaCell(), ScDocument::SetString(), ScSetStringParam::setTextInput(), and ScDocument::SetValue().
|
overridevirtual |
Reimplemented from SfxUndoAction.
Definition at line 400 of file undocell.cxx.
References ScSimpleUndo::BeginUndo(), ScSimpleUndo::EndUndo(), ScDocument::GetChangeTrack(), ScDocShell::GetDocument(), maOldValue, maPos, mnEndChangeAction, MoveCursorToCell(), ScSimpleUndo::pDocShell, ScDocShell::PostPaintCell(), SetValue(), and ScChangeTrack::Undo().
|
private |
Definition at line 161 of file undocell.hxx.
Referenced by Redo().
|
private |
Definition at line 160 of file undocell.hxx.
Referenced by SetChangeTrack(), and Undo().
|
private |
Definition at line 159 of file undocell.hxx.
Referenced by getAffectedRange(), MoveCursorToCell(), Redo(), SetChangeTrack(), SetValue(), and Undo().
|
private |
Definition at line 162 of file undocell.hxx.
Referenced by SetChangeTrack(), and Undo().