diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-01-15 21:26:54 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2020-01-16 10:27:30 +0100 |
commit | 3fcee07aa7edb927eec77ea865ad1c33f6bdabfa (patch) | |
tree | f2706d4fe8d5871cfe6f0ecea7db758e12159f11 /basic/source | |
parent | 477bfa9c974ec2cb4101881d0085edae39acd40b (diff) |
drop Application::GetAppWindow
Change-Id: I8f1640b0ed816101305a893646de8ed9750d1247
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/86889
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'basic/source')
-rw-r--r-- | basic/source/runtime/stdobj1.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/basic/source/runtime/stdobj1.cxx b/basic/source/runtime/stdobj1.cxx index 1943bdb6fcf9..79105d3e4ed3 100644 --- a/basic/source/runtime/stdobj1.cxx +++ b/basic/source/runtime/stdobj1.cxx @@ -19,7 +19,7 @@ #include <basic/sberrors.hxx> #include <basic/sbstar.hxx> -#include <vcl/wrkwin.hxx> +#include <vcl/outdev.hxx> #include <vcl/svapp.hxx> #include <sbstdobj.hxx> @@ -85,8 +85,8 @@ void SbStdPicture::PropWidth( SbxVariable* pVar, bool bWrite ) } Size aSize = aGraphic.GetPrefSize(); - aSize = Application::GetAppWindow()->LogicToPixel( aSize, aGraphic.GetPrefMapMode() ); - aSize = Application::GetAppWindow()->PixelToLogic( aSize, MapMode( MapUnit::MapTwip ) ); + aSize = Application::GetDefaultDevice()->LogicToPixel( aSize, aGraphic.GetPrefMapMode() ); + aSize = Application::GetDefaultDevice()->PixelToLogic( aSize, MapMode( MapUnit::MapTwip ) ); pVar->PutInteger( static_cast<sal_Int16>(aSize.Width()) ); } @@ -100,8 +100,8 @@ void SbStdPicture::PropHeight( SbxVariable* pVar, bool bWrite ) } Size aSize = aGraphic.GetPrefSize(); - aSize = Application::GetAppWindow()->LogicToPixel( aSize, aGraphic.GetPrefMapMode() ); - aSize = Application::GetAppWindow()->PixelToLogic( aSize, MapMode( MapUnit::MapTwip ) ); + aSize = Application::GetDefaultDevice()->LogicToPixel( aSize, aGraphic.GetPrefMapMode() ); + aSize = Application::GetDefaultDevice()->PixelToLogic( aSize, MapMode( MapUnit::MapTwip ) ); pVar->PutInteger( static_cast<sal_Int16>(aSize.Height()) ); } |