diff options
| author | Manolo Gouy <Manolo> | 2010-04-16 20:19:09 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2010-04-16 20:19:09 +0000 |
| commit | 913530758af63f00676c6746988aef8b35b02531 (patch) | |
| tree | d6b59be15047e3c2742158eb5063aca55ea94eba /FL/Fl_Abstract_Printer.H | |
| parent | 0f180e130639f1017e7ca6b668357304632c1a62 (diff) | |
Improved the hierarchy of Fl_Device subclasses to allow separation of platform-specific devices.
This introduces multiple inheritance.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7520 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'FL/Fl_Abstract_Printer.H')
| -rw-r--r-- | FL/Fl_Abstract_Printer.H | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/FL/Fl_Abstract_Printer.H b/FL/Fl_Abstract_Printer.H index 919126fac..97f4092dc 100644 --- a/FL/Fl_Abstract_Printer.H +++ b/FL/Fl_Abstract_Printer.H @@ -39,10 +39,7 @@ * This class has no public constructor: don't instantiate it; use Fl_Printer or Fl_PSfile_Device instead. */ -class Fl_Abstract_Printer : public Fl_Device { - friend class Fl_Pixmap; - friend class Fl_RGB_Image; - friend class Fl_Bitmap; +class Fl_Abstract_Printer { private: #ifdef __APPLE__ struct chain_elt { @@ -62,14 +59,11 @@ 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); @@ -91,3 +85,4 @@ public: // // End of "$Id$" // + |
