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

#include <undocell.hxx>

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

Public Member Functions

 ScUndoRangeNames (ScDocShell *pNewDocShell, std::unique_ptr< ScRangeName > pOld, std::unique_ptr< ScRangeName > pNew, SCTAB nTab)
 
virtual ~ScUndoRangeNames () 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 DoChange (bool bUndo)
 

Private Attributes

std::unique_ptr< ScRangeNamepOldRanges
 
std::unique_ptr< ScRangeNamepNewRanges
 
SCTAB mnTab
 

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 320 of file undocell.hxx.

Constructor & Destructor Documentation

ScUndoRangeNames::ScUndoRangeNames ( ScDocShell pNewDocShell,
std::unique_ptr< ScRangeName pOld,
std::unique_ptr< ScRangeName pNew,
SCTAB  nTab 
)

Definition at line 976 of file undocell.cxx.

ScUndoRangeNames::~ScUndoRangeNames ( )
overridevirtual

Definition at line 985 of file undocell.cxx.

References pNewRanges, and pOldRanges.

Member Function Documentation

bool ScUndoRangeNames::CanRepeat ( SfxRepeatTarget rTarget) const
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 1042 of file undocell.cxx.

void ScUndoRangeNames::DoChange ( bool  bUndo)
private
OUString ScUndoRangeNames::GetComment ( ) const
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 991 of file undocell.cxx.

References ScResId().

void ScUndoRangeNames::Redo ( )
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 1030 of file undocell.cxx.

References ScSimpleUndo::BeginRedo(), DoChange(), and ScSimpleUndo::EndRedo().

void ScUndoRangeNames::Repeat ( SfxRepeatTarget rTarget)
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 1037 of file undocell.cxx.

void ScUndoRangeNames::Undo ( )
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 1023 of file undocell.cxx.

References ScSimpleUndo::BeginUndo(), DoChange(), and ScSimpleUndo::EndUndo().

Member Data Documentation

SCTAB ScUndoRangeNames::mnTab
private

Definition at line 338 of file undocell.hxx.

Referenced by DoChange().

std::unique_ptr<ScRangeName> ScUndoRangeNames::pNewRanges
private

Definition at line 337 of file undocell.hxx.

Referenced by ~ScUndoRangeNames().

std::unique_ptr<ScRangeName> ScUndoRangeNames::pOldRanges
private

Definition at line 336 of file undocell.hxx.

Referenced by ~ScUndoRangeNames().


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