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

#include <undoblk.hxx>

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

Public Member Functions

 ScUndoSelectionAttr (ScDocShell *pNewDocShell, const ScMarkData &rMark, SCCOL nStartX, SCROW nStartY, SCTAB nStartZ, SCCOL nEndX, SCROW nEndY, SCTAB nEndZ, ScDocumentUniquePtr pNewUndoDoc, bool bNewMulti, const ScPatternAttr *pNewApply, const SvxBoxItem *pNewOuter=nullptr, const SvxBoxInfoItem *pNewInner=nullptr, const ScRange *pRangeCover=nullptr)
 
virtual ~ScUndoSelectionAttr () 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
 
ScEditDataArrayGetDataArray ()
 
- 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)
 
void ChangeEditData (const bool bUndo)
 

Private Attributes

ScMarkData aMarkData
 
ScRange aRange
 
ScRange aRangeCover
 
std::unique_ptr< ScEditDataArraympDataArray
 
ScDocumentUniquePtr pUndoDoc
 
bool bMulti
 
ScPatternAttrpApplyPattern
 
SvxBoxItempLineOuter
 
SvxBoxInfoItempLineInner
 

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 320 of file undoblk.hxx.

Constructor & Destructor Documentation

ScUndoSelectionAttr::ScUndoSelectionAttr ( ScDocShell pNewDocShell,
const ScMarkData rMark,
SCCOL  nStartX,
SCROW  nStartY,
SCTAB  nStartZ,
SCCOL  nEndX,
SCROW  nEndY,
SCTAB  nEndZ,
ScDocumentUniquePtr  pNewUndoDoc,
bool  bNewMulti,
const ScPatternAttr pNewApply,
const SvxBoxItem pNewOuter = nullptr,
const SvxBoxInfoItem pNewInner = nullptr,
const ScRange pRangeCover = nullptr 
)
ScUndoSelectionAttr::~ScUndoSelectionAttr ( )
overridevirtual

Member Function Documentation

bool ScUndoSelectionAttr::CanRepeat ( SfxRepeatTarget rTarget) const
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 475 of file undoblk3.cxx.

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

Reimplemented from SfxUndoAction.

Definition at line 372 of file undoblk3.cxx.

References pLineOuter, and ScResId().

ScEditDataArray * ScUndoSelectionAttr::GetDataArray ( )

Definition at line 378 of file undoblk3.cxx.

References mpDataArray.

Referenced by ScViewFunc::ApplySelectionPattern().

void ScUndoSelectionAttr::Redo ( )
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 456 of file undoblk3.cxx.

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

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

Reimplemented from SfxUndoAction.

Definition at line 449 of file undoblk3.cxx.

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

Member Data Documentation

ScMarkData ScUndoSelectionAttr::aMarkData
private

Definition at line 343 of file undoblk.hxx.

Referenced by DoChange().

ScRange ScUndoSelectionAttr::aRange
private

Definition at line 344 of file undoblk.hxx.

Referenced by DoChange(), and ScUndoSelectionAttr().

ScRange ScUndoSelectionAttr::aRangeCover
private

Definition at line 345 of file undoblk.hxx.

Referenced by DoChange(), and ScUndoSelectionAttr().

bool ScUndoSelectionAttr::bMulti
private

Definition at line 348 of file undoblk.hxx.

Referenced by DoChange().

std::unique_ptr<ScEditDataArray> ScUndoSelectionAttr::mpDataArray
private

Definition at line 346 of file undoblk.hxx.

Referenced by ChangeEditData(), and GetDataArray().

ScPatternAttr* ScUndoSelectionAttr::pApplyPattern
private

Definition at line 349 of file undoblk.hxx.

Referenced by DoChange(), Repeat(), ScUndoSelectionAttr(), and ~ScUndoSelectionAttr().

SvxBoxInfoItem* ScUndoSelectionAttr::pLineInner
private

Definition at line 351 of file undoblk.hxx.

Referenced by DoChange(), Repeat(), ScUndoSelectionAttr(), and ~ScUndoSelectionAttr().

SvxBoxItem* ScUndoSelectionAttr::pLineOuter
private

Definition at line 350 of file undoblk.hxx.

Referenced by DoChange(), GetComment(), Repeat(), ScUndoSelectionAttr(), and ~ScUndoSelectionAttr().

ScDocumentUniquePtr ScUndoSelectionAttr::pUndoDoc
private

Definition at line 347 of file undoblk.hxx.

Referenced by DoChange(), and ~ScUndoSelectionAttr().


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