summaryrefslogtreecommitdiff
path: root/svx/source/svdraw
diff options
context:
space:
mode:
authorMichael Weghorn <m.weghorn@posteo.de>2024-07-10 15:05:22 +0200
committerMichael Weghorn <m.weghorn@posteo.de>2024-07-11 06:44:48 +0200
commit2fdee9fd60bc4bb61f773fa1f766e84f4ee0dae3 (patch)
tree4a541f076f822fc11d26001a16174976b2853da3 /svx/source/svdraw
parentf111fbf5d508c8215615f037d7e1c1f563812a13 (diff)
Unify/Port to use VCLUnoHelper for AWT <-> VCL conversions
Following Change-Id: Id48f81deb05aee2026509037f7d14575735e5be0 Author: Michael Weghorn <m.weghorn@posteo.de> Date: Wed Jul 10 14:49:03 2024 +0200 VCLUnoHelper: Align AWT <-> VCL helpers with convert.hxx impl , port all uses of the helper functions defined in `include/toolkit/helper/convert.hxx` to use the `VCLUnoHelper` equivalents instead, to unify usage and avoid duplication. Drop `include/toolkit/helper/convert.hxx` now that it's unused. Change-Id: I22695a93e40e47bb2b14d191a2e0a4eb7c856895 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170317 Tested-by: Jenkins Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Diffstat (limited to 'svx/source/svdraw')
-rw-r--r--svx/source/svdraw/svdoole2.cxx7
1 files changed, 3 insertions, 4 deletions
diff --git a/svx/source/svdraw/svdoole2.cxx b/svx/source/svdraw/svdoole2.cxx
index e53e62142ef9..cb5800567929 100644
--- a/svx/source/svdraw/svdoole2.cxx
+++ b/svx/source/svdraw/svdoole2.cxx
@@ -41,7 +41,6 @@
#include <cppuhelper/exc_hlp.hxx>
#include <toolkit/helper/vclunohelper.hxx>
-#include <toolkit/helper/convert.hxx>
#include <svtools/colorcfg.hxx>
#include <svtools/embedhlp.hxx>
@@ -454,7 +453,7 @@ awt::Rectangle SAL_CALL SdrLightEmbeddedClient_Impl::getPlacement()
aContainerMapUnit = VCLUnoHelper::UnoEmbed2VCLMapUnit( xParentVis->getMapUnit( mpObj->GetAspect() ) );
aLogicRect = Application::GetDefaultDevice()->LogicToPixel(aLogicRect, MapMode(aContainerMapUnit));
- return AWTRectangle( aLogicRect );
+ return VCLUnoHelper::ConvertToAWTRect(aLogicRect);
}
awt::Rectangle SAL_CALL SdrLightEmbeddedClient_Impl::getClipRectangle()
@@ -480,8 +479,8 @@ void SAL_CALL SdrLightEmbeddedClient_Impl::changedPlacement( const awt::Rectangl
// check if the change is at least one pixel in size
awt::Rectangle aOldRect = getPlacement();
- tools::Rectangle aNewPixelRect = VCLRectangle( aPosRect );
- tools::Rectangle aOldPixelRect = VCLRectangle( aOldRect );
+ tools::Rectangle aNewPixelRect = VCLUnoHelper::ConvertToVCLRect(aPosRect);
+ tools::Rectangle aOldPixelRect = VCLUnoHelper::ConvertToVCLRect(aOldRect);
if ( aOldPixelRect == aNewPixelRect )
// nothing has changed
return;