summaryrefslogtreecommitdiff
path: root/FL/Fl_PostScript.H
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2016-02-18 16:21:51 +0000
committerManolo Gouy <Manolo>2016-02-18 16:21:51 +0000
commitf33b45f1d30653fb5da4817089e38ff0a2413cfb (patch)
tree9edc759690defa581b00b6ada80bb334f4ac5da8 /FL/Fl_PostScript.H
parent6ce27012a9412c4964e0ae40c81ea92ff39a61d3 (diff)
Remove all uses of the fl_gc global variable. Towards a clean driver model.
fl_gc remains usable by the application as a hook into the system. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11189 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'FL/Fl_PostScript.H')
-rw-r--r--FL/Fl_PostScript.H23
1 files changed, 2 insertions, 21 deletions
diff --git a/FL/Fl_PostScript.H b/FL/Fl_PostScript.H
index 64e49f45d..69114ce2c 100644
--- a/FL/Fl_PostScript.H
+++ b/FL/Fl_PostScript.H
@@ -3,7 +3,7 @@
//
// Support for graphics output to PostScript file for the Fast Light Tool Kit (FLTK).
//
-// Copyright 2010-2011 by Bill Spitzak and others.
+// Copyright 2010-2016 by Bill Spitzak and others.
//
// This library is free software. Distribution and use rights are outlined in
// the file "COPYING" which should have been included with this file. If this
@@ -233,15 +233,6 @@ class Clip {
two variants of which are usable and allow to specify what page format and layout are desired.
*/
class FL_EXPORT Fl_PostScript_File_Device : public Fl_Paged_Device {
-#ifdef __APPLE__ // PORTME: Fl_Surface_Driver ? - platform specifics for PostScript
- CGContextRef gc;
-#elif defined(WIN32)
- // not needed
-#elif defined(FL_PORTING)
-# pragma message "FL_PORTING: define storage for your graphics context in Fl_PostScript_File_Device if needed"
-#else // X11
- // not needed
-#endif
protected:
Fl_PostScript_Graphics_Driver *driver();
public:
@@ -264,17 +255,7 @@ public:
void translate(int x, int y);
void untranslate(void);
int end_page (void);
- void end_job(void);
-#ifdef __APPLE__ // PORTME: Fl_Surface_Driver ? - platform specifics for PostScript
- void set_current() { fl_gc = gc; Fl_Paged_Device::set_current(); }
-#elif defined(WIN32)
- // not needed
-#elif defined(FL_PORTING)
-# pragma message "FL_PORTING: set access to your graphics context in Fl_PostScript_File_Device if needed"
-#else // X11
- // not needed
-#endif
-
+ void end_job(void);
static const char *file_chooser_title;
};