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

#include <undoblk.hxx>

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

Public Member Functions

 ScUndoSelectionStyle (ScDocShell *pNewDocShell, const ScMarkData &rMark, const ScRange &rRange, OUString aName, ScDocumentUniquePtr pNewUndoDoc)
 
virtual ~ScUndoSelectionStyle () 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< ScRange > getAffectedRange () 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 DateTime & GetDateTime () const
 
virtual void dumpAsXml (xmlTextWriterPtr pWriter) const
 

Private Member Functions

void DoChange (const bool bUndo)
 

Private Attributes

ScMarkData aMarkData
 
ScDocumentUniquePtr pUndoDoc
 
OUString aStyleName
 
ScRange aRange
 

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
ScDocShell * pDocShell
 
std::unique_ptr< SfxUndoAction > pDetectiveUndo
 
ViewShellId mnViewShellId
 

Detailed Description

Definition at line 682 of file undoblk.hxx.

Constructor & Destructor Documentation

◆ ScUndoSelectionStyle()

ScUndoSelectionStyle::ScUndoSelectionStyle ( ScDocShell *  pNewDocShell,
const ScMarkData &  rMark,
const ScRange &  rRange,
OUString  aName,
ScDocumentUniquePtr  pNewUndoDoc 
)

Definition at line 1792 of file undoblk.cxx.

References aMarkData, aName, and ScMarkData::MarkToMulti().

◆ ~ScUndoSelectionStyle()

ScUndoSelectionStyle::~ScUndoSelectionStyle ( )
overridevirtual

Definition at line 1806 of file undoblk.cxx.

Member Function Documentation

◆ CanRepeat()

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

Reimplemented from SfxUndoAction.

Definition at line 1891 of file undoblk.cxx.

References rTarget.

◆ DoChange()

void ScUndoSelectionStyle::DoChange ( const bool  bUndo)
private

◆ GetComment()

OUString ScUndoSelectionStyle::GetComment ( ) const
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 1810 of file undoblk.cxx.

References ScResId().

◆ Redo()

void ScUndoSelectionStyle::Redo ( )
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 1865 of file undoblk.cxx.

References ScSimpleUndo::BeginRedo(), DoChange(), and ScSimpleUndo::EndRedo().

◆ Repeat()

void ScUndoSelectionStyle::Repeat ( SfxRepeatTarget &  rTarget)
overridevirtual

◆ Undo()

void ScUndoSelectionStyle::Undo ( )
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 1858 of file undoblk.cxx.

References ScSimpleUndo::BeginUndo(), DoChange(), and ScSimpleUndo::EndUndo().

Member Data Documentation

◆ aMarkData

ScMarkData ScUndoSelectionStyle::aMarkData
private

Definition at line 700 of file undoblk.hxx.

Referenced by DoChange(), and ScUndoSelectionStyle().

◆ aRange

ScRange ScUndoSelectionStyle::aRange
private

Definition at line 704 of file undoblk.hxx.

Referenced by DoChange().

◆ aStyleName

OUString ScUndoSelectionStyle::aStyleName
private

Definition at line 703 of file undoblk.hxx.

Referenced by DoChange(), and Repeat().

◆ pUndoDoc

ScDocumentUniquePtr ScUndoSelectionStyle::pUndoDoc
private

Definition at line 702 of file undoblk.hxx.

Referenced by DoChange().


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