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

#include <undoblk.hxx>

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

Public Member Functions

 ScUndoInsertCells (ScDocShell *pNewDocShell, const ScRange &rRange, SCTAB nNewCount, std::unique_ptr< SCTAB[]> pNewTabs, std::unique_ptr< SCTAB[]> pNewScenarios, InsCellCmd eNewCmd, ScDocumentUniquePtr pUndoDocument, std::unique_ptr< ScRefUndoData > pRefData, bool bNewPartOfPaste)
 
virtual ~ScUndoInsertCells () 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
 
virtual bool Merge (SfxUndoAction *pNextAction) override
 
- Public Member Functions inherited from ScMoveUndo
 ScMoveUndo (ScDocShell *pDocSh, ScDocumentUniquePtr pRefDoc, std::unique_ptr< ScRefUndoData > pRefData)
 
virtual ~ScMoveUndo () 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 Member Functions

void DoChange (const bool bUndo)
 
void SetChangeTrack ()
 

Private Attributes

ScRange aEffRange
 
SCTAB nCount
 
std::unique_ptr< SCTAB[]> pTabs
 
std::unique_ptr< SCTAB[]> pScenarios
 
sal_uLong nEndChangeAction
 
InsCellCmd eCmd
 
bool bPartOfPaste
 
std::unique_ptr< SfxUndoActionpPasteUndo
 

Additional Inherited Members

- Public Types inherited from ScSimpleUndo
typedef std::map< SCTAB, std::unique_ptr< sc::ColumnSpanSet > > DataSpansType
 
- Protected Member Functions inherited from ScMoveUndo
void BeginUndo ()
 
void EndUndo ()
 
- 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 ScMoveUndo
std::unique_ptr< SdrUndoActionpDrawUndo
 
ScDocumentUniquePtr pRefUndoDoc
 
std::unique_ptr< ScRefUndoDatapRefUndoData
 
- Protected Attributes inherited from ScSimpleUndo
ScDocShellpDocShell
 
std::unique_ptr< SfxUndoActionpDetectiveUndo
 
ViewShellId mnViewShellId
 

Detailed Description

Definition at line 37 of file undoblk.hxx.

Constructor & Destructor Documentation

◆ ScUndoInsertCells()

ScUndoInsertCells::ScUndoInsertCells ( ScDocShell pNewDocShell,
const ScRange rRange,
SCTAB  nNewCount,
std::unique_ptr< SCTAB[]>  pNewTabs,
std::unique_ptr< SCTAB[]>  pNewScenarios,
InsCellCmd  eNewCmd,
ScDocumentUniquePtr  pUndoDocument,
std::unique_ptr< ScRefUndoData pRefData,
bool  bNewPartOfPaste 
)

◆ ~ScUndoInsertCells()

ScUndoInsertCells::~ScUndoInsertCells ( )
overridevirtual

Definition at line 94 of file undoblk.cxx.

Member Function Documentation

◆ CanRepeat()

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

Reimplemented from SfxUndoAction.

Definition at line 340 of file undoblk.cxx.

References rTarget.

◆ DoChange()

void ScUndoInsertCells::DoChange ( const bool  bUndo)
private

◆ GetComment()

OUString ScUndoInsertCells::GetComment ( ) const
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 98 of file undoblk.cxx.

References pPasteUndo, and ScResId().

◆ Merge()

bool ScUndoInsertCells::Merge ( SfxUndoAction pNextAction)
overridevirtual

Reimplemented from ScSimpleUndo.

Definition at line 103 of file undoblk.cxx.

References bPartOfPaste, ScSimpleUndo::Merge(), and pPasteUndo.

◆ Redo()

void ScUndoInsertCells::Redo ( )
overridevirtual

◆ Repeat()

void ScUndoInsertCells::Repeat ( SfxRepeatTarget &  rTarget)
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 324 of file undoblk.cxx.

References eCmd, pPasteUndo, and rTarget.

◆ SetChangeTrack()

void ScUndoInsertCells::SetChangeTrack ( )
private

◆ Undo()

void ScUndoInsertCells::Undo ( )
overridevirtual

Member Data Documentation

◆ aEffRange

ScRange ScUndoInsertCells::aEffRange
private

Definition at line 57 of file undoblk.hxx.

Referenced by DoChange(), ScUndoInsertCells(), and SetChangeTrack().

◆ bPartOfPaste

bool ScUndoInsertCells::bPartOfPaste
private

Definition at line 65 of file undoblk.hxx.

Referenced by Merge().

◆ eCmd

InsCellCmd ScUndoInsertCells::eCmd
private

Definition at line 64 of file undoblk.hxx.

Referenced by DoChange(), Repeat(), and ScUndoInsertCells().

◆ nCount

SCTAB ScUndoInsertCells::nCount
private

Definition at line 58 of file undoblk.hxx.

Referenced by DoChange(), Redo(), and Undo().

◆ nEndChangeAction

sal_uLong ScUndoInsertCells::nEndChangeAction
private

Definition at line 63 of file undoblk.hxx.

Referenced by DoChange(), and SetChangeTrack().

◆ pPasteUndo

std::unique_ptr<SfxUndoAction> ScUndoInsertCells::pPasteUndo
private

Definition at line 67 of file undoblk.hxx.

Referenced by GetComment(), Merge(), Redo(), Repeat(), and Undo().

◆ pScenarios

std::unique_ptr<SCTAB[]> ScUndoInsertCells::pScenarios
private

Definition at line 62 of file undoblk.hxx.

Referenced by DoChange().

◆ pTabs

std::unique_ptr<SCTAB[]> ScUndoInsertCells::pTabs
private

Definition at line 60 of file undoblk.hxx.

Referenced by DoChange(), Redo(), and Undo().


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