diff options
author | Ivo Hinkelmann <ihi@openoffice.org> | 2008-07-16 15:22:17 +0000 |
---|---|---|
committer | Ivo Hinkelmann <ihi@openoffice.org> | 2008-07-16 15:22:17 +0000 |
commit | 36c1e78e8b65026d6feeb31cc8a9ac952d2f3bbe (patch) | |
tree | 2e9e760d329568d0a39b3fc7c76883ea04280a1b /scp2/inc | |
parent | bab2c2d8849946fe7430acba740a4fd3c37e1086 (diff) |
INTEGRATION: CWS sysui26 (1.18.76); FILE MERGED
2008/07/03 15:18:58 dv 1.18.76.4: use only one type for openwith
2008/06/27 13:11:23 dv 1.18.76.3: Add Office to open with list for mso types, too
2008/06/26 07:04:04 dv 1.18.76.2: #i89966# Register printto with key printto!
2008/06/25 08:56:46 dv 1.18.76.1: Added helper macros for registering file extensions
Diffstat (limited to 'scp2/inc')
-rw-r--r-- | scp2/inc/macros.inc | 112 |
1 files changed, 112 insertions, 0 deletions
diff --git a/scp2/inc/macros.inc b/scp2/inc/macros.inc index a9b1292011a4..5e7de46a9c39 100644 --- a/scp2/inc/macros.inc +++ b/scp2/inc/macros.inc @@ -391,6 +391,118 @@ RegistryID = gid_Starregistry_Services_Rdb; \ End +// --------------------------------------- +#define CONDITIONAL_MODULE_ENTRY(name,modid) \ + Module gid_Module_Root_Reg_##name \ + ParentID = modid; \ + Name = STRING(CONCAT2(gid_Module_Root_,name)); \ + Description = STRING(CONCAT2(gid_Module_Root_,name)); \ + Default = YES; \ + Styles = (HIDDEN_ROOT); \ +End + +#define REGISTRY_ENTRY_OPEN_WITH(name,cond,doc_type,modid,key) \ + RegistryItem gid_Regitem_OpenOffice_##cond##_OpenWith_##doc_type \ + ParentID = PREDEFINED_HKEY_CLASSES_ROOT; \ + ModuleID = modid; \ + Subkey = STRING(CONCAT3(.,key,\OpenWithProgIDs)); \ + Name = STRING(CONCAT2(OpenOffice.org.,name)); \ + Value = " "; \ + End + +#define CONDITIONAL_REGISTRY_ENTRY_EXT(name,cond,key) \ + RegistryItem gid_Regitem__##name \ + ParentID = PREDEFINED_HKEY_CLASSES_ROOT; \ + ModuleID = gid_Module_Root_Reg_##name; \ + Subkey = STRING(CONCAT2(.,key)); \ + Value = STRING(CONCAT2(OpenOffice.org.,name)); \ + ComponentCondition = STRING(CONCAT3(REGISTER_,cond,=1)); \ + End + +#define CONDITIONAL_REGISTRY_ENTRY_DOC(name,cond,disp_name) \ + RegistryItem CONCAT2(gid_Regitem_Openoffice_,name) \ + ParentID = PREDEFINED_HKEY_CLASSES_ROOT; \ + ModuleID = gid_Module_Root_Reg_##name; \ + Subkey = STRING(CONCAT2(OpenOffice.org.,name)); \ + REG_VALUE_LNG(disp_name) \ + ComponentCondition = STRING(CONCAT3(REGISTER_,cond,=1)); \ + End + +#define CONDITIONAL_REGISTRY_ENTRY_ICON(name,cond,icon_id) \ + RegistryItem CONCAT3(gid_Regitem_Openoffice_,name,_Defaulticon) \ + ParentID = PREDEFINED_HKEY_CLASSES_ROOT; \ + ModuleID = gid_Module_Root_Reg_##name; \ + Subkey = STRING(CONCAT3(OpenOffice.org.,name,\DefaultIcon)); \ + Value = "<progpath>\program\soffice.exe," STRING(icon_id); \ + ComponentCondition = STRING(CONCAT3(REGISTER_,cond,=1)); \ + End + +#define CONDITIONAL_REGISTRY_ENTRY_SHELL(name,default,cond) \ + RegistryItem CONCAT3(gid_Regitem_Openoffice_,name,_Shell) \ + ParentID = PREDEFINED_HKEY_CLASSES_ROOT; \ + ModuleID = gid_Module_Root_Reg_##name; \ + Subkey = STRING(CONCAT3(OpenOffice.org.,name,\shell)); \ + Value = STRING(default); \ + ComponentCondition = STRING(CONCAT3(REGISTER_,cond,=1)); \ + End + +#define CONDITIONAL_REGISTRY_ENTRY_NEW_CMD(name,cond,app) \ + RegistryItem CONCAT3(gid_Regitem_Openoffice_,name,_Shell_New) \ + ParentID = PREDEFINED_HKEY_CLASSES_ROOT; \ + ModuleID = gid_Module_Root_Reg_##name; \ + Subkey = STRING(CONCAT3(OpenOffice.org.,name,\shell\new)); \ + REG_VALUE_LNG(NEW) \ + ComponentCondition = STRING(CONCAT3(REGISTER_,cond,=1)); \ + End \ + RegistryItem CONCAT3(gid_Regitem_Openoffice_,name,_Shell_New_Command) \ + ParentID = PREDEFINED_HKEY_CLASSES_ROOT; \ + ModuleID = gid_Module_Root_Reg_##name; \ + Subkey = STRING(CONCAT3(OpenOffice.org.,name,\shell\new\command)); \ + Value = "\"<progpath>\program\\" STRING(app) "\" -n \"%1\""; \ + ComponentCondition = STRING(CONCAT3(REGISTER_,cond,=1)); \ + End + +#define CONDITIONAL_REGISTRY_ENTRY_OPEN_CMD(name,cond,app) \ + RegistryItem CONCAT3(gid_Regitem_Openoffice_,name,_Shell_Open_Command) \ + ParentID = PREDEFINED_HKEY_CLASSES_ROOT; \ + ModuleID = gid_Module_Root_Reg_##name; \ + Subkey = STRING(CONCAT3(OpenOffice.org.,name,\shell\open\command)); \ + Value = "\"<progpath>\program\\" STRING(app) "\" -o \"%1\""; \ + ComponentCondition = STRING(CONCAT3(REGISTER_,cond,=1)); \ + End + +#define CONDITIONAL_REGISTRY_ENTRY_PRINT_CMD(name,cond,app) \ + RegistryItem CONCAT3(gid_Regitem_Openoffice_,name,_Shell_Print_Command) \ + ParentID = PREDEFINED_HKEY_CLASSES_ROOT; \ + ModuleID = gid_Module_Root_Reg_##name; \ + Subkey = STRING(CONCAT3(OpenOffice.org.,name,\shell\print\command)); \ + Value = "\"<progpath>\program\\" STRING(app) "\" -p \"%1\""; \ + ComponentCondition = STRING(CONCAT3(REGISTER_,cond,=1)); \ + End + +#define CONDITIONAL_REGISTRY_ENTRY_PRINTTO_CMD(name,cond,app) \ + RegistryItem CONCAT3(gid_Regitem_Openoffice_,name,_Shell_Printto_Command) \ + ParentID = PREDEFINED_HKEY_CLASSES_ROOT; \ + ModuleID = gid_Module_Root_Reg_##name; \ + Subkey = STRING(CONCAT3(OpenOffice.org.,name,\shell\printto\command)); \ + Value = "\"<progpath>\program\\" STRING(app) "\" -pt \"%2\" \"%1\""; \ + ComponentCondition = STRING(CONCAT3(REGISTER_,cond,=1)); \ + End + +#define CONDITIONAL_REGISTER_DOC_EXTENSION(name,modid,key,cond,disp_name,icon_id,app,default,doc_type) \ + CONDITIONAL_MODULE_ENTRY(name,modid) \ + REGISTRY_ENTRY_OPEN_WITH(name,cond,doc_type,modid,key) \ + CONDITIONAL_REGISTRY_ENTRY_EXT(name,cond,key) \ + CONDITIONAL_REGISTRY_ENTRY_DOC(name,cond,disp_name) \ + CONDITIONAL_REGISTRY_ENTRY_ICON(name,cond,icon_id) \ + CONDITIONAL_REGISTRY_ENTRY_SHELL(name,default,cond) \ + CONDITIONAL_REGISTRY_ENTRY_NEW_CMD(name,cond,app) \ + CONDITIONAL_REGISTRY_ENTRY_OPEN_CMD(name,cond,app) \ + CONDITIONAL_REGISTRY_ENTRY_PRINT_CMD(name,cond,app) \ + CONDITIONAL_REGISTRY_ENTRY_PRINTTO_CMD(name,cond,app) \ + +// --------------------------------------- + #if defined WNT #define SCP2_URE_DL_DIR gid_Dir_Ure_Bin #define SCP2_URE_DL_NORMAL(n) n ".dll" |