11#ifndef _PDF_PRIVATE_STRUCTURE_H_
12#define _PDF_PRIVATE_STRUCTURE_H_
38 for (
size_t j = 0; j <
m_kids.size(); ++j)
40 delete m_kids[j].m_element;
47 Kid kid = { child, 0, 0 };
54 Kid kid = { NULL, page, mcid };
61 for (
size_t j = 0; j <
m_kids.size(); ++j)
63 if (
m_kids[j].m_element == NULL)
138 std::vector<wxPdfStructElement*>& seqs =
m_parentTree[page];
139 int mcid = (int) seqs.size();
One node of the structure tree (internal)
Definition: private_structure.h:21
int GetFirstPage() const
Page number of the first marked-content sequence of this element itself, 0 if none.
Definition: private_structure.h:59
std::vector< Kid > m_kids
kids in logical (reading) order
Definition: private_structure.h:73
void AddMarkedContent(int page, int mcid)
Append a marked-content sequence.
Definition: private_structure.h:52
wxPdfStructElement * m_parent
parent element, NULL for the root
Definition: private_structure.h:72
void AddChild(wxPdfStructElement *child)
Append a child element (takes ownership)
Definition: private_structure.h:45
wxPdfTag m_tag
properties of the element
Definition: private_structure.h:71
int m_objId
PDF object number, assigned when writing.
Definition: private_structure.h:74
int m_fileSpecObjId
object number of the MathML file specification, 0 if none
Definition: private_structure.h:75
Description of a logical structure element ("tag") of a tagged PDF document.
Definition: pdfstructure.h:80
State of the tagging machinery of one document (internal)
Definition: private_structure.h:101
int m_paginationDepth
0 while page header or footer is written
Definition: private_structure.h:149
wxPdfStructElement * m_current
innermost open element
Definition: private_structure.h:146
int NewMcid(int page)
Register a new marked-content sequence for the current element on a page; returns its MCID.
Definition: private_structure.h:136
wxPdfStructElement * m_root
implicit Document element
Definition: private_structure.h:145
int m_artifactDepth
nesting depth of BeginArtifact()
Definition: private_structure.h:148
int GetDepth() const
Number of open structure elements (excluding the implicit Document root)
Definition: private_structure.h:125
MarkedContent m_open
currently open marked-content sequence
Definition: private_structure.h:147
std::map< int, std::vector< wxPdfStructElement * > > m_parentTree
For each page (1-based) the structure element of each MCID (index = MCID)
Definition: private_structure.h:152
MarkedContent
Kind of the marked-content sequence currently open on the page.
Definition: private_structure.h:105
@ MC_NONE
nothing open; the next content opens a sequence
Definition: private_structure.h:106
@ MC_SUSPENDED
no sequence open, and none must be opened (end of page)
Definition: private_structure.h:109
@ MC_ARTIFACT
artifact
Definition: private_structure.h:108
@ MC_CONTENT
content of a structure element
Definition: private_structure.h:107
Description of structure elements for tagged (accessible) PDF.
A kid of a structure element: either a child element or a marked-content sequence.
Definition: private_structure.h:25
int m_page
page number (1-based) of the marked-content sequence
Definition: private_structure.h:27
int m_mcid
marked-content identifier on that page
Definition: private_structure.h:28
wxPdfStructElement * m_element
child element, or NULL for a marked-content reference
Definition: private_structure.h:26