LibreOffice Module sc (master) 1
|
#include <undocell.hxx>
Public Member Functions | |
ScUndoEnterValue (ScDocShell *pNewDocShell, const ScAddress &rNewPos, ScCellValue aUndoCell, double nVal) | |
virtual | ~ScUndoEnterValue () 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 () |
Private Attributes | |
ScAddress | aPos |
ScCellValue | maOldCell |
double | nValue |
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 111 of file undocell.hxx.
ScUndoEnterValue::ScUndoEnterValue | ( | ScDocShell * | pNewDocShell, |
const ScAddress & | rNewPos, | ||
ScCellValue | aUndoCell, | ||
double | nVal | ||
) |
Definition at line 316 of file undocell.cxx.
References nValue, and SetChangeTrack().
|
overridevirtual |
Definition at line 327 of file undocell.cxx.
|
overridevirtual |
Reimplemented from SfxUndoAction.
Definition at line 387 of file undocell.cxx.
|
inlineoverridevirtual |
|
overridevirtual |
Reimplemented from SfxUndoAction.
Definition at line 331 of file undocell.cxx.
References ScResId().
|
overridevirtual |
Reimplemented from SfxUndoAction.
Definition at line 369 of file undocell.cxx.
References aPos, ScSimpleUndo::BeginRedo(), ScAddress::Col(), ScSimpleUndo::EndRedo(), ScDocShell::GetDocument(), nValue, ScSimpleUndo::pDocShell, ScDocShell::PostPaintCell(), ScAddress::Row(), SetChangeTrack(), ScDocument::SetValue(), and ScAddress::Tab().
|
overridevirtual |
Reimplemented from SfxUndoAction.
Definition at line 382 of file undocell.cxx.
|
private |
Definition at line 336 of file undocell.cxx.
References aPos, ScChangeTrack::AppendContent(), ScChangeTrack::GetActionMax(), ScDocument::GetChangeTrack(), ScDocShell::GetDocument(), maOldCell, nEndChangeAction, and ScSimpleUndo::pDocShell.
Referenced by Redo(), and ScUndoEnterValue().
|
overridevirtual |
Reimplemented from SfxUndoAction.
Definition at line 351 of file undocell.cxx.
References aPos, ScCellValue::assign(), ScSimpleUndo::BeginUndo(), ScSimpleUndo::EndUndo(), ScDocument::GetChangeTrack(), ScDocShell::GetDocument(), maOldCell, nEndChangeAction, ScSimpleUndo::pDocShell, ScDocShell::PostPaintCell(), ScCellValue::release(), StartListening, and ScChangeTrack::Undo().
|
private |
Definition at line 130 of file undocell.hxx.
Referenced by getAffectedRange(), Redo(), SetChangeTrack(), and Undo().
|
private |
Definition at line 131 of file undocell.hxx.
Referenced by SetChangeTrack(), and Undo().
|
private |
Definition at line 133 of file undocell.hxx.
Referenced by SetChangeTrack(), and Undo().
|
private |
Definition at line 132 of file undocell.hxx.
Referenced by Redo().