diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-11-04 15:34:36 +0200 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-11-04 15:34:36 +0200 |
commit | b8b94803b540ec7c43192a42ea9860a6df13c6c4 (patch) | |
tree | 9ceddae2869cb80b91eccb3cd8c5614aae25e864 /src/gmdocument.h | |
parent | 94b0c2e7954bd5222f1909b07301da351d99d6f4 (diff) | |
parent | 882cef9d0d3818bd7d0d4abfb1100ce77ab24886 (diff) |
Merge branch 'dev' into work/v1.9
# Conflicts:
# src/lang.c
Diffstat (limited to 'src/gmdocument.h')
-rw-r--r-- | src/gmdocument.h | 22 |
1 files changed, 4 insertions, 18 deletions
diff --git a/src/gmdocument.h b/src/gmdocument.h index 444520c6..58fc3db3 100644 --- a/src/gmdocument.h +++ b/src/gmdocument.h | |||
@@ -120,10 +120,8 @@ enum iGmRunFlags { | |||
120 | decoration_GmRunFlag = iBit(1), /* not part of the source */ | 120 | decoration_GmRunFlag = iBit(1), /* not part of the source */ |
121 | startOfLine_GmRunFlag = iBit(2), | 121 | startOfLine_GmRunFlag = iBit(2), |
122 | endOfLine_GmRunFlag = iBit(3), | 122 | endOfLine_GmRunFlag = iBit(3), |
123 | // siteBanner_GmRunFlag = iBit(4), /* area reserved for the site banner */ | ||
124 | quoteBorder_GmRunFlag = iBit(5), | 123 | quoteBorder_GmRunFlag = iBit(5), |
125 | wide_GmRunFlag = iBit(6), /* horizontally scrollable */ | 124 | wide_GmRunFlag = iBit(6), /* horizontally scrollable */ |
126 | // footer_GmRunFlag = iBit(7), | ||
127 | altText_GmRunFlag = iBit(8), | 125 | altText_GmRunFlag = iBit(8), |
128 | }; | 126 | }; |
129 | 127 | ||
@@ -177,13 +175,6 @@ enum iGmDocumentWarning { | |||
177 | missingGlyphs_GmDocumentWarning = iBit(2), | 175 | missingGlyphs_GmDocumentWarning = iBit(2), |
178 | }; | 176 | }; |
179 | 177 | ||
180 | /* | ||
181 | enum iGmDocumentBanner { | ||
182 | none_GmDocumentBanner, | ||
183 | siteDomain_GmDocumentBanner, | ||
184 | certificateWarning_GmDocumentBanner, | ||
185 | };*/ | ||
186 | |||
187 | enum iGmDocumentUpdate { | 178 | enum iGmDocumentUpdate { |
188 | partial_GmDocumentUpdate, /* appending more content */ | 179 | partial_GmDocumentUpdate, /* appending more content */ |
189 | final_GmDocumentUpdate, /* process all lines, including the last one if not terminated */ | 180 | final_GmDocumentUpdate, /* process all lines, including the last one if not terminated */ |
@@ -191,12 +182,13 @@ enum iGmDocumentUpdate { | |||
191 | 182 | ||
192 | void setThemeSeed_GmDocument (iGmDocument *, const iBlock *seed); | 183 | void setThemeSeed_GmDocument (iGmDocument *, const iBlock *seed); |
193 | void setFormat_GmDocument (iGmDocument *, enum iSourceFormat format); | 184 | void setFormat_GmDocument (iGmDocument *, enum iSourceFormat format); |
194 | //void setBanner_GmDocument (iGmDocument *, enum iGmDocumentBanner type); | 185 | void setWidth_GmDocument (iGmDocument *, int width, int canvasWidth); |
195 | void setWidth_GmDocument (iGmDocument *, int width, int outsideMargin); | 186 | iBool updateWidth_GmDocument (iGmDocument *, int width, int canvasWidth); |
196 | void redoLayout_GmDocument (iGmDocument *); | 187 | void redoLayout_GmDocument (iGmDocument *); |
188 | void invalidateLayout_GmDocument(iGmDocument *); /* will have to be redone later */ | ||
197 | iBool updateOpenURLs_GmDocument(iGmDocument *); | 189 | iBool updateOpenURLs_GmDocument(iGmDocument *); |
198 | void setUrl_GmDocument (iGmDocument *, const iString *url); | 190 | void setUrl_GmDocument (iGmDocument *, const iString *url); |
199 | void setSource_GmDocument (iGmDocument *, const iString *source, int width, int outsideMargin, | 191 | void setSource_GmDocument (iGmDocument *, const iString *source, int width, int canvasWidth, |
200 | enum iGmDocumentUpdate updateType); | 192 | enum iGmDocumentUpdate updateType); |
201 | void foldPre_GmDocument (iGmDocument *, uint16_t preId); | 193 | void foldPre_GmDocument (iGmDocument *, uint16_t preId); |
202 | 194 | ||
@@ -204,8 +196,6 @@ void updateVisitedLinks_GmDocument (iGmDocument *); /* check all links for | |||
204 | void invalidatePalette_GmDocument (iGmDocument *); | 196 | void invalidatePalette_GmDocument (iGmDocument *); |
205 | void makePaletteGlobal_GmDocument (const iGmDocument *); /* copies document colors to the global palette */ | 197 | void makePaletteGlobal_GmDocument (const iGmDocument *); /* copies document colors to the global palette */ |
206 | 198 | ||
207 | //void reset_GmDocument (iGmDocument *); /* free images */ | ||
208 | |||
209 | typedef void (*iGmDocumentRenderFunc)(void *, const iGmRun *); | 199 | typedef void (*iGmDocumentRenderFunc)(void *, const iGmRun *); |
210 | 200 | ||
211 | iMedia * media_GmDocument (iGmDocument *); | 201 | iMedia * media_GmDocument (iGmDocument *); |
@@ -219,10 +209,6 @@ const iGmRun * renderProgressive_GmDocument(const iGmDocument *d, const iGmRun | |||
219 | iRangei visRangeY, iGmDocumentRenderFunc render, | 209 | iRangei visRangeY, iGmDocumentRenderFunc render, |
220 | void *context); | 210 | void *context); |
221 | iInt2 size_GmDocument (const iGmDocument *); | 211 | iInt2 size_GmDocument (const iGmDocument *); |
222 | //const iGmRun * siteBanner_GmDocument (const iGmDocument *); | ||
223 | //iBool hasSiteBanner_GmDocument (const iGmDocument *); | ||
224 | //enum iGmDocumentBanner bannerType_GmDocument(const iGmDocument *); | ||
225 | //const iString * bannerText_GmDocument (const iGmDocument *); | ||
226 | const iArray * headings_GmDocument (const iGmDocument *); /* array of GmHeadings */ | 212 | const iArray * headings_GmDocument (const iGmDocument *); /* array of GmHeadings */ |
227 | const iString * source_GmDocument (const iGmDocument *); | 213 | const iString * source_GmDocument (const iGmDocument *); |
228 | size_t memorySize_GmDocument (const iGmDocument *); /* bytes */ | 214 | size_t memorySize_GmDocument (const iGmDocument *); /* bytes */ |