From b77071a3de3593ea482aa7ea0a442c7fc888a2e2 Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Sun, 28 Mar 2010 14:03:40 +0000 Subject: Fl_Printer class on Xlib: allow dialog text customization at run-time git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7350 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- FL/Fl_Printer.H | 61 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) (limited to 'FL/Fl_Printer.H') diff --git a/FL/Fl_Printer.H b/FL/Fl_Printer.H index 6636d2138..e3a90c806 100644 --- a/FL/Fl_Printer.H +++ b/FL/Fl_Printer.H @@ -94,6 +94,48 @@ public: #endif int end_page (void); void end_job (void); +#ifdef FL_DOXYGEN + /** \name These attributes apply to the Xlib platform only. + \{ + */ + /** [this text may be customized at run-time] */ + static const char *dialog_title; + /** [this text may be customized at run-time] */ + static const char *dialog_printer; + /** [this text may be customized at run-time] */ + static const char *dialog_range; + /** [this text may be customized at run-time] */ + static const char *dialog_copies; + /** [this text may be customized at run-time] */ + static const char *dialog_all; + /** [this text may be customized at run-time] */ + static const char *dialog_pages; + /** [this text may be customized at run-time] */ + static const char *dialog_from; + /** [this text may be customized at run-time] */ + static const char *dialog_to; + /** "Properties..." [this text may be customized at run-time] */ + static const char *dialog_properties; + /** [this text may be customized at run-time] */ + static const char *dialog_copyNo; + /** [this text may be customized at run-time] */ + static const char *dialog_print_button; + /** [this text may be customized at run-time] */ + static const char *dialog_cancel_button; + /** [this text may be customized at run-time] */ + static const char *property_title; + /** [this text may be customized at run-time] */ + static const char *property_pagesize; + /** [this text may be customized at run-time] */ + static const char *property_mode; + /** [this text may be customized at run-time] */ + static const char *property_use; + /** [this text may be customized at run-time] */ + static const char *property_save; + /** [this text may be customized at run-time] */ + static const char *property_cancel; + /** \} */ +#endif }; #else @@ -102,6 +144,25 @@ public: class Fl_Printer : public Fl_PSfile_Device { public: + static const char *dialog_title; + 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 *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); -- cgit v1.2.3