sc: filter: rtf: add method "AddFont"
[LibreOffice.git] / include / unotools / historyoptions.hxx
blob088b2f51dc26f7612cab6cd4b6724dc07fded97f
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
19 #pragma once
21 #include <unotools/unotoolsdllapi.h>
22 #include <sal/types.h>
23 #include <rtl/ustring.hxx>
24 #include <vector>
25 #include <optional>
27 /// You can use these enum values to specify right history if you call our interface methods.
28 enum class EHistoryType
30 PickList,
31 HelpBookmarks
34 /** Collect information about history features.
36 Interface methods to get and set value of config key "org.openoffice.Office.Common/History/..."
38 key "PickList": The last used documents displayed in the file menu.
39 key "History": The last opened documents general.
41 namespace SvtHistoryOptions
44 /** Clear complete specified list.
46 @param eHistory select right history.
48 UNOTOOLS_DLLPUBLIC void Clear(EHistoryType eHistory);
50 /** Return the complete specified history list.
52 @param eHistory select right history.
53 @return A list of history items is returned.
55 struct HistoryItem
57 OUString sURL;
58 OUString sFilter;
59 OUString sTitle;
60 OUString sPassword;
61 OUString sThumbnail;
63 UNOTOOLS_DLLPUBLIC std::vector< HistoryItem > GetList(EHistoryType eHistory);
65 /** Append a new item to the specified list.
67 The oldest entry is deleted automatically when the size reaches the maximum.
69 @param eHistory select right history.
70 @param sURL URL to save in history
71 @param sFilter filter name to save in history
72 @param sTitle document title to save in history
74 UNOTOOLS_DLLPUBLIC void AppendItem(EHistoryType eHistory,
75 const OUString& sURL, const OUString& sFilter, const OUString& sTitle,
76 const std::optional<OUString>& sThumbnail);
78 /** Delete item from the specified list.
80 UNOTOOLS_DLLPUBLIC void DeleteItem(EHistoryType eHistory, const OUString& sURL);
83 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */