summaryrefslogtreecommitdiff
path: root/src/Fl_Printer.cxx
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2016-04-28 16:49:07 +0000
committerManolo Gouy <Manolo>2016-04-28 16:49:07 +0000
commitfde440f752fcbb8e3d67aef3c3d7001dbb0e38c7 (patch)
tree6925e2d3fa33bef109d26bdde1934dbb51838905 /src/Fl_Printer.cxx
parent5a4d10faeae2870c1a651f3d3c5a9e2a866c37cf (diff)
Restore CMake building with OPTION_PRINT_SUPPORT turned off.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11707 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Printer.cxx')
-rw-r--r--src/Fl_Printer.cxx20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/Fl_Printer.cxx b/src/Fl_Printer.cxx
index 6938a9b5f..be80abc6d 100644
--- a/src/Fl_Printer.cxx
+++ b/src/Fl_Printer.cxx
@@ -26,6 +26,7 @@
#endif
#if defined(NO_PRINT_SUPPORT)
+#include <FL/Fl_PostScript.H>
Fl_Printer::Fl_Printer(void) {
printer = NULL;
@@ -68,6 +69,25 @@ const char *Fl_Printer::property_use = NULL;
const char *Fl_Printer::property_save = NULL;
const char *Fl_Printer::property_cancel = NULL;
+Fl_PostScript_File_Device::Fl_PostScript_File_Device(void) {}
+int Fl_PostScript_File_Device::start_job(int pagecount, int* from, int* to) {return 1;}
+int Fl_PostScript_File_Device::start_job(int pagecount, enum Fl_Paged_Device::Page_Format format,
+ enum Fl_Paged_Device::Page_Layout layout) {return 1;}
+int Fl_PostScript_File_Device::start_job(FILE *ps_output, int pagecount, enum Fl_Paged_Device::Page_Format format,
+ enum Fl_Paged_Device::Page_Layout layout) {return 1;}
+int Fl_PostScript_File_Device::start_page (void) {return 1;}
+int Fl_PostScript_File_Device::printable_rect(int *w, int *h) {return 1;}
+void Fl_PostScript_File_Device::margins(int *left, int *top, int *right, int *bottom) {}
+void Fl_PostScript_File_Device::origin(int *x, int *y) {}
+void Fl_PostScript_File_Device::origin(int x, int y) {}
+void Fl_PostScript_File_Device::scale (float scale_x, float scale_y) {}
+void Fl_PostScript_File_Device::rotate(float angle) {}
+void Fl_PostScript_File_Device::translate(int x, int y) {}
+void Fl_PostScript_File_Device::untranslate(void) {}
+int Fl_PostScript_File_Device::end_page (void) {return 1;}
+void Fl_PostScript_File_Device::end_job(void) {}
+Fl_PostScript_File_Device::~Fl_PostScript_File_Device(void) {}
+
#else
// print dialog customization strings