1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 
24 #include "macros.inc"
25 
26 // new odb file extension
27 
28 RegistryItem gid_Regitem_Odb
29     ParentID = PREDEFINED_HKEY_CLASSES_ROOT;
30     Subkey = ".odb";
31     ModuleID = gid_Module_Prg_Base_Bin;
32     Value = "opendocument.DatabaseDocument.1";
33 End
34 
35 RegistryItem gid_Regitem_Odb_PersistentHandler
36     ParentID = PREDEFINED_HKEY_CLASSES_ROOT;
37     ModuleID = gid_Module_Prg_Base_Bin;
38     Subkey = ".odb\PersistentHandler";
39     Value = "{7BC0E713-5703-45BE-A29D-5D46D8B39262}";
40 End
41 
42 RegistryItem gid_Regitem_Odb_Shellex_00021500_0000_0000_C000_000000000046
43     ParentID = PREDEFINED_HKEY_CLASSES_ROOT;
44     ModuleID = gid_Module_Prg_Base_Bin;
45     Subkey = ".odb\shellex\{00021500-0000-0000-C000-000000000046}";
46     Value = "{087B3AE3-E237-4467-B8DB-5A38AB959AC9}";
47 End
48 
49 RegistryItem gid_Regitem_Odb_Shellex_BB2E617C_0920_11D1_9A0B_00C04FC2D6C1
50     ParentID = PREDEFINED_HKEY_CLASSES_ROOT;
51     ModuleID = gid_Module_Prg_Base_Bin;
52     Subkey = ".odb\shellex\{BB2E617C-0920-11D1-9A0B-00C04FC2D6C1}";
53     Value = "{3B092F0C-7696-40E3-A80F-68D74DA84210}";
54 End
55 
56 RegistryItem gid_Regitem_DatabaseDocument_1_Shellex_PropertySheetHandlers_MyPropSheet1
57     ParentID = PREDEFINED_HKEY_CLASSES_ROOT;
58     ModuleID = gid_Module_Prg_Base_Bin;
59     Subkey = "opendocument.DatabaseDocument.1\shellex\PropertySheetHandlers\MyPropSheet1";
60     Value = "{63542C48-9552-494A-84F7-73AA6A7C99C1}";
61 End
62 
63 RegistryItem gid_Regitem_Odb_Contenttype
64     ParentID = PREDEFINED_HKEY_CLASSES_ROOT;
65     ModuleID = gid_Module_Prg_Base_Bin;
66     Subkey = ".odb";
67     Name = "Content Type";
68     Value = "application/vnd.sun.xml.base";
69 End
70 
71 RegistryItem gid_Regitem_Odb_Mime_Database
72 	ParentID = PREDEFINED_HKEY_CLASSES_ROOT;
73 	ModuleID = gid_Module_Prg_Base_Bin;
74 	Subkey = "MIME\Database\Content Type\application/vnd.sun.xml.base";
75 	Name = "Extension";
76 	Value = ".odb";
77 End
78 
79 RegistryItem gid_Regitem_Openoffice_Databasedocument_1
80     ParentID = PREDEFINED_HKEY_CLASSES_ROOT;
81     Subkey = "opendocument.DatabaseDocument.1";
82     ModuleID = gid_Module_Prg_Base_Bin;
83     REG_VALUE_LNG(OO_DATABASE)
84 End
85 
86 RegistryItem gid_Regitem_Openoffice_Databasedocument_1_Defaulticon
87     ParentID = PREDEFINED_HKEY_CLASSES_ROOT;
88     Subkey = "opendocument.DatabaseDocument.1\DefaultIcon";
89     ModuleID = gid_Module_Prg_Base_Bin;
90     Value = "<progpath>\program\soffice.exe,13";
91 End
92 
93 RegistryItem gid_Regitem_odb_FullDetails
94     ParentID = PREDEFINED_HKEY_CLASSES_ROOT;
95     ModuleID = gid_Module_Optional_Winexplorerext_PropertyHdl;
96     Subkey = "opendocument.DatabaseDocument.1";
97     Name = "FullDetails";
98     Value = "prop:System.PropGroup.Description;System.Title;System.Author;System.Subject;System.Keywords;System.Comment;System.PropGroup.FileSystem;System.ItemNameDisplay;System.ItemType;System.ItemFolderPathDisplay;System.Size;System.DateCreated;System.DateModified;System.FileAttributes;System.ComputerName";
99 End
100 
101 RegistryItem gid_Regitem_Openoffice_Databasedocument_1_Shell
102     ParentID = PREDEFINED_HKEY_CLASSES_ROOT;
103     Subkey = "opendocument.DatabaseDocument.1\shell";
104     ModuleID = gid_Module_Prg_Base_Bin;
105     Value = "open";
106 End
107 
108 // RegistryItem gid_Regitem_Openoffice_Databasedocument_1_Shell_Open_Command
109 //     ParentID = PREDEFINED_HKEY_CLASSES_ROOT;
110 //     Subkey = "opendocument.DatabaseDocument.1\shell\open\command";
111 //     ModuleID = gid_Module_Prg_Base_Bin;
112 //     Value = "\"<progpath>\program\soffice.exe\" -o \"%1\"";
113 // End
114 
115 RegistryItem gid_Regitem_Openoffice_Databasedocument_1_Shell_Open_Command
116     ParentID = PREDEFINED_HKEY_CLASSES_ROOT;
117     Subkey = "opendocument.DatabaseDocument.1\shell\open\command";
118     ModuleID = gid_Module_Prg_Base_Bin;
119     Value = "\"<progpath>\program\sbase.exe\" -o \"%1\"";
120     Styles = ();
121 End
122 
123 // "OpenWith" Windows Registry keys for .odb
124 
125 RegistryItem gid_Regitem_OpenOffice_ODB_OpenWith_Database
126     ParentID = PREDEFINED_HKEY_CLASSES_ROOT;
127     Subkey = ".odb\OpenWithProgIDs";
128     ModuleID = gid_Module_Prg_Base_Bin;
129     Name = "opendocument.DatabaseDocument.1";
130     Value = " ";
131 End
132 
133 RegistryItem gid_Regitem_Software_Manufacturer_Productname_Productversion_Capabilities_FileAssociations_Odb
134     ParentID = PREDEFINED_HKEY_LOCAL_MACHINE;
135     Subkey = "Software\%MANUFACTURER\%PRODUCTNAME%PRODUCTADDON\%PRODUCTVERSION\Capabilities\FileAssociations";
136     ModuleID = gid_Module_Prg_Base_Bin;
137     Name = ".odb";
138     Value = "opendocument.DatabaseDocument.1";
139     Styles = ();
140 End
141 
142 RegistryItem gid_Regitem_Software_Microsoft_Windows_Currentversion_Apppaths_Sbase_Exe
143     ParentID = PREDEFINED_HKEY_LOCAL_MACHINE;
144     Subkey = "Software\Microsoft\Windows\CurrentVersion\App Paths\sbase.exe";
145     ModuleID = gid_Module_Prg_Base_Bin;
146     Value = "<progpath>\program\sbase.exe";
147 End
148 
149 RegistryItem gid_Regitem_Software_Microsoft_Windows_Currentversion_Apppaths_Sbase_Exepath
150     ParentID = PREDEFINED_HKEY_LOCAL_MACHINE;
151     Subkey = "Software\Microsoft\Windows\CurrentVersion\App Paths\sbase.exe";
152     ModuleID = gid_Module_Prg_Base_Bin;
153     Name = "Path";
154     Value = "<progpath>";
155 End
156 
157 // registering the property handler for the supported file types
158 
159 REGISTER_PROPERTY_HANDLER_FOR_EXTENSION( odb )
160