summaryrefslogtreecommitdiff
path: root/include/unotools/historyoptions.hxx
diff options
context:
space:
mode:
authorMichael Stahl <michael.stahl@allotropia.de>2022-04-25 14:53:33 +0200
committerMichael Stahl <michael.stahl@allotropia.de>2022-04-26 10:39:31 +0200
commit404c51f3664ffd4f7e2c1c8bb8a12ac70954fec2 (patch)
treeb38e7a5088e4c3cbd1b7ea447b03fb595bd8f1ba /include/unotools/historyoptions.hxx
parentc51ef466f736c9e0e192d2c7feeda0a39bca2011 (diff)
officecfg,unotools,framework,sfx2: store ReadOnly for recent docs
Add Office::Histories::HistoryItem::ReadOnly flag to configuration so that a document that was opened read-only isn't opened as editable from recent documents. Change-Id: I6985da287d3337a53a7e41e8e500421038eedb91 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133385 Tested-by: Jenkins Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
Diffstat (limited to 'include/unotools/historyoptions.hxx')
-rw-r--r--include/unotools/historyoptions.hxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/unotools/historyoptions.hxx b/include/unotools/historyoptions.hxx
index dccc8101cf89..1f743e062cb2 100644
--- a/include/unotools/historyoptions.hxx
+++ b/include/unotools/historyoptions.hxx
@@ -58,6 +58,7 @@ namespace SvtHistoryOptions
OUString sTitle;
OUString sPassword;
OUString sThumbnail;
+ bool isReadOnly = false;
};
UNOTOOLS_DLLPUBLIC std::vector< HistoryItem > GetList(EHistoryType eHistory);
@@ -72,7 +73,7 @@ namespace SvtHistoryOptions
*/
UNOTOOLS_DLLPUBLIC void AppendItem(EHistoryType eHistory,
const OUString& sURL, const OUString& sFilter, const OUString& sTitle,
- const std::optional<OUString>& sThumbnail);
+ const std::optional<OUString>& sThumbnail, std::optional<bool> oIsReadOnly);
/** Delete item from the specified list.
*/