Kaydet (Commit) 79d7fc07 authored tarafından Jesús Corrius's avatar Jesús Corrius Kaydeden (comit) Andras Timar

fdo#35785 restore recent documents feature of the Windows 7 Start menu

See developer mailing list for discussion, subject "LibreOffice is one or
several applications?"

Reviewed-on: https://gerrit.libreoffice.org/3623Reviewed-by: 's avatarTor Lillqvist <tml@iki.fi>
Tested-by: 's avatarTor Lillqvist <tml@iki.fi>
Signed-off-by: 's avatarAndras Timar <atimar@suse.com>
üst ebb7e313
...@@ -35,6 +35,7 @@ ...@@ -35,6 +35,7 @@
#include <malloc.h> #include <malloc.h>
#define PACKVERSION(major,minor) MAKELONG(minor,major) #define PACKVERSION(major,minor) MAKELONG(minor,major)
#define APPUSERMODELID L"TheDocumentFoundation.LibreOffice"
#ifdef __MINGW32__ #ifdef __MINGW32__
......
...@@ -43,6 +43,5 @@ ...@@ -43,6 +43,5 @@
#define OFFICE_IMAGE_NAME _T("soffice") #define OFFICE_IMAGE_NAME _T("soffice")
extern _TCHAR APPLICATION_SWITCH[]; extern _TCHAR APPLICATION_SWITCH[];
extern LPCWSTR APPUSERMODELID;
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
...@@ -21,6 +21,4 @@ ...@@ -21,6 +21,4 @@
_TCHAR APPLICATION_SWITCH[] = _T( "--base" ); _TCHAR APPLICATION_SWITCH[] = _T( "--base" );
LPCWSTR APPUSERMODELID = L"TheDocumentFoundation.LibreOffice.Base";
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
...@@ -21,6 +21,4 @@ ...@@ -21,6 +21,4 @@
_TCHAR APPLICATION_SWITCH[] = _T( "--calc" ); _TCHAR APPLICATION_SWITCH[] = _T( "--calc" );
LPCWSTR APPUSERMODELID = L"TheDocumentFoundation.LibreOffice.Calc";
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
...@@ -21,6 +21,4 @@ ...@@ -21,6 +21,4 @@
_TCHAR APPLICATION_SWITCH[] = _T( "--draw" ); _TCHAR APPLICATION_SWITCH[] = _T( "--draw" );
LPCWSTR APPUSERMODELID = L"TheDocumentFoundation.LibreOffice.Draw";
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
...@@ -21,6 +21,4 @@ ...@@ -21,6 +21,4 @@
_TCHAR APPLICATION_SWITCH[] = _T( "--impress" ); _TCHAR APPLICATION_SWITCH[] = _T( "--impress" );
LPCWSTR APPUSERMODELID = L"TheDocumentFoundation.LibreOffice.Impress";
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
...@@ -21,6 +21,4 @@ ...@@ -21,6 +21,4 @@
_TCHAR APPLICATION_SWITCH[] = _T( "--math" ); _TCHAR APPLICATION_SWITCH[] = _T( "--math" );
LPCWSTR APPUSERMODELID = L"TheDocumentFoundation.LibreOffice.Math";
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
...@@ -21,6 +21,4 @@ ...@@ -21,6 +21,4 @@
_TCHAR APPLICATION_SWITCH[] = _T( "--web" ); _TCHAR APPLICATION_SWITCH[] = _T( "--web" );
LPCWSTR APPUSERMODELID = L"TheDocumentFoundation.LibreOffice.Writer";
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
...@@ -21,6 +21,4 @@ ...@@ -21,6 +21,4 @@
_TCHAR APPLICATION_SWITCH[] = _T( "--writer" ); _TCHAR APPLICATION_SWITCH[] = _T( "--writer" );
LPCWSTR APPUSERMODELID = L"TheDocumentFoundation.LibreOffice.Writer";
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
...@@ -93,7 +93,7 @@ RegistryItem gid_Regitem_Openoffice_Databasedocument_1_AppUserModelID ...@@ -93,7 +93,7 @@ RegistryItem gid_Regitem_Openoffice_Databasedocument_1_AppUserModelID
ComponentCondition = "VersionNT >= 601"; ComponentCondition = "VersionNT >= 601";
Subkey = "LibreOffice.DatabaseDocument.1"; Subkey = "LibreOffice.DatabaseDocument.1";
Name = "AppUserModelID"; Name = "AppUserModelID";
Value = "TheDocumentFoundation.LibreOffice.Base"; Value = "TheDocumentFoundation.LibreOffice";
End End
RegistryItem gid_Regitem_Openoffice_Databasedocument_1_FriendlyTypeName RegistryItem gid_Regitem_Openoffice_Databasedocument_1_FriendlyTypeName
......
...@@ -292,7 +292,7 @@ RegistryItem gid_Regitem_Soffice_Starcalcdocument_6_AppUserModelID ...@@ -292,7 +292,7 @@ RegistryItem gid_Regitem_Soffice_Starcalcdocument_6_AppUserModelID
ComponentCondition = "VersionNT >= 601"; ComponentCondition = "VersionNT >= 601";
Subkey = "soffice.StarCalcDocument.6"; Subkey = "soffice.StarCalcDocument.6";
Name = "AppUserModelID"; Name = "AppUserModelID";
Value = "TheDocumentFoundation.LibreOffice.Calc"; Value = "TheDocumentFoundation.LibreOffice";
End End
RegistryItem gid_Regitem_Soffice_Starcalcdocument_6_FriendlyTypeName RegistryItem gid_Regitem_Soffice_Starcalcdocument_6_FriendlyTypeName
...@@ -406,7 +406,7 @@ RegistryItem gid_Regitem_Soffice_Starcalctemplate_6_AppUserModelID ...@@ -406,7 +406,7 @@ RegistryItem gid_Regitem_Soffice_Starcalctemplate_6_AppUserModelID
ComponentCondition = "VersionNT >= 601"; ComponentCondition = "VersionNT >= 601";
Subkey = "soffice.StarCalcTemplate.6"; Subkey = "soffice.StarCalcTemplate.6";
Name = "AppUserModelID"; Name = "AppUserModelID";
Value = "TheDocumentFoundation.LibreOffice.Calc"; Value = "TheDocumentFoundation.LibreOffice";
End End
RegistryItem gid_Regitem_Soffice_Starcalctemplate_6_FriendlyTypeName RegistryItem gid_Regitem_Soffice_Starcalctemplate_6_FriendlyTypeName
...@@ -713,7 +713,7 @@ RegistryItem gid_Regitem_Openoffice_Calcdocument_1_AppUserModelID ...@@ -713,7 +713,7 @@ RegistryItem gid_Regitem_Openoffice_Calcdocument_1_AppUserModelID
ComponentCondition = "VersionNT >= 601"; ComponentCondition = "VersionNT >= 601";
Subkey = "LibreOffice.CalcDocument.1"; Subkey = "LibreOffice.CalcDocument.1";
Name = "AppUserModelID"; Name = "AppUserModelID";
Value = "TheDocumentFoundation.LibreOffice.Calc"; Value = "TheDocumentFoundation.LibreOffice";
End End
RegistryItem gid_Regitem_Openoffice_Calcdocument_1_FriendlyTypeName RegistryItem gid_Regitem_Openoffice_Calcdocument_1_FriendlyTypeName
...@@ -920,7 +920,7 @@ RegistryItem gid_Regitem_Openoffice_Calctemplate_1_AppUserModelID ...@@ -920,7 +920,7 @@ RegistryItem gid_Regitem_Openoffice_Calctemplate_1_AppUserModelID
ComponentCondition = "VersionNT >= 601"; ComponentCondition = "VersionNT >= 601";
Subkey = "LibreOffice.CalcTemplate.1"; Subkey = "LibreOffice.CalcTemplate.1";
Name = "AppUserModelID"; Name = "AppUserModelID";
Value = "TheDocumentFoundation.LibreOffice.Calc"; Value = "TheDocumentFoundation.LibreOffice";
End End
RegistryItem gid_Regitem_Openoffice_Calctemplate_1_FriendlyTypeName RegistryItem gid_Regitem_Openoffice_Calctemplate_1_FriendlyTypeName
......
...@@ -292,7 +292,7 @@ RegistryItem gid_Regitem_Soffice_Stardrawdocument_6_AppUserModelID ...@@ -292,7 +292,7 @@ RegistryItem gid_Regitem_Soffice_Stardrawdocument_6_AppUserModelID
ComponentCondition = "VersionNT >= 601"; ComponentCondition = "VersionNT >= 601";
Subkey = "soffice.StarDrawDocument.6"; Subkey = "soffice.StarDrawDocument.6";
Name = "AppUserModelID"; Name = "AppUserModelID";
Value = "TheDocumentFoundation.LibreOffice.Draw"; Value = "TheDocumentFoundation.LibreOffice";
End End
RegistryItem gid_Regitem_Soffice_Stardrawdocument_6_FriendlyTypeName RegistryItem gid_Regitem_Soffice_Stardrawdocument_6_FriendlyTypeName
...@@ -406,7 +406,7 @@ RegistryItem gid_Regitem_Soffice_Stardrawtemplate_6_AppUserModelID ...@@ -406,7 +406,7 @@ RegistryItem gid_Regitem_Soffice_Stardrawtemplate_6_AppUserModelID
ComponentCondition = "VersionNT >= 601"; ComponentCondition = "VersionNT >= 601";
Subkey = "soffice.StarDrawTemplate.6"; Subkey = "soffice.StarDrawTemplate.6";
Name = "AppUserModelID"; Name = "AppUserModelID";
Value = "TheDocumentFoundation.LibreOffice.Draw"; Value = "TheDocumentFoundation.LibreOffice";
End End
RegistryItem gid_Regitem_Soffice_Stardrawtemplate_6_FriendlyTypeName RegistryItem gid_Regitem_Soffice_Stardrawtemplate_6_FriendlyTypeName
...@@ -713,7 +713,7 @@ RegistryItem gid_Regitem_Openoffice_Drawdocument_1_AppUserModelID ...@@ -713,7 +713,7 @@ RegistryItem gid_Regitem_Openoffice_Drawdocument_1_AppUserModelID
ComponentCondition = "VersionNT >= 601"; ComponentCondition = "VersionNT >= 601";
Subkey = "LibreOffice.DrawDocument.1"; Subkey = "LibreOffice.DrawDocument.1";
Name = "AppUserModelID"; Name = "AppUserModelID";
Value = "TheDocumentFoundation.LibreOffice.Draw"; Value = "TheDocumentFoundation.LibreOffice";
End End
RegistryItem gid_Regitem_Openoffice_Drawdocument_1_FriendlyTypeName RegistryItem gid_Regitem_Openoffice_Drawdocument_1_FriendlyTypeName
...@@ -920,7 +920,7 @@ RegistryItem gid_Regitem_Openoffice_Drawtemplate_1_AppUserModelID ...@@ -920,7 +920,7 @@ RegistryItem gid_Regitem_Openoffice_Drawtemplate_1_AppUserModelID
ComponentCondition = "VersionNT >= 601"; ComponentCondition = "VersionNT >= 601";
Subkey = "LibreOffice.DrawTemplate.1"; Subkey = "LibreOffice.DrawTemplate.1";
Name = "AppUserModelID"; Name = "AppUserModelID";
Value = "TheDocumentFoundation.LibreOffice.Draw"; Value = "TheDocumentFoundation.LibreOffice";
End End
RegistryItem gid_Regitem_Openoffice_Drawtemplate_1_FriendlyTypeName RegistryItem gid_Regitem_Openoffice_Drawtemplate_1_FriendlyTypeName
......
...@@ -292,7 +292,7 @@ RegistryItem gid_Regitem_Soffice_Starimpressdocument_6_AppUserModelID ...@@ -292,7 +292,7 @@ RegistryItem gid_Regitem_Soffice_Starimpressdocument_6_AppUserModelID
ComponentCondition = "VersionNT >= 601"; ComponentCondition = "VersionNT >= 601";
Subkey = "soffice.StarImpressDocument.6"; Subkey = "soffice.StarImpressDocument.6";
Name = "AppUserModelID"; Name = "AppUserModelID";
Value = "TheDocumentFoundation.LibreOffice.Impress"; Value = "TheDocumentFoundation.LibreOffice";
End End
RegistryItem gid_Regitem_Soffice_Starimpressdocument_6_FriendlyTypeName RegistryItem gid_Regitem_Soffice_Starimpressdocument_6_FriendlyTypeName
...@@ -420,7 +420,7 @@ RegistryItem gid_Regitem_Soffice_Starimpresstemplate_6_AppUserModelID ...@@ -420,7 +420,7 @@ RegistryItem gid_Regitem_Soffice_Starimpresstemplate_6_AppUserModelID
ComponentCondition = "VersionNT >= 601"; ComponentCondition = "VersionNT >= 601";
Subkey = "soffice.StarImpressTemplate.6"; Subkey = "soffice.StarImpressTemplate.6";
Name = "AppUserModelID"; Name = "AppUserModelID";
Value = "TheDocumentFoundation.LibreOffice.Impress"; Value = "TheDocumentFoundation.LibreOffice";
End End
RegistryItem gid_Regitem_Soffice_Starimpresstemplate_6_FriendlyTypeName RegistryItem gid_Regitem_Soffice_Starimpresstemplate_6_FriendlyTypeName
...@@ -728,7 +728,7 @@ RegistryItem gid_Regitem_Openoffice_Impressdocument_1_AppUserModelID ...@@ -728,7 +728,7 @@ RegistryItem gid_Regitem_Openoffice_Impressdocument_1_AppUserModelID
ComponentCondition = "VersionNT >= 601"; ComponentCondition = "VersionNT >= 601";
Subkey = "LibreOffice.ImpressDocument.1"; Subkey = "LibreOffice.ImpressDocument.1";
Name = "AppUserModelID"; Name = "AppUserModelID";
Value = "TheDocumentFoundation.LibreOffice.Impress"; Value = "TheDocumentFoundation.LibreOffice";
End End
RegistryItem gid_Regitem_Openoffice_Impressdocument_1_FriendlyTypeName RegistryItem gid_Regitem_Openoffice_Impressdocument_1_FriendlyTypeName
...@@ -949,7 +949,7 @@ RegistryItem gid_Regitem_Openoffice_Impresstemplate_1_AppUserModelID ...@@ -949,7 +949,7 @@ RegistryItem gid_Regitem_Openoffice_Impresstemplate_1_AppUserModelID
ComponentCondition = "VersionNT >= 601"; ComponentCondition = "VersionNT >= 601";
Subkey = "LibreOffice.ImpressTemplate.1"; Subkey = "LibreOffice.ImpressTemplate.1";
Name = "AppUserModelID"; Name = "AppUserModelID";
Value = "TheDocumentFoundation.LibreOffice.Impress"; Value = "TheDocumentFoundation.LibreOffice";
End End
RegistryItem gid_Regitem_Openoffice_Impresstemplate_1_FriendlyTypeName RegistryItem gid_Regitem_Openoffice_Impresstemplate_1_FriendlyTypeName
......
...@@ -291,7 +291,7 @@ RegistryItem gid_Regitem_Soffice_Starmathdocument_6_AppUserModelID ...@@ -291,7 +291,7 @@ RegistryItem gid_Regitem_Soffice_Starmathdocument_6_AppUserModelID
ComponentCondition = "VersionNT >= 601"; ComponentCondition = "VersionNT >= 601";
Subkey = "soffice.StarMathDocument.6"; Subkey = "soffice.StarMathDocument.6";
Name = "AppUserModelID"; Name = "AppUserModelID";
Value = "TheDocumentFoundation.LibreOffice.Math"; Value = "TheDocumentFoundation.LibreOffice";
End End
RegistryItem gid_Regitem_Soffice_Starmathdocument_6_FriendlyTypeName RegistryItem gid_Regitem_Soffice_Starmathdocument_6_FriendlyTypeName
...@@ -569,7 +569,7 @@ RegistryItem gid_Regitem_Openoffice_Mathdocument_1_AppUserModelID ...@@ -569,7 +569,7 @@ RegistryItem gid_Regitem_Openoffice_Mathdocument_1_AppUserModelID
ComponentCondition = "VersionNT >= 601"; ComponentCondition = "VersionNT >= 601";
Subkey = "LibreOffice.MathDocument.1"; Subkey = "LibreOffice.MathDocument.1";
Name = "AppUserModelID"; Name = "AppUserModelID";
Value = "TheDocumentFoundation.LibreOffice.Math"; Value = "TheDocumentFoundation.LibreOffice";
End End
RegistryItem gid_Regitem_Openoffice_Mathdocument_1_FriendlyTypeName RegistryItem gid_Regitem_Openoffice_Mathdocument_1_FriendlyTypeName
......
...@@ -292,7 +292,7 @@ RegistryItem gid_Regitem_Soffice_Starwriterdocument_6_AppUserModelID ...@@ -292,7 +292,7 @@ RegistryItem gid_Regitem_Soffice_Starwriterdocument_6_AppUserModelID
ComponentCondition = "VersionNT >= 601"; ComponentCondition = "VersionNT >= 601";
Subkey = "soffice.StarWriterDocument.6"; Subkey = "soffice.StarWriterDocument.6";
Name = "AppUserModelID"; Name = "AppUserModelID";
Value = "TheDocumentFoundation.LibreOffice.Writer"; Value = "TheDocumentFoundation.LibreOffice";
End End
RegistryItem gid_Regitem_Soffice_Starwriterdocument_6_FriendlyTypeName RegistryItem gid_Regitem_Soffice_Starwriterdocument_6_FriendlyTypeName
...@@ -413,7 +413,7 @@ RegistryItem gid_Regitem_Soffice_Starwriterglobaldocument_6_AppUserModelID ...@@ -413,7 +413,7 @@ RegistryItem gid_Regitem_Soffice_Starwriterglobaldocument_6_AppUserModelID
ComponentCondition = "VersionNT >= 601"; ComponentCondition = "VersionNT >= 601";
Subkey = "soffice.StarWriterGlobalDocument.6"; Subkey = "soffice.StarWriterGlobalDocument.6";
Name = "AppUserModelID"; Name = "AppUserModelID";
Value = "TheDocumentFoundation.LibreOffice.Writer"; Value = "TheDocumentFoundation.LibreOffice";
End End
RegistryItem gid_Regitem_Soffice_Starwriterglobaldocument_6_FriendlyTypeName RegistryItem gid_Regitem_Soffice_Starwriterglobaldocument_6_FriendlyTypeName
...@@ -500,7 +500,7 @@ RegistryItem gid_Regitem_Soffice_Starwritertemplate_6_AppUserModelID ...@@ -500,7 +500,7 @@ RegistryItem gid_Regitem_Soffice_Starwritertemplate_6_AppUserModelID
ComponentCondition = "VersionNT >= 601"; ComponentCondition = "VersionNT >= 601";
Subkey = "soffice.StarWriterTemplate.6"; Subkey = "soffice.StarWriterTemplate.6";
Name = "AppUserModelID"; Name = "AppUserModelID";
Value = "TheDocumentFoundation.LibreOffice.Writer"; Value = "TheDocumentFoundation.LibreOffice";
End End
RegistryItem gid_Regitem_Soffice_Starwritertemplate_6_FriendlyTypeName RegistryItem gid_Regitem_Soffice_Starwritertemplate_6_FriendlyTypeName
...@@ -863,7 +863,7 @@ RegistryItem gid_Regitem_Openoffice_Writerdocument_1_AppUserModelID ...@@ -863,7 +863,7 @@ RegistryItem gid_Regitem_Openoffice_Writerdocument_1_AppUserModelID
ComponentCondition = "VersionNT >= 601"; ComponentCondition = "VersionNT >= 601";
Subkey = "LibreOffice.WriterDocument.1"; Subkey = "LibreOffice.WriterDocument.1";
Name = "AppUserModelID"; Name = "AppUserModelID";
Value = "TheDocumentFoundation.LibreOffice.Writer"; Value = "TheDocumentFoundation.LibreOffice";
End End
RegistryItem gid_Regitem_Openoffice_Writerdocument_1_FriendlyTypeName RegistryItem gid_Regitem_Openoffice_Writerdocument_1_FriendlyTypeName
...@@ -1093,7 +1093,7 @@ RegistryItem gid_Regitem_Openoffice_Writertemplate_1_AppUserModelID ...@@ -1093,7 +1093,7 @@ RegistryItem gid_Regitem_Openoffice_Writertemplate_1_AppUserModelID
ComponentCondition = "VersionNT >= 601"; ComponentCondition = "VersionNT >= 601";
Subkey = "LibreOffice.WriterTemplate.1"; Subkey = "LibreOffice.WriterTemplate.1";
Name = "AppUserModelID"; Name = "AppUserModelID";
Value = "TheDocumentFoundation.LibreOffice.Writer"; Value = "TheDocumentFoundation.LibreOffice";
End End
RegistryItem gid_Regitem_Openoffice_Writertemplate_1_FriendlyTypeName RegistryItem gid_Regitem_Openoffice_Writertemplate_1_FriendlyTypeName
...@@ -1245,7 +1245,7 @@ RegistryItem gid_Regitem_Openoffice_Writerglobaldocument_1_AppUserModelID ...@@ -1245,7 +1245,7 @@ RegistryItem gid_Regitem_Openoffice_Writerglobaldocument_1_AppUserModelID
ComponentCondition = "VersionNT >= 601"; ComponentCondition = "VersionNT >= 601";
Subkey = "LibreOffice.WriterGlobalDocument.1"; Subkey = "LibreOffice.WriterGlobalDocument.1";
Name = "AppUserModelID"; Name = "AppUserModelID";
Value = "TheDocumentFoundation.LibreOffice.Writer"; Value = "TheDocumentFoundation.LibreOffice";
End End
RegistryItem gid_Regitem_Openoffice_Writerglobaldocument_1_FriendlyTypeName RegistryItem gid_Regitem_Openoffice_Writerglobaldocument_1_FriendlyTypeName
...@@ -1397,7 +1397,7 @@ RegistryItem gid_Regitem_Openoffice_WriterWebTemplate_1_AppUserModelID ...@@ -1397,7 +1397,7 @@ RegistryItem gid_Regitem_Openoffice_WriterWebTemplate_1_AppUserModelID
ComponentCondition = "VersionNT >= 601"; ComponentCondition = "VersionNT >= 601";
Subkey = "LibreOffice.WriterWebTemplate.1"; Subkey = "LibreOffice.WriterWebTemplate.1";
Name = "AppUserModelID"; Name = "AppUserModelID";
Value = "TheDocumentFoundation.LibreOffice.Writer"; Value = "TheDocumentFoundation.LibreOffice";
End End
RegistryItem gid_Regitem_Openoffice_WriterWebTemplate_1_FriendlyTypeName RegistryItem gid_Regitem_Openoffice_WriterWebTemplate_1_FriendlyTypeName
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment