LibreOffice Module sc (master) 1
|
#include <undoblk.hxx>
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 |
Definition at line 356 of file undoblk.hxx.
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.
|
overridevirtual |
Definition at line 58 of file undoblk2.cxx.
|
overridevirtual |
|
overridevirtual |
Reimplemented from SfxUndoAction.
Definition at line 65 of file undoblk2.cxx.
References bWidth, eMode, SC_SIZE_OPTIMAL, and ScResId().
|
overridevirtual |
Reimplemented from SfxUndoAction.
Definition at line 143 of file undoblk2.cxx.
References aMarkData, ScSimpleUndo::BeginRedo(), bWidth, eMode, ScSimpleUndo::EndRedo(), ScTabViewShell::GetActiveViewShell(), ScDocShell::GetDocument(), ScViewData::GetTabNo(), ScTabView::GetViewData(), Grid, maRanges, ScDocument::MaxCol(), ScDocument::MaxRow(), nEndTab, nNewSize, nStartTab, ScSimpleUndo::pDocShell, ScDocShell::PostPaint(), SC_SIZE_OPTIMAL, ScTabView::SetTabNo(), ScSimpleUndo::SetViewMarkData(), and ScViewFunc::SetWidthOrHeight().
|
overridevirtual |
Reimplemented from SfxUndoAction.
Definition at line 175 of file undoblk2.cxx.
|
overridevirtual |
outlines from all tables?
Reimplemented from SfxUndoAction.
Definition at line 79 of file undoblk2.cxx.
References aMarkData, ScSimpleUndo::BeginUndo(), bWidth, COLUMN_HEADER, DoSdrUndoAction(), eMode, ScSimpleUndo::EndUndo(), ScTabViewShell::GetActiveViewShell(), ScDocShell::GetDocument(), ScDocument::GetTableCount(), ScViewData::GetTabNo(), ScTabView::GetViewData(), Grid, Left, ScDocument::MaxCol(), ScDocument::MaxRow(), nEnd, nEndTab, NONE, ScTabViewShell::notifyAllViewsSheetGeomInvalidation(), nStart, nStartTab, ScViewFunc::OnLOKSetWidthOrHeight(), ScSimpleUndo::pDocShell, pDrawUndo, ScDocShell::PostPaint(), pUndoDoc, pUndoTab, ROW_HEADER, SC_SIZE_OPTIMAL, SC_SIZE_ORIGINAL, SC_SIZE_VISOPT, ScDocument::SetOutlineTable(), ScTabView::SetTabNo(), ScSimpleUndo::SetViewMarkData(), Top, ScDocument::UpdatePageBreaks(), and ScTabView::UpdateScrollBars().
|
private |
Definition at line 378 of file undoblk.hxx.
|
private |
Definition at line 387 of file undoblk.hxx.
Referenced by GetComment(), Redo(), Repeat(), and Undo().
|
private |
Definition at line 388 of file undoblk.hxx.
Referenced by GetComment(), Redo(), Repeat(), and Undo().
|
private |
Definition at line 385 of file undoblk.hxx.
Referenced by Redo().
|
private |
Definition at line 380 of file undoblk.hxx.
Referenced by Undo().
|
private |
Definition at line 382 of file undoblk.hxx.
|
private |
Definition at line 386 of file undoblk.hxx.
|
private |
Definition at line 379 of file undoblk.hxx.
Referenced by Undo().
|
private |
Definition at line 381 of file undoblk.hxx.
|
private |
Definition at line 389 of file undoblk.hxx.
Referenced by ScUndoWidthOrHeight(), Undo(), and ~ScUndoWidthOrHeight().
|
private |
Definition at line 383 of file undoblk.hxx.
Referenced by Undo(), and ~ScUndoWidthOrHeight().
|
private |
Definition at line 384 of file undoblk.hxx.
Referenced by Undo(), and ~ScUndoWidthOrHeight().