1+ /* -*- mode: c++; c-basic-offset: 4 -*- */
2+
13/*
24 * Modified for use within matplotlib
35 * 5 July 2007
2729 * function. This both removes the hardcoding of output to go to stdout
2830 * and makes output thread-safe. Michael Droettboom [06-07-07]
2931 */
30- class TTStreamWriter {
32+ class TTStreamWriter
33+ {
3134 private:
32- // Private copy and assignment
33- TTStreamWriter& operator =(const TTStreamWriter& other);
34- TTStreamWriter (const TTStreamWriter& other);
35+ // Private copy and assignment
36+ TTStreamWriter& operator =(const TTStreamWriter& other);
37+ TTStreamWriter (const TTStreamWriter& other);
3538
3639 public:
37- TTStreamWriter () { }
38- virtual ~TTStreamWriter () { }
40+ TTStreamWriter () { }
41+ virtual ~TTStreamWriter () { }
3942
40- virtual void write (const char *) = 0;
43+ virtual void write (const char *) = 0;
4144
42- virtual void printf (const char * format, ...);
43- virtual void put_char (int val);
44- virtual void puts (const char * a);
45- virtual void putline (const char * a);
45+ virtual void printf (const char * format, ...);
46+ virtual void put_char (int val);
47+ virtual void puts (const char * a);
48+ virtual void putline (const char * a);
4649};
4750
48- class TTDictionaryCallback {
49- private:
50- // Private copy and assignment
51- TTDictionaryCallback& operator =(const TTStreamWriter& other);
52- TTDictionaryCallback (const TTStreamWriter& other);
51+ class TTDictionaryCallback
52+ {
53+ private:
54+ // Private copy and assignment
55+ TTDictionaryCallback& operator =(const TTStreamWriter& other);
56+ TTDictionaryCallback (const TTStreamWriter& other);
5357
54- public:
55- TTDictionaryCallback () { }
56- virtual ~TTDictionaryCallback () { }
58+ public:
59+ TTDictionaryCallback () { }
60+ virtual ~TTDictionaryCallback () { }
5761
58- virtual void add_pair (const char * key, const char * value) = 0;
62+ virtual void add_pair (const char * key, const char * value) = 0;
5963};
6064
6165void replace_newlines_with_spaces (char * a);
6266
6367/*
6468 * A simple class for all ttconv exceptions.
6569 */
66- class TTException {
67- const char * message;
68- TTException& operator =(const TTStreamWriter& other);
69- TTException (const TTStreamWriter& other);
70-
71- public:
72- TTException (const char * message_) : message(message_) { }
73- const char * getMessage () { return message; }
70+ class TTException
71+ {
72+ const char * message;
73+ TTException& operator =(const TTStreamWriter& other);
74+ TTException (const TTStreamWriter& other);
75+
76+ public:
77+ TTException (const char * message_) : message(message_) { }
78+ const char * getMessage ()
79+ {
80+ return message;
81+ }
7482};
7583
7684/*
@@ -89,11 +97,12 @@ class TTException {
8997
9098/* Do not change anything below this line. */
9199
92- enum font_type_enum {
93- PS_TYPE_3 = 3 ,
94- PS_TYPE_42 = 42 ,
95- PS_TYPE_42_3_HYBRID = 43 ,
96- PDF_TYPE_3 = -3
100+ enum font_type_enum
101+ {
102+ PS_TYPE_3 = 3 ,
103+ PS_TYPE_42 = 42 ,
104+ PS_TYPE_42_3_HYBRID = 43 ,
105+ PDF_TYPE_3 = -3
97106};
98107
99108/* routines in pprdrv_tt.c */
0 commit comments