1/*************************************************************************
2 *
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
6 *
7 * OpenOffice.org - a multi-platform office productivity suite
8 *
9 * This file is part of OpenOffice.org.
10 *
11 * OpenOffice.org is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU Lesser General Public License version 3
13 * only, as published by the Free Software Foundation.
14 *
15 * OpenOffice.org is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18 * GNU Lesser General Public License version 3 for more details
19 * (a copy is included in the LICENSE file that accompanied this code).
20 *
21 * You should have received a copy of the GNU Lesser General Public License
22 * version 3 along with OpenOffice.org.  If not, see
23 * <http://www.openoffice.org/license.html>
24 * for a copy of the LGPLv3 License.
25 *
26 ************************************************************************/
27
28#include "macros.inc"
29
30// new odb file extension
31
32RegistryItem gid_Regitem_Odb
33    ParentID = PREDEFINED_HKEY_CLASSES_ROOT;
34    Subkey = ".odb";
35    ModuleID = gid_Module_Prg_Base_Bin;
36    Value = "opendocument.DatabaseDocument.1";
37End
38
39RegistryItem gid_Regitem_Odb_PersistentHandler
40    ParentID = PREDEFINED_HKEY_CLASSES_ROOT;
41    ModuleID = gid_Module_Prg_Base_Bin;
42    Subkey = ".odb\PersistentHandler";
43    Value = "{7BC0E713-5703-45BE-A29D-5D46D8B39262}";
44End
45
46RegistryItem gid_Regitem_Odb_Shellex_00021500_0000_0000_C000_000000000046
47    ParentID = PREDEFINED_HKEY_CLASSES_ROOT;
48    ModuleID = gid_Module_Prg_Base_Bin;
49    Subkey = ".odb\shellex\{00021500-0000-0000-C000-000000000046}";
50    Value = "{087B3AE3-E237-4467-B8DB-5A38AB959AC9}";
51End
52
53RegistryItem gid_Regitem_Odb_Shellex_BB2E617C_0920_11D1_9A0B_00C04FC2D6C1
54    ParentID = PREDEFINED_HKEY_CLASSES_ROOT;
55    ModuleID = gid_Module_Prg_Base_Bin;
56    Subkey = ".odb\shellex\{BB2E617C-0920-11D1-9A0B-00C04FC2D6C1}";
57    Value = "{3B092F0C-7696-40E3-A80F-68D74DA84210}";
58End
59
60RegistryItem gid_Regitem_DatabaseDocument_1_Shellex_PropertySheetHandlers_MyPropSheet1
61    ParentID = PREDEFINED_HKEY_CLASSES_ROOT;
62    ModuleID = gid_Module_Prg_Base_Bin;
63    Subkey = "opendocument.DatabaseDocument.1\shellex\PropertySheetHandlers\MyPropSheet1";
64    Value = "{63542C48-9552-494A-84F7-73AA6A7C99C1}";
65End
66
67RegistryItem gid_Regitem_Odb_Contenttype
68    ParentID = PREDEFINED_HKEY_CLASSES_ROOT;
69    ModuleID = gid_Module_Prg_Base_Bin;
70    Subkey = ".odb";
71    Name = "Content Type";
72    Value = "application/vnd.sun.xml.base";
73End
74
75RegistryItem gid_Regitem_Odb_Mime_Database
76	ParentID = PREDEFINED_HKEY_CLASSES_ROOT;
77	ModuleID = gid_Module_Prg_Base_Bin;
78	Subkey = "MIME\Database\Content Type\application/vnd.sun.xml.base";
79	Name = "Extension";
80	Value = ".odb";
81End
82
83RegistryItem gid_Regitem_Openoffice_Databasedocument_1
84    ParentID = PREDEFINED_HKEY_CLASSES_ROOT;
85    Subkey = "opendocument.DatabaseDocument.1";
86    ModuleID = gid_Module_Prg_Base_Bin;
87    REG_VALUE_LNG(OO_DATABASE)
88End
89
90RegistryItem gid_Regitem_Openoffice_Databasedocument_1_Defaulticon
91    ParentID = PREDEFINED_HKEY_CLASSES_ROOT;
92    Subkey = "opendocument.DatabaseDocument.1\DefaultIcon";
93    ModuleID = gid_Module_Prg_Base_Bin;
94    Value = "<progpath>\program\soffice.exe,13";
95End
96
97RegistryItem gid_Regitem_odb_FullDetails
98    ParentID = PREDEFINED_HKEY_CLASSES_ROOT;
99    ModuleID = gid_Module_Optional_Winexplorerext_PropertyHdl;
100    Subkey = "opendocument.DatabaseDocument.1";
101    Name = "FullDetails";
102    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";
103End
104
105RegistryItem gid_Regitem_Openoffice_Databasedocument_1_Shell
106    ParentID = PREDEFINED_HKEY_CLASSES_ROOT;
107    Subkey = "opendocument.DatabaseDocument.1\shell";
108    ModuleID = gid_Module_Prg_Base_Bin;
109    Value = "open";
110End
111
112// RegistryItem gid_Regitem_Openoffice_Databasedocument_1_Shell_Open_Command
113//     ParentID = PREDEFINED_HKEY_CLASSES_ROOT;
114//     Subkey = "opendocument.DatabaseDocument.1\shell\open\command";
115//     ModuleID = gid_Module_Prg_Base_Bin;
116//     Value = "\"<progpath>\program\soffice.exe\" -o \"%1\"";
117// End
118
119RegistryItem gid_Regitem_Openoffice_Databasedocument_1_Shell_Open_Command
120    ParentID = PREDEFINED_HKEY_CLASSES_ROOT;
121    Subkey = "opendocument.DatabaseDocument.1\shell\open\command";
122    ModuleID = gid_Module_Prg_Base_Bin;
123    Value = "\"<progpath>\program\sbase.exe\" -o \"%1\"";
124    Styles = ();
125End
126
127// "OpenWith" Windows Registry keys for .odb
128
129RegistryItem gid_Regitem_OpenOffice_ODB_OpenWith_Database
130    ParentID = PREDEFINED_HKEY_CLASSES_ROOT;
131    Subkey = ".odb\OpenWithProgIDs";
132    ModuleID = gid_Module_Prg_Base_Bin;
133    Name = "opendocument.DatabaseDocument.1";
134    Value = " ";
135End
136
137RegistryItem gid_Regitem_Software_Manufacturer_Productname_Productversion_Capabilities_FileAssociations_Odb
138    ParentID = PREDEFINED_HKEY_LOCAL_MACHINE;
139    Subkey = "Software\%MANUFACTURER\%PRODUCTNAME%PRODUCTADDON\%PRODUCTVERSION\Capabilities\FileAssociations";
140    ModuleID = gid_Module_Prg_Base_Bin;
141    Name = ".odb";
142    Value = "opendocument.DatabaseDocument.1";
143    Styles = ();
144End
145
146RegistryItem gid_Regitem_Software_Microsoft_Windows_Currentversion_Apppaths_Sbase_Exe
147    ParentID = PREDEFINED_HKEY_LOCAL_MACHINE;
148    Subkey = "Software\Microsoft\Windows\CurrentVersion\App Paths\sbase.exe";
149    ModuleID = gid_Module_Prg_Base_Bin;
150    Value = "<progpath>\program\sbase.exe";
151End
152
153RegistryItem gid_Regitem_Software_Microsoft_Windows_Currentversion_Apppaths_Sbase_Exepath
154    ParentID = PREDEFINED_HKEY_LOCAL_MACHINE;
155    Subkey = "Software\Microsoft\Windows\CurrentVersion\App Paths\sbase.exe";
156    ModuleID = gid_Module_Prg_Base_Bin;
157    Name = "Path";
158    Value = "<progpath>";
159End
160
161// registering the property handler for the supported file types
162
163REGISTER_PROPERTY_HANDLER_FOR_EXTENSION( odb )
164