The Fl_Paged_Device destructor is made public instead of protected to ease the use of custom

Fl_Paged_Device subclasses at the application level. 
This is protected by #if FLTK_ABI_VERSION >= 10302

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9263 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Manolo Gouy 2012-03-04 18:24:38 +00:00
parent 5237b2bc76
commit 4e3f9e2ab3

View File

@ -107,9 +107,15 @@ protected:
int y_offset;
/** \brief The constructor */
Fl_Paged_Device() : Fl_Surface_Device(NULL) {};
#if FLTK_ABI_VERSION >= 10302
public:
/** \brief The destructor */
virtual ~Fl_Paged_Device() {};
#else
/** \brief The destructor */
virtual ~Fl_Paged_Device() {};
public:
#endif // FLTK_ABI_VERSION
static const char *class_id;
const char *class_name() {return class_id;};
virtual int start_job(int pagecount, int *frompage = NULL, int *topage = NULL);