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

#include <undoblk.hxx>

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

Public Member Functions

 ScUndoWidthOrHeight (ScDocShell *pNewDocShell, const ScMarkData &rMark, SCCOLROW nNewStart, SCTAB nNewStartTab, SCCOLROW nNewEnd, SCTAB nNewEndTab, ScDocumentUniquePtr pNewUndoDoc, std::vector< sc::ColRowSpan > &&rRanges, std::unique_ptr< ScOutlineTable > pNewUndoTab, ScSizeMode eNewMode, sal_uInt16 nNewSizeTwips, bool bNewWidth)
 Change column widths or row heights. More...
 
virtual ~ScUndoWidthOrHeight () 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 Attributes

ScMarkData aMarkData
 
SCCOLROW nStart
 
SCCOLROW nEnd
 
SCTAB nStartTab
 
SCTAB nEndTab
 
ScDocumentUniquePtr pUndoDoc
 
std::unique_ptr< ScOutlineTable > pUndoTab
 
std::vector< sc::ColRowSpan > maRanges
 
sal_uInt16 nNewSize
 
bool bWidth
 
ScSizeMode eMode
 
std::unique_ptr< SdrUndoAction > pDrawUndo
 

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

Constructor & Destructor Documentation

◆ ScUndoWidthOrHeight()

ScUndoWidthOrHeight::ScUndoWidthOrHeight ( ScDocShell *  pNewDocShell,
const ScMarkData &  rMark,
SCCOLROW  nNewStart,
SCTAB  nNewStartTab,
SCCOLROW  nNewEnd,
SCTAB  nNewEndTab,
ScDocumentUniquePtr  pNewUndoDoc,
std::vector< sc::ColRowSpan > &&  rRanges,
std::unique_ptr< ScOutlineTable >  pNewUndoTab,
ScSizeMode  eNewMode,
sal_uInt16  nNewSizeTwips,
bool  bNewWidth 
)

Change column widths or row heights.

Definition at line 36 of file undoblk2.cxx.

References eMode, ScDocShell::GetDocument(), GetSdrUndoAction(), ScSimpleUndo::pDocShell, and pDrawUndo.

◆ ~ScUndoWidthOrHeight()

ScUndoWidthOrHeight::~ScUndoWidthOrHeight ( )
overridevirtual

Definition at line 58 of file undoblk2.cxx.

References pDrawUndo, pUndoDoc, and pUndoTab.

Member Function Documentation

◆ CanRepeat()

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

Reimplemented from SfxUndoAction.

Definition at line 181 of file undoblk2.cxx.

References rTarget.

◆ GetComment()

OUString ScUndoWidthOrHeight::GetComment ( ) const
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 65 of file undoblk2.cxx.

References bWidth, eMode, SC_SIZE_OPTIMAL, and ScResId().

◆ Redo()

void ScUndoWidthOrHeight::Redo ( )
overridevirtual

◆ Repeat()

void ScUndoWidthOrHeight::Repeat ( SfxRepeatTarget &  rTarget)
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 175 of file undoblk2.cxx.

References bWidth, eMode, nNewSize, and rTarget.

◆ Undo()

void ScUndoWidthOrHeight::Undo ( )
overridevirtual

Member Data Documentation

◆ aMarkData

ScMarkData ScUndoWidthOrHeight::aMarkData
private

Definition at line 378 of file undoblk.hxx.

Referenced by Redo(), and Undo().

◆ bWidth

bool ScUndoWidthOrHeight::bWidth
private

Definition at line 387 of file undoblk.hxx.

Referenced by GetComment(), Redo(), Repeat(), and Undo().

◆ eMode

ScSizeMode ScUndoWidthOrHeight::eMode
private

Definition at line 388 of file undoblk.hxx.

Referenced by GetComment(), Redo(), Repeat(), and Undo().

◆ maRanges

std::vector<sc::ColRowSpan> ScUndoWidthOrHeight::maRanges
private

Definition at line 385 of file undoblk.hxx.

Referenced by Redo().

◆ nEnd

SCCOLROW ScUndoWidthOrHeight::nEnd
private

Definition at line 380 of file undoblk.hxx.

Referenced by Undo().

◆ nEndTab

SCTAB ScUndoWidthOrHeight::nEndTab
private

Definition at line 382 of file undoblk.hxx.

Referenced by Redo(), and Undo().

◆ nNewSize

sal_uInt16 ScUndoWidthOrHeight::nNewSize
private

Definition at line 386 of file undoblk.hxx.

Referenced by Redo(), and Repeat().

◆ nStart

SCCOLROW ScUndoWidthOrHeight::nStart
private

Definition at line 379 of file undoblk.hxx.

Referenced by Undo().

◆ nStartTab

SCTAB ScUndoWidthOrHeight::nStartTab
private

Definition at line 381 of file undoblk.hxx.

Referenced by Redo(), and Undo().

◆ pDrawUndo

std::unique_ptr<SdrUndoAction> ScUndoWidthOrHeight::pDrawUndo
private

Definition at line 389 of file undoblk.hxx.

Referenced by ScUndoWidthOrHeight(), Undo(), and ~ScUndoWidthOrHeight().

◆ pUndoDoc

ScDocumentUniquePtr ScUndoWidthOrHeight::pUndoDoc
private

Definition at line 383 of file undoblk.hxx.

Referenced by Undo(), and ~ScUndoWidthOrHeight().

◆ pUndoTab

std::unique_ptr<ScOutlineTable> ScUndoWidthOrHeight::pUndoTab
private

Definition at line 384 of file undoblk.hxx.

Referenced by Undo(), and ~ScUndoWidthOrHeight().


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