summaryrefslogtreecommitdiff
path: root/sdext/source/presenter/PresenterPaneBase.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-09-22 15:08:42 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2016-09-22 18:56:58 +0000
commitc4cd079b8f613084a99a83b95c3968b65cbd8900 (patch)
tree16051edcfd1f7109aefa08af6d71da0687b20f8a /sdext/source/presenter/PresenterPaneBase.cxx
parentba3d6d8a39d31316923d2326059c07b0a7e3c05e (diff)
loplugin:unusedmethods in sc..vcl
Change-Id: I70fcf95dfd3db05b4fd6e5cee37866f673d3afa8 Reviewed-on: https://gerrit.libreoffice.org/29183 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sdext/source/presenter/PresenterPaneBase.cxx')
-rw-r--r--sdext/source/presenter/PresenterPaneBase.cxx29
1 files changed, 0 insertions, 29 deletions
diff --git a/sdext/source/presenter/PresenterPaneBase.cxx b/sdext/source/presenter/PresenterPaneBase.cxx
index 6b4e5f92a6fa..c8497ff76d55 100644
--- a/sdext/source/presenter/PresenterPaneBase.cxx
+++ b/sdext/source/presenter/PresenterPaneBase.cxx
@@ -127,35 +127,6 @@ const Reference<drawing::framework::XPaneBorderPainter>&
return mxBorderPainter;
}
-void PresenterPaneBase::SetCalloutAnchor (const css::awt::Point& rCalloutAnchor)
-{
- mbHasCallout = true;
- // Anchor is given in the coordinate system of the parent window.
- // Transform it into the local coordinate system.
- maCalloutAnchor = rCalloutAnchor;
- const awt::Rectangle aBorderBox (mxBorderWindow->getPosSize());
- maCalloutAnchor.X -= aBorderBox.X;
- maCalloutAnchor.Y -= aBorderBox.Y;
-
- // Move the bottom of the border window so that it goes through the
- // callout anchor (special case for bottom callout).
- sal_Int32 nHeight (rCalloutAnchor.Y - aBorderBox.Y);
- if (mxBorderPainter.is() && mxPaneId.is())
- nHeight += mxBorderPainter->getCalloutOffset(mxPaneId->getResourceURL()).Y;
-
- if (nHeight != aBorderBox.Height)
- {
- mxBorderWindow->setPosSize(
- aBorderBox.X,
- aBorderBox.Y,
- aBorderBox.Width,
- nHeight,
- awt::PosSize::HEIGHT);
- }
-
- mpPresenterController->GetPaintManager()->Invalidate(mxBorderWindow);
-}
-
const awt::Point& PresenterPaneBase::GetCalloutAnchor() const
{
return maCalloutAnchor;