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, const OUString &rN, const OUString &rC, 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...
 
- 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 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 223 of file undotab.hxx.

Constructor & Destructor Documentation

ScUndoMakeScenario::ScUndoMakeScenario ( ScDocShell pNewDocShell,
SCTAB  nSrc,
SCTAB  nDest,
const OUString &  rN,
const OUString &  rC,
const Color rCol,
ScScenarioFlags  nF,
const ScMarkData rMark 
)
ScUndoMakeScenario::~ScUndoMakeScenario ( )
overridevirtual

Definition at line 787 of file undotab.cxx.

References pDrawUndo.

Member Function Documentation

bool ScUndoMakeScenario::CanRepeat ( SfxRepeatTarget rTarget) const
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 851 of file undotab.cxx.

OUString ScUndoMakeScenario::GetComment ( ) const
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 792 of file undotab.cxx.

References ScResId().

void ScUndoMakeScenario::Redo ( )
overridevirtual
void ScUndoMakeScenario::Repeat ( SfxRepeatTarget rTarget)
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 843 of file undotab.cxx.

References aColor, aComment, aName, and nFlags.

void ScUndoMakeScenario::Undo ( )
overridevirtual

Member Data Documentation

Color ScUndoMakeScenario::aColor
private

Definition at line 247 of file undotab.hxx.

Referenced by Redo(), and Repeat().

OUString ScUndoMakeScenario::aComment
private

Definition at line 246 of file undotab.hxx.

Referenced by Redo(), and Repeat().

OUString ScUndoMakeScenario::aName
private

Definition at line 245 of file undotab.hxx.

Referenced by Redo(), and Repeat().

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

Definition at line 242 of file undotab.hxx.

Referenced by Redo().

SCTAB ScUndoMakeScenario::nDestTab
private

Definition at line 244 of file undotab.hxx.

Referenced by Redo(), and Undo().

ScScenarioFlags ScUndoMakeScenario::nFlags
private

Definition at line 248 of file undotab.hxx.

Referenced by Redo(), and Repeat().

SCTAB ScUndoMakeScenario::nSrcTab
private

Definition at line 243 of file undotab.hxx.

Referenced by Redo(), and Undo().

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

Definition at line 249 of file undotab.hxx.

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


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