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

#include <undoblk.hxx>

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

Public Member Functions

 ScUndoDragDrop (ScDocShell *pNewDocShell, const ScRange &rRange, const ScAddress &aNewDestPos, bool bNewCut, ScDocumentUniquePtr pUndoDocument, bool bScenario)
 
virtual ~ScUndoDragDrop () 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 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...
 
- 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 PaintArea (ScRange aRange, sal_uInt16 nExtFlags) const
 
void DoUndo (ScRange aRange)
 
void SetChangeTrack ()
 

Private Attributes

sal_uInt16 mnPaintExtFlags
 
ScRangeList maPaintRanges
 
ScRange aSrcRange
 
ScRange aDestRange
 
sal_uLong nStartChangeAction
 
sal_uLong nEndChangeAction
 
bool bCut
 
bool bKeepScenarioFlags
 

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

Constructor & Destructor Documentation

ScUndoDragDrop::ScUndoDragDrop ( ScDocShell pNewDocShell,
const ScRange rRange,
const ScAddress aNewDestPos,
bool  bNewCut,
ScDocumentUniquePtr  pUndoDocument,
bool  bScenario 
)
ScUndoDragDrop::~ScUndoDragDrop ( )
overridevirtual

Definition at line 1224 of file undoblk.cxx.

Member Function Documentation

bool ScUndoDragDrop::CanRepeat ( SfxRepeatTarget rTarget) const
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 1491 of file undoblk.cxx.

void ScUndoDragDrop::DoUndo ( ScRange  aRange)
private
OUString ScUndoDragDrop::GetComment ( ) const
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 1228 of file undoblk.cxx.

References bCut, and ScResId().

void ScUndoDragDrop::PaintArea ( ScRange  aRange,
sal_uInt16  nExtFlags 
) const
private
void ScUndoDragDrop::Redo ( )
overridevirtual
void ScUndoDragDrop::Repeat ( SfxRepeatTarget rTarget)
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 1487 of file undoblk.cxx.

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

Member Data Documentation

ScRange ScUndoDragDrop::aDestRange
private

Definition at line 237 of file undoblk.hxx.

Referenced by Redo(), ScUndoDragDrop(), SetChangeTrack(), and Undo().

ScRange ScUndoDragDrop::aSrcRange
private

Definition at line 236 of file undoblk.hxx.

Referenced by PaintArea(), Redo(), ScUndoDragDrop(), SetChangeTrack(), and Undo().

bool ScUndoDragDrop::bCut
private

Definition at line 240 of file undoblk.hxx.

Referenced by GetComment(), Redo(), ScUndoDragDrop(), SetChangeTrack(), and Undo().

bool ScUndoDragDrop::bKeepScenarioFlags
private

Definition at line 241 of file undoblk.hxx.

Referenced by PaintArea(), and Redo().

ScRangeList ScUndoDragDrop::maPaintRanges
private

Definition at line 234 of file undoblk.hxx.

Referenced by DoUndo(), and Undo().

sal_uInt16 ScUndoDragDrop::mnPaintExtFlags
private

Definition at line 233 of file undoblk.hxx.

Referenced by DoUndo(), and Undo().

sal_uLong ScUndoDragDrop::nEndChangeAction
private

Definition at line 239 of file undoblk.hxx.

Referenced by DoUndo(), and SetChangeTrack().

sal_uLong ScUndoDragDrop::nStartChangeAction
private

Definition at line 238 of file undoblk.hxx.

Referenced by DoUndo(), and SetChangeTrack().


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