LibreOffice Module sc (master) 1
Public Member Functions | Private Attributes | List of all members
ScUndoTabOp Class Reference

#include <undoblk.hxx>

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

Public Member Functions

 ScUndoTabOp (ScDocShell *pNewDocShell, SCCOL nStartX, SCROW nStartY, SCTAB nStartZ, SCCOL nEndX, SCROW nEndY, SCTAB nEndZ, ScDocumentUniquePtr pNewUndoDoc, const ScRefAddress &rFormulaCell, const ScRefAddress &rFormulaEnd, const ScRefAddress &rRowCell, const ScRefAddress &rColCell, ScTabOpParam::Mode eMode)
 
virtual ~ScUndoTabOp () 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
 
- 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< ScRangegetAffectedRange () 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 DateTimeGetDateTime () const
 
virtual void dumpAsXml (xmlTextWriterPtr pWriter) const
 

Private Attributes

ScRange aRange
 
ScDocumentUniquePtr pUndoDoc
 
ScRefAddress theFormulaCell
 
ScRefAddress theFormulaEnd
 
ScRefAddress theRowCell
 
ScRefAddress theColCell
 
ScTabOpParam::Mode meMode
 

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
ScDocShellpDocShell
 
std::unique_ptr< SfxUndoActionpDetectiveUndo
 
ViewShellId mnViewShellId
 

Detailed Description

Definition at line 504 of file undoblk.hxx.

Constructor & Destructor Documentation

◆ ScUndoTabOp()

ScUndoTabOp::ScUndoTabOp ( ScDocShell pNewDocShell,
SCCOL  nStartX,
SCROW  nStartY,
SCTAB  nStartZ,
SCCOL  nEndX,
SCROW  nEndY,
SCTAB  nEndZ,
ScDocumentUniquePtr  pNewUndoDoc,
const ScRefAddress rFormulaCell,
const ScRefAddress rFormulaEnd,
const ScRefAddress rRowCell,
const ScRefAddress rColCell,
ScTabOpParam::Mode  eMode 
)

Definition at line 1098 of file undoblk3.cxx.

References eMode, and meMode.

◆ ~ScUndoTabOp()

ScUndoTabOp::~ScUndoTabOp ( )
overridevirtual

Definition at line 1117 of file undoblk3.cxx.

Member Function Documentation

◆ CanRepeat()

bool ScUndoTabOp::CanRepeat ( SfxRepeatTarget &  rTarget) const
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 1166 of file undoblk3.cxx.

◆ GetComment()

OUString ScUndoTabOp::GetComment ( ) const
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 1121 of file undoblk3.cxx.

References ScResId().

◆ Redo()

void ScUndoTabOp::Redo ( )
overridevirtual

◆ Repeat()

void ScUndoTabOp::Repeat ( SfxRepeatTarget &  rTarget)
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 1162 of file undoblk3.cxx.

◆ Undo()

void ScUndoTabOp::Undo ( )
overridevirtual

Member Data Documentation

◆ aRange

ScRange ScUndoTabOp::aRange
private

Definition at line 526 of file undoblk.hxx.

Referenced by Redo(), and Undo().

◆ meMode

ScTabOpParam::Mode ScUndoTabOp::meMode
private

Definition at line 533 of file undoblk.hxx.

Referenced by Redo().

◆ pUndoDoc

ScDocumentUniquePtr ScUndoTabOp::pUndoDoc
private

Definition at line 528 of file undoblk.hxx.

Referenced by Undo().

◆ theColCell

ScRefAddress ScUndoTabOp::theColCell
private

Definition at line 532 of file undoblk.hxx.

Referenced by Redo().

◆ theFormulaCell

ScRefAddress ScUndoTabOp::theFormulaCell
private

Definition at line 529 of file undoblk.hxx.

Referenced by Redo().

◆ theFormulaEnd

ScRefAddress ScUndoTabOp::theFormulaEnd
private

Definition at line 530 of file undoblk.hxx.

Referenced by Redo().

◆ theRowCell

ScRefAddress ScUndoTabOp::theRowCell
private

Definition at line 531 of file undoblk.hxx.

Referenced by Redo().


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