LibreOffice Module sc (master) 1
|
#include <undocell.hxx>
Classes | |
struct | Value |
Public Types | |
typedef std::vector< Value > | ValuesType |
Public Types inherited from ScSimpleUndo | |
typedef std::map< SCTAB, std::unique_ptr< sc::ColumnSpanSet > > | DataSpansType |
Public Member Functions | |
ScUndoEnterData (ScDocShell *pNewDocShell, const ScAddress &rPos, ValuesType &rOldValues, OUString aNewStr, std::unique_ptr< EditTextObject > pObj) | |
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 | DoChange () const |
void | SetChangeTrack () |
Private Attributes | |
ValuesType | maOldValues |
OUString | maNewString |
std::unique_ptr< EditTextObject > | mpNewEditData |
sal_uLong | mnEndChangeAction |
ScAddress | maPos |
Additional Inherited Members | |
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 70 of file undocell.hxx.
typedef std::vector<Value> ScUndoEnterData::ValuesType |
Definition at line 84 of file undocell.hxx.
ScUndoEnterData::ScUndoEnterData | ( | ScDocShell * | pNewDocShell, |
const ScAddress & | rPos, | ||
ValuesType & | rOldValues, | ||
OUString | aNewStr, | ||
std::unique_ptr< EditTextObject > | pObj | ||
) |
Definition at line 169 of file undocell.cxx.
References maOldValues, and SetChangeTrack().
|
overridevirtual |
|
private |
Definition at line 188 of file undocell.cxx.
References ScDocShell::AdjustRowHeight(), ScAddress::Col(), ScTabViewShell::GetActiveViewShell(), i, comphelper::LibreOfficeKit::isActive(), maOldValues, maPos, ScTabView::MoveCursorAbs(), ScTabViewShell::notifyAllViewsHeaderInvalidation(), ScTabViewShell::notifyAllViewsSheetGeomInvalidation(), ScSimpleUndo::pDocShell, ScDocShell::PostDataChanged(), ScAddress::Row(), ROW_HEADER, SC_FOLLOW_JUMP, ScTabView::SetTabNo(), and ScAddress::Tab().
|
inlineoverridevirtual |
|
overridevirtual |
Reimplemented from SfxUndoAction.
Definition at line 183 of file undocell.cxx.
References ScResId().
|
overridevirtual |
Reimplemented from SfxUndoAction.
Definition at line 273 of file undocell.cxx.
References ScSimpleUndo::BeginRedo(), ScAddress::Col(), DoChange(), ScSimpleUndo::EndRedo(), ScDocShell::GetDocument(), maNewString, maOldValues, maPos, mpNewEditData, HelperNotifyChanges::NotifyIfChangesListeners(), ScSimpleUndo::pDocShell, ScDocShell::PostPaintCell(), ScAddress::Row(), SetChangeTrack(), ScDocument::SetEditText(), ScDocument::SetString(), and ScAddress::SetTab().
|
overridevirtual |
Reimplemented from SfxUndoAction.
Definition at line 302 of file undocell.cxx.
References maNewString, and rTarget.
|
private |
Definition at line 215 of file undocell.cxx.
References ScChangeTrack::AppendContent(), ScChangeTrack::GetActionMax(), ScDocument::GetChangeTrack(), ScDocShell::GetDocument(), maOldValues, maPos, mnEndChangeAction, ScSimpleUndo::pDocShell, and ScAddress::SetTab().
Referenced by Redo(), and ScUndoEnterData().
|
overridevirtual |
Reimplemented from SfxUndoAction.
Definition at line 237 of file undocell.cxx.
References ScDocument::ApplyAttr(), ScCellValue::assign(), ATTR_VALUE_FORMAT(), ScSimpleUndo::BeginUndo(), ScAddress::Col(), DoChange(), ScSimpleUndo::EndUndo(), ScDocument::GetChangeTrack(), ScDocShell::GetDocument(), ScDocument::GetPattern(), maOldValues, maPos, mnEndChangeAction, nCount, HelperNotifyChanges::NotifyIfChangesListeners(), ScSimpleUndo::pDocShell, ScDocShell::PostPaintCell(), ScCellValue::release(), ScAddress::Row(), ScDocument::SetPattern(), ScAddress::SetTab(), StartListening, and ScChangeTrack::Undo().
|
private |
Definition at line 102 of file undocell.hxx.
|
private |
Definition at line 100 of file undocell.hxx.
Referenced by DoChange(), Redo(), ScUndoEnterData(), SetChangeTrack(), and Undo().
|
private |
Definition at line 105 of file undocell.hxx.
Referenced by DoChange(), getAffectedRange(), Redo(), SetChangeTrack(), and Undo().
|
private |
Definition at line 104 of file undocell.hxx.
Referenced by SetChangeTrack(), and Undo().
|
private |
Definition at line 103 of file undocell.hxx.
Referenced by Redo().