wxMaxima
Loading...
Searching...
No Matches
pdftemplate.h
Go to the documentation of this file.
1
2// Name: pdftemplate.h
3// Purpose:
4// Author: Ulrich Telle
5// Created: 2006-07-13
6// Copyright: (c) Ulrich Telle
7// Licence: wxWindows licence
9
11
12#ifndef _PDF_TEMPLATE_H_
13#define _PDF_TEMPLATE_H_
14
15// wxWidgets headers
16#include <wx/mstream.h>
17
18// wxPdfDocument headers
19#include "wx/pdfdocdef.h"
20#include "wx/pdfdocument.h"
21
22class WXDLLIMPEXP_FWD_PDFDOC wxPdfDocument;
23class WXDLLIMPEXP_FWD_PDFDOC wxPdfObject;
24class WXDLLIMPEXP_FWD_PDFDOC wxPdfParser;
25class WXDLLIMPEXP_FWD_PDFDOC wxPdfTemplate;
26
28class WXDLLIMPEXP_PDFDOC wxPdfTemplate
29{
30public:
32
35 wxPdfTemplate(int templateId);
36
38 virtual ~wxPdfTemplate();
39
41
44 int GetIndex() { return m_templateId; }
45
47
50 double GetX() { return m_x; }
51
53
56 double GetY() { return m_y; }
57
59
62 double GetWidth() { return m_w; }
63
65
68 double GetHeight() { return m_h; }
69
71
74 void SetObjIndex(int n) { m_n = n; }
75
77
80 int GetObjIndex() { return m_n; }
81
83
86 void SetParser(wxPdfParser* parser) { m_parser = parser; }
87
89
92 wxPdfParser* GetParser() { return m_parser; }
93
95
98 void SetResources(wxPdfObject* resources) { m_resources = resources; }
99
101
104 wxPdfObject* GetResources() { return m_resources; }
105
106private:
107 int m_templateId;
108 int m_n;
109 bool m_used;
110
111 double m_x;
112 double m_y;
113 double m_h;
114 double m_w;
115
116 wxPdfFontHashMap* m_fonts;
117 wxPdfImageHashMap* m_images;
118 wxPdfTemplatesMap* m_templates;
119 wxPdfExtGStateMap* m_extGStates;
120 wxPdfPatternMap* m_patterns;
121
122 wxPdfParser* m_parser;
123 wxPdfObject* m_resources;
124
125 int m_stateSave;
126 double m_xSave;
127 double m_ySave;
128 bool m_autoPageBreakSave;
129 double m_bMarginSave;
130 double m_tMarginSave;
131 double m_lMarginSave;
132 double m_rMarginSave;
133 double m_hSave;
134 double m_wSave;
135
136 wxMemoryOutputStream m_buffer;
137
138 friend class wxPdfDocument;
139};
140
141#endif
142
Class representing a PDF document.
Definition: pdfdocument.h:176
Class representing a base PDF object. (For internal use only)
Definition: pdfobjects.h:35
Class representing a PDF parser. (For internal use only)
Definition: pdfparser.h:239
Class representing a template (For internal use only)
Definition: pdftemplate.h:29
double GetWidth()
Get width of template.
Definition: pdftemplate.h:62
double GetHeight()
Get height of template.
Definition: pdftemplate.h:68
int GetIndex()
Get index of the template.
Definition: pdftemplate.h:44
double GetX()
Get X position of template.
Definition: pdftemplate.h:50
void SetParser(wxPdfParser *parser)
Set the associated parser.
Definition: pdftemplate.h:86
int GetObjIndex()
Get object index.
Definition: pdftemplate.h:80
void SetResources(wxPdfObject *resources)
Set the array of page resource objects.
Definition: pdftemplate.h:98
wxPdfParser * GetParser()
Get the associated parser.
Definition: pdftemplate.h:92
double GetY()
Get Y position of template.
Definition: pdftemplate.h:56
wxPdfObject * GetResources()
Get the array of page resource objects.
Definition: pdftemplate.h:104
void SetObjIndex(int n)
Set object index.
Definition: pdftemplate.h:74
Compile time switches for the wxPdfDocument component.
Interface of the wxPdfDocument class.