diff options
| author | Manolo Gouy <Manolo> | 2016-02-05 16:34:42 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2016-02-05 16:34:42 +0000 |
| commit | a8a777ff26dede82ff1b450806608851f63cb79f (patch) | |
| tree | 20cb34a900305355f953d10a00e0de68169eb6f8 /src/Fl_Printer.cxx | |
| parent | 254cb01f542b554b63c143718215b23f8151080c (diff) | |
New CMake option OPTION_PRINT_SUPPORT turned ON by default
When the option is off, file config.h defines NO_PRINT_SUPPORT
which in turn produces a library without print support, that is,
class Fl_Printer does nothing.
When off, the FLTK library is somewhat smaller.
Can be turned off only when the X11 library is used.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11127 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Printer.cxx')
| -rw-r--r-- | src/Fl_Printer.cxx | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/src/Fl_Printer.cxx b/src/Fl_Printer.cxx index aece33443..a19b7cb7b 100644 --- a/src/Fl_Printer.cxx +++ b/src/Fl_Printer.cxx @@ -4,7 +4,7 @@ // Encompasses platform-specific printing-support code and // PostScript output code for the Fast Light Tool Kit (FLTK). // -// Copyright 2010 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 @@ -19,6 +19,15 @@ #include <FL/Fl_Printer.H> +const char *Fl_Printer::class_id = "Fl_Printer"; + +#ifdef NO_PRINT_SUPPORT + +Fl_Printer::Fl_Printer(void) { +} + +#else + #if defined(WIN32) || defined(__APPLE__) #elif defined(FL_PORTING) # pragma message "FL_PORTING: implement the printer device specifics" @@ -69,7 +78,6 @@ const char *Fl_Printer::property_save = "Save"; /** [this text may be customized at run-time] */ const char *Fl_Printer::property_cancel = "Cancel"; -const char *Fl_Printer::class_id = "Fl_Printer"; #if defined(__APPLE__) || defined(WIN32) || defined(FL_DOXYGEN) const char *Fl_System_Printer::class_id = Fl_Printer::class_id; #endif @@ -207,6 +215,7 @@ Fl_Printer::~Fl_Printer(void) delete printer; } +#endif // NO_PRINT_SUPPORT // // End of "$Id$". |
