From 2092f8810a20938a0d0dbf5364c850a6ad9981ad Mon Sep 17 00:00:00 2001 From: Samuel Mehrbrodt Date: Tue, 30 Apr 2013 20:13:30 +0200 Subject: 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 Tested-by: Jan Holesovsky --- tools/source/fsys/urlobj.cxx | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tools/source/fsys/urlobj.cxx') 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 @@ -4191,6 +4191,12 @@ OUString INetURLObject::GetScheme(INetProtocol eTheScheme) return OUString::createFromAscii(getSchemeInfo(eTheScheme).m_pPrefix); } +// static +OUString INetURLObject::GetSchemeName(INetProtocol eTheScheme) +{ + return OUString::createFromAscii(getSchemeInfo(eTheScheme).m_pScheme); +} + // static INetProtocol INetURLObject::CompareProtocolScheme(OUString const & rTheAbsURIRef) -- cgit