diff options
author | Caolán McNamara <caolanm@redhat.com> | 2016-05-19 14:46:50 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2016-05-19 15:53:14 +0100 |
commit | b030ba2e13a02c231783966b23ded76247bb9690 (patch) | |
tree | 82cfbea3c5ba32cbfb456f3564ef2dfc1e10d62d | |
parent | ab25d7cfec956b6c31551ee5c00bd6bcae4b0bb5 (diff) |
Resolve: "TODO(Q1): Make GetSystemData method virtual"
and remove the casting silliness, allowing the removal of
cairo_cairo.?xx
If anything is to go wrong I'd guess it'll be the windows directx stuff.
Change-Id: I3e22c07b9c26ade9b27a245fdd8408de540643f4
26 files changed, 37 insertions, 169 deletions
diff --git a/avmedia/source/gstreamer/gstplayer.cxx b/avmedia/source/gstreamer/gstplayer.cxx index a9de0a6f7560..24722f03dfe2 100644 --- a/avmedia/source/gstreamer/gstplayer.cxx +++ b/avmedia/source/gstreamer/gstplayer.cxx @@ -923,7 +923,7 @@ uno::Reference< ::media::XPlayerWindow > SAL_CALL Player::createPlayerWindow( co sal_IntPtr pIntPtr = 0; rArguments[ 2 ] >>= pIntPtr; SystemChildWindow *pParentWindow = reinterpret_cast< SystemChildWindow* >( pIntPtr ); - const SystemEnvData* pEnvData = pParentWindow ? pParentWindow->GetSystemChildSystemData() : nullptr; + const SystemEnvData* pEnvData = pParentWindow ? pParentWindow->GetSystemData() : nullptr; OSL_ASSERT(pEnvData); if (pEnvData) { diff --git a/avmedia/source/vlc/vlcplayer.cxx b/avmedia/source/vlc/vlcplayer.cxx index 5a8762aa17ac..6e1b3b101d73 100644 --- a/avmedia/source/vlc/vlcplayer.cxx +++ b/avmedia/source/vlc/vlcplayer.cxx @@ -184,7 +184,7 @@ namespace SystemChildWindow *pParentWindow = reinterpret_cast< SystemChildWindow* >( pIntPtr ); - const SystemEnvData* pEnvData = pParentWindow ? pParentWindow->GetSystemChildSystemData() : nullptr; + const SystemEnvData* pEnvData = pParentWindow ? pParentWindow->GetSystemData() : nullptr; if (pEnvData == nullptr) return -1; diff --git a/canvas/source/directx/dx_9rm.cxx b/canvas/source/directx/dx_9rm.cxx index e69171418869..6beb18312a8c 100644 --- a/canvas/source/directx/dx_9rm.cxx +++ b/canvas/source/directx/dx_9rm.cxx @@ -608,7 +608,7 @@ namespace dxcanvas mpWindow->SetControlForeground(); mpWindow->SetControlBackground(); - const SystemEnvData *pData = mpWindow->GetSystemChildSystemData(); + const SystemEnvData *pData = mpWindow->GetSystemData(); const HWND hwnd(reinterpret_cast<HWND>(pData->hWnd)); mhWnd = const_cast<HWND>(hwnd); diff --git a/canvas/source/directx/dx_spritedevicehelper.cxx b/canvas/source/directx/dx_spritedevicehelper.cxx index 99966893e0a6..8f1f0a9da483 100644 --- a/canvas/source/directx/dx_spritedevicehelper.cxx +++ b/canvas/source/directx/dx_spritedevicehelper.cxx @@ -64,7 +64,7 @@ namespace dxcanvas VCLUnoHelper::GetInterface(&rWindow), uno::UNO_QUERY_THROW) ); - const SystemEnvData *pData = rWindow.GetWindowSystemData(); + const SystemEnvData *pData = rWindow.GetSystemData(); const HWND hWnd = reinterpret_cast<HWND>(pData->hWnd); if( !IsWindow( hWnd ) ) throw lang::NoSupportException( "Passed window has invalid system window, or canvas out-of-process!" ); diff --git a/canvas/source/opengl/ogl_spritedevicehelper.cxx b/canvas/source/opengl/ogl_spritedevicehelper.cxx index 6beb07d0355d..50a44999b28c 100644 --- a/canvas/source/opengl/ogl_spritedevicehelper.cxx +++ b/canvas/source/opengl/ogl_spritedevicehelper.cxx @@ -322,7 +322,7 @@ namespace oglcanvas /* * TODO: moggi: fix it! // switch buffer, sync etc. - const unx::Window aXWindow=pChildWindow->GetSystemChildSystemData()->aWindow; + const unx::Window aXWindow=pChildWindow->GetSystemData()->aWindow; unx::glXSwapBuffers(reinterpret_cast<unx::Display*>(mpDisplay), aXWindow); pChildWindow->Show(); diff --git a/dbaccess/source/ui/dlg/ConnectionHelper.cxx b/dbaccess/source/ui/dlg/ConnectionHelper.cxx index be3df530092a..49be4caf4bd5 100644 --- a/dbaccess/source/ui/dlg/ConnectionHelper.cxx +++ b/dbaccess/source/ui/dlg/ConnectionHelper.cxx @@ -271,7 +271,7 @@ namespace dbaui { OUString sOldDataSource=getURLNoPrefix(); OUString sNewDataSource; - HWND hWnd = GetParent()->GetWindowSystemData()->hWnd; + HWND hWnd = GetParent()->GetSystemData()->hWnd; sNewDataSource = getAdoDatalink((LONG_PTR)hWnd,sOldDataSource); if ( !sNewDataSource.isEmpty() ) { diff --git a/include/vcl/syschild.hxx b/include/vcl/syschild.hxx index 9ef3f2611cab..9566cba9de10 100644 --- a/include/vcl/syschild.hxx +++ b/include/vcl/syschild.hxx @@ -44,7 +44,7 @@ public: virtual ~SystemChildWindow(); virtual void dispose() override; - const SystemEnvData* GetSystemChildSystemData() const; + virtual const SystemEnvData* GetSystemData() const override; // per default systemchildwindows erase their background for better plugin support // however, this might not always be required diff --git a/include/vcl/window.hxx b/include/vcl/window.hxx index 5557eff48de2..4b6a415f24e7 100644 --- a/include/vcl/window.hxx +++ b/include/vcl/window.hxx @@ -1215,8 +1215,8 @@ public: void SaveBackground( const Point& rPos, const Size& rSize, const Point& rDestOff, VirtualDevice& rSaveDevice ); - const SystemEnvData* GetWindowSystemData() const; - css::uno::Any GetWindowSystemDataAny() const; + virtual const SystemEnvData* GetSystemData() const; + css::uno::Any GetSystemDataAny() const; // API to set/query the component interfaces virtual css::uno::Reference< css::awt::XWindowPeer > diff --git a/toolkit/source/awt/vclxsystemdependentwindow.cxx b/toolkit/source/awt/vclxsystemdependentwindow.cxx index 40001ef230e6..18e4a0224122 100644 --- a/toolkit/source/awt/vclxsystemdependentwindow.cxx +++ b/toolkit/source/awt/vclxsystemdependentwindow.cxx @@ -72,7 +72,7 @@ css::uno::Any VCLXSystemDependentWindow::getWindowHandle( const css::uno::Sequen vcl::Window* pWindow = GetWindow(); if ( pWindow ) { - const SystemEnvData* pSysData = static_cast<SystemChildWindow *>(pWindow)->GetSystemChildSystemData(); + const SystemEnvData* pSysData = static_cast<SystemChildWindow *>(pWindow)->GetSystemData(); if( pSysData ) { #if defined(_WIN32) diff --git a/toolkit/source/awt/vclxtopwindow.cxx b/toolkit/source/awt/vclxtopwindow.cxx index bb7453c975dc..a04f968ff219 100644 --- a/toolkit/source/awt/vclxtopwindow.cxx +++ b/toolkit/source/awt/vclxtopwindow.cxx @@ -83,7 +83,7 @@ css::uno::Any VCLXTopWindow_Base::getWindowHandle( const css::uno::Sequence< sal vcl::Window* pWindow = GetWindowImpl(); if ( pWindow ) { - const SystemEnvData* pSysData = static_cast<SystemWindow *>(pWindow)->GetWindowSystemData(); + const SystemEnvData* pSysData = static_cast<SystemWindow *>(pWindow)->GetSystemData(); if( pSysData ) { #if defined (_WIN32) diff --git a/vcl/Library_vcl.mk b/vcl/Library_vcl.mk index 6929256d9b1a..83383ff5898d 100644 --- a/vcl/Library_vcl.mk +++ b/vcl/Library_vcl.mk @@ -127,7 +127,6 @@ $(eval $(call gb_Library_use_externals,vcl,\ endif $(eval $(call gb_Library_add_exception_objects,vcl,\ - vcl/source/window/cairo_cairo \ vcl/source/window/settings \ vcl/source/window/paint \ vcl/source/window/resource \ diff --git a/vcl/inc/cairo_cairo.hxx b/vcl/inc/cairo_cairo.hxx deleted file mode 100644 index e6068e8fa5c3..000000000000 --- a/vcl/inc/cairo_cairo.hxx +++ /dev/null @@ -1,37 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . - */ - -#ifndef INCLUDED_VCL_INC_CAIRO_CAIRO_HXX -#define INCLUDED_VCL_INC_CAIRO_CAIRO_HXX - -#include <sal/config.h> - -#include <vcl/cairo.hxx> -#include <vcl/dllapi.h> - -struct SystemEnvData; -namespace vcl { class Window; } - -namespace cairo { - VCL_PLUGIN_PUBLIC const SystemEnvData* GetSysData(const vcl::Window *pOutputWindow); -} - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/vcl/source/opengl/OpenGLContext.cxx b/vcl/source/opengl/OpenGLContext.cxx index f36c61010f30..f254974727c9 100644 --- a/vcl/source/opengl/OpenGLContext.cxx +++ b/vcl/source/opengl/OpenGLContext.cxx @@ -1114,7 +1114,7 @@ bool OpenGLContext::initWindow() if (m_pChildWindow) { InitChildWindow(m_pChildWindow.get()); - const SystemEnvData* sysData(m_pChildWindow->GetSystemChildSystemData()); + const SystemEnvData* sysData(m_pChildWindow->GetSystemData()); m_aGLWin.hWnd = sysData->hWnd; } @@ -1159,7 +1159,7 @@ bool OpenGLContext::initWindow() { m_pChildWindow = VclPtr<SystemChildWindow>::Create(mpWindow, 0, &winData, false); } - pChildSysData = m_pChildWindow->GetSystemChildSystemData(); + pChildSysData = m_pChildWindow->GetSystemData(); } if (!m_pChildWindow || !pChildSysData) @@ -1309,7 +1309,7 @@ SystemWindowData OpenGLContext::generateWinData(vcl::Window* pParent, bool) aWinData.pVisual = nullptr; #if !defined(LIBO_HEADLESS) - const SystemEnvData* sysData(pParent->GetWindowSystemData()); + const SystemEnvData* sysData(pParent->GetSystemData()); Display *dpy = static_cast<Display*>(sysData->pDisplay); Window win = sysData->aWindow; @@ -1590,7 +1590,7 @@ bool OpenGLContext::supportMultiSampling() const #if defined(MACOSX) NSOpenGLView* OpenGLContext::getOpenGLView() { - return reinterpret_cast<NSOpenGLView*>(m_pChildWindow->GetSystemChildSystemData()->mpNSView); + return reinterpret_cast<NSOpenGLView*>(m_pChildWindow->GetSystemData()->mpNSView); } #endif diff --git a/vcl/source/window/cairo_cairo.cxx b/vcl/source/window/cairo_cairo.cxx deleted file mode 100644 index fd6181e3b589..000000000000 --- a/vcl/source/window/cairo_cairo.cxx +++ /dev/null @@ -1,51 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . - */ - -#include <vcl/sysdata.hxx> -#include <vcl/syschild.hxx> -#include "cairo_cairo.hxx" -#ifdef _WIN32 -#include <prewin.h> -#include <postwin.h> -#endif - -namespace cairo -{ - /*************************************************************************************** - * Platform independent part of surface backends for LibreOffice Cairo Canvas * - * For the rest of the functions (and the platform-specific derived * - * Surface classes), see platform specific cairo_<platform>_cairo.cxx * - ****************************************************************************************/ - - const SystemEnvData* GetSysData(const vcl::Window *pOutputWindow) - { - const SystemEnvData* pSysData = nullptr; - // check whether we're a SysChild: have to fetch system data - // directly from SystemChildWindow, because the GetSystemData - // method is unfortunately not virtual - const SystemChildWindow* pSysChild = dynamic_cast< const SystemChildWindow* >( pOutputWindow ); - if( pSysChild ) - pSysData = pSysChild->GetSystemChildSystemData(); - else - pSysData = pOutputWindow->GetWindowSystemData(); - return pSysData; - } -} - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/vcl/source/window/mouse.cxx b/vcl/source/window/mouse.cxx index ee89b8c6fd73..19cdc7334cbc 100644 --- a/vcl/source/window/mouse.cxx +++ b/vcl/source/window/mouse.cxx @@ -725,7 +725,7 @@ Reference< css::datatransfer::dnd::XDragSource > Window::GetDragSource() try { Reference< XComponentContext > xContext( comphelper::getProcessComponentContext() ); - const SystemEnvData * pEnvData = GetWindowSystemData(); + const SystemEnvData * pEnvData = GetSystemData(); if( pEnvData ) { diff --git a/vcl/source/window/syschild.cxx b/vcl/source/window/syschild.cxx index 854f508ecaef..7f92c641127d 100644 --- a/vcl/source/window/syschild.cxx +++ b/vcl/source/window/syschild.cxx @@ -112,7 +112,7 @@ void SystemChildWindow::ImplInitSysChild( vcl::Window* pParent, WinBits nStyle, Window::ImplInit( pParent, nStyle, nullptr ); // we do not paint if it is the right SysChild - if ( GetSystemChildSystemData() ) + if ( GetSystemData() ) { mpWindowImpl->mpSysObj->SetCallback( this, ImplSysChildProc ); SetParentClipMode( ParentClipMode::Clip ); @@ -148,7 +148,7 @@ void SystemChildWindow::dispose() Window::dispose(); } -const SystemEnvData* SystemChildWindow::GetSystemChildSystemData() const +const SystemEnvData* SystemChildWindow::GetSystemData() const { if ( mpWindowImpl->mpSysObj ) return mpWindowImpl->mpSysObj->GetSystemData(); @@ -206,16 +206,16 @@ sal_IntPtr SystemChildWindow::GetParentWindowHandle() sal_IntPtr nRet = 0; #if defined(_WIN32) - nRet = reinterpret_cast< sal_IntPtr >( GetSystemChildSystemData()->hWnd ); + nRet = reinterpret_cast< sal_IntPtr >( GetSystemData()->hWnd ); #elif defined MACOSX // FIXME: this is wrong - nRet = reinterpret_cast< sal_IntPtr >( GetSystemChildSystemData()->mpNSView ); + nRet = reinterpret_cast< sal_IntPtr >( GetSystemData()->mpNSView ); #elif defined ANDROID // Nothing #elif defined IOS // Nothing #elif defined UNX - nRet = (sal_IntPtr) GetSystemChildSystemData()->aWindow; + nRet = (sal_IntPtr) GetSystemData()->aWindow; #endif return nRet; diff --git a/vcl/source/window/window.cxx b/vcl/source/window/window.cxx index 4d7795b4fa42..547bc2cdea75 100644 --- a/vcl/source/window/window.cxx +++ b/vcl/source/window/window.cxx @@ -3593,53 +3593,13 @@ Reference< css::rendering::XCanvas > Window::ImplGetCanvas( bool bSpriteCanvas ) // common: first any is VCL pointer to window (for VCL canvas) aArg[ 0 ] = makeAny( reinterpret_cast<sal_Int64>(this) ); - - // TODO(Q1): Make GetSystemData method virtual - - // check whether we're a SysChild: have to fetch system data - // directly from SystemChildWindow, because the GetSystemData - // method is unfortunately not virtual - const SystemChildWindow* pSysChild = dynamic_cast< const SystemChildWindow* >( this ); - if( pSysChild ) - { - /* - Note the comment expresses the desire to call the GetSystemChildSystemData variant - which it did initially on - - commit 807c11075f63801f5b29a665c01b946bd7554785 - Author: Rüdiger Timm <rt@openoffice.org> - Date: Fri Nov 26 19:44:05 2004 +0000 - - INTEGRATION: CWS presentationengine01 (1.195.30); FILE MERGED - 2004/11/17 19:52:23 thb 1.195.30.9: RESYNC: (1.199-1.200); FILE MERGED - - but on - - commit d551190e8311242eadda4a3e82efff160175cb04 - Author: Kurt Zenker <kz@openoffice.org> - Date: Tue Jun 24 10:41:50 2008 +0000 - - INTEGRATION: CWS canvas05 (1.264.12); FILE MERGED - 2008/04/21 07:47:51 thb 1.264.12.5: RESYNC: (1.277-1.278); FILE MERGED - - GetSystemData was changed to GetSystemDataAny which does not - have a shadowed call in SystemChildWindow, so that turned this from - using the GetSystemChildSystemData variant to the GetWindowSystemData variant - */ - aArg[ 1 ] = pSysChild->GetWindowSystemDataAny(); - aArg[ 5 ] = pSysChild->GetSystemGfxDataAny(); - } - else - { - aArg[ 1 ] = GetWindowSystemDataAny(); - aArg[ 5 ] = GetSystemGfxDataAny(); - } - + aArg[ 1 ] = GetSystemDataAny(); aArg[ 2 ] = makeAny( css::awt::Rectangle( mnOutOffX, mnOutOffY, mnOutWidth, mnOutHeight ) ); aArg[ 3 ] = makeAny( mpWindowImpl->mbAlwaysOnTop ); aArg[ 4 ] = makeAny( Reference< css::awt::XWindow >( const_cast<vcl::Window*>(this)->GetComponentInterface(), UNO_QUERY )); + aArg[ 5 ] = GetSystemGfxDataAny(); Reference< XComponentContext > xContext = comphelper::getProcessComponentContext(); @@ -3724,16 +3684,16 @@ void Window::ApplySettings(vcl::RenderContext& /*rRenderContext*/) { } -const SystemEnvData* Window::GetWindowSystemData() const +const SystemEnvData* Window::GetSystemData() const { return mpWindowImpl->mpFrame ? mpWindowImpl->mpFrame->GetSystemData() : nullptr; } -Any Window::GetWindowSystemDataAny() const +Any Window::GetSystemDataAny() const { Any aRet; - const SystemEnvData* pSysData = GetWindowSystemData(); + const SystemEnvData* pSysData = GetSystemData(); if( pSysData ) { Sequence< sal_Int8 > aSeq( reinterpret_cast<sal_Int8 const *>(pSysData), pSysData->nSize ); diff --git a/vcl/unx/generic/app/i18n_status.cxx b/vcl/unx/generic/app/i18n_status.cxx index 90c8d8966b36..6ed22df78795 100644 --- a/vcl/unx/generic/app/i18n_status.cxx +++ b/vcl/unx/generic/app/i18n_status.cxx @@ -157,7 +157,7 @@ void XIMStatusWindow::layout() if (m_bAnchoredAtRight && IsVisible()) { - SalFrame* pFrame = static_cast<SalFrame*>(GetWindowSystemData()->pSalFrame); + SalFrame* pFrame = static_cast<SalFrame*>(GetSystemData()->pSalFrame); long nDelta = pFrame->maGeometry.nWidth - m_aWindowSize.Width(); pFrame->SetPosSize( pFrame->maGeometry.nX + nDelta, pFrame->maGeometry.nY, @@ -249,7 +249,7 @@ void XIMStatusWindow::setPosition( SalFrame* pParent ) } if( IsVisible() ) { - const SystemEnvData* pEnvData = GetWindowSystemData(); + const SystemEnvData* pEnvData = GetSystemData(); SalFrame* pStatusFrame = static_cast<SalFrame*>(pEnvData->pSalFrame); Point aPoint = updatePosition(); pStatusFrame->SetPosSize( aPoint.X(), aPoint.Y(), m_aWindowSize.Width(), m_aWindowSize.Height(), SAL_FRAME_POSSIZE_X | SAL_FRAME_POSSIZE_Y | SAL_FRAME_POSSIZE_WIDTH | SAL_FRAME_POSSIZE_HEIGHT ); @@ -260,7 +260,7 @@ void XIMStatusWindow::setPosition( SalFrame* pParent ) IMPL_LINK_NOARG_TYPED(XIMStatusWindow, DelayedShowHdl, void*, void) { m_nDelayedEvent = nullptr; - const SystemEnvData* pData = GetWindowSystemData(); + const SystemEnvData* pData = GetSystemData(); SalFrame* pStatusFrame = static_cast<SalFrame*>(pData->pSalFrame); if( m_bDelayedShow ) { @@ -348,7 +348,7 @@ IIIMPStatusWindow::IIIMPStatusWindow( SalFrame* pParent, bool bOn ) : if( pParent ) { - const SystemEnvData* pEnvData = GetWindowSystemData(); + const SystemEnvData* pEnvData = GetSystemData(); const SalFrameGeometry& rGeom( pParent->GetUnmirroredGeometry() ); int nDistance = rGeom.nTopDecoration; @@ -593,7 +593,7 @@ SalFrame* I18NStatus::getStatusFrame() const SalFrame* pRet = nullptr; if( m_pStatusWindow ) { - const SystemEnvData* pData = m_pStatusWindow->GetWindowSystemData(); + const SystemEnvData* pData = m_pStatusWindow->GetSystemData(); pRet = static_cast<SalFrame*>(pData->pSalFrame); } return pRet; diff --git a/vcl/unx/generic/fontmanager/fontconfig.cxx b/vcl/unx/generic/fontmanager/fontconfig.cxx index 912838c4e60d..73ad87afe6b0 100644 --- a/vcl/unx/generic/fontmanager/fontconfig.cxx +++ b/vcl/unx/generic/fontmanager/fontconfig.cxx @@ -881,7 +881,7 @@ namespace guint get_xid_for_dbus() { const vcl::Window *pTopWindow = Application::IsHeadlessModeEnabled() ? nullptr : Application::GetActiveTopWindow(); - const SystemEnvData* pEnvData = pTopWindow ? pTopWindow->GetWindowSystemData() : nullptr; + const SystemEnvData* pEnvData = pTopWindow ? pTopWindow->GetSystemData() : nullptr; return pEnvData ? pEnvData->aWindow : 0; } #endif diff --git a/vcl/unx/generic/gdi/cairo_xlib_cairo.cxx b/vcl/unx/generic/gdi/cairo_xlib_cairo.cxx index 829f228c6b8f..85bb40a9dc92 100644 --- a/vcl/unx/generic/gdi/cairo_xlib_cairo.cxx +++ b/vcl/unx/generic/gdi/cairo_xlib_cairo.cxx @@ -23,7 +23,6 @@ #include <X11/Xutil.h> #include <X11/extensions/Xrender.h> -#include "cairo_cairo.hxx" #include "cairo_xlib_cairo.hxx" #include <vcl/sysdata.hxx> diff --git a/vcl/unx/generic/gdi/salgdi.cxx b/vcl/unx/generic/gdi/salgdi.cxx index c5803f0781f5..814173fbcbe7 100644 --- a/vcl/unx/generic/gdi/salgdi.cxx +++ b/vcl/unx/generic/gdi/salgdi.cxx @@ -63,7 +63,6 @@ #include "unx/printergfx.hxx" #include "xrender_peer.hxx" -#include "cairo_cairo.hxx" #include "cairo_xlib_cairo.hxx" #include <cairo-xlib.h> @@ -497,7 +496,7 @@ namespace { cairo::X11SysData getSysData( const vcl::Window& rWindow ) { - const SystemEnvData* pSysData = cairo::GetSysData(&rWindow); + const SystemEnvData* pSysData = rWindow.GetSystemData(); if( !pSysData ) return cairo::X11SysData(); diff --git a/vcl/unx/gtk3/cairo_gtk3_cairo.cxx b/vcl/unx/gtk3/cairo_gtk3_cairo.cxx index 2a61c31efbf2..b5e9cb2ee13c 100644 --- a/vcl/unx/gtk3/cairo_gtk3_cairo.cxx +++ b/vcl/unx/gtk3/cairo_gtk3_cairo.cxx @@ -9,7 +9,6 @@ #include <utility> -#include "cairo_cairo.hxx" #include "cairo_gtk3_cairo.hxx" #include <vcl/sysdata.hxx> diff --git a/vcl/unx/kde/UnxFilePicker.cxx b/vcl/unx/kde/UnxFilePicker.cxx index b57ba0a45609..8dce0e0d0610 100644 --- a/vcl/unx/kde/UnxFilePicker.cxx +++ b/vcl/unx/kde/UnxFilePicker.cxx @@ -819,7 +819,7 @@ void UnxFilePicker::initFilePicker() vcl::Window *pParentWin = Application::GetDefDialogParent(); if ( pParentWin ) { - const SystemEnvData* pSysData = pParentWin->GetWindowSystemData(); + const SystemEnvData* pSysData = pParentWin->GetSystemData(); if ( pSysData ) { snprintf( pWinId, nIdLen, "%ld", pSysData->aWindow ); // unx only diff --git a/vcl/unx/kde4/KDE4FilePicker.cxx b/vcl/unx/kde4/KDE4FilePicker.cxx index 68728a4affd2..229aa020bb98 100644 --- a/vcl/unx/kde4/KDE4FilePicker.cxx +++ b/vcl/unx/kde4/KDE4FilePicker.cxx @@ -243,7 +243,7 @@ sal_Int16 SAL_CALL KDE4FilePicker::execute() vcl::Window *pParentWin = Application::GetDefDialogParent(); if ( pParentWin ) { - const SystemEnvData* pSysData = pParentWin->GetWindowSystemData(); + const SystemEnvData* pSysData = pParentWin->GetSystemData(); if ( pSysData ) { KWindowSystem::setMainWindow( _dialog, pSysData->aWindow); // unx only diff --git a/winaccessibility/source/service/AccFrameEventListener.cxx b/winaccessibility/source/service/AccFrameEventListener.cxx index d5d050243cdd..ece7d90b543b 100644 --- a/winaccessibility/source/service/AccFrameEventListener.cxx +++ b/winaccessibility/source/service/AccFrameEventListener.cxx @@ -89,7 +89,7 @@ void AccFrameEventListener::HandleChildChangedEvent(Any oldValue, Any newValue) VCLXWindow* pvclwindow = dynamic_cast<VCLXWindow*>(m_xAccessible.get()); vcl::Window* window = pvclwindow->GetWindow(); - const SystemEnvData* systemdata=window->GetWindowSystemData(); + const SystemEnvData* systemdata=window->GetSystemData(); //add this child pAgent->InsertAccObj(pAcc, m_xAccessible.get(), diff --git a/winaccessibility/source/service/AccTopWindowListener.cxx b/winaccessibility/source/service/AccTopWindowListener.cxx index c30a7c656fc6..b1b91a0f7fdb 100644 --- a/winaccessibility/source/service/AccTopWindowListener.cxx +++ b/winaccessibility/source/service/AccTopWindowListener.cxx @@ -57,7 +57,7 @@ void AccTopWindowListener::HandleWindowOpened( css::accessibility::XAccessible* const SystemEnvData* systemdata = NULL; try { - systemdata = window->GetWindowSystemData(); + systemdata = window->GetSystemData(); } catch(...) { |