summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--FL/Fl_PSfile_Device.H21
-rw-r--r--src/Fl_PS_Printer.cxx2
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