diff options
author | Jesús Corrius <jcorrius@gmail.com> | 2013-08-04 14:45:59 +0200 |
---|---|---|
committer | Fridrich Strba <fridrich@documentfoundation.org> | 2013-08-08 19:49:26 +0000 |
commit | 5f23dac65b39750356418d7d8f490a37a944c34c (patch) | |
tree | 61f477578061e666d32854d0aff32e24b6f18a49 /scp2 | |
parent | 3cf0b5cdb05e1d77610431b1b1328102bf05b602 (diff) |
Add AppUserModelID for all supported formats
Now only the ODF formats have AppUserModelID, but we
need AppUserModelID for all supported formats so the
Windows 7 recent documents works as expected.
This patch only adds a few registry keys during the
installation process on Windows.
Change-Id: I2d7460c1ed8b4ba77da8bb1c5b0c696c521353c5
Reviewed-on: https://gerrit.libreoffice.org/5274
Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org>
Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
Diffstat (limited to 'scp2')
-rwxr-xr-x | scp2/inc/macros.inc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/scp2/inc/macros.inc b/scp2/inc/macros.inc index 86b4b5462188..25e0f41199f4 100755 --- a/scp2/inc/macros.inc +++ b/scp2/inc/macros.inc @@ -235,6 +235,15 @@ End REG_VALUE_LNG(disp_name) \ End +#define REGISTRY_ENTRY_APPUSERMODELID(name,modid,doc_type) \ + RegistryItem CONCAT3(gid_Regitem_Openoffice_,name,AppUserModelID) \ + ParentID = PREDEFINED_HKEY_CLASSES_ROOT; \ + ModuleID = modid; \ + ComponentCondition = "VersionNT >= 600"; \ + Subkey = STRING(AppUserModelID); \ + Value = STRING(CONCAT2(TheDocumentFoundation.LibreOffice.,doc_type)); \ + End + #define REGISTRY_ENTRY_ICON(name,modid,icon_id) \ RegistryItem CONCAT3(gid_Regitem_Openoffice_,name,_Defaulticon) \ ParentID = PREDEFINED_HKEY_CLASSES_ROOT; \ @@ -324,6 +333,7 @@ End REGISTRY_ENTRY_OPEN_WITH(name,cond,doc_type,modid,key) \ CONDITIONAL_REGISTRY_ENTRY_EXT(name,cond,key) \ REGISTRY_ENTRY_DOC(name,modid,disp_name) \ + REGISTRY_ENTRY_APPUSERMODELID(name,modid,doc_type) \ REGISTRY_ENTRY_ICON(name,modid,icon_id) \ REGISTRY_ENTRY_SHELL(name,default,modid) \ REGISTRY_ENTRY_NEW_CMD(name,modid,app) \ @@ -338,6 +348,7 @@ End REGISTRY_ENTRY_OPEN_WITH_TMPL(name,cond,doc_type,modid,key) \ CONDITIONAL_REGISTRY_ENTRY_EXT(name,cond,key) \ REGISTRY_ENTRY_DOC(name,modid,disp_name) \ + REGISTRY_ENTRY_APPUSERMODELID(name,modid,doc_type) \ REGISTRY_ENTRY_ICON(name,modid,icon_id) \ REGISTRY_ENTRY_SHELL(name,default,modid) \ REGISTRY_ENTRY_NEW_CMD(name,modid,app) \ |