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, const 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...
 
- 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 Attributes

ScMarkData aMarkData
 
SCCOLROW nStart
 
SCCOLROW nEnd
 
SCTAB nStartTab
 
SCTAB nEndTab
 
ScDocumentUniquePtr pUndoDoc
 
std::unique_ptr< ScOutlineTablepUndoTab
 
std::vector< sc::ColRowSpanmaRanges
 
sal_uInt16 nNewSize
 
bool bWidth
 
ScSizeMode eMode
 
std::unique_ptr< SdrUndoActionpDrawUndo
 

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

Constructor & Destructor Documentation

ScUndoWidthOrHeight::ScUndoWidthOrHeight ( ScDocShell pNewDocShell,
const ScMarkData rMark,
SCCOLROW  nNewStart,
SCTAB  nNewStartTab,
SCCOLROW  nNewEnd,
SCTAB  nNewEndTab,
ScDocumentUniquePtr  pNewUndoDoc,
const 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 ( )
overridevirtual

Definition at line 58 of file undoblk2.cxx.

References pDrawUndo, pUndoDoc, and pUndoTab.

Member Function Documentation

bool ScUndoWidthOrHeight::CanRepeat ( SfxRepeatTarget rTarget) const
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 181 of file undoblk2.cxx.

OUString ScUndoWidthOrHeight::GetComment ( ) const
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 65 of file undoblk2.cxx.

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

void ScUndoWidthOrHeight::Redo ( )
overridevirtual
void ScUndoWidthOrHeight::Repeat ( SfxRepeatTarget rTarget)
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 175 of file undoblk2.cxx.

References bWidth, eMode, and nNewSize.

void ScUndoWidthOrHeight::Undo ( )
overridevirtual

Member Data Documentation

ScMarkData ScUndoWidthOrHeight::aMarkData
private

Definition at line 379 of file undoblk.hxx.

Referenced by Redo(), and Undo().

bool ScUndoWidthOrHeight::bWidth
private

Definition at line 388 of file undoblk.hxx.

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

ScSizeMode ScUndoWidthOrHeight::eMode
private

Definition at line 389 of file undoblk.hxx.

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

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

Definition at line 386 of file undoblk.hxx.

Referenced by Redo().

SCCOLROW ScUndoWidthOrHeight::nEnd
private

Definition at line 381 of file undoblk.hxx.

Referenced by Undo().

SCTAB ScUndoWidthOrHeight::nEndTab
private

Definition at line 383 of file undoblk.hxx.

Referenced by Redo(), and Undo().

sal_uInt16 ScUndoWidthOrHeight::nNewSize
private

Definition at line 387 of file undoblk.hxx.

Referenced by Redo(), and Repeat().

SCCOLROW ScUndoWidthOrHeight::nStart
private

Definition at line 380 of file undoblk.hxx.

Referenced by Undo().

SCTAB ScUndoWidthOrHeight::nStartTab
private

Definition at line 382 of file undoblk.hxx.

Referenced by Redo(), and Undo().

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

Definition at line 390 of file undoblk.hxx.

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

ScDocumentUniquePtr ScUndoWidthOrHeight::pUndoDoc
private

Definition at line 384 of file undoblk.hxx.

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

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

Definition at line 385 of file undoblk.hxx.

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


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