summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/Fl_Device.cxx3
-rw-r--r--src/Fl_Printer.cxx9
2 files changed, 11 insertions, 1 deletions
diff --git a/src/Fl_Device.cxx b/src/Fl_Device.cxx
index c723186f2..99e28a216 100644
--- a/src/Fl_Device.cxx
+++ b/src/Fl_Device.cxx
@@ -180,7 +180,6 @@ Fl_PDF_File_Surface::~Fl_PDF_File_Surface() {
delete platform_surface_;
}
-#endif // !defined(FL_NO_PRINT_SUPPORT)
/** Localizable text of the "PDF document settings" dialog */
const char * Fl_PDF_File_Surface::format_dialog_title = "PDF document settings";
@@ -190,3 +189,5 @@ const char * Fl_PDF_File_Surface::format_dialog_page_size = "Page Size:";
const char * Fl_PDF_File_Surface::format_dialog_default = "Set as default";
/** Localizable text of the "PDF document settings" dialog */
const char * Fl_PDF_File_Surface::format_dialog_orientation = "Orientation:";
+
+#endif // !defined(FL_NO_PRINT_SUPPORT)
diff --git a/src/Fl_Printer.cxx b/src/Fl_Printer.cxx
index dc5509206..ced2d75ab 100644
--- a/src/Fl_Printer.cxx
+++ b/src/Fl_Printer.cxx
@@ -20,6 +20,7 @@
#if defined(FL_NO_PRINT_SUPPORT)
#include <FL/Fl_PostScript.H>
+#include <FL/Fl_PDF_File_Surface.H>
Fl_Printer::Fl_Printer(void) {
printer = NULL;
@@ -97,6 +98,14 @@ void Fl_EPS_File_Surface::untranslate() {}
FILE* Fl_EPS_File_Surface::file() {return NULL;}
int Fl_EPS_File_Surface::close() {return 1;}
+Fl_PDF_File_Surface::Fl_PDF_File_Surface(void) {}
+int Fl_PDF_File_Surface::begin_job(const char* defaultfilename, char **perr) {return 2;}
+int Fl_PDF_File_Surface::begin_document(const char* pathname,
+ enum Fl_Paged_Device::Page_Format format,
+ enum Fl_Paged_Device::Page_Layout layout,
+ char **perr) {return 2;}
+Fl_PDF_File_Surface::~Fl_PDF_File_Surface(void) {}
+
#else
// print dialog customization strings