// Created: 01/02/97
// RCS-ID: $Id$
// Copyright: (c) Julian Smart and Markus Holzem
-// Licence: wxWindows licence
+// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
#ifdef __GNUG__
#ifdef __WXMSW__
#include <windows.h>
-#ifndef __WIN32__
+#if !defined(__WIN32__)
#include <print.h>
#include <commdlg.h>
#endif
+
+#if defined(__WATCOMC__)
+#include <commdlg.h>
+#endif
+
#endif
#if !USE_SHARED_LIBRARY
* wxColourData
*/
-wxColourData::wxColourData(void)
+wxColourData::wxColourData()
{
int i;
for (i = 0; i < 16; i++)
chooseFull = FALSE;
dataColour.Set(0,0,0);
-}
+}
-wxColourData::~wxColourData(void)
+wxColourData::~wxColourData()
{
}
* Font data
*/
-wxFontData::wxFontData(void)
+wxFontData::wxFontData()
{
// Intialize colour to black.
fontColour.Set(0, 0, 0);
maxSize = 0;
}
-wxFontData::~wxFontData(void)
+wxFontData::~wxFontData()
{
}
* Print data
*/
-wxPrintData::wxPrintData(void)
+wxPrintData::wxPrintData()
{
#ifdef __WXMSW__
printData = NULL;
printSetupDialog = FALSE;
}
-wxPrintData::~wxPrintData(void)
+wxPrintData::~wxPrintData()
{
#ifdef __WXMSW__
PRINTDLG *pd = (PRINTDLG *)printData;
}
#ifdef __WXMSW__
-void wxPrintData::ConvertToNative(void)
+void wxPrintData::ConvertToNative()
{
PRINTDLG *pd = (PRINTDLG*) printData;
if ( pd == NULL )
pd->hDevMode = NULL; // Will be created by PrintDlg
pd->hDevNames = NULL; // Ditto
- // Why had I put this #ifdef in?? Seems fine to me.
-#if 1
pd->Flags = PD_RETURNDEFAULT;
pd->nCopies = 1;
GlobalFree(pd->hDevNames);
pd->hDevNames = NULL;
}
-#endif
}
if ( pd->hDevMode )
pd->Flags |= PD_PRINTSETUP;
}
-void wxPrintData::ConvertFromNative(void)
+void wxPrintData::ConvertFromNative()
{
PRINTDLG *pd = (PRINTDLG*) printData;
if ( pd == NULL )
* wxPageSetupData
*/
-wxPageSetupData::wxPageSetupData(void)
+wxPageSetupData::wxPageSetupData()
{
#if defined(__WIN95__)
m_pageSetupData = NULL;
m_getDefaultInfo = FALSE;
}
-wxPageSetupData::~wxPageSetupData(void)
+wxPageSetupData::~wxPageSetupData()
{
#if defined(__WIN95__) && defined(__WXMSW__)
PAGESETUPDLG *pd = (PAGESETUPDLG *)m_pageSetupData;
}
#if defined(__WXMSW__) && defined(__WIN95__)
-void wxPageSetupData::ConvertToNative(void)
+void wxPageSetupData::ConvertToNative()
{
PAGESETUPDLG *pd = (PAGESETUPDLG*) m_pageSetupData;
if ( m_pageSetupData == NULL )
pd->hDevMode = GlobalAlloc(GMEM_MOVEABLE, sizeof(DEVMODE));
m_pageSetupData = (void *)pd;
}
-
+
pd->Flags = PSD_MARGINS|PSD_MINMARGINS;
if ( m_defaultMinMargins )
}
}
-void wxPageSetupData::ConvertFromNative(void)
+void wxPageSetupData::ConvertFromNative()
{
PAGESETUPDLG *pd = (PAGESETUPDLG *) m_pageSetupData ;
if ( !pd )