LibreOffice Module sc (master)  1
Public Types | Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes | Private Member Functions | List of all members
ScSimpleUndo Class Reference

#include <undobase.hxx>

Inheritance diagram for ScSimpleUndo:
[legend]
Collaboration diagram for ScSimpleUndo:
[legend]

Public Types

typedef std::map< SCTAB, std::unique_ptr< sc::ColumnSpanSet > > DataSpansType
 

Public Member Functions

 ScSimpleUndo (ScDocShell *pDocSh)
 
virtual bool Merge (SfxUndoAction *pNextAction) override
 
ViewShellId GetViewShellId () const override
 See SfxUndoAction::GetViewShellId(). More...
 
- 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 OUString GetComment () const
 
virtual OUString GetRepeatComment (SfxRepeatTarget &) const
 
const DateTimeGetDateTime () const
 
virtual void dumpAsXml (xmlTextWriterPtr pWriter) const
 

Protected Member Functions

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

static void ShowTable (SCTAB nTab)
 
static void ShowTable (const ScRange &rRange)
 

Protected Attributes

ScDocShellpDocShell
 
std::unique_ptr< SfxUndoActionpDetectiveUndo
 
ViewShellId mnViewShellId
 

Private Member Functions

 ScSimpleUndo (const ScSimpleUndo &)=delete
 

Detailed Description

Definition at line 34 of file undobase.hxx.

Member Typedef Documentation

Definition at line 39 of file undobase.hxx.

Constructor & Destructor Documentation

ScSimpleUndo::ScSimpleUndo ( const ScSimpleUndo )
privatedelete
ScSimpleUndo::ScSimpleUndo ( ScDocShell pDocSh)

Definition at line 39 of file undobase.cxx.

References ScTabViewShell::GetActiveViewShell(), and mnViewShellId.

Member Function Documentation

void ScSimpleUndo::BeginRedo ( )
protected

own Flag for Redo?

Definition at line 142 of file undobase.cxx.

References ScTabViewShell::GetActiveViewShell(), ScTabView::HideAllCursors(), pDocShell, and ScDocShell::SetInUndo().

Referenced by ScDBFuncUndo::BeginRedo(), sc::UndoSort::Redo(), ScUndoDoOutline::Redo(), ScUndoCursorAttr::Redo(), ScUndoInsertCells::Redo(), ScUndoModifyStyle::Redo(), ScUndoMakeOutline::Redo(), ScUndoApplyPageStyle::Redo(), ScUndoDeleteCells::Redo(), ScUndoEnterData::Redo(), ScUndoOutlineLevel::Redo(), ScUndoDeleteMulti::Redo(), ScUndoEnterValue::Redo(), ScUndoOutlineBlock::Redo(), ScUndoSetCell::Redo(), ScUndoCut::Redo(), ScUndoRemoveAllOutlines::Redo(), ScUndoPageBreak::Redo(), ScUndoAutoOutline::Redo(), ScUndoPrintZoom::Redo(), ScUndoPaste::Redo(), ScUndoThesaurus::Redo(), ScUndoDragDrop::Redo(), ScUndoDeleteContents::Redo(), ScUndoReplaceNote::Redo(), ScUndoDBData::Redo(), ScUndoShowHideNote::Redo(), ScUndoImportData::Redo(), ScUndoFillTable::Redo(), ScUndoDetective::Redo(), ScUndoRepeatDB::Redo(), ScUndoRangeNames::Redo(), ScUndoSelectionAttr::Redo(), ScUndoDocProtect::Redo(), ScUndoDataPilot::Redo(), sc::UndoSetCells::Redo(), ScUndoTabProtect::Redo(), ScUndoConsolidate::Redo(), ScUndoWidthOrHeight::Redo(), ScUndoPrintRange::Redo(), ScUndoChartData::Redo(), ScUndoAutoFill::Redo(), ScUndoDataForm::Redo(), ScUndoMerge::Redo(), ScUndoRenameObject::Redo(), ScUndoAutoFormat::Redo(), ScUndoReplace::Redo(), ScUndoTabOp::Redo(), ScUndoConversion::Redo(), ScUndoRefConversion::Redo(), ScUndoListNames::Redo(), ScUndoUseScenario::Redo(), ScUndoSelectionStyle::Redo(), ScUndoEnterMatrix::Redo(), ScUndoIndent::Redo(), ScUndoTransliterate::Redo(), ScUndoClearItems::Redo(), ScUndoRemoveBreaks::Redo(), ScUndoRemoveMerge::Redo(), and ScUndoBorder::Redo().

void ScSimpleUndo::BeginUndo ( )
protected
void ScSimpleUndo::BroadcastChanges ( const ScRange rRange)
protected
void ScSimpleUndo::BroadcastChanges ( const DataSpansType rSpans)
protected

Broadcast changes on specified spans.

Parameters
rSpanscontainer that specifies all spans whose changes need to be broadcasted.

Definition at line 209 of file undobase.cxx.

References sc::ColumnSpanSet::executeColumnAction(), ScDocShell::GetDocument(), and pDocShell.

void ScSimpleUndo::EndRedo ( )
protected

Definition at line 151 of file undobase.cxx.

References ScTabViewShell::GetActiveViewShell(), pDetectiveUndo, pDocShell, ScDocShell::SetDocumentModified(), ScDocShell::SetInUndo(), ScTabView::ShowAllCursors(), ScTabView::UpdateAutoFillMark(), and ScTabViewShell::UpdateInputHandler().

Referenced by ScBlockUndo::EndRedo(), ScMultiBlockUndo::EndRedo(), ScDBFuncUndo::EndRedo(), sc::UndoSort::Redo(), ScUndoDoOutline::Redo(), ScUndoCursorAttr::Redo(), ScUndoInsertCells::Redo(), ScUndoModifyStyle::Redo(), ScUndoMakeOutline::Redo(), ScUndoApplyPageStyle::Redo(), ScUndoDeleteCells::Redo(), ScUndoEnterData::Redo(), ScUndoOutlineLevel::Redo(), ScUndoDeleteMulti::Redo(), ScUndoEnterValue::Redo(), ScUndoOutlineBlock::Redo(), ScUndoSetCell::Redo(), ScUndoRemoveAllOutlines::Redo(), ScUndoPageBreak::Redo(), ScUndoAutoOutline::Redo(), ScUndoPrintZoom::Redo(), ScUndoThesaurus::Redo(), ScUndoDragDrop::Redo(), ScUndoDeleteContents::Redo(), ScUndoReplaceNote::Redo(), ScUndoDBData::Redo(), ScUndoShowHideNote::Redo(), ScUndoImportData::Redo(), ScUndoFillTable::Redo(), ScUndoDetective::Redo(), ScUndoRepeatDB::Redo(), ScUndoRangeNames::Redo(), ScUndoSelectionAttr::Redo(), ScUndoDocProtect::Redo(), ScUndoDataPilot::Redo(), sc::UndoSetCells::Redo(), ScUndoTabProtect::Redo(), ScUndoConsolidate::Redo(), ScUndoWidthOrHeight::Redo(), ScUndoPrintRange::Redo(), ScUndoChartData::Redo(), ScUndoMerge::Redo(), ScUndoRenameObject::Redo(), ScUndoReplace::Redo(), ScUndoTabOp::Redo(), ScUndoConversion::Redo(), ScUndoRefConversion::Redo(), ScUndoUseScenario::Redo(), ScUndoSelectionStyle::Redo(), and ScUndoRemoveBreaks::Redo().

void ScSimpleUndo::EndUndo ( )
protected

Definition at line 122 of file undobase.cxx.

References ScTabViewShell::GetActiveViewShell(), pDocShell, ScDocShell::SetDocumentModified(), ScDocShell::SetInUndo(), ScTabView::ShowAllCursors(), ScTabView::UpdateAutoFillMark(), and ScTabViewShell::UpdateInputHandler().

Referenced by ScBlockUndo::EndUndo(), ScMultiBlockUndo::EndUndo(), ScDBFuncUndo::EndUndo(), ScMoveUndo::EndUndo(), ScUndoRefreshLink::Redo(), sc::UndoSort::Undo(), ScUndoCursorAttr::Undo(), ScUndoDoOutline::Undo(), ScUndoModifyStyle::Undo(), ScUndoMakeOutline::Undo(), ScUndoApplyPageStyle::Undo(), ScUndoEnterData::Undo(), ScUndoOutlineLevel::Undo(), ScUndoEnterValue::Undo(), ScUndoOutlineBlock::Undo(), ScUndoSetCell::Undo(), ScUndoRemoveAllOutlines::Undo(), ScUndoPageBreak::Undo(), ScUndoAutoOutline::Undo(), ScUndoPrintZoom::Undo(), ScUndoThesaurus::Undo(), ScUndoDeleteContents::Undo(), ScUndoReplaceNote::Undo(), ScUndoDBData::Undo(), ScUndoShowHideNote::Undo(), ScUndoImportData::Undo(), ScUndoFillTable::Undo(), ScUndoDetective::Undo(), ScUndoRepeatDB::Undo(), ScUndoRangeNames::Undo(), ScUndoSelectionAttr::Undo(), ScUndoDocProtect::Undo(), ScUndoDataPilot::Undo(), sc::UndoSetCells::Undo(), ScUndoTabProtect::Undo(), ScUndoWidthOrHeight::Undo(), ScUndoConsolidate::Undo(), ScUndoPrintRange::Undo(), ScUndoChartData::Undo(), ScUndoMerge::Undo(), ScUndoRenameObject::Undo(), ScUndoReplace::Undo(), ScUndoTabOp::Undo(), ScUndoConversion::Undo(), ScUndoRefConversion::Undo(), ScUndoUseScenario::Undo(), ScUndoSelectionStyle::Undo(), ScUndoRefreshLink::Undo(), and ScUndoRemoveBreaks::Undo().

ViewShellId ScSimpleUndo::GetViewShellId ( ) const
overridevirtual

See SfxUndoAction::GetViewShellId().

Reimplemented from SfxUndoAction.

Definition at line 47 of file undobase.cxx.

References mnViewShellId.

bool ScSimpleUndo::IsPaintLocked ( ) const
inlineprotected
bool ScSimpleUndo::Merge ( SfxUndoAction pNextAction)
overridevirtual

Reimplemented from SfxUndoAction.

Reimplemented in ScUndoInsertCells.

Definition at line 65 of file undobase.cxx.

References pDetectiveUndo, and ScUndoDraw::ReleaseDrawUndo().

Referenced by ScUndoInsertCells::Merge().

bool ScSimpleUndo::SetViewMarkData ( const ScMarkData rMarkData)
protected
void ScSimpleUndo::ShowTable ( SCTAB  nTab)
staticprotected
void ScSimpleUndo::ShowTable ( const ScRange rRange)
staticprotected

Member Data Documentation

ViewShellId ScSimpleUndo::mnViewShellId
protected

Definition at line 51 of file undobase.hxx.

Referenced by GetViewShellId(), and ScSimpleUndo().

std::unique_ptr<SfxUndoAction> ScSimpleUndo::pDetectiveUndo
protected

Definition at line 50 of file undobase.hxx.

Referenced by BeginUndo(), EndRedo(), and Merge().

ScDocShell* ScSimpleUndo::pDocShell
protected

Definition at line 48 of file undobase.hxx.

Referenced by ScBlockUndo::AdjustHeight(), BeginRedo(), ScDBFuncUndo::BeginRedo(), BeginUndo(), ScBlockUndo::BeginUndo(), ScMultiBlockUndo::BeginUndo(), ScDBFuncUndo::BeginUndo(), ScMoveUndo::BeginUndo(), BroadcastChanges(), ScUndoSelectionAttr::ChangeEditData(), ScUndoAllRangeNames::DoChange(), ScUndoCursorAttr::DoChange(), ScUndoInsertCells::DoChange(), ScUndoDeleteCells::DoChange(), ScUndoEnterData::DoChange(), ScUndoDeleteMulti::DoChange(), ScUndoRenameTab::DoChange(), ScUndoCut::DoChange(), ScUndoMoveTab::DoChange(), ScUndoPageBreak::DoChange(), ScUndoCopyTab::DoChange(), ScUndoPrintZoom::DoChange(), ScUndoPaste::DoChange(), ScUndoTabColor::DoChange(), ScUndoThesaurus::DoChange(), ScUndoAutoFilter::DoChange(), ScUndoImportTab::DoChange(), ScUndoDeleteContents::DoChange(), ScUndoRemoveLink::DoChange(), ScUndoFillTable::DoChange(), ScUndoShowHideTab::DoChange(), ScUndoRangeNames::DoChange(), sc::UndoSetCells::DoChange(), ScUndoSelectionAttr::DoChange(), ScUndoPrintRange::DoChange(), ScUndoDataForm::DoChange(), ScUndoMerge::DoChange(), ScUndoLayoutRTL::DoChange(), ScUndoConversion::DoChange(), ScUndoRefConversion::DoChange(), ScUndoListNames::DoChange(), ScUndoConditionalFormat::DoChange(), ScUndoConditionalFormatList::DoChange(), ScUndoSelectionStyle::DoChange(), ScUndoUpdateAreaLink::DoChange(), ScUndoReplaceNote::DoInsertNote(), ScUndoDocProtect::DoProtect(), ScUndoTabProtect::DoProtect(), ScUndoReplaceNote::DoRemoveNote(), ScUndoDragDrop::DoUndo(), EndRedo(), EndUndo(), ScBlockUndo::EndUndo(), ScMultiBlockUndo::EndUndo(), ScDBFuncUndo::EndUndo(), ScMoveUndo::EndUndo(), sc::UndoFormulaToValue::Execute(), sc::UndoSort::Execute(), ScUndoRenameObject::GetObject(), ScUndoChartData::Init(), ScUndoDragDrop::PaintArea(), ScUndoInsertTab::Redo(), ScUndoInsertCells::Redo(), ScUndoAddRangeData::Redo(), ScUndoModifyStyle::Redo(), ScUndoInsertTables::Redo(), ScUndoMakeOutline::Redo(), ScUndoApplyPageStyle::Redo(), ScUndoDeleteCells::Redo(), ScUndoEnterData::Redo(), ScUndoDeleteTab::Redo(), ScUndoDeleteMulti::Redo(), ScUndoEnterValue::Redo(), ScUndoOutlineBlock::Redo(), ScUndoSetCell::Redo(), ScUndoCut::Redo(), ScUndoAutoOutline::Redo(), ScUndoCopyTab::Redo(), ScUndoSubTotals::Redo(), ScUndoPaste::Redo(), ScUndoDragDrop::Redo(), ScUndoMakeScenario::Redo(), ScUndoDeleteContents::Redo(), ScUndoReplaceNote::Redo(), ScUndoImportTab::Redo(), ScUndoDBData::Redo(), ScUndoShowHideNote::Redo(), ScUndoImportData::Redo(), ScUndoDetective::Redo(), ScUndoRepeatDB::Redo(), ScUndoDataPilot::Redo(), ScUndoWidthOrHeight::Redo(), ScUndoConsolidate::Redo(), ScUndoChartData::Redo(), ScUndoAutoFill::Redo(), ScUndoScenarioFlags::Redo(), ScUndoDataForm::Redo(), ScUndoAutoFormat::Redo(), ScUndoReplace::Redo(), ScUndoTabOp::Redo(), ScUndoUseScenario::Redo(), ScUndoRefreshLink::Redo(), ScUndoEnterMatrix::Redo(), ScUndoInsertAreaLink::Redo(), ScUndoRemoveAreaLink::Redo(), ScUndoUpdateAreaLink::Redo(), ScUndoIndent::Redo(), ScUndoTransliterate::Redo(), ScUndoClearItems::Redo(), ScUndoRemoveBreaks::Redo(), ScUndoRemoveMerge::Redo(), ScUndoBorder::Redo(), ScUndoSelectionStyle::Repeat(), ScUndoEnterMatrix::Repeat(), ScBlockUndo::ScBlockUndo(), ScMoveUndo::ScMoveUndo(), ScMultiBlockUndo::ScMultiBlockUndo(), ScUndoCopyTab::ScUndoCopyTab(), ScUndoCursorAttr::ScUndoCursorAttr(), ScUndoDataForm::ScUndoDataForm(), ScUndoDeleteCells::ScUndoDeleteCells(), ScUndoDeleteContents::ScUndoDeleteContents(), ScUndoDragDrop::ScUndoDragDrop(), ScUndoImportTab::ScUndoImportTab(), ScUndoInsertCells::ScUndoInsertCells(), ScUndoInsertTab::ScUndoInsertTab(), ScUndoInsertTables::ScUndoInsertTables(), ScUndoMakeScenario::ScUndoMakeScenario(), ScUndoPaste::ScUndoPaste(), ScUndoQuery::ScUndoQuery(), ScUndoRemoveLink::ScUndoRemoveLink(), ScUndoSelectionAttr::ScUndoSelectionAttr(), ScUndoWidthOrHeight::ScUndoWidthOrHeight(), ScUndoInsertTab::SetChangeTrack(), ScUndoInsertCells::SetChangeTrack(), ScUndoInsertTables::SetChangeTrack(), ScUndoDeleteCells::SetChangeTrack(), ScUndoEnterData::SetChangeTrack(), ScUndoDeleteTab::SetChangeTrack(), ScUndoDeleteMulti::SetChangeTrack(), ScUndoEnterValue::SetChangeTrack(), ScUndoSetCell::SetChangeTrack(), ScUndoCut::SetChangeTrack(), ScUndoPaste::SetChangeTrack(), ScUndoThesaurus::SetChangeTrack(), ScUndoDragDrop::SetChangeTrack(), ScUndoDeleteContents::SetChangeTrack(), ScUndoFillTable::SetChangeTrack(), ScUndoAutoFill::SetChangeTrack(), ScUndoReplace::SetChangeTrack(), ScUndoConversion::SetChangeTrack(), ScUndoRefConversion::SetChangeTrack(), ScUndoEnterMatrix::SetChangeTrack(), ScUndoSetCell::SetValue(), ScUndoDoOutline::Undo(), ScUndoInsertTab::Undo(), ScUndoInsertCells::Undo(), ScUndoAddRangeData::Undo(), ScUndoModifyStyle::Undo(), ScUndoInsertTables::Undo(), ScUndoMakeOutline::Undo(), ScUndoApplyPageStyle::Undo(), ScUndoDeleteCells::Undo(), ScUndoEnterData::Undo(), ScUndoOutlineLevel::Undo(), ScUndoDeleteTab::Undo(), ScUndoDeleteMulti::Undo(), ScUndoEnterValue::Undo(), ScUndoOutlineBlock::Undo(), ScUndoSetCell::Undo(), ScUndoRemoveAllOutlines::Undo(), ScUndoAutoOutline::Undo(), ScUndoCopyTab::Undo(), ScUndoSubTotals::Undo(), ScUndoThesaurus::Undo(), ScUndoQuery::Undo(), ScUndoDragDrop::Undo(), ScUndoMakeScenario::Undo(), ScUndoDeleteContents::Undo(), ScUndoImportTab::Undo(), ScUndoReplaceNote::Undo(), ScUndoDBData::Undo(), ScUndoShowHideNote::Undo(), ScUndoImportData::Undo(), ScUndoDetective::Undo(), ScUndoRepeatDB::Undo(), ScUndoDataPilot::Undo(), ScUndoWidthOrHeight::Undo(), ScUndoConsolidate::Undo(), ScUndoChartData::Undo(), ScUndoAutoFill::Undo(), ScUndoScenarioFlags::Undo(), ScUndoAutoFormat::Undo(), ScUndoReplace::Undo(), ScUndoTabOp::Undo(), ScUndoConversion::Undo(), ScUndoRefConversion::Undo(), ScUndoUseScenario::Undo(), ScUndoRefreshLink::Undo(), ScUndoEnterMatrix::Undo(), ScUndoInsertAreaLink::Undo(), ScUndoRemoveAreaLink::Undo(), ScUndoUpdateAreaLink::Undo(), ScUndoIndent::Undo(), ScUndoTransliterate::Undo(), ScUndoClearItems::Undo(), ScUndoRemoveBreaks::Undo(), ScUndoRemoveMerge::Undo(), ScUndoBorder::Undo(), ScMoveUndo::UndoRef(), ScUndoCursorAttr::~ScUndoCursorAttr(), and ScUndoSelectionAttr::~ScUndoSelectionAttr().


The documentation for this class was generated from the following files: