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)
 
ViewShellId GetViewShellId () const override
 See SfxUndoAction::GetViewShellId(). More...
 
- Public Member Functions inherited from SfxUndoAction
 SfxUndoAction ()
 
virtual ~SfxUndoAction () COVERITY_NOEXCEPT_FALSE
 
virtual void UndoWithContext (SfxUndoContext &i_context)
 
virtual void RedoWithContext (SfxUndoContext &i_context)
 
virtual OUString GetRepeatComment (SfxRepeatTarget &) 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 38 of file undoblk.hxx.

Constructor & Destructor Documentation

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 ( )
overridevirtual

Definition at line 95 of file undoblk.cxx.

Member Function Documentation

bool ScUndoInsertCells::CanRepeat ( SfxRepeatTarget rTarget) const
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 331 of file undoblk.cxx.

void ScUndoInsertCells::DoChange ( const bool  bUndo)
private
OUString ScUndoInsertCells::GetComment ( ) const
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 99 of file undoblk.cxx.

References pPasteUndo, and ScResId().

bool ScUndoInsertCells::Merge ( SfxUndoAction pNextAction)
overridevirtual
void ScUndoInsertCells::Redo ( )
overridevirtual
void ScUndoInsertCells::Repeat ( SfxRepeatTarget rTarget)
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 315 of file undoblk.cxx.

References eCmd, and pPasteUndo.

void ScUndoInsertCells::SetChangeTrack ( )
private
void ScUndoInsertCells::Undo ( )
overridevirtual

Member Data Documentation

ScRange ScUndoInsertCells::aEffRange
private

Definition at line 58 of file undoblk.hxx.

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

bool ScUndoInsertCells::bPartOfPaste
private

Definition at line 66 of file undoblk.hxx.

Referenced by Merge().

InsCellCmd ScUndoInsertCells::eCmd
private

Definition at line 65 of file undoblk.hxx.

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

SCTAB ScUndoInsertCells::nCount
private

Definition at line 59 of file undoblk.hxx.

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

sal_uLong ScUndoInsertCells::nEndChangeAction
private

Definition at line 64 of file undoblk.hxx.

Referenced by DoChange(), and SetChangeTrack().

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

Definition at line 68 of file undoblk.hxx.

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

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

Definition at line 63 of file undoblk.hxx.

Referenced by DoChange().

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

Definition at line 61 of file undoblk.hxx.

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


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