[Libreoffice-commits] core.git: scp2/inc
Jesús Corrius
jcorrius at gmail.com
Thu Aug 8 12:49:47 PDT 2013
scp2/inc/macros.inc | 11 +++++++++++
1 file changed, 11 insertions(+)
New commits:
commit 5f23dac65b39750356418d7d8f490a37a944c34c
Author: Jesús Corrius <jcorrius at gmail.com>
Date: Sun Aug 4 14:45:59 2013 +0200
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 at documentfoundation.org>
Tested-by: Fridrich Strba <fridrich at documentfoundation.org>
diff --git a/scp2/inc/macros.inc b/scp2/inc/macros.inc
index 86b4b546..25e0f41 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) \
More information about the Libreoffice-commits
mailing list