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

#include <undoblk.hxx>

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

Public Member Functions

 ScUndoReplace (ScDocShell *pNewDocShell, const ScMarkData &rMark, SCCOL nCurX, SCROW nCurY, SCTAB nCurZ, OUString aNewUndoStr, ScDocumentUniquePtr pNewUndoDoc, const SvxSearchItem *pItem)
 
virtual ~ScUndoReplace () 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 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 SetChangeTrack ()
 

Private Attributes

ScAddress aCursorPos
 
ScMarkData aMarkData
 
OUString aUndoStr
 
ScDocumentUniquePtr pUndoDoc
 
std::unique_ptr< SvxSearchItempSearchItem
 
sal_uLong nStartChangeAction
 
sal_uLong nEndChangeAction
 

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

Definition at line 475 of file undoblk.hxx.

Constructor & Destructor Documentation

◆ ScUndoReplace()

ScUndoReplace::ScUndoReplace ( ScDocShell pNewDocShell,
const ScMarkData rMark,
SCCOL  nCurX,
SCROW  nCurY,
SCTAB  nCurZ,
OUString  aNewUndoStr,
ScDocumentUniquePtr  pNewUndoDoc,
const SvxSearchItem pItem 
)

Definition at line 918 of file undoblk3.cxx.

References pSearchItem, and SetChangeTrack().

◆ ~ScUndoReplace()

ScUndoReplace::~ScUndoReplace ( )
overridevirtual

Definition at line 932 of file undoblk3.cxx.

References pSearchItem, and pUndoDoc.

Member Function Documentation

◆ CanRepeat()

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

Reimplemented from SfxUndoAction.

Definition at line 1092 of file undoblk3.cxx.

References rTarget.

◆ GetComment()

OUString ScUndoReplace::GetComment ( ) const
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 967 of file undoblk3.cxx.

References ScResId().

◆ Redo()

void ScUndoReplace::Redo ( )
overridevirtual

◆ Repeat()

void ScUndoReplace::Repeat ( SfxRepeatTarget &  rTarget)
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 1086 of file undoblk3.cxx.

References pSearchItem, and rTarget.

◆ SetChangeTrack()

void ScUndoReplace::SetChangeTrack ( )
private

◆ Undo()

void ScUndoReplace::Undo ( )
overridevirtual

Member Data Documentation

◆ aCursorPos

ScAddress ScUndoReplace::aCursorPos
private

Definition at line 493 of file undoblk.hxx.

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

◆ aMarkData

ScMarkData ScUndoReplace::aMarkData
private

Definition at line 494 of file undoblk.hxx.

Referenced by Redo(), and Undo().

◆ aUndoStr

OUString ScUndoReplace::aUndoStr
private

Definition at line 495 of file undoblk.hxx.

Referenced by SetChangeTrack(), and Undo().

◆ nEndChangeAction

sal_uLong ScUndoReplace::nEndChangeAction
private

Definition at line 499 of file undoblk.hxx.

Referenced by SetChangeTrack(), and Undo().

◆ nStartChangeAction

sal_uLong ScUndoReplace::nStartChangeAction
private

Definition at line 498 of file undoblk.hxx.

Referenced by SetChangeTrack(), and Undo().

◆ pSearchItem

std::unique_ptr<SvxSearchItem> ScUndoReplace::pSearchItem
private

Definition at line 497 of file undoblk.hxx.

Referenced by Redo(), Repeat(), ScUndoReplace(), Undo(), and ~ScUndoReplace().

◆ pUndoDoc

ScDocumentUniquePtr ScUndoReplace::pUndoDoc
private

Definition at line 496 of file undoblk.hxx.

Referenced by Redo(), SetChangeTrack(), Undo(), and ~ScUndoReplace().


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