Skip to content

Commit

Permalink
Merged revisions 8826 via svnmerge from
Browse files Browse the repository at this point in the history
https://matplotlib.svn.sf.net/svnroot/matplotlib/branches/v1_0_maint

........
  r8826 | mdboom | 2010-12-10 13:13:22 -0500 (Fri, 10 Dec 2010) | 2 lines
  
  Improve indentation in ttconv.
........

svn path=/trunk/matplotlib/; revision=8827
  • Loading branch information
mdboom committed Dec 10, 2010
1 parent aaa6f4c commit d61ce31
Show file tree
Hide file tree
Showing 3 changed files with 864 additions and 664 deletions.
73 changes: 40 additions & 33 deletions ttconv/pprdrv.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,50 +29,56 @@
* function. This both removes the hardcoding of output to go to stdout
* and makes output thread-safe. Michael Droettboom [06-07-07]
*/
class TTStreamWriter {
class TTStreamWriter
{
private:
// Private copy and assignment
TTStreamWriter& operator=(const TTStreamWriter& other);
TTStreamWriter(const TTStreamWriter& other);
// Private copy and assignment
TTStreamWriter& operator=(const TTStreamWriter& other);
TTStreamWriter(const TTStreamWriter& other);

public:
TTStreamWriter() { }
virtual ~TTStreamWriter() { }
TTStreamWriter() { }
virtual ~TTStreamWriter() { }

virtual void write(const char*) = 0;
virtual void write(const char*) = 0;

virtual void printf(const char* format, ...);
virtual void put_char(int val);
virtual void puts(const char* a);
virtual void putline(const char* a);
virtual void printf(const char* format, ...);
virtual void put_char(int val);
virtual void puts(const char* a);
virtual void putline(const char* a);
};

class TTDictionaryCallback {
private:
// Private copy and assignment
TTDictionaryCallback& operator=(const TTStreamWriter& other);
TTDictionaryCallback(const TTStreamWriter& other);
class TTDictionaryCallback
{
private:
// Private copy and assignment
TTDictionaryCallback& operator=(const TTStreamWriter& other);
TTDictionaryCallback(const TTStreamWriter& other);

public:
TTDictionaryCallback() { }
virtual ~TTDictionaryCallback() { }
public:
TTDictionaryCallback() { }
virtual ~TTDictionaryCallback() { }

virtual void add_pair(const char* key, const char* value) = 0;
virtual void add_pair(const char* key, const char* value) = 0;
};

void replace_newlines_with_spaces(char* a);

/*
* A simple class for all ttconv exceptions.
*/
class TTException {
const char* message;
TTException& operator=(const TTStreamWriter& other);
TTException(const TTStreamWriter& other);

public:
TTException(const char* message_) : message(message_) { }
const char* getMessage() { return message; }
class TTException
{
const char* message;
TTException& operator=(const TTStreamWriter& other);
TTException(const TTStreamWriter& other);

public:
TTException(const char* message_) : message(message_) { }
const char* getMessage()
{
return message;
}
};

/*
Expand All @@ -91,11 +97,12 @@ class TTException {

/* Do not change anything below this line. */

enum font_type_enum {
PS_TYPE_3 = 3,
PS_TYPE_42 = 42,
PS_TYPE_42_3_HYBRID = 43,
PDF_TYPE_3 = -3
enum font_type_enum
{
PS_TYPE_3 = 3,
PS_TYPE_42 = 42,
PS_TYPE_42_3_HYBRID = 43,
PDF_TYPE_3 = -3
};

/* routines in pprdrv_tt.c */
Expand Down
Loading

0 comments on commit d61ce31

Please sign in to comment.