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, const OUString &rName, 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...
 
- 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 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
ScDocShellpDocShell
 
std::unique_ptr< SfxUndoActionpDetectiveUndo
 
ViewShellId mnViewShellId
 

Detailed Description

Definition at line 683 of file undoblk.hxx.

Constructor & Destructor Documentation

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

Definition at line 1778 of file undoblk.cxx.

References aMarkData, and ScMarkData::MarkToMulti().

ScUndoSelectionStyle::~ScUndoSelectionStyle ( )
overridevirtual

Definition at line 1792 of file undoblk.cxx.

Member Function Documentation

bool ScUndoSelectionStyle::CanRepeat ( SfxRepeatTarget rTarget) const
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 1877 of file undoblk.cxx.

void ScUndoSelectionStyle::DoChange ( const bool  bUndo)
private
OUString ScUndoSelectionStyle::GetComment ( ) const
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 1796 of file undoblk.cxx.

References ScResId().

void ScUndoSelectionStyle::Redo ( )
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 1851 of file undoblk.cxx.

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

void ScUndoSelectionStyle::Repeat ( SfxRepeatTarget rTarget)
overridevirtual
void ScUndoSelectionStyle::Undo ( )
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 1844 of file undoblk.cxx.

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

Member Data Documentation

ScMarkData ScUndoSelectionStyle::aMarkData
private

Definition at line 701 of file undoblk.hxx.

Referenced by DoChange(), and ScUndoSelectionStyle().

ScRange ScUndoSelectionStyle::aRange
private

Definition at line 705 of file undoblk.hxx.

Referenced by DoChange().

OUString ScUndoSelectionStyle::aStyleName
private

Definition at line 704 of file undoblk.hxx.

Referenced by DoChange(), and Repeat().

ScDocumentUniquePtr ScUndoSelectionStyle::pUndoDoc
private

Definition at line 703 of file undoblk.hxx.

Referenced by DoChange().


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