diff options
author | Pierre Sauter <pierre.sauter@stwm.de> | 2015-12-01 17:28:48 +0000 |
---|---|---|
committer | Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> | 2015-12-07 13:07:32 +0000 |
commit | 1a032dcfebc2702f0612c470d6b9c3e3cf4fb637 (patch) | |
tree | f4c8996b73d19ff95fa77e71cd32b71ecd186379 /sfx2/source/control | |
parent | 0abfcb735e60757ee64aa6d0fbb1b601c29813f3 (diff) |
tdf#74834 Expert Configuration option to disable thumbnails in StartCenter
If Office::Common::History::RecentDocsThumbnail is set to false, no new thumbnails
will be created and stored to registrymodifications.xcu. Existing thumbnails in
registrymodifications.xcu or the documents will not be read and displayed.
Change-Id: If9527aa0d336a6b77b4c9bb0cc09143ffa1725d8
Reviewed-on: https://gerrit.libreoffice.org/20338
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Diffstat (limited to 'sfx2/source/control')
-rw-r--r-- | sfx2/source/control/recentdocsview.cxx | 3 | ||||
-rw-r--r-- | sfx2/source/control/recentdocsviewitem.cxx | 5 |
2 files changed, 6 insertions, 2 deletions
diff --git a/sfx2/source/control/recentdocsview.cxx b/sfx2/source/control/recentdocsview.cxx index e4f59320ba33..55f1c07fcbad 100644 --- a/sfx2/source/control/recentdocsview.cxx +++ b/sfx2/source/control/recentdocsview.cxx @@ -182,7 +182,8 @@ void RecentDocsView::Reload() a >>= aURL; else if (rRecentEntry[j].Name == "Title") a >>= aTitle; - else if (rRecentEntry[j].Name == "Thumbnail") + //fdo#74834: only load thumbnail if the corresponding option is not disabled in the configuration + else if (rRecentEntry[j].Name == "Thumbnail" && officecfg::Office::Common::History::RecentDocsThumbnail::get()) { OUString aBase64; a >>= aBase64; diff --git a/sfx2/source/control/recentdocsviewitem.cxx b/sfx2/source/control/recentdocsviewitem.cxx index ea5169f1a959..abf4325021f0 100644 --- a/sfx2/source/control/recentdocsviewitem.cxx +++ b/sfx2/source/control/recentdocsviewitem.cxx @@ -15,6 +15,7 @@ #include <drawinglayer/primitive2d/discretebitmapprimitive2d.hxx> #include <drawinglayer/processor2d/baseprocessor2d.hxx> #include <i18nutil/paper.hxx> +#include <officecfg/Office/Common.hxx> #include <sfx2/recentdocsview.hxx> #include <sfx2/sfxresid.hxx> #include <sfx2/templateabstractview.hxx> @@ -50,7 +51,9 @@ RecentDocsViewItem::RecentDocsViewItem(ThumbnailView &rView, const OUString &rUR aTitle = aURLObj.GetName(INetURLObject::DECODE_WITH_CHARSET); BitmapEx aThumbnail(rThumbnail); - if (aThumbnail.IsEmpty() && aURLObj.GetProtocol() == INetProtocol::File) + //fdo#74834: only load thumbnail if the corresponding option is not disabled in the configuration + if (aThumbnail.IsEmpty() && aURLObj.GetProtocol() == INetProtocol::File && + officecfg::Office::Common::History::RecentDocsThumbnail::get()) aThumbnail = ThumbnailView::readThumbnail(rURL); if (aThumbnail.IsEmpty()) |