Kaydet (Commit) c3db0dfc authored tarafından Vladimir Glazounov's avatar Vladimir Glazounov

INTEGRATION: CWS thbpp10 (1.7.40); FILE MERGED

2008/01/14 15:54:21 thb 1.7.40.1: #i84049# Checking for render existence - patch courtesy jnavrati
üst cff3fe8d
...@@ -4,9 +4,9 @@ ...@@ -4,9 +4,9 @@
* *
* $RCSfile: cairo_devicehelper.cxx,v $ * $RCSfile: cairo_devicehelper.cxx,v $
* *
* $Revision: 1.7 $ * $Revision: 1.8 $
* *
* last change: $Author: obo $ $Date: 2007-07-17 14:21:10 $ * last change: $Author: vg $ $Date: 2008-01-29 08:01:24 $
* *
* The Contents of this file are made available subject to * The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1. * the terms of GNU Lesser General Public License Version 2.1.
...@@ -64,6 +64,22 @@ using namespace ::com::sun::star; ...@@ -64,6 +64,22 @@ using namespace ::com::sun::star;
namespace cairocanvas namespace cairocanvas
{ {
const SystemEnvData* GetSysData(Window *pOutputWindow)
{
const SystemEnvData* pSysData = NULL;
// 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->GetSystemData();
else
pSysData = pOutputWindow->GetSystemData();
return pSysData;
}
DeviceHelper::DeviceHelper() : DeviceHelper::DeviceHelper() :
mpSpriteCanvas( NULL ), mpSpriteCanvas( NULL ),
maSize(), maSize(),
...@@ -90,14 +106,7 @@ namespace cairocanvas ...@@ -90,14 +106,7 @@ namespace cairocanvas
mpSpriteCanvas = &rSpriteCanvas; mpSpriteCanvas = &rSpriteCanvas;
mbFullScreen = bFullscreen; mbFullScreen = bFullscreen;
// check whether we're a SysChild: have to fetch system data mpSysData = GetSysData(mpOutputWindow);
// directly from SystemChildWindow, because the GetSystemData
// method is unfortunately not virtual
const SystemChildWindow* pSysChild = dynamic_cast< const SystemChildWindow* >( mpOutputWindow );
if( pSysChild )
mpSysData = pSysChild->GetSystemData();
else
mpSysData = mpOutputWindow->GetSystemData();
setSize( rSize ); setSize( rSize );
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment