wxMaxima
Loading...
Searching...
No Matches
pdfstructure.h
Go to the documentation of this file.
1
2// Name: pdfstructure.h
3// Purpose: Description of logical structure elements for tagged PDF
4// Author: wxPdfDocument contributors
5// Created: 2026-11-23
6// Licence: wxWindows licence
8
10
11#ifndef _PDF_STRUCTURE_H_
12#define _PDF_STRUCTURE_H_
13
14// wxWidgets headers
15#include <wx/string.h>
16
17// wxPdfDocument headers
18#include "wx/pdfdocdef.h"
19
21
79class WXDLLIMPEXP_PDFDOC wxPdfTag
80{
81public:
83
87 explicit wxPdfTag(const wxString& structureType = wxS("Span"));
88
90 wxPdfTag& SetStructureType(const wxString& structureType);
91
93 const wxString& GetStructureType() const { return m_type; }
94
96 wxPdfTag& SetAltText(const wxString& altText) { m_altText = altText; return *this; }
97
99 const wxString& GetAltText() const { return m_altText; }
100
102 wxPdfTag& SetActualText(const wxString& actualText) { m_actualText = actualText; return *this; }
103
105 const wxString& GetActualText() const { return m_actualText; }
106
108 wxPdfTag& SetExpansion(const wxString& expansion) { m_expansion = expansion; return *this; }
109
111 const wxString& GetExpansion() const { return m_expansion; }
112
114 wxPdfTag& SetLanguage(const wxString& language) { m_language = language; return *this; }
115
117 const wxString& GetLanguage() const { return m_language; }
118
120 wxPdfTag& SetTitle(const wxString& title) { m_title = title; return *this; }
121
123 const wxString& GetTitle() const { return m_title; }
124
126
132 wxPdfTag& SetMathML(const wxString& mathML) { m_mathML = mathML; return *this; }
133
135 const wxString& GetMathML() const { return m_mathML; }
136
137private:
138 wxString m_type;
139 wxString m_altText;
140 wxString m_actualText;
141 wxString m_expansion;
142 wxString m_language;
143 wxString m_title;
144 wxString m_mathML;
145};
146
147#endif
Description of a logical structure element ("tag") of a tagged PDF document.
Definition: pdfstructure.h:80
const wxString & GetActualText() const
Get the replacement text.
Definition: pdfstructure.h:105
wxPdfTag & SetMathML(const wxString &mathML)
Set a MathML representation of the element content.
Definition: pdfstructure.h:132
const wxString & GetExpansion() const
Get the expanded form of an abbreviation.
Definition: pdfstructure.h:111
wxPdfTag & SetAltText(const wxString &altText)
Set the alternate description (/Alt)
Definition: pdfstructure.h:96
wxPdfTag & SetLanguage(const wxString &language)
Set the natural language of the element content (/Lang), e.g. "en-US".
Definition: pdfstructure.h:114
wxPdfTag & SetActualText(const wxString &actualText)
Set the replacement text (/ActualText)
Definition: pdfstructure.h:102
const wxString & GetTitle() const
Get the title of the element.
Definition: pdfstructure.h:123
const wxString & GetAltText() const
Get the alternate description.
Definition: pdfstructure.h:99
wxPdfTag & SetExpansion(const wxString &expansion)
Set the expanded form of an abbreviation (/E)
Definition: pdfstructure.h:108
const wxString & GetLanguage() const
Get the natural language of the element content.
Definition: pdfstructure.h:117
wxPdfTag & SetTitle(const wxString &title)
Set the title of the element (/T)
Definition: pdfstructure.h:120
const wxString & GetMathML() const
Get the MathML representation of the element content.
Definition: pdfstructure.h:135
const wxString & GetStructureType() const
Get the structure type.
Definition: pdfstructure.h:93
Compile time switches for the wxPdfDocument component.