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

Constructor & Destructor Documentation

◆ ScUndoSelectionAttr()

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::~ScUndoSelectionAttr ( )
overridevirtual

Member Function Documentation

◆ CanRepeat()

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

Reimplemented from SfxUndoAction.

Definition at line 479 of file undoblk3.cxx.

References rTarget.

◆ ChangeEditData()

void ScUndoSelectionAttr::ChangeEditData ( const bool  bUndo)
private

◆ DoChange()

void ScUndoSelectionAttr::DoChange ( const bool  bUndo)
private

◆ GetComment()

OUString ScUndoSelectionAttr::GetComment ( ) const
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 376 of file undoblk3.cxx.

References pLineOuter, and ScResId().

◆ GetDataArray()

ScEditDataArray * ScUndoSelectionAttr::GetDataArray ( )

Definition at line 382 of file undoblk3.cxx.

References mpDataArray.

Referenced by ScViewFunc::ApplySelectionPattern().

◆ Redo()

void ScUndoSelectionAttr::Redo ( )
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 460 of file undoblk3.cxx.

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

◆ Repeat()

void ScUndoSelectionAttr::Repeat ( SfxRepeatTarget &  rTarget)
overridevirtual

◆ Undo()

void ScUndoSelectionAttr::Undo ( )
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 453 of file undoblk3.cxx.

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

Member Data Documentation

◆ aMarkData

ScMarkData ScUndoSelectionAttr::aMarkData
private

Definition at line 342 of file undoblk.hxx.

Referenced by DoChange().

◆ aRange

ScRange ScUndoSelectionAttr::aRange
private

Definition at line 343 of file undoblk.hxx.

Referenced by DoChange(), and ScUndoSelectionAttr().

◆ aRangeCover

ScRange ScUndoSelectionAttr::aRangeCover
private

Definition at line 344 of file undoblk.hxx.

Referenced by DoChange(), and ScUndoSelectionAttr().

◆ bMulti

bool ScUndoSelectionAttr::bMulti
private

Definition at line 347 of file undoblk.hxx.

Referenced by DoChange().

◆ mpDataArray

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

Definition at line 345 of file undoblk.hxx.

Referenced by ChangeEditData(), and GetDataArray().

◆ pApplyPattern

ScPatternAttr* ScUndoSelectionAttr::pApplyPattern
private

Definition at line 348 of file undoblk.hxx.

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

◆ pLineInner

SvxBoxInfoItem* ScUndoSelectionAttr::pLineInner
private

Definition at line 350 of file undoblk.hxx.

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

◆ pLineOuter

SvxBoxItem* ScUndoSelectionAttr::pLineOuter
private

Definition at line 349 of file undoblk.hxx.

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

◆ pUndoDoc

ScDocumentUniquePtr ScUndoSelectionAttr::pUndoDoc
private

Definition at line 346 of file undoblk.hxx.

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


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