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

also change BlockUndo? More...

#include <undoblk.hxx>

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

Public Member Functions

 ScUndoUpdateAreaLink (ScDocShell *pShell, OUString aOldD, OUString aOldF, OUString aOldO, OUString aOldA, const ScRange &rOldR, sal_uLong nOldRD, OUString aNewD, OUString aNewF, OUString aNewO, OUString aNewA, const ScRange &rNewR, sal_uLong nNewRD, ScDocumentUniquePtr pUndo, ScDocumentUniquePtr pRedo, bool bDoInsert)
 
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) const
 

Private Attributes

OUString aOldDoc
 
OUString aOldFlt
 
OUString aOldOpt
 
OUString aOldArea
 
ScRange aOldRange
 
OUString aNewDoc
 
OUString aNewFlt
 
OUString aNewOpt
 
OUString aNewArea
 
ScRange aNewRange
 
ScDocumentUniquePtr xUndoDoc
 
ScDocumentUniquePtr xRedoDoc
 
sal_uLong nOldRefresh
 
sal_uLong nNewRefresh
 
bool bWithInsert
 

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

also change BlockUndo?

Definition at line 805 of file undoblk.hxx.

Constructor & Destructor Documentation

◆ ScUndoUpdateAreaLink()

ScUndoUpdateAreaLink::ScUndoUpdateAreaLink ( ScDocShell pShell,
OUString  aOldD,
OUString  aOldF,
OUString  aOldO,
OUString  aOldA,
const ScRange rOldR,
sal_uLong  nOldRD,
OUString  aNewD,
OUString  aNewF,
OUString  aNewO,
OUString  aNewA,
const ScRange rNewR,
sal_uLong  nNewRD,
ScDocumentUniquePtr  pUndo,
ScDocumentUniquePtr  pRedo,
bool  bDoInsert 
)

Definition at line 1613 of file undoblk3.cxx.

References aNewRange, aOldRange, and ScRange::aStart.

Member Function Documentation

◆ CanRepeat()

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

Reimplemented from SfxUndoAction.

Definition at line 1739 of file undoblk3.cxx.

◆ DoChange()

void ScUndoUpdateAreaLink::DoChange ( const bool  bUndo) const
private

◆ GetComment()

OUString ScUndoUpdateAreaLink::GetComment ( ) const
overridevirtual

own text ??

Reimplemented from SfxUndoAction.

Definition at line 1639 of file undoblk3.cxx.

References ScResId().

◆ Redo()

void ScUndoUpdateAreaLink::Redo ( )
overridevirtual

◆ Repeat()

void ScUndoUpdateAreaLink::Repeat ( SfxRepeatTarget &  rTarget)
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 1734 of file undoblk3.cxx.

◆ Undo()

void ScUndoUpdateAreaLink::Undo ( )
overridevirtual

Member Data Documentation

◆ aNewArea

OUString ScUndoUpdateAreaLink::aNewArea
private

Definition at line 836 of file undoblk.hxx.

Referenced by Redo(), and Undo().

◆ aNewDoc

OUString ScUndoUpdateAreaLink::aNewDoc
private

Definition at line 833 of file undoblk.hxx.

Referenced by Redo(), and Undo().

◆ aNewFlt

OUString ScUndoUpdateAreaLink::aNewFlt
private

Definition at line 834 of file undoblk.hxx.

Referenced by Redo(), and Undo().

◆ aNewOpt

OUString ScUndoUpdateAreaLink::aNewOpt
private

Definition at line 835 of file undoblk.hxx.

Referenced by Redo(), and Undo().

◆ aNewRange

ScRange ScUndoUpdateAreaLink::aNewRange
private

Definition at line 837 of file undoblk.hxx.

Referenced by DoChange(), Redo(), ScUndoUpdateAreaLink(), and Undo().

◆ aOldArea

OUString ScUndoUpdateAreaLink::aOldArea
private

Definition at line 831 of file undoblk.hxx.

Referenced by Redo(), and Undo().

◆ aOldDoc

OUString ScUndoUpdateAreaLink::aOldDoc
private

Definition at line 828 of file undoblk.hxx.

Referenced by Redo(), and Undo().

◆ aOldFlt

OUString ScUndoUpdateAreaLink::aOldFlt
private

Definition at line 829 of file undoblk.hxx.

Referenced by Redo(), and Undo().

◆ aOldOpt

OUString ScUndoUpdateAreaLink::aOldOpt
private

Definition at line 830 of file undoblk.hxx.

Referenced by Redo(), and Undo().

◆ aOldRange

ScRange ScUndoUpdateAreaLink::aOldRange
private

Definition at line 832 of file undoblk.hxx.

Referenced by DoChange(), Redo(), ScUndoUpdateAreaLink(), and Undo().

◆ bWithInsert

bool ScUndoUpdateAreaLink::bWithInsert
private

Definition at line 842 of file undoblk.hxx.

Referenced by DoChange().

◆ nNewRefresh

sal_uLong ScUndoUpdateAreaLink::nNewRefresh
private

Definition at line 841 of file undoblk.hxx.

Referenced by Redo().

◆ nOldRefresh

sal_uLong ScUndoUpdateAreaLink::nOldRefresh
private

Definition at line 840 of file undoblk.hxx.

Referenced by Undo().

◆ xRedoDoc

ScDocumentUniquePtr ScUndoUpdateAreaLink::xRedoDoc
private

Definition at line 839 of file undoblk.hxx.

Referenced by DoChange().

◆ xUndoDoc

ScDocumentUniquePtr ScUndoUpdateAreaLink::xUndoDoc
private

Definition at line 838 of file undoblk.hxx.

Referenced by DoChange().


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