summaryrefslogtreecommitdiff
path: root/svx/source/sdr/misc
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-03-10 20:48:37 +0000
committerCaolán McNamara <caolanm@redhat.com>2021-03-11 18:34:17 +0100
commit071df4770dfe421d96d3df748af751eaae6982c3 (patch)
tree309ac0bbd4b2609ff7a8e2cc538f4c008588fa99 /svx/source/sdr/misc
parent1653bb9bffaa84a40b7d81a8277e887ea28df4e4 (diff)
use some forward declares to reduce includes
Change-Id: Ic3a6d9a9569f909a7480d9da09709dbd60259e97 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112323 Tested-by: Caolán McNamara <caolanm@redhat.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'svx/source/sdr/misc')
-rw-r--r--svx/source/sdr/misc/ImageMapInfo.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/svx/source/sdr/misc/ImageMapInfo.cxx b/svx/source/sdr/misc/ImageMapInfo.cxx
index 8612357fdc99..c50fb2fcc30d 100644
--- a/svx/source/sdr/misc/ImageMapInfo.cxx
+++ b/svx/source/sdr/misc/ImageMapInfo.cxx
@@ -24,7 +24,7 @@
#include <svx/svdoole2.hxx>
#include <vcl/imapobj.hxx>
#include <vcl/svapp.hxx>
-#include <vcl/window.hxx>
+#include <vcl/outdev.hxx>
SvxIMapInfo* SvxIMapInfo::GetIMapInfo(SdrObject const* pObject)
{
@@ -47,7 +47,7 @@ SvxIMapInfo* SvxIMapInfo::GetIMapInfo(SdrObject const* pObject)
}
IMapObject* SvxIMapInfo::GetHitIMapObject(const SdrObject* pObj, const Point& rWinPoint,
- const vcl::Window* rCmpWnd)
+ const OutputDevice* pCmpWnd)
{
SvxIMapInfo* pIMapInfo = GetIMapInfo(pObj);
IMapObject* pIMapObj = nullptr;
@@ -60,11 +60,11 @@ IMapObject* SvxIMapInfo::GetHitIMapObject(const SdrObject* pObj, const Point& rW
ImageMap& rImageMap = const_cast<ImageMap&>(pIMapInfo->GetImageMap());
tools::Rectangle& rRect = const_cast<tools::Rectangle&>(pObj->GetLogicRect());
- if (rCmpWnd)
+ if (pCmpWnd)
{
- MapMode aWndMode = rCmpWnd->GetMapMode();
- aRelPoint = rCmpWnd->LogicToLogic(rWinPoint, &aWndMode, &aMap100);
- rRect = rCmpWnd->LogicToLogic(pObj->GetLogicRect(), &aWndMode, &aMap100);
+ MapMode aWndMode = pCmpWnd->GetMapMode();
+ aRelPoint = pCmpWnd->LogicToLogic(rWinPoint, &aWndMode, &aMap100);
+ rRect = pCmpWnd->LogicToLogic(pObj->GetLogicRect(), &aWndMode, &aMap100);
}
bool bObjSupported = false;