- wxPrintData printData = printDataConst;
- printData.ConvertToNative();
-
- wxChar* driverName = (wxChar*) NULL;
-
- wxString devNameStr = printData.GetPrinterName();
- wxChar* portName = (wxChar*) NULL; // Obsolete in WIN32
-
- const wxChar* deviceName;
- if ( !devNameStr )
- deviceName = (wxChar*) NULL;
- else
- deviceName = devNameStr.c_str();
-
- LPDEVMODE lpDevMode = (LPDEVMODE) NULL;
-
- HGLOBAL hDevMode = (HGLOBAL)(DWORD) printData.GetNativeData();
-
- if ( hDevMode )
- lpDevMode = (DEVMODE*) GlobalLock(hDevMode);
-
- if ( !devNameStr )
+#if wxUSE_PS_PRINTING
+ // TODO
+ wxUnusedVar(printDataConst);
+ return 0;
+#else // native Windows printing
+ wxWindowsPrintNativeData *data =
+ (wxWindowsPrintNativeData *) printDataConst.GetNativeData();
+
+ data->TransferFrom( printDataConst );
+
+ wxString deviceName = printDataConst.GetPrinterName();
+ if ( deviceName.empty() )