wxMaxima
Loading...
Searching...
No Matches
pdffontparser.h
Go to the documentation of this file.
1
2// Name: pdffontparser.h
3// Purpose:
4// Author: Ulrich Telle
5// Created: 2007-06-26
6// Copyright: (c) Ulrich Telle
7// Licence: wxWindows licence
9
11
12#ifndef _PDF_FONT_PARSER_H_
13#define _PDF_FONT_PARSER_H_
14
15// wxWidgets headers
16#include <wx/arrstr.h>
17#include <wx/string.h>
18#include <wx/stream.h>
19
20// wxPdfDocument headers
21#include "wx/pdfdocdef.h"
22
24class WXDLLIMPEXP_PDFDOC wxPdfFontParser
25{
26public:
29
31 virtual ~wxPdfFontParser();
32
34
37 void SeekI(int offset);
38
40
44 void SeekI(int offset, wxInputStream* stream);
45
47
50 int TellI();
51
53
57 int TellI(wxInputStream* stream);
58
60
63 void SkipBytes(int count);
64
66
70 void SkipBytes(int count, wxInputStream* stream);
71
73
76 int ReadInt();
77
79
82 short ReadShort();
83
85
88 unsigned short ReadUShort();
89
91
94 unsigned char ReadByte();
95
97
101 unsigned char ReadByte(wxInputStream* stream);
102
104
108 wxString ReadString(int length);
109
111
116 wxString ReadString(int length, wxInputStream* stream);
117
119
123 wxString ReadUnicodeString(int length);
124
126
130 short ReadShortLE(wxInputStream* stream);
131
133
137 unsigned short ReadUShortLE(wxInputStream* stream);
138
140
144 unsigned int ReadUIntLE(wxInputStream* stream);
145
147
151 wxString ReadString(wxInputStream& stream);
152
153protected:
154 wxString m_fileName;
155 wxString m_fontName;
156 wxInputStream* m_inFont;
157 wxString m_style;
158
159private:
160};
161
162#endif
Class representing font parsers.
Definition: pdffontparser.h:25
wxString m_fontName
Name of font.
Definition: pdffontparser.h:155
wxString m_style
Font style.
Definition: pdffontparser.h:157
wxInputStream * m_inFont
Font file input stream.
Definition: pdffontparser.h:156
wxString m_fileName
File name of the font file.
Definition: pdffontparser.h:154
Compile time switches for the wxPdfDocument component.