wxMaxima
Loading...
Searching...
No Matches
pdfbookmark.h
Go to the documentation of this file.
1
2// Name: pdfbookmark.h
3// Purpose:
4// Author: Ulrich Telle
5// Created: 2009-06-24
6// Copyright: (c) Ulrich Telle
7// Licence: wxWindows licence
9
11
12#ifndef _PDF_BOOKMARK_H_
13#define _PDF_BOOKMARK_H_
14
15// wxWidgets headers
16#include <wx/string.h>
17
18// wxPdfDocument headers
19#include "wx/pdfdocdef.h"
20
23class WXDLLIMPEXP_PDFDOC wxPdfBookmark
24{
25public:
27
33 wxPdfBookmark(const wxString& txt, int level, double y, int page);
34
36 virtual ~wxPdfBookmark();
37
39
42 wxString GetText() { return m_text; }
43
45
48 int GetLevel() { return m_level; }
49
51
54 double GetY() { return m_y; }
55
57
60 int GetPage() { return m_page; }
61
63
66 void SetParent(int parent) { m_parent = parent; }
67
69
72 int GetParent() { return m_parent; }
73
75
78 void SetPrev(int prev) { m_prev = prev; }
79
81
84 int GetPrev() { return m_prev; }
85
87
90 void SetNext(int next) { m_next = next; }
91
93
96 int GetNext() { return m_next; }
97
99
102 void SetFirst(int first) { m_first = first; }
103
105
108 int GetFirst() { return m_first; }
109
111
114 void SetLast(int last) { m_last = last; }
115
117
120 int GetLast() { return m_last; }
121
122private:
123 wxString m_text;
124 int m_level;
125 double m_y;
126 int m_page;
127 int m_parent;
128 int m_prev;
129 int m_next;
130 int m_first;
131 int m_last;
132};
133
134#endif
Class representing bookmarks for defining the document's outline. (For internal use only)
Definition: pdfbookmark.h:24
void SetParent(int parent)
Set the parent of the bookmark.
Definition: pdfbookmark.h:66
int GetFirst()
Get first bookmark.
Definition: pdfbookmark.h:108
int GetPrev()
Get previous bookmark.
Definition: pdfbookmark.h:84
void SetLast(int last)
Set last bookmark.
Definition: pdfbookmark.h:114
void SetNext(int next)
Set next bookmark.
Definition: pdfbookmark.h:90
wxString GetText()
Get the bookmark text.
Definition: pdfbookmark.h:42
int GetLast()
Get last bookmark.
Definition: pdfbookmark.h:120
void SetPrev(int prev)
Set previous bookmark.
Definition: pdfbookmark.h:78
int GetLevel()
Get the associated level.
Definition: pdfbookmark.h:48
int GetParent()
Get the parent of the bookmark.
Definition: pdfbookmark.h:72
double GetY()
Get the Y offset of the bookmark.
Definition: pdfbookmark.h:54
int GetNext()
Get next bookmark.
Definition: pdfbookmark.h:96
int GetPage()
Get the page number of the bookmark.
Definition: pdfbookmark.h:60
void SetFirst(int first)
Set first bookmark.
Definition: pdfbookmark.h:102
Compile time switches for the wxPdfDocument component.