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

Constructor & Destructor Documentation

◆ ScUndoRangeNames()

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

Definition at line 982 of file undocell.cxx.

◆ ~ScUndoRangeNames()

ScUndoRangeNames::~ScUndoRangeNames ( )
overridevirtual

Definition at line 991 of file undocell.cxx.

References pNewRanges, and pOldRanges.

Member Function Documentation

◆ CanRepeat()

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

Reimplemented from SfxUndoAction.

Definition at line 1048 of file undocell.cxx.

◆ DoChange()

void ScUndoRangeNames::DoChange ( bool  bUndo)
private

◆ GetComment()

OUString ScUndoRangeNames::GetComment ( ) const
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 997 of file undocell.cxx.

References ScResId().

◆ Redo()

void ScUndoRangeNames::Redo ( )
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 1036 of file undocell.cxx.

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

◆ Repeat()

void ScUndoRangeNames::Repeat ( SfxRepeatTarget &  rTarget)
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 1043 of file undocell.cxx.

◆ Undo()

void ScUndoRangeNames::Undo ( )
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 1029 of file undocell.cxx.

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

Member Data Documentation

◆ mnTab

SCTAB ScUndoRangeNames::mnTab
private

Definition at line 347 of file undocell.hxx.

Referenced by DoChange().

◆ pNewRanges

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

Definition at line 346 of file undocell.hxx.

Referenced by DoChange(), and ~ScUndoRangeNames().

◆ pOldRanges

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

Definition at line 345 of file undocell.hxx.

Referenced by DoChange(), and ~ScUndoRangeNames().


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