Make temporary MSWUniv buildable and mark problem for the future (or for now if the print changes are supposed to be complete).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30263 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -283,9 +283,21 @@ static bool wxGetDefaultDeviceName(wxString& deviceName, wxString& portName)
|
|||||||
// Gets an HDC for the specified printer configuration
|
// Gets an HDC for the specified printer configuration
|
||||||
WXHDC WXDLLEXPORT wxGetPrinterDC(const wxPrintData& printDataConst)
|
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 *data =
|
||||||
(wxWindowsPrintNativeData *) printDataConst.GetNativeData();
|
(wxWindowsPrintNativeData *) printDataConst.GetNativeData();
|
||||||
|
|
||||||
data->TransferFrom( printDataConst );
|
data->TransferFrom( printDataConst );
|
||||||
|
|
||||||
wxChar* driverName = (wxChar*) NULL;
|
wxChar* driverName = (wxChar*) NULL;
|
||||||
@@ -327,6 +339,7 @@ WXHDC WXDLLEXPORT wxGetPrinterDC(const wxPrintData& printDataConst)
|
|||||||
GlobalUnlock(hDevMode);
|
GlobalUnlock(hDevMode);
|
||||||
|
|
||||||
return (WXHDC) hDC;
|
return (WXHDC) hDC;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
Reference in New Issue
Block a user