Add default value of 0 for 1st arg of member function Fl_Printer::begin_job().

This commit is contained in:
ManoloFLTK 2019-10-22 13:16:14 +02:00
parent 80f5740468
commit 4f8e692f30
6 changed files with 11 additions and 11 deletions

View File

@ -103,10 +103,10 @@ public:
static const page_format page_formats[NO_PAGE_FORMATS];
/** \brief The destructor */
virtual ~Fl_Paged_Device() {};
virtual int begin_job(int pagecount, int *frompage = NULL, int *topage = NULL);
virtual int begin_job(int pagecount = 0, int *frompage = NULL, int *topage = NULL);
/** Synonym of begin_job(int pagecount, int *frompage, int *topage).
For API compatibility with FLTK 1.3.x */
int start_job(int pagecount, int *frompage = NULL, int *topage = NULL) {return begin_job(pagecount, frompage, topage);}
int start_job(int pagecount = 0, int *frompage = NULL, int *topage = NULL) {return begin_job(pagecount, frompage, topage);}
virtual int begin_page(void);
/** Synonym of begin_page().
For API compatibility with FLTK 1.3.x */

View File

@ -268,11 +268,11 @@ public:
@param layout Desired page layout.
@return 0 if OK, 1 if user cancelled the file dialog, 2 if fopen failed on user-selected output file.
*/
int begin_job(int pagecount, enum Fl_Paged_Device::Page_Format format = Fl_Paged_Device::A4,
int begin_job(int pagecount = 0, enum Fl_Paged_Device::Page_Format format = Fl_Paged_Device::A4,
enum Fl_Paged_Device::Page_Layout layout = Fl_Paged_Device::PORTRAIT);
/** Synonym of begin_job().
For API compatibility with FLTK 1.3.x */
int start_job(int pagecount, enum Fl_Paged_Device::Page_Format format = Fl_Paged_Device::A4,
int start_job(int pagecount = 0, enum Fl_Paged_Device::Page_Format format = Fl_Paged_Device::A4,
enum Fl_Paged_Device::Page_Layout layout = Fl_Paged_Device::PORTRAIT) {
return begin_job(pagecount, format, layout);
}
@ -286,11 +286,11 @@ public:
@param layout Desired page layout.
@return always 0.
*/
int begin_job(FILE *ps_output, int pagecount, enum Fl_Paged_Device::Page_Format format = Fl_Paged_Device::A4,
int begin_job(FILE *ps_output, int pagecount = 0, enum Fl_Paged_Device::Page_Format format = Fl_Paged_Device::A4,
enum Fl_Paged_Device::Page_Layout layout = Fl_Paged_Device::PORTRAIT);
/** Synonym of begin_job().
For API compatibility with FLTK 1.3.x */
int start_job(FILE *ps_output, int pagecount, enum Fl_Paged_Device::Page_Format format = Fl_Paged_Device::A4,
int start_job(FILE *ps_output, int pagecount = 0, enum Fl_Paged_Device::Page_Format format = Fl_Paged_Device::A4,
enum Fl_Paged_Device::Page_Layout layout = Fl_Paged_Device::PORTRAIT) {
return begin_job(ps_output, pagecount, format, layout);
}

View File

@ -93,7 +93,7 @@ private:
public:
/** The constructor */
Fl_Printer(void);
int begin_job(int pagecount, int *frompage = NULL, int *topage = NULL);
int begin_job(int pagecount = 0, int *frompage = NULL, int *topage = NULL);
int begin_page(void);
int printable_rect(int *w, int *h);
void margins(int *left, int *top, int *right, int *bottom);

View File

@ -57,7 +57,7 @@ private:
PMPageFormat pageFormat;
PMPrintSettings printSettings;
Fl_Cocoa_Printer_Driver(void);
int begin_job(int pagecount, int *frompage = NULL, int *topage = NULL);
int begin_job(int pagecount = 0, int *frompage = NULL, int *topage = NULL);
int begin_page (void);
int printable_rect(int *w, int *h);
void margins(int *left, int *top, int *right, int *bottom);

View File

@ -28,7 +28,7 @@
/** Support for printing on the Unix/Linux platform */
class Fl_Posix_Printer_Driver : public Fl_PostScript_File_Device {
virtual int begin_job(int pagecount, int *frompage = NULL, int *topage = NULL);
virtual int begin_job(int pagecount = 0, int *frompage = NULL, int *topage = NULL);
};
#if HAVE_DLSYM && HAVE_DLFCN_H
@ -57,7 +57,7 @@ public:
GtkPrintJob *pjob; // data shared between begin_job() and end_job()
char tmpfilename[50]; // name of temporary PostScript file containing to-be-printed data
virtual int begin_job(int pagecount, int *frompage = NULL, int *topage = NULL);
virtual int begin_job(int pagecount = 0, int *frompage = NULL, int *topage = NULL);
virtual void end_job();
static bool probe_for_GTK();
static void *ptr_gtk; // points to the GTK dynamic lib or NULL

View File

@ -38,7 +38,7 @@ private:
int top_margin;
void absolute_printable_rect(int *x, int *y, int *w, int *h);
Fl_WinAPI_Printer_Driver(void);
int begin_job(int pagecount, int *frompage = NULL, int *topage = NULL);
int begin_job(int pagecount = 0, int *frompage = NULL, int *topage = NULL);
int begin_page (void);
int printable_rect(int *w, int *h);
void margins(int *left, int *top, int *right, int *bottom);