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

#include <undoblk.hxx>

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

Public Member Functions

 ScUndoPaste (ScDocShell *pNewDocShell, const ScRangeList &rRanges, const ScMarkData &rMark, ScDocumentUniquePtr pNewUndoDoc, ScDocumentUniquePtr pNewRedoDoc, InsertDeleteFlags nNewFlags, std::unique_ptr< ScRefUndoData > pRefData, bool bRedoIsFilled=true, const ScUndoPasteOptions *pOptions=nullptr)
 
virtual ~ScUndoPaste () 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 ScMultiBlockUndo
 ScMultiBlockUndo (ScDocShell *pDocSh, ScRangeList aRanges)
 
virtual ~ScMultiBlockUndo () 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 (bool bUndo)
 
void SetChangeTrack ()
 

Private Attributes

ScMarkData aMarkData
 
ScDocumentUniquePtr pUndoDoc
 
ScDocumentUniquePtr pRedoDoc
 
InsertDeleteFlags nFlags
 
std::unique_ptr< ScRefUndoDatapRefUndoData
 
std::unique_ptr< ScRefUndoDatapRefRedoData
 
sal_uLong nStartChangeAction
 
sal_uLong nEndChangeAction
 
bool bRedoFilled
 
ScUndoPasteOptions aPasteOptions
 

Additional Inherited Members

- Public Types inherited from ScSimpleUndo
typedef std::map< SCTAB, std::unique_ptr< sc::ColumnSpanSet > > DataSpansType
 
- Protected Member Functions inherited from ScMultiBlockUndo
void BeginUndo ()
 
void EndUndo ()
 
void EndRedo ()
 
void ShowBlock ()
 
- 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 ScMultiBlockUndo
ScRangeList maBlockRanges
 
std::unique_ptr< SdrUndoActionmpDrawUndo
 
- Protected Attributes inherited from ScSimpleUndo
ScDocShellpDocShell
 
std::unique_ptr< SfxUndoActionpDetectiveUndo
 
ViewShellId mnViewShellId
 

Detailed Description

Definition at line 180 of file undoblk.hxx.

Constructor & Destructor Documentation

◆ ScUndoPaste()

ScUndoPaste::ScUndoPaste ( ScDocShell pNewDocShell,
const ScRangeList rRanges,
const ScMarkData rMark,
ScDocumentUniquePtr  pNewUndoDoc,
ScDocumentUniquePtr  pNewRedoDoc,
InsertDeleteFlags  nNewFlags,
std::unique_ptr< ScRefUndoData pRefData,
bool  bRedoIsFilled = true,
const ScUndoPasteOptions pOptions = nullptr 
)

◆ ~ScUndoPaste()

ScUndoPaste::~ScUndoPaste ( )
overridevirtual

Definition at line 938 of file undoblk.cxx.

References pRedoDoc, pRefRedoData, pRefUndoData, and pUndoDoc.

Member Function Documentation

◆ CanRepeat()

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

Reimplemented from SfxUndoAction.

Definition at line 1201 of file undoblk.cxx.

References rTarget.

◆ DoChange()

void ScUndoPaste::DoChange ( bool  bUndo)
private

◆ GetComment()

OUString ScUndoPaste::GetComment ( ) const
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 946 of file undoblk.cxx.

References ScResId().

◆ Redo()

void ScUndoPaste::Redo ( )
overridevirtual

◆ Repeat()

void ScUndoPaste::Repeat ( SfxRepeatTarget &  rTarget)
overridevirtual

◆ SetChangeTrack()

void ScUndoPaste::SetChangeTrack ( )
private

◆ Undo()

void ScUndoPaste::Undo ( )
overridevirtual

Member Data Documentation

◆ aMarkData

ScMarkData ScUndoPaste::aMarkData
private

Definition at line 200 of file undoblk.hxx.

Referenced by DoChange().

◆ aPasteOptions

ScUndoPasteOptions ScUndoPaste::aPasteOptions
private

Definition at line 209 of file undoblk.hxx.

Referenced by Repeat(), and ScUndoPaste().

◆ bRedoFilled

bool ScUndoPaste::bRedoFilled
private

Definition at line 208 of file undoblk.hxx.

Referenced by DoChange().

◆ nEndChangeAction

sal_uLong ScUndoPaste::nEndChangeAction
private

Definition at line 207 of file undoblk.hxx.

Referenced by DoChange(), and SetChangeTrack().

◆ nFlags

InsertDeleteFlags ScUndoPaste::nFlags
private

Definition at line 203 of file undoblk.hxx.

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

◆ nStartChangeAction

sal_uLong ScUndoPaste::nStartChangeAction
private

Definition at line 206 of file undoblk.hxx.

Referenced by DoChange(), and SetChangeTrack().

◆ pRedoDoc

ScDocumentUniquePtr ScUndoPaste::pRedoDoc
private

Definition at line 202 of file undoblk.hxx.

Referenced by DoChange(), and ~ScUndoPaste().

◆ pRefRedoData

std::unique_ptr<ScRefUndoData> ScUndoPaste::pRefRedoData
private

Definition at line 205 of file undoblk.hxx.

Referenced by DoChange(), and ~ScUndoPaste().

◆ pRefUndoData

std::unique_ptr<ScRefUndoData> ScUndoPaste::pRefUndoData
private

Definition at line 204 of file undoblk.hxx.

Referenced by DoChange(), ScUndoPaste(), and ~ScUndoPaste().

◆ pUndoDoc

ScDocumentUniquePtr ScUndoPaste::pUndoDoc
private

Definition at line 201 of file undoblk.hxx.

Referenced by DoChange(), SetChangeTrack(), and ~ScUndoPaste().


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