diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2024-11-27 00:08:06 +0100 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2024-11-27 00:08:06 +0100 |
| commit | 95fc60bd8c90bbc5db9d47228d00f0aa0bcb4fa0 (patch) | |
| tree | a03a2245a1d0135ffb4e6ced8abb01a13326adb3 /src | |
| parent | 9bac964f85503dfd37cef369f4d664a1aef92094 (diff) | |
Restore building with configure --disable-print (#1147)
Diffstat (limited to 'src')
| -rw-r--r-- | src/Fl_Device.cxx | 3 | ||||
| -rw-r--r-- | src/Fl_Printer.cxx | 9 |
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 |
