LibreOffice Module sc (master) 1
|
#include <undobase.hxx>
Public Member Functions | |
ScBlockUndo (ScDocShell *pDocSh, const ScRange &rRange, ScBlockUndoMode eBlockMode) | |
virtual | ~ScBlockUndo () 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 |
Protected Member Functions | |
void | BeginUndo () |
void | EndUndo () |
void | EndRedo () |
bool | AdjustHeight () |
void | ShowBlock () |
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... | |
Protected Attributes | |
ScRange | aBlockRange |
std::unique_ptr< SdrUndoAction > | pDrawUndo |
ScBlockUndoMode | eMode |
Protected Attributes inherited from ScSimpleUndo | |
ScDocShell * | pDocShell |
std::unique_ptr< SfxUndoAction > | pDetectiveUndo |
ViewShellId | mnViewShellId |
Additional Inherited Members | |
Public Types inherited from ScSimpleUndo | |
typedef std::map< SCTAB, std::unique_ptr< sc::ColumnSpanSet > > | DataSpansType |
Static Protected Member Functions inherited from ScSimpleUndo | |
static void | ShowTable (SCTAB nTab) |
static void | ShowTable (const ScRange &rRange) |
Definition at line 80 of file undobase.hxx.
ScBlockUndo::ScBlockUndo | ( | ScDocShell * | pDocSh, |
const ScRange & | rRange, | ||
ScBlockUndoMode | eBlockMode | ||
) |
Definition at line 244 of file undobase.cxx.
References eMode, ScDocShell::GetDocument(), GetSdrUndoAction(), ScSimpleUndo::pDocShell, and pDrawUndo.
|
overridevirtual |
Definition at line 253 of file undobase.cxx.
References pDrawUndo.
|
protected |
Definition at line 285 of file undobase.cxx.
References aBlockRange, ScRange::aEnd, ScRange::aStart, ScTabViewShell::GetActiveViewShell(), ScDocShell::GetDocument(), ScViewData::GetPPTX(), ScViewData::GetPPTY(), ScTabView::GetViewData(), ScViewData::GetZoomX(), ScViewData::GetZoomY(), Grid, Left, ScDocument::MaxCol(), ScDocument::MaxRow(), nPPTX, nPPTY, ScGlobal::nScreenPPTX, ScGlobal::nScreenPPTY, ScSimpleUndo::pDocShell, ScDocShell::PostPaint(), ScAddress::Row(), ScDocument::SetDrawPageSize(), ScDocument::SetOptimalHeight(), and ScAddress::Tab().
|
protected |
Definition at line 258 of file undobase.cxx.
References ScSimpleUndo::BeginUndo(), EnableDrawAdjust(), ScDocShell::GetDocument(), and ScSimpleUndo::pDocShell.
Referenced by ScUndoCut::Undo(), ScUndoAutoFill::Undo(), ScUndoAutoFormat::Undo(), ScUndoListNames::Undo(), ScUndoEnterMatrix::Undo(), ScUndoIndent::Undo(), ScUndoTransliterate::Undo(), ScUndoClearItems::Undo(), ScUndoRemoveMerge::Undo(), ScUndoBorder::Undo(), and ScUndoDataForm::Undo().
|
protected |
Definition at line 276 of file undobase.cxx.
References AdjustHeight(), eMode, ScSimpleUndo::EndRedo(), SC_UNDO_AUTOHEIGHT, and ShowBlock().
Referenced by ScUndoCut::Redo(), ScUndoAutoFill::Redo(), ScUndoAutoFormat::Redo(), ScUndoListNames::Redo(), ScUndoEnterMatrix::Redo(), ScUndoIndent::Redo(), ScUndoTransliterate::Redo(), ScUndoClearItems::Redo(), ScUndoRemoveMerge::Redo(), ScUndoBorder::Redo(), and ScUndoDataForm::Redo().
|
protected |
Definition at line 264 of file undobase.cxx.
References AdjustHeight(), DoSdrUndoAction(), eMode, EnableDrawAdjust(), ScSimpleUndo::EndUndo(), ScDocShell::GetDocument(), ScSimpleUndo::pDocShell, pDrawUndo, SC_UNDO_AUTOHEIGHT, and ShowBlock().
Referenced by ScUndoCut::Undo(), ScUndoAutoFill::Undo(), ScUndoAutoFormat::Undo(), ScUndoListNames::Undo(), ScUndoEnterMatrix::Undo(), ScUndoIndent::Undo(), ScUndoTransliterate::Undo(), ScUndoClearItems::Undo(), ScUndoRemoveMerge::Undo(), ScUndoBorder::Undo(), and ScUndoDataForm::Undo().
|
inlineoverridevirtual |
Reimplemented from ScSimpleUndo.
Definition at line 87 of file undobase.hxx.
References aBlockRange.
|
protected |
Definition at line 325 of file undobase.cxx.
References aBlockRange, ScRange::aEnd, ScRange::aStart, ScAddress::Col(), ScTabViewShell::GetActiveViewShell(), ScViewData::GetTabNo(), ScTabView::GetViewData(), ScSimpleUndo::IsPaintLocked(), ScTabView::MarkRange(), ScTabView::MoveCursorAbs(), ScAddress::Row(), SC_FOLLOW_JUMP, ScAddress::SetTab(), and ScSimpleUndo::ShowTable().
|
protected |
Definition at line 90 of file undobase.hxx.
Referenced by AdjustHeight(), ScUndoCut::DoChange(), ScUndoDataForm::DoChange(), ScUndoListNames::DoChange(), getAffectedRange(), ScUndoAutoFill::Redo(), ScUndoAutoFormat::Redo(), ScUndoEnterMatrix::Redo(), ScUndoIndent::Redo(), ScUndoTransliterate::Redo(), ScUndoClearItems::Redo(), ScUndoDataForm::ScUndoDataForm(), ScUndoCut::SetChangeTrack(), ScUndoAutoFill::SetChangeTrack(), ScUndoEnterMatrix::SetChangeTrack(), ScUndoRemoveMerge::SetCurTab(), ShowBlock(), ScUndoAutoFill::Undo(), ScUndoAutoFormat::Undo(), ScUndoEnterMatrix::Undo(), ScUndoIndent::Undo(), ScUndoTransliterate::Undo(), ScUndoClearItems::Undo(), ScUndoBorder::Undo(), and ScUndoDataForm::Undo().
|
protected |
Definition at line 92 of file undobase.hxx.
|
protected |
Definition at line 91 of file undobase.hxx.
Referenced by ScUndoCut::DoChange(), ScUndoDataForm::DoChange(), EndUndo(), ScBlockUndo(), and ~ScBlockUndo().