diff options
Diffstat (limited to 'FL/Fl_Abstract_Printer.H')
| -rw-r--r-- | FL/Fl_Abstract_Printer.H | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/FL/Fl_Abstract_Printer.H b/FL/Fl_Abstract_Printer.H index 97f4092dc..919126fac 100644 --- a/FL/Fl_Abstract_Printer.H +++ b/FL/Fl_Abstract_Printer.H @@ -39,7 +39,10 @@ * This class has no public constructor: don't instantiate it; use Fl_Printer or Fl_PSfile_Device instead. */ -class Fl_Abstract_Printer { +class Fl_Abstract_Printer : public Fl_Device { + friend class Fl_Pixmap; + friend class Fl_RGB_Image; + friend class Fl_Bitmap; private: #ifdef __APPLE__ struct chain_elt { @@ -59,11 +62,14 @@ protected: struct chain_elt *image_list_; /** \brief the printer's graphics context, if there's one, NULL otherwise */ void *gc; + /** \brief the constructor */ + Fl_Abstract_Printer(void) { gc = NULL; bg_r_ = bg_g_ = bg_b_ = 0; }; #ifdef __APPLE__ /** \brief deletes the page image list */ void delete_image_list(); #endif public: + Fl_Device *set_current(void); virtual int start_job(int pagecount, int *frompage = NULL, int *topage = NULL); virtual int start_page(void); virtual int printable_rect(int *w, int *h); @@ -85,4 +91,3 @@ public: // // End of "$Id$" // - |
