21#include <document.hxx>
40 std::unique_ptr<ScOutlineTable> pNewUndoTab,
41 ScSizeMode eNewMode, sal_uInt16 nNewSizeTwips,
bool bNewWidth ) :
46 nStartTab( nNewStartTab ),
47 nEndTab( nNewEndTab ),
48 pUndoDoc(
std::move(pNewUndoDoc) ),
49 pUndoTab(
std::move(pNewUndoTab) ),
50 maRanges(
std::move(rRanges) ),
51 nNewSize( nNewSizeTwips ),
70 ScResId( STR_UNDO_OPTCOLWIDTH ) :
74 ScResId( STR_UNDO_OPTROWHEIGHT ) :
101 if (rTab >= nTabCount)
132 true , bAffectsVisibility , bAffectsVisibility ,
133 false , nCurrentTab);
136 if ( nCurrentTab < nStartTab || nCurrentTab >
nEndTab )
149 bool bPaintAll =
false;
160 if ( nTab < nStartTab || nTab >
nEndTab )
const ScDocument & GetDocument() const
void PostPaint(SCCOL nStartCol, SCROW nStartRow, SCTAB nStartTab, SCCOL nEndCol, SCROW nEndRow, SCTAB nEndTab, PaintPartFlags nPart, sal_uInt16 nExtFlags=0)
void UpdatePageBreaks(SCTAB nTab, const ScRange *pUserArea=nullptr)
bool SetOutlineTable(SCTAB nTab, const ScOutlineTable *pNewOutline)
SC_DLLPUBLIC SCCOL MaxCol() const
SC_DLLPUBLIC SCROW MaxRow() const
SC_DLLPUBLIC SCTAB GetTableCount() const
todo: It should be possible to have MarkArrays for each table, in order to enable "search all" across...
bool SetViewMarkData(const ScMarkData &rMarkData)
static void notifyAllViewsSheetGeomInvalidation(const SfxViewShell *pForViewShell, bool bColumns, bool bRows, bool bSizes, bool bHidden, bool bFiltered, bool bGroups, SCTAB nCurrentTabIndex)
Emits a LOK_CALLBACK_INVALIDATE_SHEET_GEOMETRY for all views whose current tab is equal to nCurrentTa...
static ScTabViewShell * GetActiveViewShell()
ScViewData & GetViewData()
void UpdateScrollBars(HeaderType eHeaderType=BOTH_HEADERS)
SC_DLLPUBLIC void SetTabNo(SCTAB nTab, bool bNew=false, bool bExtendSelection=false, bool bSameTabButMoved=false)
virtual ~ScUndoWidthOrHeight() override
virtual void Undo() override
virtual void Repeat(SfxRepeatTarget &rTarget) override
std::vector< sc::ColRowSpan > maRanges
std::unique_ptr< ScOutlineTable > pUndoTab
std::unique_ptr< SdrUndoAction > pDrawUndo
ScDocumentUniquePtr pUndoDoc
virtual void Redo() override
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.
virtual OUString GetComment() const override
virtual bool CanRepeat(SfxRepeatTarget &rTarget) const override
void SetWidthOrHeight(bool bWidth, const std::vector< sc::ColRowSpan > &rRanges, ScSizeMode eMode, sal_uInt16 nSizeTwips, bool bRecord=true, const ScMarkData *pMarkData=nullptr)
void OnLOKSetWidthOrHeight(SCCOLROW nStart, bool bWidth)
std::unique_ptr< ScDocument, o3tl::default_delete< ScDocument > > ScDocumentUniquePtr
OUString ScResId(TranslateId aId)
sal_Int32 SCCOLROW
a type capable of holding either SCCOL or SCROW
std::unique_ptr< SdrUndoAction > GetSdrUndoAction(ScDocument *pDoc)
void DoSdrUndoAction(SdrUndoAction *pUndoAction, ScDocument *pDoc)