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