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, const ScRangeList &rRanges)
 
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...
 
- 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 (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 181 of file undoblk.hxx.

Constructor & Destructor Documentation

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

Definition at line 939 of file undoblk.cxx.

References pRedoDoc, pRefRedoData, pRefUndoData, and pUndoDoc.

Member Function Documentation

bool ScUndoPaste::CanRepeat ( SfxRepeatTarget rTarget) const
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 1187 of file undoblk.cxx.

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

Reimplemented from SfxUndoAction.

Definition at line 947 of file undoblk.cxx.

References ScResId().

void ScUndoPaste::Redo ( )
overridevirtual
void ScUndoPaste::Repeat ( SfxRepeatTarget rTarget)
overridevirtual
void ScUndoPaste::SetChangeTrack ( )
private
void ScUndoPaste::Undo ( )
overridevirtual

Member Data Documentation

ScMarkData ScUndoPaste::aMarkData
private

Definition at line 201 of file undoblk.hxx.

Referenced by DoChange().

ScUndoPasteOptions ScUndoPaste::aPasteOptions
private

Definition at line 210 of file undoblk.hxx.

Referenced by Repeat(), and ScUndoPaste().

bool ScUndoPaste::bRedoFilled
private

Definition at line 209 of file undoblk.hxx.

Referenced by DoChange().

sal_uLong ScUndoPaste::nEndChangeAction
private

Definition at line 208 of file undoblk.hxx.

Referenced by DoChange(), and SetChangeTrack().

InsertDeleteFlags ScUndoPaste::nFlags
private

Definition at line 204 of file undoblk.hxx.

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

sal_uLong ScUndoPaste::nStartChangeAction
private

Definition at line 207 of file undoblk.hxx.

Referenced by DoChange(), and SetChangeTrack().

ScDocumentUniquePtr ScUndoPaste::pRedoDoc
private

Definition at line 203 of file undoblk.hxx.

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

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

Definition at line 206 of file undoblk.hxx.

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

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

Definition at line 205 of file undoblk.hxx.

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

ScDocumentUniquePtr ScUndoPaste::pUndoDoc
private

Definition at line 202 of file undoblk.hxx.

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


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