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

#include <undotab.hxx>

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

Public Member Functions

 ScUndoMakeScenario (ScDocShell *pNewDocShell, SCTAB nSrc, SCTAB nDest, OUString aN, OUString aC, const Color &rCol, ScScenarioFlags nF, const ScMarkData &rMark)
 
virtual ~ScUndoMakeScenario () 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 Attributes

std::unique_ptr< ScMarkDatampMarkData
 
SCTAB nSrcTab
 
SCTAB nDestTab
 
OUString aName
 
OUString aComment
 
Color aColor
 
ScScenarioFlags nFlags
 
std::unique_ptr< SdrUndoActionpDrawUndo
 

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 222 of file undotab.hxx.

Constructor & Destructor Documentation

◆ ScUndoMakeScenario()

ScUndoMakeScenario::ScUndoMakeScenario ( ScDocShell pNewDocShell,
SCTAB  nSrc,
SCTAB  nDest,
OUString  aN,
OUString  aC,
const Color rCol,
ScScenarioFlags  nF,
const ScMarkData rMark 
)

◆ ~ScUndoMakeScenario()

ScUndoMakeScenario::~ScUndoMakeScenario ( )
overridevirtual

Definition at line 795 of file undotab.cxx.

References pDrawUndo.

Member Function Documentation

◆ CanRepeat()

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

Reimplemented from SfxUndoAction.

Definition at line 859 of file undotab.cxx.

References rTarget.

◆ GetComment()

OUString ScUndoMakeScenario::GetComment ( ) const
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 800 of file undotab.cxx.

References ScResId().

◆ Redo()

void ScUndoMakeScenario::Redo ( )
overridevirtual

◆ Repeat()

void ScUndoMakeScenario::Repeat ( SfxRepeatTarget &  rTarget)
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 851 of file undotab.cxx.

References aColor, aComment, aName, nFlags, and rTarget.

◆ Undo()

void ScUndoMakeScenario::Undo ( )
overridevirtual

Member Data Documentation

◆ aColor

Color ScUndoMakeScenario::aColor
private

Definition at line 246 of file undotab.hxx.

Referenced by Redo(), and Repeat().

◆ aComment

OUString ScUndoMakeScenario::aComment
private

Definition at line 245 of file undotab.hxx.

Referenced by Redo(), and Repeat().

◆ aName

OUString ScUndoMakeScenario::aName
private

Definition at line 244 of file undotab.hxx.

Referenced by Redo(), and Repeat().

◆ mpMarkData

std::unique_ptr<ScMarkData> ScUndoMakeScenario::mpMarkData
private

Definition at line 241 of file undotab.hxx.

Referenced by Redo().

◆ nDestTab

SCTAB ScUndoMakeScenario::nDestTab
private

Definition at line 243 of file undotab.hxx.

Referenced by Redo(), and Undo().

◆ nFlags

ScScenarioFlags ScUndoMakeScenario::nFlags
private

Definition at line 247 of file undotab.hxx.

Referenced by Redo(), and Repeat().

◆ nSrcTab

SCTAB ScUndoMakeScenario::nSrcTab
private

Definition at line 242 of file undotab.hxx.

Referenced by Redo(), and Undo().

◆ pDrawUndo

std::unique_ptr<SdrUndoAction> ScUndoMakeScenario::pDrawUndo
private

Definition at line 248 of file undotab.hxx.

Referenced by Redo(), ScUndoMakeScenario(), Undo(), and ~ScUndoMakeScenario().


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