57#if QT_VERSION < QT_VERSION_CHECK(6,0,0)
114 ":HighlightRefColour",
130 ":InitiallyAvailable",
131 ":ProgramConnectionTag",
137 ":NoTokenActionSlots",
140 ":MultipleSelection",
149 ":OrigRefLineColour",
150 ":OrigRefFillColour",
203 ":GetAvailabilityStatus",
206 ":GetCursorPosition",
211 ":GetHighlightStatus",
212 ":GetInteractionStatus",
215 ":GetLastAnchorFired",
225 ":GetSelectionStatus",
253 ":SetCounterEndPosition",
254 ":SetCounterPosition",
255 ":SetCounterTrigger",
256 ":SetCursorPosition",
263 ":SetHighlightStatus",
264 ":SetInteractionStatus",
296 ":NewAbsoluteColour",
303 ":SetBackgroundColour",
307 ":SetFontAttributes",
308 ":SetVideoDecodeOffset",
309 ":GetVideoDecodeOffset",
312 ":SetBitmapDecodeOffset",
313 ":GetBitmapDecodeOffset",
314 ":SetSliderParameters",
330 {
"black", 0, 0, 0, 0 },
331 {
"transparent", 0, 0, 0, 255 },
332 {
"gray", 128, 128, 128, 0 },
333 {
"darkgray", 192, 192, 192, 0 },
334 {
"red", 255, 0, 0, 0 },
335 {
"darkred", 128, 0, 0, 0 },
336 {
"blue", 0, 0, 255, 0 },
337 {
"darkblue", 0, 0, 128, 0 },
338 {
"green", 0, 255, 0, 0 },
339 {
"darkgreen", 0, 128, 0, 0 },
340 {
"yellow", 255, 255, 0, 0 },
341 {
"cyan", 0, 255, 255, 0 },
342 {
"magenta", 255, 0, 255, 0 }
351 if (str.compare(
rchTagNames[i], Qt::CaseInsensitive) == 0)
362#if QT_VERSION < QT_VERSION_CHECK(6,0,0)
363static constexpr int MAX_ENUM { 30 };
399 Error(
"Malformed comment");
433 Error(
"Unrecognised tag");
458 Error(
"Unterminated string");
489 Error(
"Unterminated string");
504 Error(
"Malformed quoted printable string");
519 else if (
m_ch >=
'A' &&
m_ch <=
'F')
521 byte =
m_ch -
'A' + 10;
523 else if (
m_ch >=
'a' &&
m_ch <=
'f')
525 byte =
m_ch -
'a' + 10;
529 Error(
"Malformed quoted printable string");
539 else if (
m_ch >=
'A' &&
m_ch <=
'F')
541 byte +=
m_ch -
'A' + 10;
543 else if (
m_ch >=
'a' &&
m_ch <=
'f')
545 byte +=
m_ch -
'a' + 10;
549 Error(
"Malformed quoted printable string");
566 MHERROR(
"Base 64 string is not implemented");
570 MHERROR(
"3-byte hex constant is not implemented");
586 bool negative =
m_ch ==
'-';
592 if (m_ch < '0' || m_ch >
'9')
594 Error(
"Expected digit after '-'");
605 MHERROR(
"Hex constant is not implemented");
683 while ((isalpha(
m_ch) ||
m_ch ==
'-')
690 if (buff.compare(
"NULL", Qt::CaseInsensitive) == 0)
696 if (buff.compare(
"true", Qt::CaseInsensitive) == 0)
703 if (buff.compare(
"false", Qt::CaseInsensitive) == 0)
757 if (buff.compare(colour.m_name, Qt::CaseInsensitive) == 0)
769 Error(
"Unrecognised enumeration");
800 Error(
"Unknown character");
821 Error(
"Expected ':' after '{'");
968 Error(
"Expected '('");
1061 Error(
"Unexpected symbol");
@ C_NEW_GENERIC_OCTETSTRING
@ C_SET_COUNTER_END_POSITION
@ C_GET_LAST_ANCHOR_FIRED
@ C_NEW_GENERIC_CONTENT_REF
@ C_GET_INTERACTION_STATUS
@ C_SET_INTERACTION_STATUS
@ C_NEW_GENERIC_OBJECT_REF
@ C_GET_AVAILABILITY_STATUS
static constexpr ssize_t MAX_TAG_LENGTH
const std::array< const QString, 253 > rchTagNames
static int FindTag(const QString &str)
static constexpr ssize_t MAX_ENUM
static int GetEventType(const QString &str)
void Copy(const MHOctetString &str)
std::vector< uint8_t > m_string
MHParseNode * Parse() override
void Error(const char *str) const
static int GetStyle(const QString &str)
static int GetOrientation(const QString &str)
static int GetStartCorner(const QString &str)
static int GetLineOrientation(const QString &str)
static int GetJustification(const QString &str)