summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndreas Heinisch <andreas.heinisch@yahoo.de>2023-09-22 12:06:50 +0200
committerAndreas Heinisch <andreas.heinisch@yahoo.de>2023-09-25 14:15:37 +0200
commit71cae3a219ff1629368b8f324d0de89afc9445e9 (patch)
tree8cbd906d46a27f6093f4a9c33281502380c52ec7 /include
parent31ca96ff3075343c8d0c334fc77a9d0969986d77 (diff)
tdf#155698 - Start Center: Retain pinned items when clearing the list
Change-Id: Ife54845e020977cdb80a7fcc1fa63333afc17b32 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157169 Tested-by: Jenkins Reviewed-by: Andreas Heinisch <andreas.heinisch@yahoo.de>
Diffstat (limited to 'include')
-rw-r--r--include/unotools/historyoptions.hxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/unotools/historyoptions.hxx b/include/unotools/historyoptions.hxx
index b2388de2ad4b..3eb8162ee0b5 100644
--- a/include/unotools/historyoptions.hxx
+++ b/include/unotools/historyoptions.hxx
@@ -44,7 +44,7 @@ namespace SvtHistoryOptions
@param eHistory select right history.
*/
- UNOTOOLS_DLLPUBLIC void Clear(EHistoryType eHistory);
+ UNOTOOLS_DLLPUBLIC void Clear(EHistoryType eHistory, const bool bClearPinnedItems = true);
/** Return the complete specified history list.
@@ -81,7 +81,8 @@ namespace SvtHistoryOptions
/** Delete item from the specified list.
*/
- UNOTOOLS_DLLPUBLIC void DeleteItem(EHistoryType eHistory, const OUString& sURL);
+ UNOTOOLS_DLLPUBLIC void DeleteItem(EHistoryType eHistory, const OUString& sURL,
+ const bool bClearPinned = true);
// tdf#38742 - toggle pinned state of an item
UNOTOOLS_DLLPUBLIC void TogglePinItem(EHistoryType eHistory, const OUString& sURL);