summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSamuel Mehrbrodt <s.mehrbrodt@gmail.com>2013-04-30 20:13:30 +0200
committerJan Holesovsky <kendy@suse.cz>2013-05-02 09:04:18 +0000
commit2092f8810a20938a0d0dbf5364c850a6ad9981ad (patch)
treefce41e270f708771500259c218a96f481c7395ce /include
parent802a87e181dc8b372f247dd5ca7138bd6bd875a1 (diff)
Show only filename in "Recent Files" list
As discussed here: http://nabble.documentfoundation.org/Libreoffice-ux-advise-Recent-files-dropdown-td4052945.html#a4052996 The changes are (inspired by Gedit): * Display only the filename, not the (abbreviated) path * Show the protocol name before the file, if not local (e.g. "ftp: myfile.odt") * After the keyboard shortcut (a number from 1 to 10) display a '.' instead of a ':' (because the protocol has a ':') * FIX: Display whitespace as whitespace, not "%20" Change-Id: I47472c901aa866adb76c7c7ab36bc871f82ad8df Reviewed-on: https://gerrit.libreoffice.org/3700 Reviewed-by: Jan Holesovsky <kendy@suse.cz> Tested-by: Jan Holesovsky <kendy@suse.cz>
Diffstat (limited to 'include')
-rw-r--r--include/tools/urlobj.hxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/tools/urlobj.hxx b/include/tools/urlobj.hxx
index fef9f469c359..8905334e7e9f 100644
--- a/include/tools/urlobj.hxx
+++ b/include/tools/urlobj.hxx
@@ -484,6 +484,14 @@ public:
*/
static OUString GetScheme(INetProtocol eTheScheme);
+ /** Return the a human-readable name for a given scheme.
+
+ @param eTheScheme One of the supported URL schemes.
+
+ @return The protocol name of URLs of the given scheme.
+ */
+ static OUString GetSchemeName(INetProtocol eTheScheme);
+
static inline INetProtocol CompareProtocolScheme(const OString&
rTheAbsURIRef)
{ return CompareProtocolScheme(extend(rTheAbsURIRef)); }