LibreOffice Module sc (master) 1
|
#include <undocell.hxx>
Public Member Functions | |
UndoSetCells (ScDocShell *pDocSh, const ScAddress &rTopPos) | |
virtual | ~UndoSetCells () override |
virtual void | Undo () override |
virtual void | Redo () override |
virtual bool | CanRepeat (SfxRepeatTarget &) const override |
virtual OUString | GetComment () const override |
CellValues & | GetOldValues () |
void | SetNewValues (const std::vector< double > &rVals) |
void | SetNewValues (const std::vector< ScFormulaCell * > &rVals) |
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 (const CellValues &rValues) |
Private Attributes | |
ScAddress | maTopPos |
CellValues | maOldValues |
CellValues | maNewValues |
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 354 of file undocell.hxx.
sc::UndoSetCells::UndoSetCells | ( | ScDocShell * | pDocSh, |
const ScAddress & | rTopPos | ||
) |
Definition at line 18 of file undocell2.cxx.
|
overridevirtual |
Definition at line 21 of file undocell2.cxx.
|
overridevirtual |
Reimplemented from SfxUndoAction.
Definition at line 48 of file undocell2.cxx.
|
private |
Definition at line 23 of file undocell2.cxx.
References ScRange::aEnd, ScSimpleUndo::BroadcastChanges(), ScDocument::CopyCellValuesFrom(), ScDocShell::GetDocument(), ScAddress::IncRow(), maTopPos, ScSimpleUndo::pDocShell, ScDocShell::PostPaintGridAll(), and sc::CellValues::size().
|
overridevirtual |
Reimplemented from SfxUndoAction.
Definition at line 53 of file undocell2.cxx.
References ScResId().
|
inline |
Definition at line 372 of file undocell.hxx.
References maOldValues.
|
overridevirtual |
Reimplemented from SfxUndoAction.
Definition at line 41 of file undocell2.cxx.
References ScSimpleUndo::BeginRedo(), DoChange(), ScSimpleUndo::EndRedo(), and maNewValues.
void sc::UndoSetCells::SetNewValues | ( | const std::vector< double > & | rVals | ) |
Definition at line 59 of file undocell2.cxx.
References sc::CellValues::assign(), and maNewValues.
void sc::UndoSetCells::SetNewValues | ( | const std::vector< ScFormulaCell * > & | rVals | ) |
Definition at line 64 of file undocell2.cxx.
References sc::CellValues::assign(), and maNewValues.
|
overridevirtual |
Reimplemented from SfxUndoAction.
Definition at line 34 of file undocell2.cxx.
References ScSimpleUndo::BeginUndo(), DoChange(), ScSimpleUndo::EndUndo(), and maOldValues.
|
private |
Definition at line 358 of file undocell.hxx.
Referenced by Redo(), and SetNewValues().
|
private |
Definition at line 357 of file undocell.hxx.
Referenced by GetOldValues(), and Undo().
|
private |
Definition at line 356 of file undocell.hxx.
Referenced by DoChange().