summaryrefslogtreecommitdiff
path: root/tools
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 /tools
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 'tools')
-rw-r--r--tools/source/fsys/urlobj.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/source/fsys/urlobj.cxx b/tools/source/fsys/urlobj.cxx
index 2724b715d684..071ca7a31803 100644
--- a/tools/source/fsys/urlobj.cxx
+++ b/tools/source/fsys/urlobj.cxx
@@ -4192,6 +4192,12 @@ OUString INetURLObject::GetScheme(INetProtocol eTheScheme)
}
// static
+OUString INetURLObject::GetSchemeName(INetProtocol eTheScheme)
+{
+ return OUString::createFromAscii(getSchemeInfo(eTheScheme).m_pScheme);
+}
+
+// static
INetProtocol INetURLObject::CompareProtocolScheme(OUString const &
rTheAbsURIRef)
{