summaryrefslogtreecommitdiff
path: root/FL/Fl_Abstract_Printer.H
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2010-04-18 06:57:37 +0000
committerManolo Gouy <Manolo>2010-04-18 06:57:37 +0000
commitd0b1cc30f7eac228caddadb2bc675865a4124b1b (patch)
tree210bf48b7ca03062c9a02c9b057539263f3d7ae1 /FL/Fl_Abstract_Printer.H
parent828568a33610d7696f4764ce2ad0f4014f4a6e26 (diff)
Removed multiple inheritance: back to r. 7519 exactly.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7522 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'FL/Fl_Abstract_Printer.H')
-rw-r--r--FL/Fl_Abstract_Printer.H9
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$"
//
-