git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30263
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
// Gets an HDC for the specified printer configuration
WXHDC WXDLLEXPORT wxGetPrinterDC(const wxPrintData& printDataConst)
{
// Gets an HDC for the specified printer configuration
WXHDC WXDLLEXPORT wxGetPrinterDC(const wxPrintData& printDataConst)
{
+#if defined(__WXUNIVERSAL__) && (!defined(__WXMSW__) || wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW)
+
+#if 0
+ wxPostScriptPrintNativeData *data =
+ (wxPostScriptPrintNativeData *) printDataConst.GetNativeData();
+ // FIXME: how further ???
+#else
+ return 0;
+#endif
+
+#else // Postscript vs. native Windows
+
wxWindowsPrintNativeData *data =
(wxWindowsPrintNativeData *) printDataConst.GetNativeData();
wxWindowsPrintNativeData *data =
(wxWindowsPrintNativeData *) printDataConst.GetNativeData();
data->TransferFrom( printDataConst );
wxChar* driverName = (wxChar*) NULL;
data->TransferFrom( printDataConst );
wxChar* driverName = (wxChar*) NULL;
GlobalUnlock(hDevMode);
return (WXHDC) hDC;
GlobalUnlock(hDevMode);
return (WXHDC) hDC;
}
// ----------------------------------------------------------------------------
}
// ----------------------------------------------------------------------------