summaryrefslogtreecommitdiff
path: root/src/Fl_Printer.cxx
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2010-05-27 17:20:18 +0000
committerManolo Gouy <Manolo>2010-05-27 17:20:18 +0000
commit26049351e09d75bdf8b35273a76cf65202583fa7 (patch)
tree010685555b9f83d071a14262e8ce346c7388f254 /src/Fl_Printer.cxx
parent0a280ce591046f6834f1233087a72fa6bdd97bad (diff)
Better device hierarchy with surfaces and graphics drivers.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7617 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Printer.cxx')
-rw-r--r--src/Fl_Printer.cxx34
1 files changed, 32 insertions, 2 deletions
diff --git a/src/Fl_Printer.cxx b/src/Fl_Printer.cxx
index d6e8425b3..7214ea1b7 100644
--- a/src/Fl_Printer.cxx
+++ b/src/Fl_Printer.cxx
@@ -34,30 +34,60 @@
#include <src/Fl_GDI_Printer.cxx>
#endif
-#include <src/Fl_PS_Printer.cxx>
+#include <src/Fl_PostScript.cxx>
// print dialog customization strings
-
+/** [this text may be customized at run-time] */
const char *Fl_Printer::dialog_title = "Print";
+/** [this text may be customized at run-time] */
const char *Fl_Printer::dialog_printer = "Printer:";
+/** [this text may be customized at run-time] */
const char *Fl_Printer::dialog_range = "Print Range";
+/** [this text may be customized at run-time] */
const char *Fl_Printer::dialog_copies = "Copies";
+/** [this text may be customized at run-time] */
const char *Fl_Printer::dialog_all = "All";
+/** [this text may be customized at run-time] */
const char *Fl_Printer::dialog_pages = "Pages";
+/** [this text may be customized at run-time] */
const char *Fl_Printer::dialog_from = "From:";
+/** [this text may be customized at run-time] */
const char *Fl_Printer::dialog_to = "To:";
+/** [this text may be customized at run-time] */
const char *Fl_Printer::dialog_properties = "Properties...";
+/** [this text may be customized at run-time] */
const char *Fl_Printer::dialog_copyNo = "# Copies:";
+/** [this text may be customized at run-time] */
const char *Fl_Printer::dialog_print_button = "Print";
+/** [this text may be customized at run-time] */
const char *Fl_Printer::dialog_cancel_button = "Cancel";
+/** [this text may be customized at run-time] */
const char *Fl_Printer::dialog_print_to_file = "Print To File";
+/** [this text may be customized at run-time] */
const char *Fl_Printer::property_title = "Printer Properties";
+/** [this text may be customized at run-time] */
const char *Fl_Printer::property_pagesize = "Page Size:";
+/** [this text may be customized at run-time] */
const char *Fl_Printer::property_mode = "Output Mode:";
+/** [this text may be customized at run-time] */
const char *Fl_Printer::property_use = "Use";
+/** [this text may be customized at run-time] */
const char *Fl_Printer::property_save = "Save";
+/** [this text may be customized at run-time] */
const char *Fl_Printer::property_cancel = "Cancel";
+const char *Fl_Printer::device_type = "Fl_Printer";
+
+void Fl_Printer::set_current()
+{
+#ifdef __APPLE__
+ fl_gc = (CGContextRef)gc;
+#elif defined(WIN32)
+ fl_gc = (HDC)gc;
+#endif
+ this->Fl_Surface_Device::set_current();
+}
+
//
// End of "$Id$".
//