diff options
Diffstat (limited to 'FL')
| -rw-r--r-- | FL/Fl_Abstract_Printer.H | 1 | ||||
| -rw-r--r-- | FL/Fl_Printer.H | 57 |
2 files changed, 22 insertions, 36 deletions
diff --git a/FL/Fl_Abstract_Printer.H b/FL/Fl_Abstract_Printer.H index a869d6a58..919126fac 100644 --- a/FL/Fl_Abstract_Printer.H +++ b/FL/Fl_Abstract_Printer.H @@ -91,4 +91,3 @@ public: // // End of "$Id$" // - diff --git a/FL/Fl_Printer.H b/FL/Fl_Printer.H index e0d54a4e8..8aba8dc81 100644 --- a/FL/Fl_Printer.H +++ b/FL/Fl_Printer.H @@ -65,7 +65,7 @@ \endcode Use Fl_PSfile_Device::file_chooser_title to customize the title of the file chooser dialog that opens when using the "Print To File" option of the print dialog. - Class Fl_RGB_Image prints but looses its transparency if it has one. + Class Fl_RGB_Image prints but loses its transparency if it has one. <li>MSWindows platform: Transparent Fl_RGB_Image 's don't print with exact transparency on most printers. Fl_RGB_Image 's don't rotate() well. A workaround is to use the print_window_part() call. @@ -113,11 +113,30 @@ public: #endif int end_page (void); void end_job (void); + /** @brief The destructor. */ ~Fl_Printer(void); -#ifdef FL_DOXYGEN + +#else // Xlib (Linux/Unix) + +#include <FL/Fl_PSfile_Device.H> + +class Fl_Printer : public Fl_PSfile_Device { + +public: + + Fl_Printer(void) {}; + ~Fl_Printer(void) {}; + int start_job(int pages, int *firstpage = NULL, int *lastpage = NULL); + +#endif // Fl_Printer (platform-dependent) + + // Fl_Printer:: common for all platforms + +public: // just to be sure ... + /** \name These attributes apply to the Xlib platform only. \{ */ @@ -160,40 +179,8 @@ public: /** [this text may be customized at run-time] */ static const char *property_cancel; /** \} */ -#endif -}; -#else - -#include <FL/Fl_PSfile_Device.H> - -class Fl_Printer : public Fl_PSfile_Device { -public: - static const char *dialog_title; // all of this must be duplicated above for correct documentation - static const char *dialog_printer; - static const char *dialog_range; - static const char *dialog_copies; - static const char *dialog_all; - static const char *dialog_pages; - static const char *dialog_from; - static const char *dialog_to; - static const char *dialog_properties; - static const char *dialog_copyNo; - static const char *dialog_print_button; - static const char *dialog_cancel_button; - static const char *dialog_print_to_file; - static const char *property_title; - static const char *property_pagesize; - static const char *property_mode; - static const char *property_use; - static const char *property_save; - static const char *property_cancel; - - Fl_Printer(void) {}; - ~Fl_Printer(void) {}; - int start_job(int pages, int *firstpage = NULL, int *lastpage = NULL); -}; -#endif +}; // class Fl_Printer /** This plugin socket allows the integration of new device drivers for special |
