IMPLEMENT_DYNAMIC_CLASS(wxPrintPaperDatabase, wxList)
#endif
-wxPostScriptDC::wxPostScriptDC (void)
+wxPostScriptDC::wxPostScriptDC ()
{
// m_yOrigin = 792; // For EPS output
m_yOrigin = 842; // For A4 output
return m_ok;
}
-wxPostScriptDC::~wxPostScriptDC (void)
+wxPostScriptDC::~wxPostScriptDC ()
{
if (m_pstream)
delete m_pstream;
*m_pstream << "closepath clip newpath\n";
}
-void wxPostScriptDC::DestroyClippingRegion (void)
+void wxPostScriptDC::DestroyClippingRegion ()
{
if (!m_pstream)
return;
}
}
-void wxPostScriptDC::Clear (void)
+void wxPostScriptDC::Clear ()
{
}
}
-void wxPostScriptDC::EndDoc (void)
+void wxPostScriptDC::EndDoc ()
{
static char wxPostScriptHeaderReencodeISO1[] =
"\n/reencodeISO {\n"
#endif
}
-void wxPostScriptDC::StartPage (void)
+void wxPostScriptDC::StartPage ()
{
if (!m_pstream)
return;
*m_pstream << translate_x << " " << translate_y << " translate\n";
}
-void wxPostScriptDC::EndPage (void)
+void wxPostScriptDC::EndPage ()
{
if (!m_pstream)
return;
return TRUE;
}
-long wxPostScriptDC::GetCharHeight (void)
+long wxPostScriptDC::GetCharHeight ()
{
if (m_font.Ok())
return m_font.GetPointSize ();
*(GetStream()) << c << " " << (GetYOrigin() - d) << " lineto stroke\n";
}
-long wxPostScriptDC::GetCharWidth (void)
+long wxPostScriptDC::GetCharWidth ()
{
// Chris Breeze: reasonable approximation using wxMODERN/Courier
return (long) (GetCharHeight() * 72.0 / 120.0);
wxEndBusyCursor();
}
-int wxPostScriptPrintDialog::ShowModal (void)
+int wxPostScriptPrintDialog::ShowModal ()
{
if ( wxDialog::ShowModal() == wxID_OK )
{
}
// Get current values
-char *wxGetPrinterCommand(void)
+char *wxGetPrinterCommand()
{
return wxThePrintSetupData->GetPrinterCommand();
}
-char *wxGetPrintPreviewCommand(void)
+char *wxGetPrintPreviewCommand()
{
return wxThePrintSetupData->GetPrintPreviewCommand();
}
-char *wxGetPrinterOptions(void)
+char *wxGetPrinterOptions()
{
return wxThePrintSetupData->GetPrinterOptions();
}
-char *wxGetPrinterFile(void)
+char *wxGetPrinterFile()
{
return wxThePrintSetupData->GetPrinterFile();
}
-int wxGetPrinterOrientation(void)
+int wxGetPrinterOrientation()
{
return wxThePrintSetupData->GetPrinterOrientation();
}
wxThePrintSetupData->GetPrinterTranslation(x, y);
}
-int wxGetPrinterMode(void)
+int wxGetPrinterMode()
{
return wxThePrintSetupData->GetPrinterMode();
}
-char *wxGetAFMPath(void)
+char *wxGetAFMPath()
{
return wxThePrintSetupData->GetAFMPath();
}
* Print setup data
*/
-wxPrintSetupData::wxPrintSetupData(void)
+wxPrintSetupData::wxPrintSetupData()
{
printerCommand = (char *) NULL;
previewCommand = (char *) NULL;
printerFile = (char *) NULL;
}
-wxPrintSetupData::~wxPrintSetupData(void)
+wxPrintSetupData::~wxPrintSetupData()
{
if (printerCommand)
delete[] printerCommand;
}
// Get current values
-char *wxPrintSetupData::GetPrinterCommand(void)
+char *wxPrintSetupData::GetPrinterCommand()
{
return printerCommand;
}
-char *wxPrintSetupData::GetPrintPreviewCommand(void)
+char *wxPrintSetupData::GetPrintPreviewCommand()
{
return previewCommand;
}
-char *wxPrintSetupData::GetPrinterOptions(void)
+char *wxPrintSetupData::GetPrinterOptions()
{
return printerFlags;
}
-char *wxPrintSetupData::GetPrinterFile(void)
+char *wxPrintSetupData::GetPrinterFile()
{
return printerFile;
}
-char *wxPrintSetupData::GetPaperName(void)
+char *wxPrintSetupData::GetPaperName()
{
return paperName;
}
-int wxPrintSetupData::GetPrinterOrientation(void)
+int wxPrintSetupData::GetPrinterOrientation()
{
return printerOrient;
}
*y = printerTranslateY;
}
-int wxPrintSetupData::GetPrinterMode(void)
+int wxPrintSetupData::GetPrinterMode()
{
return printerMode;
}
-char *wxPrintSetupData::GetAFMPath(void)
+char *wxPrintSetupData::GetAFMPath()
{
return afmPath;
}
-bool wxPrintSetupData::GetColour(void)
+bool wxPrintSetupData::GetColour()
{
return printColour;
}
pageName = copystring(name);
}
-wxPrintPaperType::~wxPrintPaperType(void)
+wxPrintPaperType::~wxPrintPaperType()
{
delete[] pageName;
}
-wxPrintPaperDatabase::wxPrintPaperDatabase(void):wxList(wxKEY_STRING)
+wxPrintPaperDatabase::wxPrintPaperDatabase():wxList(wxKEY_STRING)
{
DeleteContents(TRUE);
}
-wxPrintPaperDatabase::~wxPrintPaperDatabase(void)
+wxPrintPaperDatabase::~wxPrintPaperDatabase()
{
}
-void wxPrintPaperDatabase::CreateDatabase(void)
+void wxPrintPaperDatabase::CreateDatabase()
{
// Need correct values for page size in pixels.
// Each unit is one 'point' = 1/72 of an inch.
AddPaperType(_("Legal 8 1/2 x 14 in"), 216, 356, 612, 1009);
}
-void wxPrintPaperDatabase::ClearDatabase(void)
+void wxPrintPaperDatabase::ClearDatabase()
{
Clear();
}