From ec913f9549ed6fcdcb7306214594227337d274e0 Mon Sep 17 00:00:00 2001 From: Fridrich Štrba Date: Sun, 28 Jul 2013 13:53:02 +0200 Subject: Make AddToRecentDocumentList aware of the DocumentService MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This information helps to map a document with an application ID needed for Windows 7 shell integration. (cherry picked from commit a9ae9aefe8384a81dd79827cb76daa9ed8b58dbc) Conflicts: helpcontent2 Change-Id: I1224f566037ab7597a29b16f310f93d9f5441cce WaE: unused rDocumentService in one ifdef branch Change-Id: I542cf23c8077d9f867a2d890dc326465fce8c3a3 (cherry picked from commit 0354b4335b5c4fcf65d954e03116c44aabe7fa1d) Reviewed-on: https://gerrit.libreoffice.org/5161 Reviewed-by: Luboš Luňák Tested-by: Luboš Luňák --- sfx2/source/doc/objstor.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sfx2/source/doc/objstor.cxx') diff --git a/sfx2/source/doc/objstor.cxx b/sfx2/source/doc/objstor.cxx index c57c79a45549..660b843ce1f1 100644 --- a/sfx2/source/doc/objstor.cxx +++ b/sfx2/source/doc/objstor.cxx @@ -2108,7 +2108,8 @@ void SfxObjectShell::AddToRecentlyUsedList() { const SfxFilter* pOrgFilter = pMedium->GetOrigFilter(); Application::AddToRecentDocumentList( aUrl.GetURLNoPass( INetURLObject::NO_DECODE ), - (pOrgFilter) ? pOrgFilter->GetMimeType() : OUString() ); + (pOrgFilter) ? pOrgFilter->GetMimeType() : OUString(), + (pOrgFilter) ? pOrgFilter->GetServiceName() : OUString() ); } } -- cgit