summaryrefslogtreecommitdiff
path: root/src/gmdocument.h
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-10-25 22:10:04 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-10-25 22:10:04 +0300
commitb4e13bb58f644276469a69c4bd93e22381aa0002 (patch)
tree476693d897b2ac0f26b263bb871f65a2140c6637 /src/gmdocument.h
parentb80c958840a3ac0f824de3ae12717963ba679b20 (diff)
Document presentation warnings
Warn the user about missing glyphs and potentially unsupported ANSI escapes. TODO: Site-specific setting for dismissed warning; fonts preference about missing glyph warnings.
Diffstat (limited to 'src/gmdocument.h')
-rw-r--r--src/gmdocument.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gmdocument.h b/src/gmdocument.h
index e010ad43..0c24302f 100644
--- a/src/gmdocument.h
+++ b/src/gmdocument.h
@@ -172,6 +172,11 @@ iRangecc findLoc_GmRun (const iGmRun *, iInt2 pos);
172iDeclareClass(GmDocument) 172iDeclareClass(GmDocument)
173iDeclareObjectConstruction(GmDocument) 173iDeclareObjectConstruction(GmDocument)
174 174
175enum iGmDocumentWarning {
176 ansiEscapes_GmDocumentWarning = iBit(1),
177 missingGlyphs_GmDocumentWarning = iBit(2),
178};
179
175/* 180/*
176enum iGmDocumentBanner { 181enum iGmDocumentBanner {
177 none_GmDocumentBanner, 182 none_GmDocumentBanner,
@@ -221,6 +226,7 @@ iInt2 size_GmDocument (const iGmDocument *);
221const iArray * headings_GmDocument (const iGmDocument *); /* array of GmHeadings */ 226const iArray * headings_GmDocument (const iGmDocument *); /* array of GmHeadings */
222const iString * source_GmDocument (const iGmDocument *); 227const iString * source_GmDocument (const iGmDocument *);
223size_t memorySize_GmDocument (const iGmDocument *); /* bytes */ 228size_t memorySize_GmDocument (const iGmDocument *); /* bytes */
229int warnings_GmDocument (const iGmDocument *);
224 230
225iRangecc findText_GmDocument (const iGmDocument *, const iString *text, const char *start); 231iRangecc findText_GmDocument (const iGmDocument *, const iString *text, const char *start);
226iRangecc findTextBefore_GmDocument (const iGmDocument *, const iString *text, const char *before); 232iRangecc findTextBefore_GmDocument (const iGmDocument *, const iString *text, const char *before);