Skip to content

Commit

Permalink
Classes Fl_Printer and Fl_Postscript_Printer: added missing class_nam…
Browse files Browse the repository at this point in the history
…e() calls.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8197 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
  • Loading branch information
Manolo Gouy authored and Manolo Gouy committed Jan 6, 2011
1 parent 9f61a96 commit ead3432
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
4 changes: 2 additions & 2 deletions FL/Fl_Printer.H
Expand Up @@ -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
Expand Down Expand Up @@ -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);
Expand Down
10 changes: 6 additions & 4 deletions src/Fl_Printer.cxx
Expand Up @@ -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)
Expand All @@ -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)
Expand Down

0 comments on commit ead3432

Please sign in to comment.