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

#include <undoblk.hxx>

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

Public Member Functions

 ScUndoFillTable (ScDocShell *pNewDocShell, const ScMarkData &rMark, SCCOL nStartX, SCROW nStartY, SCTAB nStartZ, SCCOL nEndX, SCROW nEndY, SCTAB nEndZ, ScDocumentUniquePtr pNewUndoDoc, bool bNewMulti, SCTAB nSrc, InsertDeleteFlags nFlg, ScPasteFunc nFunc, bool bSkip, bool bLink)
 
virtual ~ScUndoFillTable () 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 Member Functions

void DoChange (const bool bUndo)
 
void SetChangeTrack ()
 

Private Attributes

ScRange aRange
 
ScMarkData aMarkData
 
ScDocumentUniquePtr pUndoDoc
 
sal_uLong nStartChangeAction
 
sal_uLong nEndChangeAction
 
InsertDeleteFlags nFlags
 
ScPasteFunc nFunction
 
SCTAB nSrcTab
 
bool bMulti
 
bool bSkipEmpty
 
bool bAsLink
 

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 283 of file undoblk.hxx.

Constructor & Destructor Documentation

◆ ScUndoFillTable()

ScUndoFillTable::ScUndoFillTable ( ScDocShell pNewDocShell,
const ScMarkData rMark,
SCCOL  nStartX,
SCROW  nStartY,
SCTAB  nStartZ,
SCCOL  nEndX,
SCROW  nEndY,
SCTAB  nEndZ,
ScDocumentUniquePtr  pNewUndoDoc,
bool  bNewMulti,
SCTAB  nSrc,
InsertDeleteFlags  nFlg,
ScPasteFunc  nFunc,
bool  bSkip,
bool  bLink 
)

Definition at line 206 of file undoblk3.cxx.

References SetChangeTrack().

◆ ~ScUndoFillTable()

ScUndoFillTable::~ScUndoFillTable ( )
overridevirtual

Definition at line 226 of file undoblk3.cxx.

Member Function Documentation

◆ CanRepeat()

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

Reimplemented from SfxUndoAction.

Definition at line 337 of file undoblk3.cxx.

References rTarget.

◆ DoChange()

void ScUndoFillTable::DoChange ( const bool  bUndo)
private

◆ GetComment()

OUString ScUndoFillTable::GetComment ( ) const
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 230 of file undoblk3.cxx.

References ScResId().

◆ Redo()

void ScUndoFillTable::Redo ( )
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 324 of file undoblk3.cxx.

References ScSimpleUndo::BeginRedo(), DoChange(), and ScSimpleUndo::EndRedo().

◆ Repeat()

void ScUndoFillTable::Repeat ( SfxRepeatTarget &  rTarget)
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 331 of file undoblk3.cxx.

References bAsLink, bSkipEmpty, nFlags, nFunction, and rTarget.

◆ SetChangeTrack()

void ScUndoFillTable::SetChangeTrack ( )
private

◆ Undo()

void ScUndoFillTable::Undo ( )
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 317 of file undoblk3.cxx.

References ScSimpleUndo::BeginUndo(), DoChange(), and ScSimpleUndo::EndUndo().

Member Data Documentation

◆ aMarkData

ScMarkData ScUndoFillTable::aMarkData
private

Definition at line 303 of file undoblk.hxx.

Referenced by DoChange(), and SetChangeTrack().

◆ aRange

ScRange ScUndoFillTable::aRange
private

Definition at line 302 of file undoblk.hxx.

Referenced by DoChange(), and SetChangeTrack().

◆ bAsLink

bool ScUndoFillTable::bAsLink
private

Definition at line 313 of file undoblk.hxx.

Referenced by DoChange(), and Repeat().

◆ bMulti

bool ScUndoFillTable::bMulti
private

Definition at line 311 of file undoblk.hxx.

Referenced by DoChange().

◆ bSkipEmpty

bool ScUndoFillTable::bSkipEmpty
private

Definition at line 312 of file undoblk.hxx.

Referenced by DoChange(), and Repeat().

◆ nEndChangeAction

sal_uLong ScUndoFillTable::nEndChangeAction
private

Definition at line 307 of file undoblk.hxx.

Referenced by DoChange(), and SetChangeTrack().

◆ nFlags

InsertDeleteFlags ScUndoFillTable::nFlags
private

Definition at line 308 of file undoblk.hxx.

Referenced by DoChange(), and Repeat().

◆ nFunction

ScPasteFunc ScUndoFillTable::nFunction
private

Definition at line 309 of file undoblk.hxx.

Referenced by DoChange(), and Repeat().

◆ nSrcTab

SCTAB ScUndoFillTable::nSrcTab
private

Definition at line 310 of file undoblk.hxx.

Referenced by DoChange(), and SetChangeTrack().

◆ nStartChangeAction

sal_uLong ScUndoFillTable::nStartChangeAction
private

Definition at line 306 of file undoblk.hxx.

Referenced by DoChange(), and SetChangeTrack().

◆ pUndoDoc

ScDocumentUniquePtr ScUndoFillTable::pUndoDoc
private

Definition at line 305 of file undoblk.hxx.

Referenced by DoChange(), and SetChangeTrack().


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