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

#include <undotab.hxx>

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

Public Member Functions

 ScUndoTabColor (ScDocShell *pNewDocShell, SCTAB nT, const Color &aOTabBgColor, const Color &aNTabBgColor)
 
 ScUndoTabColor (ScDocShell *pNewDocShell, ScUndoTabColorInfo::List &&rUndoTabColorList)
 
virtual ~ScUndoTabColor () 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 bUndoType) const
 

Private Attributes

ScUndoTabColorInfo::List aTabColorList
 

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

Constructor & Destructor Documentation

◆ ScUndoTabColor() [1/2]

ScUndoTabColor::ScUndoTabColor ( ScDocShell pNewDocShell,
SCTAB  nT,
const Color aOTabBgColor,
const Color aNTabBgColor 
)

◆ ScUndoTabColor() [2/2]

ScUndoTabColor::ScUndoTabColor ( ScDocShell pNewDocShell,
ScUndoTabColorInfo::List &&  rUndoTabColorList 
)

Definition at line 722 of file undotab.cxx.

◆ ~ScUndoTabColor()

ScUndoTabColor::~ScUndoTabColor ( )
overridevirtual

Definition at line 730 of file undotab.cxx.

Member Function Documentation

◆ CanRepeat()

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

Reimplemented from SfxUndoAction.

Definition at line 773 of file undotab.cxx.

◆ DoChange()

void ScUndoTabColor::DoChange ( bool  bUndoType) const
private

◆ GetComment()

OUString ScUndoTabColor::GetComment ( ) const
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 734 of file undotab.cxx.

References aTabColorList, and ScResId().

◆ Redo()

void ScUndoTabColor::Redo ( )
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 763 of file undotab.cxx.

References DoChange().

◆ Repeat()

void ScUndoTabColor::Repeat ( SfxRepeatTarget &  rTarget)
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 768 of file undotab.cxx.

◆ Undo()

void ScUndoTabColor::Undo ( )
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 758 of file undotab.cxx.

References DoChange().

Member Data Documentation

◆ aTabColorList

ScUndoTabColorInfo::List ScUndoTabColor::aTabColorList
private

Definition at line 217 of file undotab.hxx.

Referenced by DoChange(), GetComment(), and ScUndoTabColor().


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