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

Undo action for inserting a Sparkline. More...

#include <UndoInsertSparkline.hxx>

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

Public Member Functions

 UndoInsertSparkline (ScDocShell &rDocShell, std::vector< SparklineData > pSparklineDataVector, std::shared_ptr< sc::SparklineGroup > pSparklineGroup)
 
virtual ~UndoInsertSparkline () 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::vector< sc::SparklineDatamaSparklineDataVector
 
std::shared_ptr< sc::SparklineGroupmpSparklineGroup
 

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 inserting a Sparkline.

Definition at line 23 of file UndoInsertSparkline.hxx.

Constructor & Destructor Documentation

◆ UndoInsertSparkline()

sc::UndoInsertSparkline::UndoInsertSparkline ( ScDocShell rDocShell,
std::vector< SparklineData pSparklineDataVector,
std::shared_ptr< sc::SparklineGroup pSparklineGroup 
)

Definition at line 22 of file UndoInsertSparkline.cxx.

◆ ~UndoInsertSparkline()

sc::UndoInsertSparkline::~UndoInsertSparkline ( )
overridevirtual

Definition at line 31 of file UndoInsertSparkline.cxx.

Member Function Documentation

◆ CanRepeat()

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

Reimplemented from SfxUndoAction.

Definition at line 70 of file UndoInsertSparkline.cxx.

◆ GetComment()

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

Reimplemented from SfxUndoAction.

Definition at line 72 of file UndoInsertSparkline.cxx.

References ScResId().

◆ Redo()

void sc::UndoInsertSparkline::Redo ( )
overridevirtual

◆ Repeat()

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

Reimplemented from SfxUndoAction.

Definition at line 68 of file UndoInsertSparkline.cxx.

◆ Undo()

void sc::UndoInsertSparkline::Undo ( )
overridevirtual

Member Data Documentation

◆ maSparklineDataVector

std::vector<sc::SparklineData> sc::UndoInsertSparkline::maSparklineDataVector
private

Definition at line 26 of file UndoInsertSparkline.hxx.

Referenced by Redo(), and Undo().

◆ mpSparklineGroup

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

Definition at line 27 of file UndoInsertSparkline.hxx.

Referenced by Redo().


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