wxMaxima
Loading...
Searching...
No Matches
pdfcffindex.h
Go to the documentation of this file.
1
2// Name: pdfcffindex.h
3// Purpose:
4// Author: Ulrich Telle
5// Created: 2008-08-01
6// Copyright: (c) Ulrich Telle
7// Licence: wxWindows licence
9
11
12#ifndef _PDF_CFF_INDEX_H_
13#define _PDF_CFF_INDEX_H_
14
15// wxWidgets headers
16#include <wx/dynarray.h>
17#include <wx/mstream.h>
18
19// wxPdfDocument headers
20#include "wx/pdfdocdef.h"
21
23class WXDLLIMPEXP_PDFDOC wxPdfCffIndexElement
24{
25public:
27
32 wxPdfCffIndexElement(wxInputStream* buf, int offset, int length);
33
35
38 wxPdfCffIndexElement(wxMemoryOutputStream& buf);
39
41
44 wxPdfCffIndexElement(const char* str);
45
47 virtual ~wxPdfCffIndexElement();
48
51
53 wxPdfCffIndexElement& operator=(const wxPdfCffIndexElement& copy);
54
56
59 void SetBuffer(wxMemoryOutputStream& buf);
60
62
65 virtual void Emit(wxMemoryOutputStream& buffer);
66
68
71 bool IsCopy() { return m_delete; }
72
74
77 int GetOffset() { return m_offset; }
78
80
83 int GetLength() { return m_length; }
84
86
89 wxInputStream* GetBuffer() { return m_buf; }
90
91private:
92 int m_offset;
93 int m_length;
94 bool m_delete;
95 wxInputStream* m_buf;
96};
97
98WX_DECLARE_OBJARRAY(wxPdfCffIndexElement, wxPdfCffIndexArray);
99
100#endif
Class representing a CFF index element.
Definition: pdfcffindex.h:24
int GetOffset()
Get the offset of the index element.
Definition: pdfcffindex.h:77
bool IsCopy()
Check whether the stream buffer is a copy of another stream buffer.
Definition: pdfcffindex.h:71
int GetLength()
Get the length of the index element.
Definition: pdfcffindex.h:83
wxInputStream * GetBuffer()
Get the stream buffer.
Definition: pdfcffindex.h:89
Compile time switches for the wxPdfDocument component.