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, const OUString &rNewUndoStr, 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...
 
- 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 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 476 of file undoblk.hxx.

Constructor & Destructor Documentation

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

Definition at line 914 of file undoblk3.cxx.

References pSearchItem, and SetChangeTrack().

ScUndoReplace::~ScUndoReplace ( )
overridevirtual

Definition at line 928 of file undoblk3.cxx.

References pSearchItem, and pUndoDoc.

Member Function Documentation

bool ScUndoReplace::CanRepeat ( SfxRepeatTarget rTarget) const
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 1088 of file undoblk3.cxx.

OUString ScUndoReplace::GetComment ( ) const
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 963 of file undoblk3.cxx.

References ScResId().

void ScUndoReplace::Redo ( )
overridevirtual
void ScUndoReplace::Repeat ( SfxRepeatTarget rTarget)
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 1082 of file undoblk3.cxx.

References pSearchItem.

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

Member Data Documentation

ScAddress ScUndoReplace::aCursorPos
private

Definition at line 494 of file undoblk.hxx.

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

ScMarkData ScUndoReplace::aMarkData
private

Definition at line 495 of file undoblk.hxx.

Referenced by Redo(), and Undo().

OUString ScUndoReplace::aUndoStr
private

Definition at line 496 of file undoblk.hxx.

Referenced by SetChangeTrack(), and Undo().

sal_uLong ScUndoReplace::nEndChangeAction
private

Definition at line 500 of file undoblk.hxx.

Referenced by SetChangeTrack(), and Undo().

sal_uLong ScUndoReplace::nStartChangeAction
private

Definition at line 499 of file undoblk.hxx.

Referenced by SetChangeTrack(), and Undo().

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

Definition at line 498 of file undoblk.hxx.

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

ScDocumentUniquePtr ScUndoReplace::pUndoDoc
private

Definition at line 497 of file undoblk.hxx.

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


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