diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-12-07 16:57:05 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2020-12-08 13:44:06 +0100 |
commit | 4f86d4bdaa86dbbc752fdfc53cb78eef9565a6b2 (patch) | |
tree | 9e40c9b3e54c37cebe63fb5b1fec374041008745 /sc | |
parent | 29f2e1543089c3caadeb5e0f6f69624566810044 (diff) |
drop unneeded include
Change-Id: I43e64a01873ddc738d050591719261146befd873
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/107406
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/filter/excel/xiescher.cxx | 4 | ||||
-rw-r--r-- | sc/source/ui/drawfunc/fuins2.cxx | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/sc/source/filter/excel/xiescher.cxx b/sc/source/filter/excel/xiescher.cxx index ecb113dadcfd..a4ceae554be5 100644 --- a/sc/source/filter/excel/xiescher.cxx +++ b/sc/source/filter/excel/xiescher.cxx @@ -46,7 +46,7 @@ #include <unotools/fltrcfg.hxx> #include <vcl/dibtools.hxx> #include <vcl/gdimtf.hxx> -#include <vcl/window.hxx> +#include <vcl/outdev.hxx> #include <vcl/wmf.hxx> #include <comphelper/classids.hxx> #include <comphelper/documentinfo.hxx> @@ -1752,7 +1752,7 @@ SdrObjectUniquePtr XclImpChartObj::DoCreateSdrObj( XclImpDffConverter& rDffConv, inserted into the draw page. */ sal_Int64 nAspect = css::embed::Aspects::MSOLE_CONTENT; MapUnit aUnit = VCLUnoHelper::UnoEmbed2VCLMapUnit( xEmbObj->getMapUnit( nAspect ) ); - Size aSize( vcl::Window::LogicToLogic( rAnchorRect.GetSize(), MapMode( MapUnit::Map100thMM ), MapMode( aUnit ) ) ); + Size aSize( OutputDevice::LogicToLogic( rAnchorRect.GetSize(), MapMode( MapUnit::Map100thMM ), MapMode( aUnit ) ) ); css::awt::Size aAwtSize( aSize.Width(), aSize.Height() ); xEmbObj->setVisualAreaSize( nAspect, aAwtSize ); diff --git a/sc/source/ui/drawfunc/fuins2.cxx b/sc/source/ui/drawfunc/fuins2.cxx index ebbbbca891c3..9aee4d0ecec6 100644 --- a/sc/source/ui/drawfunc/fuins2.cxx +++ b/sc/source/ui/drawfunc/fuins2.cxx @@ -324,11 +324,11 @@ FuInsertOLE::FuInsertOLE(ScTabViewShell& rViewSh, vcl::Window* pWin, ScDrawView* xObj->setVisualAreaSize( nAspect, aSz ); // re-convert aSize to 1/100th mm to avoid rounding errors in comparison below - aSize = vcl::Window::LogicToLogic( aTmp, + aSize = OutputDevice::LogicToLogic( aTmp, MapMode( aMapUnit ), aMap100 ); } else - aSize = vcl::Window::LogicToLogic( aSize, + aSize = OutputDevice::LogicToLogic( aSize, MapMode( aMapUnit ), aMap100 ); } @@ -506,7 +506,7 @@ FuInsertChart::FuInsertChart(ScTabViewShell& rViewSh, vcl::Window* pWin, ScDrawV } if (bSizeCh) { - aSize = vcl::Window::LogicToLogic( aSize, MapMode( MapUnit::Map100thMM ), MapMode( aMapUnit ) ); + aSize = OutputDevice::LogicToLogic( aSize, MapMode( MapUnit::Map100thMM ), MapMode( aMapUnit ) ); aSz.Width = aSize.Width(); aSz.Height = aSize.Height(); xObj->setVisualAreaSize( nAspect, aSz ); |