summaryrefslogtreecommitdiff
path: root/scp2
diff options
context:
space:
mode:
authorDirk Voelzke <dv@openoffice.org>2010-01-25 07:08:21 +0100
committerDirk Voelzke <dv@openoffice.org>2010-01-25 07:08:21 +0100
commit99b240d2f7255abd15a449c5d1bd117034110ed2 (patch)
treeb74d245801625d69d433c2185bc4421d840d903c /scp2
parent9f132f93858564c899189657a79ddd4528226ca8 (diff)
dv17: #i70994#: Proprty handler should work with 64bit, too
Diffstat (limited to 'scp2')
-rwxr-xr-x[-rw-r--r--]scp2/inc/macros.inc12
-rwxr-xr-xscp2/source/base/registryitem_base.scp8
-rwxr-xr-xscp2/source/calc/registryitem_calc.scp30
-rwxr-xr-xscp2/source/draw/registryitem_draw.scp30
-rwxr-xr-xscp2/source/impress/registryitem_impress.scp30
-rwxr-xr-xscp2/source/math/registryitem_math.scp14
-rwxr-xr-xscp2/source/winexplorerext/registryitem_winexplorerext.scp8
-rwxr-xr-xscp2/source/writer/registryitem_writer.scp56
8 files changed, 46 insertions, 142 deletions
diff --git a/scp2/inc/macros.inc b/scp2/inc/macros.inc
index 27ef93479d36..5ccb8c5cfa18 100644..100755
--- a/scp2/inc/macros.inc
+++ b/scp2/inc/macros.inc
@@ -520,6 +520,18 @@ End
// ---------------------------------------
+#define REGISTER_PROPERTY_HANDLER_FOR_EXTENSION(extension,modid) \
+ RegistryItem CONCAT2(gid_Regitem_Software_Microsoft_Windows_CurrentVersion_PropertySystem_PropertyHandlers_,extension) \
+ ParentID = PREDEFINED_HKEY_LOCAL_MACHINE; \
+ ModuleID = modid; \
+ Styles = (X64); \
+ Subkey = STRING(CONCAT2(SOFTWARE\Microsoft\Windows\CurrentVersion\PropertySystem\PropertyHandlers\.,extension)); \
+ Value = "{AE424E85-F6DF-4910-A6A9-438797986431}"; \
+ Val64 = "{AE424E85-F6DF-4910-A6A9-438797986431}"; \
+ End
+
+// ---------------------------------------
+
#if defined WNT
#define SCP2_URE_DL_DIR gid_Dir_Ure_Bin
#define SCP2_URE_DL_NORMAL(n) n ".dll"
diff --git a/scp2/source/base/registryitem_base.scp b/scp2/source/base/registryitem_base.scp
index 5f6c4c0c2347..d9feecb78d20 100755
--- a/scp2/source/base/registryitem_base.scp
+++ b/scp2/source/base/registryitem_base.scp
@@ -162,9 +162,5 @@ RegistryItem gid_Regitem_Software_Microsoft_Windows_Currentversion_Apppaths_Sbas
End
// registering the property handler for the supported file types
-RegistryItem gid_Regitem_Software_Microsoft_Windows_CurrentVersion_PropertySystem_PropertyHandlers_odb
- ParentID = PREDEFINED_HKEY_LOCAL_MACHINE;
- Subkey = "SOFTWARE\Microsoft\Windows\CurrentVersion\PropertySystem\PropertyHandlers\.odb";
- ModuleID = gid_Module_Prg_Base_Bin;
- Value = "{AE424E85-F6DF-4910-A6A9-438797986431}";
-End
+
+REGISTER_PROPERTY_HANDLER_FOR_EXTENSION( odb, gid_Module_Prg_Base_Bin )
diff --git a/scp2/source/calc/registryitem_calc.scp b/scp2/source/calc/registryitem_calc.scp
index d787653dde76..4da7c5c1cbc0 100755
--- a/scp2/source/calc/registryitem_calc.scp
+++ b/scp2/source/calc/registryitem_calc.scp
@@ -1109,33 +1109,13 @@ RegistryItem gid_Regitem_Software_Microsoft_Windows_Currentversion_Apppaths_Scal
End
// registering the property handler for the supported file types
-RegistryItem gid_Regitem_Software_Microsoft_Windows_CurrentVersion_PropertySystem_PropertyHandlers_ods
- ParentID = PREDEFINED_HKEY_LOCAL_MACHINE;
- Subkey = "SOFTWARE\Microsoft\Windows\CurrentVersion\PropertySystem\PropertyHandlers\.ods";
- ModuleID = gid_Module_Prg_Calc_Bin;
- Value = "{AE424E85-F6DF-4910-A6A9-438797986431}";
-End
-RegistryItem gid_Regitem_Software_Microsoft_Windows_CurrentVersion_PropertySystem_PropertyHandlers_ots
- ParentID = PREDEFINED_HKEY_LOCAL_MACHINE;
- Subkey = "SOFTWARE\Microsoft\Windows\CurrentVersion\PropertySystem\PropertyHandlers\.ots";
- ModuleID = gid_Module_Prg_Calc_Bin;
- Value = "{AE424E85-F6DF-4910-A6A9-438797986431}";
-End
+REGISTER_PROPERTY_HANDLER_FOR_EXTENSION( ods, gid_Module_Prg_Calc_Bin )
+REGISTER_PROPERTY_HANDLER_FOR_EXTENSION( ots, gid_Module_Prg_Calc_Bin )
+REGISTER_PROPERTY_HANDLER_FOR_EXTENSION( sxc, gid_Module_Prg_Calc_Bin )
+REGISTER_PROPERTY_HANDLER_FOR_EXTENSION( stc, gid_Module_Prg_Calc_Bin )
-RegistryItem gid_Regitem_Software_Microsoft_Windows_CurrentVersion_PropertySystem_PropertyHandlers_sxc
- ParentID = PREDEFINED_HKEY_LOCAL_MACHINE;
- Subkey = "SOFTWARE\Microsoft\Windows\CurrentVersion\PropertySystem\PropertyHandlers\.sxc";
- ModuleID = gid_Module_Prg_Calc_Bin;
- Value = "{AE424E85-F6DF-4910-A6A9-438797986431}";
-End
-
-RegistryItem gid_Regitem_Software_Microsoft_Windows_CurrentVersion_PropertySystem_PropertyHandlers_stc
- ParentID = PREDEFINED_HKEY_LOCAL_MACHINE;
- Subkey = "SOFTWARE\Microsoft\Windows\CurrentVersion\PropertySystem\PropertyHandlers\.stc";
- ModuleID = gid_Module_Prg_Calc_Bin;
- Value = "{AE424E85-F6DF-4910-A6A9-438797986431}";
-End
+// registering the mso file types
CONDITIONAL_REGISTER_DOC_EXTENSION( Xls, gid_Module_Prg_Calc_Bin, xls, XLS, MS_EXCEL_WORKSHEET_OLD, 3, scalc.exe, open, Calc )
CONDITIONAL_REGISTER_DOC_EXTENSION( Xlsx, gid_Module_Prg_Calc_Bin, xlsx, XLSX, MS_EXCEL_WORKSHEET, 3, scalc.exe, open, Calc )
diff --git a/scp2/source/draw/registryitem_draw.scp b/scp2/source/draw/registryitem_draw.scp
index 5eb27b6380eb..d86ca1cee6ad 100755
--- a/scp2/source/draw/registryitem_draw.scp
+++ b/scp2/source/draw/registryitem_draw.scp
@@ -929,30 +929,8 @@ RegistryItem gid_Regitem_Software_Microsoft_Windows_Currentversion_Apppaths_Sdra
End
// registering the property handler for the supported file types
-RegistryItem gid_Regitem_Software_Microsoft_Windows_CurrentVersion_PropertySystem_PropertyHandlers_odg
- ParentID = PREDEFINED_HKEY_LOCAL_MACHINE;
- Subkey = "SOFTWARE\Microsoft\Windows\CurrentVersion\PropertySystem\PropertyHandlers\.odg";
- ModuleID = gid_Module_Prg_Draw_Bin;
- Value = "{AE424E85-F6DF-4910-A6A9-438797986431}";
-End
-
-RegistryItem gid_Regitem_Software_Microsoft_Windows_CurrentVersion_PropertySystem_PropertyHandlers_otg
- ParentID = PREDEFINED_HKEY_LOCAL_MACHINE;
- Subkey = "SOFTWARE\Microsoft\Windows\CurrentVersion\PropertySystem\PropertyHandlers\.otg";
- ModuleID = gid_Module_Prg_Draw_Bin;
- Value = "{AE424E85-F6DF-4910-A6A9-438797986431}";
-End
-RegistryItem gid_Regitem_Software_Microsoft_Windows_CurrentVersion_PropertySystem_PropertyHandlers_sxd
- ParentID = PREDEFINED_HKEY_LOCAL_MACHINE;
- Subkey = "SOFTWARE\Microsoft\Windows\CurrentVersion\PropertySystem\PropertyHandlers\.sxd";
- ModuleID = gid_Module_Prg_Draw_Bin;
- Value = "{AE424E85-F6DF-4910-A6A9-438797986431}";
-End
-
-RegistryItem gid_Regitem_Software_Microsoft_Windows_CurrentVersion_PropertySystem_PropertyHandlers_std
- ParentID = PREDEFINED_HKEY_LOCAL_MACHINE;
- Subkey = "SOFTWARE\Microsoft\Windows\CurrentVersion\PropertySystem\PropertyHandlers\.std";
- ModuleID = gid_Module_Prg_Draw_Bin;
- Value = "{AE424E85-F6DF-4910-A6A9-438797986431}";
-End
+REGISTER_PROPERTY_HANDLER_FOR_EXTENSION( odg, gid_Module_Prg_Draw_Bin )
+REGISTER_PROPERTY_HANDLER_FOR_EXTENSION( otg, gid_Module_Prg_Draw_Bin )
+REGISTER_PROPERTY_HANDLER_FOR_EXTENSION( sxd, gid_Module_Prg_Draw_Bin )
+REGISTER_PROPERTY_HANDLER_FOR_EXTENSION( std, gid_Module_Prg_Draw_Bin )
diff --git a/scp2/source/impress/registryitem_impress.scp b/scp2/source/impress/registryitem_impress.scp
index 92259a309231..25322f6e464d 100755
--- a/scp2/source/impress/registryitem_impress.scp
+++ b/scp2/source/impress/registryitem_impress.scp
@@ -977,33 +977,13 @@ RegistryItem gid_Regitem_Software_Microsoft_Windows_Currentversion_Apppaths_Simp
End
// registering the property handler for the supported file types
-RegistryItem gid_Regitem_Software_Microsoft_Windows_CurrentVersion_PropertySystem_PropertyHandlers_odp
- ParentID = PREDEFINED_HKEY_LOCAL_MACHINE;
- Subkey = "SOFTWARE\Microsoft\Windows\CurrentVersion\PropertySystem\PropertyHandlers\.odp";
- ModuleID = gid_Module_Prg_Impress_Bin;
- Value = "{AE424E85-F6DF-4910-A6A9-438797986431}";
-End
-RegistryItem gid_Regitem_Software_Microsoft_Windows_CurrentVersion_PropertySystem_PropertyHandlers_otp
- ParentID = PREDEFINED_HKEY_LOCAL_MACHINE;
- Subkey = "SOFTWARE\Microsoft\Windows\CurrentVersion\PropertySystem\PropertyHandlers\.otp";
- ModuleID = gid_Module_Prg_Impress_Bin;
- Value = "{AE424E85-F6DF-4910-A6A9-438797986431}";
-End
+REGISTER_PROPERTY_HANDLER_FOR_EXTENSION( odp, gid_Module_Prg_Impress_Bin )
+REGISTER_PROPERTY_HANDLER_FOR_EXTENSION( otp, gid_Module_Prg_Impress_Bin )
+REGISTER_PROPERTY_HANDLER_FOR_EXTENSION( sxi, gid_Module_Prg_Impress_Bin )
+REGISTER_PROPERTY_HANDLER_FOR_EXTENSION( sti, gid_Module_Prg_Impress_Bin )
-RegistryItem gid_Regitem_Software_Microsoft_Windows_CurrentVersion_PropertySystem_PropertyHandlers_sxi
- ParentID = PREDEFINED_HKEY_LOCAL_MACHINE;
- Subkey = "SOFTWARE\Microsoft\Windows\CurrentVersion\PropertySystem\PropertyHandlers\.sxi";
- ModuleID = gid_Module_Prg_Impress_Bin;
- Value = "{AE424E85-F6DF-4910-A6A9-438797986431}";
-End
-
-RegistryItem gid_Regitem_Software_Microsoft_Windows_CurrentVersion_PropertySystem_PropertyHandlers_sti
- ParentID = PREDEFINED_HKEY_LOCAL_MACHINE;
- Subkey = "SOFTWARE\Microsoft\Windows\CurrentVersion\PropertySystem\PropertyHandlers\.sti";
- ModuleID = gid_Module_Prg_Impress_Bin;
- Value = "{AE424E85-F6DF-4910-A6A9-438797986431}";
-End
+// registering the mso file types
CONDITIONAL_REGISTER_DOC_EXTENSION( Ppt, gid_Module_Prg_Impress_Bin, ppt, PPT, MS_POWERPOINT_PRESENTATION_OLD, 7, simpress.exe, open, Impress )
CONDITIONAL_REGISTER_DOC_EXTENSION( Pps, gid_Module_Prg_Impress_Bin, pps, PPS, MS_POWERPOINT_SHOW, 7, simpress.exe, open, Impress )
diff --git a/scp2/source/math/registryitem_math.scp b/scp2/source/math/registryitem_math.scp
index e0e0c9508edd..6fc714342058 100755
--- a/scp2/source/math/registryitem_math.scp
+++ b/scp2/source/math/registryitem_math.scp
@@ -686,16 +686,6 @@ RegistryItem gid_Regitem_Software_Microsoft_Windows_Currentversion_Apppaths_Smat
End
// registering the property handler for the supported file types
-RegistryItem gid_Regitem_Software_Microsoft_Windows_CurrentVersion_PropertySystem_PropertyHandlers_odf
- ParentID = PREDEFINED_HKEY_LOCAL_MACHINE;
- Subkey = "SOFTWARE\Microsoft\Windows\CurrentVersion\PropertySystem\PropertyHandlers\.odf";
- ModuleID = gid_Module_Prg_Math_Bin;
- Value = "{AE424E85-F6DF-4910-A6A9-438797986431}";
-End
-RegistryItem gid_Regitem_Software_Microsoft_Windows_CurrentVersion_PropertySystem_PropertyHandlers_sxm
- ParentID = PREDEFINED_HKEY_LOCAL_MACHINE;
- Subkey = "SOFTWARE\Microsoft\Windows\CurrentVersion\PropertySystem\PropertyHandlers\.sxm";
- ModuleID = gid_Module_Prg_Math_Bin;
- Value = "{AE424E85-F6DF-4910-A6A9-438797986431}";
-End
+REGISTER_PROPERTY_HANDLER_FOR_EXTENSION( odf, gid_Module_Prg_Math_Bin )
+REGISTER_PROPERTY_HANDLER_FOR_EXTENSION( sxm, gid_Module_Prg_Math_Bin )
diff --git a/scp2/source/winexplorerext/registryitem_winexplorerext.scp b/scp2/source/winexplorerext/registryitem_winexplorerext.scp
index 477fd24ac337..c319889a160e 100755
--- a/scp2/source/winexplorerext/registryitem_winexplorerext.scp
+++ b/scp2/source/winexplorerext/registryitem_winexplorerext.scp
@@ -191,31 +191,39 @@ End
RegistryItem gid_Regitem_Clsid_AE424E85_F6DF_4910_A6A9_438797986431_PropHdl
ParentID = PREDEFINED_HKEY_CLASSES_ROOT;
ModuleID = gid_Module_Optional_Winexplorerext;
+ Styles = (X64);
Subkey = "CLSID\{AE424E85-F6DF-4910-A6A9-438797986431}";
Value = "%PRODUCTNAME Property Handler";
+ Val64 = "%PRODUCTNAME Property Handler";
End
RegistryItem gid_Regitem_Clsid_AE424E85_F6DF_4910_A6A9_438797986431_PropHdl_MSS
ParentID = PREDEFINED_HKEY_CLASSES_ROOT;
ModuleID = gid_Module_Optional_Winexplorerext;
+ Styles = (X64);
Subkey = "CLSID\{AE424E85-F6DF-4910-A6A9-438797986431}";
Name = "ManualSafeSave";
Value = "#1";
+ Val64 = "#1";
End
RegistryItem gid_Regitem_Clsid_AE424E85_F6DF_4910_A6A9_438797986431_InProcServer32
ParentID = PREDEFINED_HKEY_CLASSES_ROOT;
ModuleID = gid_Module_Optional_Winexplorerext;
+ Styles = (X64);
Subkey = "CLSID\{AE424E85-F6DF-4910-A6A9-438797986431}\InprocServer32";
Value = "\"[BASISINSTALLLOCATION]program\shlxthdl\shlxthdl.dll\"";
+ Val64 = "\"[BASISINSTALLLOCATION]program\shlxthdl\shlxthdl_x64.dll\"";
End
RegistryItem gid_Regitem_Clsid_AE424E85_F6DF_4910_A6A9_438797986431_InProcServer32_ThreadingModel
ParentID = PREDEFINED_HKEY_CLASSES_ROOT;
ModuleID = gid_Module_Optional_Winexplorerext;
+ Styles = (X64);
Subkey = "CLSID\{AE424E85-F6DF-4910-A6A9-438797986431}\InprocServer32";
Name = "ThreadingModel";
Value = "Apartment";
+ Val64 = "Apartment";
End
RegistryItem gid_Regitem_Clsid_AE424E85_F6DF_4910_A6A9_438797986431_Approved
diff --git a/scp2/source/writer/registryitem_writer.scp b/scp2/source/writer/registryitem_writer.scp
index c0fcc15a2660..a77eab428c27 100755
--- a/scp2/source/writer/registryitem_writer.scp
+++ b/scp2/source/writer/registryitem_writer.scp
@@ -1485,56 +1485,16 @@ End
// registering the property handler for the supported file types
-RegistryItem gid_Regitem_Software_Microsoft_Windows_CurrentVersion_PropertySystem_PropertyHandlers_odt
- ParentID = PREDEFINED_HKEY_LOCAL_MACHINE;
- Subkey = "SOFTWARE\Microsoft\Windows\CurrentVersion\PropertySystem\PropertyHandlers\.odt";
- ModuleID = gid_Module_Prg_Wrt_Bin;
- Value = "{AE424E85-F6DF-4910-A6A9-438797986431}";
-End
-
-RegistryItem gid_Regitem_Software_Microsoft_Windows_CurrentVersion_PropertySystem_PropertyHandlers_ott
- ParentID = PREDEFINED_HKEY_LOCAL_MACHINE;
- Subkey = "SOFTWARE\Microsoft\Windows\CurrentVersion\PropertySystem\PropertyHandlers\.ott";
- ModuleID = gid_Module_Prg_Wrt_Bin;
- Value = "{AE424E85-F6DF-4910-A6A9-438797986431}";
-End
-
-RegistryItem gid_Regitem_Software_Microsoft_Windows_CurrentVersion_PropertySystem_PropertyHandlers_oth
- ParentID = PREDEFINED_HKEY_LOCAL_MACHINE;
- Subkey = "SOFTWARE\Microsoft\Windows\CurrentVersion\PropertySystem\PropertyHandlers\.oth";
- ModuleID = gid_Module_Prg_Wrt_Bin;
- Value = "{AE424E85-F6DF-4910-A6A9-438797986431}";
-End
-
-RegistryItem gid_Regitem_Software_Microsoft_Windows_CurrentVersion_PropertySystem_PropertyHandlers_odm
- ParentID = PREDEFINED_HKEY_LOCAL_MACHINE;
- Subkey = "SOFTWARE\Microsoft\Windows\CurrentVersion\PropertySystem\PropertyHandlers\.odm";
- ModuleID = gid_Module_Prg_Wrt_Bin;
- Value = "{AE424E85-F6DF-4910-A6A9-438797986431}";
-End
-
-RegistryItem gid_Regitem_Software_Microsoft_Windows_CurrentVersion_PropertySystem_PropertyHandlers_sxw
- ParentID = PREDEFINED_HKEY_LOCAL_MACHINE;
- Subkey = "SOFTWARE\Microsoft\Windows\CurrentVersion\PropertySystem\PropertyHandlers\.sxw";
- ModuleID = gid_Module_Prg_Wrt_Bin;
- Value = "{AE424E85-F6DF-4910-A6A9-438797986431}";
-End
-
-RegistryItem gid_Regitem_Software_Microsoft_Windows_CurrentVersion_PropertySystem_PropertyHandlers_stw
- ParentID = PREDEFINED_HKEY_LOCAL_MACHINE;
- Subkey = "SOFTWARE\Microsoft\Windows\CurrentVersion\PropertySystem\PropertyHandlers\.stw";
- ModuleID = gid_Module_Prg_Wrt_Bin;
- Value = "{AE424E85-F6DF-4910-A6A9-438797986431}";
-End
-
-RegistryItem gid_Regitem_Software_Microsoft_Windows_CurrentVersion_PropertySystem_PropertyHandlers_sxg
- ParentID = PREDEFINED_HKEY_LOCAL_MACHINE;
- Subkey = "SOFTWARE\Microsoft\Windows\CurrentVersion\PropertySystem\PropertyHandlers\.sxg";
- ModuleID = gid_Module_Prg_Wrt_Bin;
- Value = "{AE424E85-F6DF-4910-A6A9-438797986431}";
-End
+REGISTER_PROPERTY_HANDLER_FOR_EXTENSION( odt, gid_Module_Prg_Wrt_Bin )
+REGISTER_PROPERTY_HANDLER_FOR_EXTENSION( ott, gid_Module_Prg_Wrt_Bin )
+REGISTER_PROPERTY_HANDLER_FOR_EXTENSION( oth, gid_Module_Prg_Wrt_Bin )
+REGISTER_PROPERTY_HANDLER_FOR_EXTENSION( odm, gid_Module_Prg_Wrt_Bin )
+REGISTER_PROPERTY_HANDLER_FOR_EXTENSION( sxw, gid_Module_Prg_Wrt_Bin )
+REGISTER_PROPERTY_HANDLER_FOR_EXTENSION( stw, gid_Module_Prg_Wrt_Bin )
+REGISTER_PROPERTY_HANDLER_FOR_EXTENSION( sxg, gid_Module_Prg_Wrt_Bin )
+// registering the mso file types
// CONDITIONAL_REGISTER_DOC_EXTENSION(name,modid, key, cond, disp_name, icon_id, app, default, dox_type)
CONDITIONAL_REGISTER_DOC_EXTENSION( Doc, gid_Module_Prg_Wrt_Bin, doc, DOC, MS_WORD_DOCUMENT_OLD, 1, swriter.exe, open, Writer )