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

Constructor & Destructor Documentation

◆ ScUndoDragDrop()

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

◆ ~ScUndoDragDrop()

ScUndoDragDrop::~ScUndoDragDrop ( )
overridevirtual

Definition at line 1238 of file undoblk.cxx.

Member Function Documentation

◆ CanRepeat()

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

Reimplemented from SfxUndoAction.

Definition at line 1505 of file undoblk.cxx.

◆ DoUndo()

void ScUndoDragDrop::DoUndo ( ScRange  aRange)
private

◆ GetComment()

OUString ScUndoDragDrop::GetComment ( ) const
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 1242 of file undoblk.cxx.

References bCut, and ScResId().

◆ PaintArea()

void ScUndoDragDrop::PaintArea ( ScRange  aRange,
sal_uInt16  nExtFlags 
) const
private

◆ Redo()

void ScUndoDragDrop::Redo ( )
overridevirtual

◆ Repeat()

void ScUndoDragDrop::Repeat ( SfxRepeatTarget &  rTarget)
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 1501 of file undoblk.cxx.

◆ SetChangeTrack()

void ScUndoDragDrop::SetChangeTrack ( )
private

◆ Undo()

void ScUndoDragDrop::Undo ( )
overridevirtual

Member Data Documentation

◆ aDestRange

ScRange ScUndoDragDrop::aDestRange
private

Definition at line 236 of file undoblk.hxx.

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

◆ aSrcRange

ScRange ScUndoDragDrop::aSrcRange
private

Definition at line 235 of file undoblk.hxx.

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

◆ bCut

bool ScUndoDragDrop::bCut
private

Definition at line 239 of file undoblk.hxx.

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

◆ bKeepScenarioFlags

bool ScUndoDragDrop::bKeepScenarioFlags
private

Definition at line 240 of file undoblk.hxx.

Referenced by PaintArea(), and Redo().

◆ maPaintRanges

ScRangeList ScUndoDragDrop::maPaintRanges
private

Definition at line 233 of file undoblk.hxx.

Referenced by DoUndo(), and Undo().

◆ mnPaintExtFlags

sal_uInt16 ScUndoDragDrop::mnPaintExtFlags
private

Definition at line 232 of file undoblk.hxx.

Referenced by DoUndo(), and Undo().

◆ nEndChangeAction

sal_uLong ScUndoDragDrop::nEndChangeAction
private

Definition at line 238 of file undoblk.hxx.

Referenced by DoUndo(), and SetChangeTrack().

◆ nStartChangeAction

sal_uLong ScUndoDragDrop::nStartChangeAction
private

Definition at line 237 of file undoblk.hxx.

Referenced by DoUndo(), and SetChangeTrack().


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