Go to the documentation of this file.
29 #include <FL/Fl_Pixmap.H>
30 #include <FL/Fl_RGB_Image.H>
31 #include <FL/Fl_Bitmap.H>
33 #if !(defined(__APPLE__) || defined(WIN32))
39 #if defined(__APPLE__) || defined(WIN32) || defined(FL_DOXYGEN)
57 PMPrintSession printSession;
58 PMPageFormat pageFormat;
59 PMPrintSettings printSettings;
67 void absolute_printable_rect(
int *x,
int *y,
int *w,
int *h);
73 static const char *class_id;
75 int start_job(
int pagecount,
int *frompage = NULL,
int *topage = NULL);
78 void margins(
int *left,
int *top,
int *right,
int *bottom);
81 void scale (
float scale_x,
float scale_y = 0.);
96 #if !(defined(__APPLE__) || defined(WIN32) )
110 static const char *class_id;
112 int start_job(
int pages,
int *firstpage = NULL,
int *lastpage = NULL);
178 static const char *class_id;
182 int start_job(
int pagecount,
int *frompage = NULL,
int *topage = NULL);
185 void margins(
int *left,
int *top,
int *right,
int *bottom);
186 void origin(
int *x,
int *y);
187 void origin(
int x,
int y);
188 void scale(
float scale_x,
float scale_y = 0.);
225 #if defined(WIN32) || defined(__APPLE__)
232 #endif // Fl_Printer_H
const char * class_name()
Returns the name of the class of this object.
Definition: Fl_Printer.H:74
virtual int start_page(void)
Starts a new printed page.
Definition: Fl_Paged_Device.cxx:170
static const char * dialog_range
[this text may be customized at run-time]
Definition: Fl_Printer.H:206
static const char * property_cancel
[this text may be customized at run-time]
Definition: Fl_Printer.H:222
virtual int printable_rect(int *w, int *h)
Computes the width and height of the printable area of the page.
Definition: Fl_Paged_Device.cxx:180
virtual int start_job(int pagecount, int *frompage=NULL, int *topage=NULL)
Starts a print job.
Definition: Fl_Paged_Device.cxx:161
declaration of classes Fl_PostScript_Graphics_Driver, Fl_PostScript_File_Device.
static const char * dialog_properties
[this text may be customized at run-time]
Definition: Fl_Printer.H:212
int printable_rect(int *w, int *h)
Computes the width and height of the printable area of the page.
Fl_PostScript_Printer(void)
The constructor.
Definition: Fl_Printer.H:108
To send graphical output to a PostScript file.
Definition: Fl_PostScript.H:226
void origin(int *x, int *y)
Computes the page coordinates of the current origin of graphics functions.
~Fl_System_Printer(void)
The destructor.
static const char * dialog_pages
[this text may be customized at run-time]
Definition: Fl_Printer.H:209
void rotate(float angle)
Rotates the graphics operations relatively to paper.
int start_job(int pages, int *firstpage=NULL, int *lastpage=NULL)
Starts a print job.
Definition: Fl_PostScript.cxx:1558
static const char * dialog_all
[this text may be customized at run-time]
Definition: Fl_Printer.H:208
virtual void untranslate(void)
Undoes the effect of a previous translate() call.
Definition: Fl_Paged_Device.cxx:254
void untranslate(void)
Undoes the effect of a previous translate() call.
static const char * property_pagesize
[this text may be customized at run-time]
Definition: Fl_Printer.H:218
virtual void end_job(void)
To be called at the end of a print job.
Definition: Fl_Paged_Device.cxx:240
virtual void scale(float scale_x, float scale_y=0.)
Changes the scaling of page coordinates.
Definition: Fl_Paged_Device.cxx:219
Print support under MSWindows and Mac OS.
Definition: Fl_Printer.H:47
virtual void origin(int x, int y)
Sets the position in page coordinates of the origin of graphics functions.
Definition: Fl_Paged_Device.cxx:206
void set_current(void)
Make this surface the current drawing surface.
Definition: Fl_Printer.cxx:183
static const char * property_save
[this text may be customized at run-time]
Definition: Fl_Printer.H:221
int start_job(int pagecount, int *frompage=NULL, int *topage=NULL)
Starts a print job.
utility header to pull drawing functions together
void origin(int x, int y)
Sets the position in page coordinates of the origin of graphics functions.
This widget produces an actual window.
Definition: Fl_Window.H:57
Represents page-structured drawing surfaces.
Definition: Fl_Paged_Device.H:38
virtual void print_window_part(Fl_Window *win, int x, int y, int w, int h, int delta_x=0, int delta_y=0)
Prints a rectangular part of an on-screen window.
Definition: Fl_Paged_Device.cxx:129
void scale(float scale_x, float scale_y=0.)
Changes the scaling of page coordinates.
static const char * dialog_cancel_button
[this text may be customized at run-time]
Definition: Fl_Printer.H:215
void margins(int *left, int *top, int *right, int *bottom)
Computes the dimensions of margins that lie between the printable page area and the full page.
Fl_Graphics_Driver * driver()
Returns the graphics driver of this drawing surface.
Definition: Fl_Device.H:571
static const char * property_mode
[this text may be customized at run-time]
Definition: Fl_Printer.H:219
static const char * dialog_print_button
[this text may be customized at run-time]
Definition: Fl_Printer.H:214
void translate(int x, int y)
Translates the current graphics origin accounting for the current rotation.
virtual void set_current(void)
Make this surface the current drawing surface.
Definition: Fl_Device.cxx:44
const char * class_name()
Returns the name of the class of this object.
Definition: Fl_Printer.H:179
A virtual class subclassed for each graphics driver FLTK uses.
Definition: Fl_Device.H:110
void end_job(void)
To be called at the end of a print job.
static const char * dialog_to
[this text may be customized at run-time]
Definition: Fl_Printer.H:211
virtual void rotate(float angle)
Rotates the graphics operations relatively to paper.
Definition: Fl_Paged_Device.cxx:228
virtual void print_widget(Fl_Widget *widget, int delta_x=0, int delta_y=0)
Draws the widget on the printed page.
Definition: Fl_Paged_Device.cxx:40
Print support under Unix/Linux.
Definition: Fl_Printer.H:104
static const char * dialog_copies
[this text may be customized at run-time]
Definition: Fl_Printer.H:207
static const char * dialog_title
[this text may be customized at run-time]
Definition: Fl_Printer.H:204
static const char * property_title
[this text may be customized at run-time]
Definition: Fl_Printer.H:217
static const char * dialog_copyNo
[this text may be customized at run-time]
Definition: Fl_Printer.H:213
static const char * dialog_print_to_file
[this text may be customized at run-time]
Definition: Fl_Printer.H:216
declaration of class Fl_Paged_Device.
OS-independent print support.
Definition: Fl_Printer.H:176
virtual int end_page(void)
To be called at the end of each page.
Definition: Fl_Paged_Device.cxx:235
virtual void translate(int x, int y)
Translates the current graphics origin accounting for the current rotation.
Definition: Fl_Paged_Device.cxx:249
static const char * dialog_from
[this text may be customized at run-time]
Definition: Fl_Printer.H:210
int start_page(void)
Starts a new printed page.
Fl_System_Printer(void)
The constructor.
const char * class_name()
Returns the name of the class of this object.
Definition: Fl_Printer.H:111
static const char * dialog_printer
[this text may be customized at run-time]
Definition: Fl_Printer.H:205
int end_page(void)
To be called at the end of each page.
static const char * property_use
[this text may be customized at run-time]
Definition: Fl_Printer.H:220
virtual void margins(int *left, int *top, int *right, int *bottom)
Computes the dimensions of margins that lie between the printable page area and the full page.
Definition: Fl_Paged_Device.cxx:193