diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-06-11 10:11:40 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-06-11 14:38:37 +0200 |
commit | d4d037619638e1915d15dba81c38a1c9b3157972 (patch) | |
tree | 93260b9952c2be6dbb56c7c67eccfb4960608627 /svx | |
parent | 807d4382cb021d2ac3ea99d6757a7b368a32941d (diff) |
loplugin:unusedmethods
Change-Id: I26a0da1ec9cda9030371977596053a45303756a0
Reviewed-on: https://gerrit.libreoffice.org/55609
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/dialog/dialcontrol.cxx | 21 | ||||
-rw-r--r-- | svx/source/svdraw/svdpdf.cxx | 72 | ||||
-rw-r--r-- | svx/source/svdraw/svdpdf.hxx | 1 |
3 files changed, 0 insertions, 94 deletions
diff --git a/svx/source/dialog/dialcontrol.cxx b/svx/source/dialog/dialcontrol.cxx index bdde7054c593..ce55a72d73a0 100644 --- a/svx/source/dialog/dialcontrol.cxx +++ b/svx/source/dialog/dialcontrol.cxx @@ -621,22 +621,6 @@ void SvxDialControl::LoseFocus() HandleEscapeEvent(); } -bool SvxDialControl::HasRotation() const -{ - return !mpImpl->mbNoRot; -} - -void SvxDialControl::SetNoRotation() -{ - if( !mpImpl->mbNoRot ) - { - mpImpl->mbNoRot = true; - InvalidateControl(); - if( mpImpl->mpLinkField ) - mpImpl->mpLinkField->set_text(""); - } -} - sal_Int32 SvxDialControl::GetRotation() const { return mpImpl->mnAngle; @@ -689,11 +673,6 @@ bool SvxDialControl::IsValueModified() return mpImpl->mnInitialAngle != mpImpl->mnAngle; } -void SvxDialControl::SetModifyHdl( const Link<SvxDialControl*,void>& rLink ) -{ - mpImpl->maModifyHdl = rLink; -} - void SvxDialControl::Init( const Size& rWinSize, const vcl::Font& rWinFont ) { mpImpl->Init( rWinSize, rWinFont ); diff --git a/svx/source/svdraw/svdpdf.cxx b/svx/source/svdraw/svdpdf.cxx index 0b6d70ff26a8..800095294a4b 100644 --- a/svx/source/svdraw/svdpdf.cxx +++ b/svx/source/svdraw/svdpdf.cxx @@ -707,78 +707,6 @@ void ImpSdrPdfImport::InsertObj(SdrObject* pObj, bool bScale) } } -bool ImpSdrPdfImport::CheckLastLineMerge(const basegfx::B2DPolygon& rSrcPoly) -{ - // #i102706# Do not merge closed polygons - if (rSrcPoly.isClosed()) - { - return false; - } - - // #i73407# reformulation to use new B2DPolygon classes - if (mbLastObjWasLine && (maOldLineColor == mpVD->GetLineColor()) && rSrcPoly.count()) - { - SdrObject* pTmpObj = maTmpList.size() ? maTmpList[maTmpList.size() - 1] : nullptr; - SdrPathObj* pLastPoly = dynamic_cast<SdrPathObj*>(pTmpObj); - - if (pLastPoly) - { - if (1 == pLastPoly->GetPathPoly().count()) - { - bool bOk(false); - basegfx::B2DPolygon aDstPoly(pLastPoly->GetPathPoly().getB2DPolygon(0)); - - // #i102706# Do not merge closed polygons - if (aDstPoly.isClosed()) - { - return false; - } - - if (aDstPoly.count()) - { - const sal_uInt32 nMaxDstPnt(aDstPoly.count() - 1); - const sal_uInt32 nMaxSrcPnt(rSrcPoly.count() - 1); - - if (aDstPoly.getB2DPoint(nMaxDstPnt) == rSrcPoly.getB2DPoint(0)) - { - aDstPoly.append(rSrcPoly, 1, rSrcPoly.count() - 1); - bOk = true; - } - else if (aDstPoly.getB2DPoint(0) == rSrcPoly.getB2DPoint(nMaxSrcPnt)) - { - basegfx::B2DPolygon aNew(rSrcPoly); - aNew.append(aDstPoly, 1, aDstPoly.count() - 1); - aDstPoly = aNew; - bOk = true; - } - else if (aDstPoly.getB2DPoint(0) == rSrcPoly.getB2DPoint(0)) - { - aDstPoly.flip(); - aDstPoly.append(rSrcPoly, 1, rSrcPoly.count() - 1); - bOk = true; - } - else if (aDstPoly.getB2DPoint(nMaxDstPnt) == rSrcPoly.getB2DPoint(nMaxSrcPnt)) - { - basegfx::B2DPolygon aNew(rSrcPoly); - aNew.flip(); - aDstPoly.append(aNew, 1, aNew.count() - 1); - bOk = true; - } - } - - if (bOk) - { - pLastPoly->NbcSetPathPoly(basegfx::B2DPolyPolygon(aDstPoly)); - } - - return bOk; - } - } - } - - return false; -} - bool ImpSdrPdfImport::CheckLastPolyLineAndFillMerge(const basegfx::B2DPolyPolygon& rPolyPolygon) { // #i73407# reformulation to use new B2DPolygon classes diff --git a/svx/source/svdraw/svdpdf.hxx b/svx/source/svdraw/svdpdf.hxx index 4110a92e260a..9b9e81e69dad 100644 --- a/svx/source/svdraw/svdpdf.hxx +++ b/svx/source/svdraw/svdpdf.hxx @@ -222,7 +222,6 @@ class ImpSdrPdfImport final void MapScaling(); // #i73407# reformulation to use new B2DPolygon classes - bool CheckLastLineMerge(const basegfx::B2DPolygon& rSrcPoly); bool CheckLastPolyLineAndFillMerge(const basegfx::B2DPolyPolygon& rPolyPolygon); void DoObjects(SvdProgressInfo* pProgrInfo, sal_uInt32* pActionsToReport, int nPageIndex); |