Going around Doxygen bug that made class Fl_PSfile_Device documented as a struct

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7319 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Manolo Gouy 2010-03-23 17:03:40 +00:00
parent 8c67992b53
commit 7c8cdbd7eb
2 changed files with 11 additions and 12 deletions

View File

@ -1,5 +1,5 @@
//
// "$Id:$"
// "$Id$"
//
// Support for graphics output to PostScript file for the Fast Light Tool Kit (FLTK).
//
@ -41,9 +41,9 @@
class FL_EXPORT Fl_PSfile_Device : public Fl_Abstract_Printer {
public:
/**
@brief Possible page formats.
\brief Possible page formats.
*/
enum Page_Format{
enum Page_Format {
A0 = 0,
A1,
A2,
@ -78,7 +78,7 @@ class FL_EXPORT Fl_PSfile_Device : public Fl_Abstract_Printer {
};
/**
@brief Possible page layouts.
\brief Possible page layouts.
*/
enum Page_Layout {PORTRAIT = 0, LANDSCAPE = 0x100, REVERSED = 0x200, ORIENTATION = 0x300};
@ -128,17 +128,16 @@ class FL_EXPORT Fl_PSfile_Device : public Fl_Abstract_Printer {
float angle;
int left_margin;
int top_margin;
protected:
struct page_format {
typedef struct page_format {
int width;
int height;
const char *name;
};
} page_format;
FILE *output;
double pw_, ph_;
static const struct page_format page_formats[NO_PAGE_FORMATS];
static const page_format page_formats[NO_PAGE_FORMATS];
uchar bg_r, bg_g, bg_b;
int start_postscript (int pagecount, enum Page_Format format, enum Page_Layout layout);
@ -290,5 +289,5 @@ class FL_EXPORT Fl_PSfile_Device : public Fl_Abstract_Printer {
#endif // Fl_PSfile_Device_H
//
// End of "$Id:$"
// End of "$Id$"
//

View File

@ -38,7 +38,7 @@
#include "print_panel.cxx"
#endif
const struct Fl_PSfile_Device::page_format Fl_PSfile_Device::page_formats[NO_PAGE_FORMATS] = { // order of enum Page_Format
const Fl_PSfile_Device::page_format Fl_PSfile_Device::page_formats[NO_PAGE_FORMATS] = { // order of enum Page_Format
// comes from appendix B of 5003.PPD_Spec_v4.3.pdf
// A* // index(Ai) = i