diff options
| author | Manolo Gouy <Manolo> | 2010-03-23 17:03:40 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2010-03-23 17:03:40 +0000 |
| commit | 7c8cdbd7ebd20adbd29ecb8f2a72a655d58ef2aa (patch) | |
| tree | 18a6b527cf3c3f486e487ffa545e9dbef0d55d1f | |
| parent | 8c67992b53a8ce0b896cf69d846947baab9bce8f (diff) | |
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
| -rw-r--r-- | FL/Fl_PSfile_Device.H | 21 | ||||
| -rw-r--r-- | src/Fl_PS_Printer.cxx | 2 |
2 files changed, 11 insertions, 12 deletions
diff --git a/FL/Fl_PSfile_Device.H b/FL/Fl_PSfile_Device.H index 60e4f724a..b8e571fb9 100644 --- a/FL/Fl_PSfile_Device.H +++ b/FL/Fl_PSfile_Device.H @@ -1,5 +1,5 @@ // -// "$Id:$" +// "$Id$" // // Support for graphics output to PostScript file for the Fast Light Tool Kit (FLTK). // @@ -41,10 +41,10 @@ class FL_EXPORT Fl_PSfile_Device : public Fl_Abstract_Printer { public: /** - @brief Possible page formats. + \brief Possible page formats. */ - enum Page_Format{ - A0 = 0, + enum Page_Format { + A0 = 0, A1, A2, A3, @@ -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$" // diff --git a/src/Fl_PS_Printer.cxx b/src/Fl_PS_Printer.cxx index c4fde68bc..d981ee2c9 100644 --- a/src/Fl_PS_Printer.cxx +++ b/src/Fl_PS_Printer.cxx @@ -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 |
