summaryrefslogtreecommitdiff
path: root/FL
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2010-04-11 18:42:35 +0000
committerAlbrecht Schlosser <albrechts.fltk@online.de>2010-04-11 18:42:35 +0000
commit6359f8be73ac42d3dd989e2d463a0e972c37f036 (patch)
tree84ec17f32390ff1ffc6c77110c493f03112df043 /FL
parent896c6c27664e679907195f9cc9a32e55c81998fb (diff)
Made the printer dialog customization strings platform independent, so that
they can be set on all platforms to avoid platform-specific end user code. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7480 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'FL')
-rw-r--r--FL/Fl_Abstract_Printer.H1
-rw-r--r--FL/Fl_Printer.H57
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