adding impl for Create( wxPrinterDC
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53417 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -23,6 +23,7 @@
|
|||||||
#include "wx/icon.h"
|
#include "wx/icon.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#ifdef __MSL__
|
#ifdef __MSL__
|
||||||
#if __MSL__ >= 0x6000
|
#if __MSL__ >= 0x6000
|
||||||
#include "math.h"
|
#include "math.h"
|
||||||
@@ -34,6 +35,7 @@
|
|||||||
|
|
||||||
#ifdef __WXMAC__
|
#ifdef __WXMAC__
|
||||||
#include "wx/mac/uma.h"
|
#include "wx/mac/uma.h"
|
||||||
|
#include "wx/mac/dcprint.h"
|
||||||
#else
|
#else
|
||||||
#include "CoreServices/CoreServices.h"
|
#include "CoreServices/CoreServices.h"
|
||||||
#include "ApplicationServices/ApplicationServices.h"
|
#include "ApplicationServices/ApplicationServices.h"
|
||||||
@@ -2360,8 +2362,14 @@ wxGraphicsContext * wxMacCoreGraphicsRenderer::CreateContext( const wxPrinterDC&
|
|||||||
{
|
{
|
||||||
#ifdef __WXMAC__
|
#ifdef __WXMAC__
|
||||||
const wxDCImpl* impl = dc.GetImpl();
|
const wxDCImpl* impl = dc.GetImpl();
|
||||||
|
wxPrinterDCImpl *print_impl = wxDynamicCast( impl, wxPrinterDCImpl );
|
||||||
// TODO
|
if (print_impl)
|
||||||
|
{
|
||||||
|
int w, h;
|
||||||
|
print_impl->GetSize( &w, &h );
|
||||||
|
return new wxMacCoreGraphicsContext( this,
|
||||||
|
(CGContextRef)(print_impl->GetGraphicsContext()->GetNativeContext()), (wxDouble) w, (wxDouble) h );
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user