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 | |
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')
-rw-r--r-- | sc/inc/userdat.hxx | 1 | ||||
-rw-r--r-- | sc/source/core/data/userdat.cxx | 5 | ||||
-rw-r--r-- | sc/source/ui/inc/undobase.hxx | 1 | ||||
-rw-r--r-- | sc/source/ui/undo/undobase.cxx | 42 |
4 files changed, 0 insertions, 49 deletions
diff --git a/sc/inc/userdat.hxx b/sc/inc/userdat.hxx index 4ee5b27ebc7e..edd73b39c574 100644 --- a/sc/inc/userdat.hxx +++ b/sc/inc/userdat.hxx @@ -54,7 +54,6 @@ class ScIMapInfo : public SdrObjUserData ImageMap aImageMap; public: - ScIMapInfo(); ScIMapInfo( const ImageMap& rImageMap ); ScIMapInfo( const ScIMapInfo& rIMapInfo ); virtual ~ScIMapInfo() override; diff --git a/sc/source/core/data/userdat.cxx b/sc/source/core/data/userdat.cxx index 9e00a4fdc179..99d343e8523e 100644 --- a/sc/source/core/data/userdat.cxx +++ b/sc/source/core/data/userdat.cxx @@ -35,11 +35,6 @@ ScDrawObjData* ScDrawObjData::Clone( SdrObject* ) const return new ScDrawObjData( *this ); } -ScIMapInfo::ScIMapInfo() : - SdrObjUserData( SdrInventor::ScOrSwDraw, SC_UD_IMAPDATA ) -{ -} - ScIMapInfo::ScIMapInfo( const ImageMap& rImageMap ) : SdrObjUserData( SdrInventor::ScOrSwDraw, SC_UD_IMAPDATA ), aImageMap( rImageMap ) diff --git a/sc/source/ui/inc/undobase.hxx b/sc/source/ui/inc/undobase.hxx index df35d85191db..6d0e8d167103 100644 --- a/sc/source/ui/inc/undobase.hxx +++ b/sc/source/ui/inc/undobase.hxx @@ -115,7 +115,6 @@ protected: void EndUndo(); void EndRedo(); - void AdjustHeight(); void ShowBlock(); }; 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() ) |