LibreOffice Module sc (master)
1
|
#include <undocell.hxx>
Classes | |
struct | Value |
Public Types | |
typedef std::vector< Value > | ValuesType |
![]() | |
typedef std::map< SCTAB, std::unique_ptr< sc::ColumnSpanSet > > | DataSpansType |
Public Member Functions | |
ScUndoEnterData (ScDocShell *pNewDocShell, const ScAddress &rPos, ValuesType &rOldValues, const OUString &rNewStr, 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 |
![]() | |
ScSimpleUndo (ScDocShell *pDocSh) | |
virtual bool | Merge (SfxUndoAction *pNextAction) override |
ViewShellId | GetViewShellId () const override |
See SfxUndoAction::GetViewShellId(). More... | |
![]() | |
SfxUndoAction () | |
virtual | ~SfxUndoAction () COVERITY_NOEXCEPT_FALSE |
virtual void | UndoWithContext (SfxUndoContext &i_context) |
virtual void | RedoWithContext (SfxUndoContext &i_context) |
virtual OUString | GetRepeatComment (SfxRepeatTarget &) 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 | |
![]() | |
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 void | ShowTable (SCTAB nTab) |
static void | ShowTable (const ScRange &rRange) |
![]() | |
ScDocShell * | pDocShell |
std::unique_ptr< SfxUndoAction > | pDetectiveUndo |
ViewShellId | mnViewShellId |
Definition at line 71 of file undocell.hxx.
typedef std::vector<Value> ScUndoEnterData::ValuesType |
Definition at line 85 of file undocell.hxx.
ScUndoEnterData::ScUndoEnterData | ( | ScDocShell * | pNewDocShell, |
const ScAddress & | rPos, | ||
ValuesType & | rOldValues, | ||
const OUString & | rNewStr, | ||
std::unique_ptr< EditTextObject > | pObj | ||
) |
Definition at line 159 of file undocell.cxx.
References maOldValues, and SetChangeTrack().
|
overridevirtual |
Reimplemented from SfxUndoAction.
Definition at line 301 of file undocell.cxx.
|
private |
Definition at line 178 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().
|
overridevirtual |
Reimplemented from SfxUndoAction.
Definition at line 173 of file undocell.cxx.
References ScResId().
|
overridevirtual |
Reimplemented from SfxUndoAction.
Definition at line 263 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 292 of file undocell.cxx.
References maNewString.
|
private |
Definition at line 205 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 227 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 101 of file undocell.hxx.
|
private |
Definition at line 99 of file undocell.hxx.
Referenced by DoChange(), Redo(), ScUndoEnterData(), SetChangeTrack(), and Undo().
|
private |
Definition at line 104 of file undocell.hxx.
Referenced by DoChange(), Redo(), SetChangeTrack(), and Undo().
|
private |
Definition at line 103 of file undocell.hxx.
Referenced by SetChangeTrack(), and Undo().
|
private |
Definition at line 102 of file undocell.hxx.
Referenced by Redo().