summaryrefslogtreecommitdiff
path: root/FL/Fl_Printer.H
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2010-04-16 20:19:09 +0000
committerManolo Gouy <Manolo>2010-04-16 20:19:09 +0000
commit913530758af63f00676c6746988aef8b35b02531 (patch)
treed6b59be15047e3c2742158eb5063aca55ea94eba /FL/Fl_Printer.H
parent0f180e130639f1017e7ca6b668357304632c1a62 (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_Printer.H')
-rw-r--r--FL/Fl_Printer.H7
1 files changed, 4 insertions, 3 deletions
diff --git a/FL/Fl_Printer.H b/FL/Fl_Printer.H
index 8aba8dc81..409385dfb 100644
--- a/FL/Fl_Printer.H
+++ b/FL/Fl_Printer.H
@@ -72,7 +72,7 @@
<li>Mac OS X platform: all graphics requests print as on display.
</ul>
*/
-class Fl_Printer : public Fl_Abstract_Printer {
+class Fl_Printer : public Fl_Graphics_Device , public Fl_Abstract_Printer {
private:
#ifdef __APPLE__
float scale_x;
@@ -126,14 +126,15 @@ public:
class Fl_Printer : public Fl_PSfile_Device {
public:
-
- Fl_Printer(void) {};
+ Fl_Printer(void) { gc = NULL; bg_r_ = bg_g_ = bg_b_ = 0; };
~Fl_Printer(void) {};
int start_job(int pages, int *firstpage = NULL, int *lastpage = NULL);
#endif // Fl_Printer (platform-dependent)
// Fl_Printer:: common for all platforms
+ Fl_Device *set_current(void);
+ static const char *device_type;
public: // just to be sure ...