[MSXML3][BOOTDATA] Add icons for XML and XSL files and use them. Patch by Jared Smudd...
authorRobert Naumann <gonzomdx@gmail.com>
Wed, 16 Sep 2015 21:45:48 +0000 (21:45 +0000)
committerRobert Naumann <gonzomdx@gmail.com>
Wed, 16 Sep 2015 21:45:48 +0000 (21:45 +0000)
svn path=/trunk/; revision=69257

reactos/boot/bootdata/hivecls.inf
reactos/dll/win32/msxml3/res/128.ico [new file with mode: 0644]
reactos/dll/win32/msxml3/res/129.ico [new file with mode: 0644]
reactos/dll/win32/msxml3/resource.h [new file with mode: 0644]
reactos/dll/win32/msxml3/resources.rc [new file with mode: 0644]
reactos/dll/win32/msxml3/version.rc

index e68ed8c..940edf6 100644 (file)
@@ -237,9 +237,16 @@ HKCR,"txtfile\shell\print\command","",0x00000000,"notepad.exe /p ""%1"""
 HKCR,".xml","",0x00000000,"xmlfile"
 HKCR,"xmlfile","",0x00000000,"XML Document"
 HKCR,".xml","Content Type",0x00000000,"text/xml"
-HKCR,"xmlfile\DefaultIcon","",0x00020000,"%SystemRoot%\system32\shell32.dll,-151"
+HKCR,"xmlfile\DefaultIcon","",0x00020000,"%SystemRoot%\system32\msxml3.dll,0"
 HKCR,"xmlfile\shell\open\command","",0x00020000,"%SystemRoot%\system32\notepad.exe %1"
 
+; XSL Stylesheets
+HKCR,".xsl","",0x00000000,"xslfile"
+HKCR,"xslfile","",0x00000000,"XSL Stylesheet"
+HKCR,".xsl","Content Type",0x00000000,"text/xml"
+HKCR,"xslfile\DefaultIcon","",0x00020000,"%SystemRoot%\system32\msxml3.dll,1"
+HKCR,"xslfile\shell\open\command","",0x00020000,"%SystemRoot%\system32\notepad.exe %1"
+
 ; MSI files
 HKCR,".msi","",0x00000000,"MSI.Package"
 HKCR,"Msi.Package\DefaultIcon","",0x00000000,"msiexec.exe"
diff --git a/reactos/dll/win32/msxml3/res/128.ico b/reactos/dll/win32/msxml3/res/128.ico
new file mode 100644 (file)
index 0000000..5adbba2
Binary files /dev/null and b/reactos/dll/win32/msxml3/res/128.ico differ
diff --git a/reactos/dll/win32/msxml3/res/129.ico b/reactos/dll/win32/msxml3/res/129.ico
new file mode 100644 (file)
index 0000000..000c7b8
Binary files /dev/null and b/reactos/dll/win32/msxml3/res/129.ico differ
diff --git a/reactos/dll/win32/msxml3/resource.h b/reactos/dll/win32/msxml3/resource.h
new file mode 100644 (file)
index 0000000..7dbaabd
--- /dev/null
@@ -0,0 +1,4 @@
+#pragma once
+
+#define IDI_XML_FILE    128
+#define IDI_XSL_FILE    129
diff --git a/reactos/dll/win32/msxml3/resources.rc b/reactos/dll/win32/msxml3/resources.rc
new file mode 100644 (file)
index 0000000..c05489f
--- /dev/null
@@ -0,0 +1,4 @@
+#include "resource.h"
+
+IDI_XML_FILE ICON "res/128.ico"
+IDI_XML_SYSTEM ICON "res/129.ico"
\ No newline at end of file
index f4aecc1..3cc9aa8 100644 (file)
@@ -32,3 +32,6 @@ WINE_MANIFEST 24 msxml3.manifest
 2 WINE_REGISTRY "xmlparser.rgs"
 
 #include "schemas.rc"
+#ifdef __REACTOS__
+    #include "resources.rc"
+#endif