LibreOffice Module sc (master) 1
|
Undo action for inserting, removing, and replacing a cell note. More...
#include <undocell.hxx>
Public Member Functions | |
ScUndoReplaceNote (ScDocShell &rDocShell, const ScAddress &rPos, const ScNoteData &rNoteData, bool bInsert, std::unique_ptr< SdrUndoAction > pDrawUndo) | |
Constructs an undo action for inserting or removing a cell note. More... | |
ScUndoReplaceNote (ScDocShell &rDocShell, const ScAddress &rPos, ScNoteData aOldData, ScNoteData aNewData, std::unique_ptr< SdrUndoAction > pDrawUndo) | |
Constructs an undo action for replacing a cell note with another. More... | |
virtual | ~ScUndoReplaceNote () 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 | DoInsertNote (const ScNoteData &rNoteData) |
void | DoRemoveNote (const ScNoteData &rNoteData) |
Private Attributes | |
ScAddress | maPos |
ScNoteData | maOldData |
ScNoteData | maNewData |
std::unique_ptr< SdrUndoAction > | mpDrawUndo |
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 |
Undo action for inserting, removing, and replacing a cell note.
Definition at line 243 of file undocell.hxx.
ScUndoReplaceNote::ScUndoReplaceNote | ( | ScDocShell & | rDocShell, |
const ScAddress & | rPos, | ||
const ScNoteData & | rNoteData, | ||
bool | bInsert, | ||
std::unique_ptr< SdrUndoAction > | pDrawUndo | ||
) |
Constructs an undo action for inserting or removing a cell note.
Definition at line 732 of file undocell.cxx.
References maNewData, maOldData, and ScNoteData::mxCaption.
ScUndoReplaceNote::ScUndoReplaceNote | ( | ScDocShell & | rDocShell, |
const ScAddress & | rPos, | ||
ScNoteData | aOldData, | ||
ScNoteData | aNewData, | ||
std::unique_ptr< SdrUndoAction > | pDrawUndo | ||
) |
Constructs an undo action for replacing a cell note with another.
Definition at line 749 of file undocell.cxx.
References maNewData, maOldData, ScNoteData::mxCaption, and ScNoteData::mxInitData.
|
overridevirtual |
Definition at line 761 of file undocell.cxx.
References mpDrawUndo.
|
overridevirtual |
Reimplemented from SfxUndoAction.
Definition at line 796 of file undocell.cxx.
|
private |
Definition at line 807 of file undocell.cxx.
References Add, ScDocShell::GetDocument(), ScDocument::GetNote(), ScDocShell::LOKCommentNotify(), maPos, ScNoteData::mxCaption, ScSimpleUndo::pDocShell, and ScDocument::SetNote().
|
private |
Definition at line 819 of file undocell.cxx.
References ScDocShell::GetDocument(), ScDocument::GetNote(), ScDocShell::LOKCommentNotify(), maPos, ScNoteData::mxCaption, ScSimpleUndo::pDocShell, ScDocument::ReleaseNote(), and Remove.
|
inlineoverridevirtual |
|
overridevirtual |
Reimplemented from SfxUndoAction.
Definition at line 801 of file undocell.cxx.
References maNewData, maOldData, ScNoteData::mxCaption, and ScResId().
|
overridevirtual |
Reimplemented from SfxUndoAction.
Definition at line 779 of file undocell.cxx.
References ScSimpleUndo::BeginRedo(), DoInsertNote(), DoRemoveNote(), ScSimpleUndo::EndRedo(), maNewData, maOldData, maPos, mpDrawUndo, ScSimpleUndo::pDocShell, ScDocShell::PostPaintCell(), and RedoSdrUndoAction().
|
overridevirtual |
Reimplemented from SfxUndoAction.
Definition at line 792 of file undocell.cxx.
|
overridevirtual |
Reimplemented from SfxUndoAction.
Definition at line 766 of file undocell.cxx.
References ScSimpleUndo::BeginUndo(), DoInsertNote(), DoRemoveNote(), DoSdrUndoAction(), ScSimpleUndo::EndUndo(), ScDocShell::GetDocument(), maNewData, maOldData, maPos, mpDrawUndo, ScSimpleUndo::pDocShell, and ScDocShell::PostPaintCell().
|
private |
Definition at line 281 of file undocell.hxx.
Referenced by GetComment(), Redo(), ScUndoReplaceNote(), and Undo().
|
private |
Definition at line 280 of file undocell.hxx.
Referenced by GetComment(), Redo(), ScUndoReplaceNote(), and Undo().
|
private |
Definition at line 279 of file undocell.hxx.
Referenced by DoInsertNote(), DoRemoveNote(), getAffectedRange(), Redo(), and Undo().
|
private |
Definition at line 282 of file undocell.hxx.
Referenced by Redo(), Undo(), and ~ScUndoReplaceNote().