Classes Fl_Printer and Fl_Postscript_Printer: added missing class_name() calls.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8197 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Manolo Gouy 2011-01-06 08:46:54 +00:00
parent 9f61a96b85
commit ead3432f9b
2 changed files with 8 additions and 6 deletions

View File

@ -25,7 +25,7 @@
// http://www.fltk.org/str.php
//
/** \file Fl_Printer.H
\brief declaration of class Fl_Printer.
\brief declaration of classes Fl_Printer, Fl_System_Printer and Fl_PostScript_Printer.
*/
#ifndef Fl_Printer_H
@ -108,7 +108,7 @@ class Fl_PostScript_Printer : public Fl_PostScript_File_Device {
friend class Fl_Printer;
protected:
/** \brief The constructor */
Fl_PostScript_Printer(void) {};
Fl_PostScript_Printer(void) {class_name(class_id);};
public:
static const char *class_id;
int start_job(int pages, int *firstpage = NULL, int *lastpage = NULL);

View File

@ -77,10 +77,11 @@ const char *Fl_Printer::property_save = "Save";
const char *Fl_Printer::property_cancel = "Cancel";
const char *Fl_Printer::class_id = "Fl_Printer";
#if defined(__APPLE__) || defined(WIN32)
const char *Fl_System_Printer::class_id = "Fl_Printer";
#elif !defined(FL_DOXYGEN)
const char *Fl_PostScript_Printer::class_id = "Fl_Printer";
#if defined(__APPLE__) || defined(WIN32) || defined(FL_DOXYGEN)
const char *Fl_System_Printer::class_id = Fl_Printer::class_id;
#endif
#if !( defined(__APPLE__) || defined(WIN32) )
const char *Fl_PostScript_Printer::class_id = Fl_Printer::class_id;
#endif
#if defined(__APPLE__) || defined(WIN32)
@ -101,6 +102,7 @@ Fl_Printer::Fl_Printer(void) {
#else
printer = new Fl_PostScript_Printer();
#endif
class_name(class_id);
}
int Fl_Printer::start_job(int pagecount, int *frompage, int *topage)