X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/88ac883a0d005437c97a60d8195bd5e4719b1154..917b3d40f2da1f02a81cbe385118a504072c401c:/src/common/cmndata.cpp diff --git a/src/common/cmndata.cpp b/src/common/cmndata.cpp index f88c5157fd..b9c2c8fc0b 100644 --- a/src/common/cmndata.cpp +++ b/src/common/cmndata.cpp @@ -61,6 +61,11 @@ #include #endif // Win16 + #ifdef __WXWINE__ + #include + #include + #endif + #if defined(__WATCOMC__) || defined(__SC__) || defined(__SALFORDC__) #include #include @@ -220,8 +225,9 @@ wxPrintData::~wxPrintData() #endif } -#if defined(__WXMSW__) && defined(__WIN32__) +#if defined(__WXMSW__) // && defined(__WIN32__) +#ifdef __WIN32__ static wxString wxGetPrintDlgError() { DWORD err = CommDlgExtendedError(); @@ -254,8 +260,7 @@ static wxString wxGetPrintDlgError() } return msg; } - - +#endif void wxPrintData::ConvertToNative() { @@ -319,13 +324,17 @@ void wxPrintData::ConvertToNative() //// Orientation +#ifndef __WXWINE__ devMode->dmOrientation = m_printOrientation; +#endif devMode->dmFields = DM_ORIENTATION; //// Collation +#ifndef __WIN16__ devMode->dmCollate = (m_printCollate ? DMCOLLATE_TRUE : DMCOLLATE_FALSE); devMode->dmFields |= DM_COLLATE; +#endif //// Number of copies @@ -353,6 +362,7 @@ void wxPrintData::ConvertToNative() devMode->dmFields |= DM_COLOR; +#ifndef __WXWINE__ //// Paper size if (m_paperId == wxPAPER_NONE) @@ -374,6 +384,7 @@ void wxPrintData::ConvertToNative() } } } +#endif //// Duplex @@ -433,13 +444,16 @@ void wxPrintData::ConvertFromNative() { DEVMODE *devMode = (DEVMODE*) GlobalLock(hDevMode); +#ifndef __WXWINE__ //// Orientation if (devMode->dmFields & DM_ORIENTATION) m_printOrientation = devMode->dmOrientation; +#endif //// Collation +#ifndef __WIN16__ if (devMode->dmFields & DM_COLLATE) { if (devMode->dmCollate == DMCOLLATE_TRUE) @@ -447,6 +461,7 @@ void wxPrintData::ConvertFromNative() else m_printCollate = FALSE; } +#endif //// Number of copies @@ -484,6 +499,7 @@ void wxPrintData::ConvertFromNative() else m_colour = TRUE; +#ifndef __WXWINE__ //// Paper size if (devMode->dmFields & DM_PAPERSIZE) @@ -532,7 +548,7 @@ void wxPrintData::ConvertFromNative() m_paperSize.y = 0; m_paperId = wxPAPER_NONE; } - +#endif //// Duplex @@ -722,8 +738,8 @@ void wxPrintDialogData::ConvertToNative() #ifdef __GNUWIN32__ pd->lStructSize = 66 ; #else -#endif pd->lStructSize = sizeof(PRINTDLG); +#endif pd->hwndOwner = (HWND)NULL; pd->hDevMode = NULL; // Will be created by PrintDlg pd->hDevNames = NULL; // Ditto