diff options
| author | Manolo Gouy <Manolo> | 2011-02-23 14:36:18 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2011-02-23 14:36:18 +0000 |
| commit | d8822aa74af1c886f7ef4df58e42f52af397042d (patch) | |
| tree | fff5ed100610eb65d2740ab190a00a414d28ba91 /FL/Fl_Printer.H | |
| parent | 5a6da14af3884a55359bd148bcb79d62010c9f6b (diff) | |
Fl_Device: removed class_name(char *) member function and set class_name(void) virtual.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8467 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'FL/Fl_Printer.H')
| -rw-r--r-- | FL/Fl_Printer.H | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/FL/Fl_Printer.H b/FL/Fl_Printer.H index 7b68a459b..9eff9fbd7 100644 --- a/FL/Fl_Printer.H +++ b/FL/Fl_Printer.H @@ -79,6 +79,7 @@ protected: Fl_System_Printer(void); public: static const char *class_id; + const char *class_name() {return class_id;}; int start_job(int pagecount, int *frompage = NULL, int *topage = NULL); int start_page (void); int printable_rect(int *w, int *h); @@ -108,10 +109,11 @@ public: class Fl_PostScript_Printer : public Fl_PostScript_File_Device { friend class Fl_Printer; protected: - /** \brief The constructor */ - Fl_PostScript_Printer(void) {class_name(class_id);}; + /** The constructor */ + Fl_PostScript_Printer(void) {}; public: static const char *class_id; + const char *class_name() {return class_id;}; int start_job(int pages, int *firstpage = NULL, int *lastpage = NULL); }; @@ -152,6 +154,7 @@ public: class Fl_Printer : public Fl_Paged_Device { public: static const char *class_id; + const char *class_name() {return class_id;}; /** \brief The constructor */ Fl_Printer(void); int start_job(int pagecount, int *frompage = NULL, int *topage = NULL); |
