# define PS_VIEWER_PROG NULL
#endif
-wxPrintSetupData *wxThePrintSetupData = NULL;
+wxPrintSetupData *wxThePrintSetupData = (wxPrintSetupData *) NULL;
// these should move into wxPostscriptDC:
double UnderlinePosition = 0.0F;
";
#else
// No extra PS header for this spline implementation.
-static const char *wxPostScriptHeaderSpline = NULL;
+static const char *wxPostScriptHeaderSpline = (char *) NULL;
#endif /* USE_XFIG_SPLINE_CODE */
m_maxY = -1000;
m_title = "";
- m_pstream = NULL;
+ m_pstream = (ofstream *) NULL;
#ifdef __WXMSW__
// Can only send to file in Windows
m_maxY = -1000;
m_title = "";
m_filename = file;
- m_pstream = NULL;
+ m_pstream = (ofstream *) NULL;
#ifdef __WXMSW__
// Can only send to file in Windows
static const char *long_dashed = "[4 8] 2";
static const char *dotted_dashed = "[6 6 2 6] 4";
- const char *psdash = NULL;
+ const char *psdash = (char *) NULL;
switch (m_pen.GetStyle ())
{
case wxDOT:
if (m_pstream)
{
delete m_pstream;
- m_pstream = NULL;
+ m_pstream = (ofstream *) NULL;
}
// Write header now
*m_pstream << "%%EndProlog\n";
delete m_pstream;
- m_pstream = NULL;
+ m_pstream = (ofstream *) NULL;
#ifdef __VMS__
char *tmp_file = "tmp.ps";
char *argv[3];
argv[0] = wxThePrintSetupData->GetPrintPreviewCommand();
argv[1] = wxThePrintSetupData->GetPrinterFile();
- argv[2] = NULL;
+ argv[2] = (char *) NULL;
wxExecute (argv, TRUE);
wxRemoveFile(wxThePrintSetupData->GetPrinterFile());
}
argv[argc++] = opts;
argv[argc++] = wxThePrintSetupData->GetPrinterFile();
- argv[argc++] = NULL;
+ argv[argc++] = (char *) NULL;
wxExecute (argv, TRUE);
wxRemoveFile(wxThePrintSetupData->GetPrinterFile());
}
wxPrintSetupData::wxPrintSetupData(void)
{
- printerCommand = NULL;
- previewCommand = NULL;
- printerFlags = NULL;
+ printerCommand = (char *) NULL;
+ previewCommand = (char *) NULL;
+ printerFlags = (char *) NULL;
printerOrient = PS_PORTRAIT;
printerScaleX = (double)1.0;
printerScaleY = (double)1.0;
printerTranslateY = 0;
// 1 = Preview, 2 = print to file, 3 = send to printer
printerMode = 3;
- afmPath = NULL;
- paperName = NULL;
+ afmPath = (char *) NULL;
+ paperName = (char *) NULL;
printColour = TRUE;
- printerFile = NULL;
+ printerFile = (char *) NULL;
}
wxPrintSetupData::~wxPrintSetupData(void)
if (cmd)
printerCommand = copystring(cmd);
else
- printerCommand = NULL;
+ printerCommand = (char *) NULL;
}
void wxPrintSetupData::SetPrintPreviewCommand(const char *cmd)
if (cmd)
previewCommand = copystring(cmd);
else
- previewCommand = NULL;
+ previewCommand = (char *) NULL;
}
void wxPrintSetupData::SetPaperName(const char *name)
if (name)
paperName = copystring(name);
else
- paperName = NULL;
+ paperName = (char *) NULL;
}
void wxPrintSetupData::SetPrinterOptions(const char *flags)
if (flags)
printerFlags = copystring(flags);
else
- printerFlags = NULL;
+ printerFlags = (char *) NULL;
}
void wxPrintSetupData::SetPrinterFile(const char *f)
if (f)
printerFile = copystring(f);
else
- printerFile = NULL;
+ printerFile = (char *) NULL;
}
void wxPrintSetupData::SetPrinterOrientation(int orient)
if (f)
afmPath = copystring(f);
else
- afmPath = NULL;
+ afmPath = (char *) NULL;
}
void wxPrintSetupData::SetColour(bool col)
#endif
#if !defined(__VMS__) && !defined(__WXMSW__)
wxThePrintSetupData->SetPrinterCommand("lpr");
- wxThePrintSetupData->SetPrinterOptions(NULL);
- wxThePrintSetupData->SetAFMPath(NULL);
+ wxThePrintSetupData->SetPrinterOptions((char *) NULL);
+ wxThePrintSetupData->SetAFMPath((char *) NULL);
#endif
}
else
{
if (wxThePrintSetupData)
delete wxThePrintSetupData;
- wxThePrintSetupData = NULL;
+ wxThePrintSetupData = (wxPrintSetupData *) NULL;
}
}
if (node)
return (wxPrintPaperType *)node->Data();
else
- return NULL;
+ return (wxPrintPaperType *) NULL;
}
#endif