diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-09-17 07:24:23 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-09-17 07:24:23 +0300 |
commit | 115602cf34dfb2f151846673468a41f16712eb49 (patch) | |
tree | d6f4330d55799fdb18df2bcd5d96e2c04c8d51f5 /src/gmdocument.h | |
parent | a48aa018640b2d631f318585da23e4ec7f8e8bdc (diff) |
DocumentWidget: Permanent images
A dynamically generated page showing nothing but an image should not be treated the same way as an inline image. I.e., disallow hiding the image on an image page.
Diffstat (limited to 'src/gmdocument.h')
-rw-r--r-- | src/gmdocument.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/gmdocument.h b/src/gmdocument.h index 5e5f282e..23ce5e8a 100644 --- a/src/gmdocument.h +++ b/src/gmdocument.h | |||
@@ -44,13 +44,15 @@ enum iGmLinkFlags { | |||
44 | file_GmLinkFlag = iBit(4), | 44 | file_GmLinkFlag = iBit(4), |
45 | data_GmLinkFlag = iBit(5), | 45 | data_GmLinkFlag = iBit(5), |
46 | about_GmLinkFlag = iBit(6), | 46 | about_GmLinkFlag = iBit(6), |
47 | supportedProtocol_GmLinkFlag = 0x3f, | 47 | mailto_GmLinkFlag = iBit(7), |
48 | supportedProtocol_GmLinkFlag = 0xff, | ||
48 | remote_GmLinkFlag = iBit(9), | 49 | remote_GmLinkFlag = iBit(9), |
49 | userFriendly_GmLinkFlag = iBit(10), | 50 | userFriendly_GmLinkFlag = iBit(10), |
50 | imageFileExtension_GmLinkFlag = iBit(11), | 51 | imageFileExtension_GmLinkFlag = iBit(11), |
51 | audioFileExtension_GmLinkFlag = iBit(12), | 52 | audioFileExtension_GmLinkFlag = iBit(12), |
52 | content_GmLinkFlag = iBit(13), /* content visible below */ | 53 | content_GmLinkFlag = iBit(13), /* content visible below */ |
53 | visited_GmLinkFlag = iBit(14), /* in the history */ | 54 | visited_GmLinkFlag = iBit(14), /* in the history */ |
55 | permanent_GmLinkFlag = iBit(15), /* content cannot be dismissed; media link */ | ||
54 | }; | 56 | }; |
55 | 57 | ||
56 | struct Impl_GmImageInfo { | 58 | struct Impl_GmImageInfo { |
@@ -98,7 +100,8 @@ void setFormat_GmDocument (iGmDocument *, enum iGmDocumentFormat format); | |||
98 | void setWidth_GmDocument (iGmDocument *, int width, int forceBreakWidth); | 100 | void setWidth_GmDocument (iGmDocument *, int width, int forceBreakWidth); |
99 | void setUrl_GmDocument (iGmDocument *, const iString *url); | 101 | void setUrl_GmDocument (iGmDocument *, const iString *url); |
100 | void setSource_GmDocument (iGmDocument *, const iString *source, int width, int forceBreakWidth); | 102 | void setSource_GmDocument (iGmDocument *, const iString *source, int width, int forceBreakWidth); |
101 | void setImage_GmDocument (iGmDocument *, iGmLinkId linkId, const iString *mime, const iBlock *data); | 103 | void setImage_GmDocument (iGmDocument *, iGmLinkId linkId, const iString *mime, const iBlock *data, |
104 | iBool allowHide); | ||
102 | 105 | ||
103 | void reset_GmDocument (iGmDocument *); /* free images */ | 106 | void reset_GmDocument (iGmDocument *); /* free images */ |
104 | 107 | ||