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

Undo action for deleting a Sparkline. More...

#include <UndoDeleteSparkline.hxx>

Inheritance diagram for sc::UndoDeleteSparkline:
[legend]
Collaboration diagram for sc::UndoDeleteSparkline:
[legend]

Public Member Functions

 UndoDeleteSparkline (ScDocShell &rDocShell, ScAddress const &rSparklinePosition)
 
virtual ~UndoDeleteSparkline () override
 
void Undo () override
 
void Redo () override
 
bool CanRepeat (SfxRepeatTarget &rTarget) const override
 
void Repeat (SfxRepeatTarget &rTarget) override
 
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 Attributes

std::shared_ptr< sc::SparklineGroupmpSparklineGroup
 
ScAddress maSparklinePosition
 

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

Undo action for deleting a Sparkline.

Definition at line 23 of file UndoDeleteSparkline.hxx.

Constructor & Destructor Documentation

◆ UndoDeleteSparkline()

sc::UndoDeleteSparkline::UndoDeleteSparkline ( ScDocShell rDocShell,
ScAddress const &  rSparklinePosition 
)

Definition at line 20 of file UndoDeleteSparkline.cxx.

◆ ~UndoDeleteSparkline()

sc::UndoDeleteSparkline::~UndoDeleteSparkline ( )
overridevirtual

Definition at line 26 of file UndoDeleteSparkline.cxx.

Member Function Documentation

◆ CanRepeat()

bool sc::UndoDeleteSparkline::CanRepeat ( SfxRepeatTarget &  rTarget) const
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 70 of file UndoDeleteSparkline.cxx.

◆ GetComment()

OUString sc::UndoDeleteSparkline::GetComment ( ) const
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 72 of file UndoDeleteSparkline.cxx.

References ScResId().

◆ Redo()

void sc::UndoDeleteSparkline::Redo ( )
overridevirtual

◆ Repeat()

void sc::UndoDeleteSparkline::Repeat ( SfxRepeatTarget &  rTarget)
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 68 of file UndoDeleteSparkline.cxx.

◆ Undo()

void sc::UndoDeleteSparkline::Undo ( )
overridevirtual

Member Data Documentation

◆ maSparklinePosition

ScAddress sc::UndoDeleteSparkline::maSparklinePosition
private

Definition at line 27 of file UndoDeleteSparkline.hxx.

Referenced by Redo(), and Undo().

◆ mpSparklineGroup

std::shared_ptr<sc::SparklineGroup> sc::UndoDeleteSparkline::mpSparklineGroup
private

Definition at line 26 of file UndoDeleteSparkline.hxx.

Referenced by Redo(), and Undo().


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