|
LibreOffice Module unotools (master) 1
|
Collect information about history features. More...
Classes | |
| struct | HistoryItem |
| Return the complete specified history list. More... | |
Functions | |
| void | Clear (EHistoryType eHistory) |
| Clear complete specified list. More... | |
| std::vector< HistoryItem > | GetList (EHistoryType eHistory) |
| void | AppendItem (EHistoryType eHistory, const OUString &sURL, const OUString &sFilter, const OUString &sTitle, const std::optional< OUString > &sThumbnail, ::std::optional< bool > const oIsReadOnly) |
| void | DeleteItem (EHistoryType eHistory, const OUString &sURL) |
| Delete item from the specified list. More... | |
| void | TogglePinItem (EHistoryType eHistory, const OUString &sURL) |
| UNOTOOLS_DLLPUBLIC void | AppendItem (EHistoryType eHistory, const OUString &sURL, const OUString &sFilter, const OUString &sTitle, const std::optional< OUString > &sThumbnail, std::optional< bool > oIsReadOnly) |
| Append a new item to the specified list. More... | |
Collect information about history features.
Interface methods to get and set value of config key "org.openoffice.Office.Common/History/..."
key "PickList": The last used documents displayed in the file menu. key "History": The last opened documents general.
| void SvtHistoryOptions::AppendItem | ( | EHistoryType | eHistory, |
| const OUString & | sURL, | ||
| const OUString & | sFilter, | ||
| const OUString & | sTitle, | ||
| const std::optional< OUString > & | sThumbnail, | ||
| ::std::optional< bool > const | oIsReadOnly | ||
| ) |
Definition at line 162 of file historyoptions.cxx.
References DBG_UNHANDLED_EXCEPTION, comphelper::ConfigurationHelper::flush(), GetCapacity(), GetCommonXCU(), GetConfig(), GetListAccess(), MoveItemToUnpinned(), nLength, PrependItem(), and TruncateList().
| UNOTOOLS_DLLPUBLIC void SvtHistoryOptions::AppendItem | ( | EHistoryType | eHistory, |
| const OUString & | sURL, | ||
| const OUString & | sFilter, | ||
| const OUString & | sTitle, | ||
| const std::optional< OUString > & | sThumbnail, | ||
| std::optional< bool > | oIsReadOnly | ||
| ) |
Append a new item to the specified list.
The oldest entry is deleted automatically when the size reaches the maximum.
| eHistory | select right history. |
| sURL | URL to save in history |
| sFilter | filter name to save in history |
| sTitle | document title to save in history |
| sThumbnail | base64 encoded thumbnail of the item |
| oIsReadOnly | item was opened editable or read-only |
| UNOTOOLS_DLLPUBLIC void SvtHistoryOptions::Clear | ( | EHistoryType | eHistory | ) |
Clear complete specified list.
| eHistory | select right history. |
Definition at line 71 of file historyoptions.cxx.
References DBG_UNHANDLED_EXCEPTION, comphelper::ConfigurationHelper::flush(), GetConfig(), and GetListAccess().
Referenced by DeleteItem().
| UNOTOOLS_DLLPUBLIC void SvtHistoryOptions::DeleteItem | ( | EHistoryType | eHistory, |
| const OUString & | sURL | ||
| ) |
Delete item from the specified list.
Definition at line 291 of file historyoptions.cxx.
References Clear(), DBG_UNHANDLED_EXCEPTION, comphelper::ConfigurationHelper::flush(), GetConfig(), GetListAccess(), i, and nLength.
| UNOTOOLS_DLLPUBLIC std::vector< HistoryItem > SvtHistoryOptions::GetList | ( | EHistoryType | eHistory | ) |
Definition at line 101 of file historyoptions.cxx.
References DBG_UNHANDLED_EXCEPTION, GetCapacity(), GetCommonXCU(), GetConfig(), GetListAccess(), SvtHistoryOptions::HistoryItem::isPinned, SvtHistoryOptions::HistoryItem::isReadOnly, nLength, SvtHistoryOptions::HistoryItem::sFilter, SvtHistoryOptions::HistoryItem::sPassword, SvtHistoryOptions::HistoryItem::sThumbnail, SvtHistoryOptions::HistoryItem::sTitle, SvtHistoryOptions::HistoryItem::sURL, and TruncateList().
| UNOTOOLS_DLLPUBLIC void SvtHistoryOptions::TogglePinItem | ( | EHistoryType | eHistory, |
| const OUString & | sURL | ||
| ) |
Definition at line 353 of file historyoptions.cxx.
References DBG_UNHANDLED_EXCEPTION, GetConfig(), GetListAccess(), MoveItemToUnpinned(), and PrependItem().