diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-26 11:14:10 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-26 12:25:56 +0200 |
commit | 98782932280d20ece450fa06a90c202fb8e2a26e (patch) | |
tree | f8092cc2c86641468a0edd77ca85bb4877b965f0 /sc/source/ui/undo | |
parent | convert SfxGroupId to scoped enum (diff) | |
download | core-98782932280d20ece450fa06a90c202fb8e2a26e.tar.gz core-98782932280d20ece450fa06a90c202fb8e2a26e.zip |
loplugin:unusedmethods
Change-Id: I7f26ee112ed89ee3e69c56930260565f66ff145b
Reviewed-on: https://gerrit.libreoffice.org/40442
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/source/ui/undo')
-rw-r--r-- | sc/source/ui/undo/undobase.cxx | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/sc/source/ui/undo/undobase.cxx b/sc/source/ui/undo/undobase.cxx index e5b598d6f5f4..89848f1a1a22 100644 --- a/sc/source/ui/undo/undobase.cxx +++ b/sc/source/ui/undo/undobase.cxx @@ -379,48 +379,6 @@ void ScMultiBlockUndo::EndRedo() ScSimpleUndo::EndRedo(); } -void ScMultiBlockUndo::AdjustHeight() -{ - ScDocument& rDoc = pDocShell->GetDocument(); - - ScopedVclPtrInstance< VirtualDevice > pVirtDev; - Fraction aZoomX( 1, 1 ); - Fraction aZoomY = aZoomX; - double nPPTX, nPPTY; - ScTabViewShell* pViewShell = ScTabViewShell::GetActiveViewShell(); - if (pViewShell) - { - ScViewData& rData = pViewShell->GetViewData(); - nPPTX = rData.GetPPTX(); - nPPTY = rData.GetPPTY(); - aZoomX = rData.GetZoomX(); - aZoomY = rData.GetZoomY(); - } - else - { - // Leave zoom at 100 - nPPTX = ScGlobal::nScreenPPTX; - nPPTY = ScGlobal::nScreenPPTY; - } - - sc::RowHeightContext aCxt(nPPTX, nPPTY, aZoomX, aZoomY, pVirtDev); - for (size_t i = 0, n = maBlockRanges.size(); i < n; ++i) - { - const ScRange& r = *maBlockRanges[i]; - bool bRet = rDoc.SetOptimalHeight(aCxt, r.aStart.Row(), r.aEnd.Row(), r.aStart.Tab()); - - if (bRet) - { - // tdf#76183: recalculate objects' positions - rDoc.SetDrawPageSize(r.aStart.Tab()); - - pDocShell->PostPaint( - 0, r.aStart.Row(), r.aStart.Tab(), MAXCOL, MAXROW, r.aEnd.Tab(), - PaintPartFlags::Grid | PaintPartFlags::Left); - } - } -} - void ScMultiBlockUndo::ShowBlock() { if ( IsPaintLocked() ) |