From df2dbdc283a5af85e7250e4ba94ba8dfef96932b Mon Sep 17 00:00:00 2001 From: Chris Sherlock Date: Mon, 10 Nov 2014 23:12:52 +1100 Subject: vcl: move OutputDevice::ImplGetFrameDev() to Window ImplGetFrameDev() is for some unknown reason in OutputDevice, but it's most definitely something that's specific to Window. I've moved this, and also renamed it getFrameDev() as it's a private function. Change-Id: Iffb2c439bee8c29ee585a0d50cfd6fbcfc28c3bc Reviewed-on: https://gerrit.libreoffice.org/12338 Reviewed-by: Chris Sherlock Tested-by: Chris Sherlock --- vcl/source/window/window.cxx | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'vcl/source/window/window.cxx') diff --git a/vcl/source/window/window.cxx b/vcl/source/window/window.cxx index 369124162a41..737eeb9ee504 100644 --- a/vcl/source/window/window.cxx +++ b/vcl/source/window/window.cxx @@ -1196,6 +1196,14 @@ void Window::ImplInitWindowData( WindowType nType ) mbEnableRTL = Application::GetSettings().GetLayoutRTL(); // true: this outdev will be mirrored if RTL window layout (UI mirroring) is globally active } +void Window::getFrameDev( const Point& rPt, const Point& rDevPt, const Size& rDevSize, OutputDevice& rDev ) +{ + bool bOldMap = mbMap; + mbMap = false; + rDev.DrawOutDev( rDevPt, rDevSize, rPt, rDevSize, *this ); + mbMap = bOldMap; +} + ImplWinData* Window::ImplGetWinData() const { if ( !mpWindowImpl->mpWinData ) -- cgit