From a5783fe922b2419b5b662eb5f544a1f401341dbf Mon Sep 17 00:00:00 2001 From: Andras Timar Date: Sat, 2 Mar 2013 21:55:39 +0100 Subject: remove stale javafilters Change-Id: Id0c413d64e6f6fa7ded3c5ff10e764bc2e40f006 --- setup_native/source/packinfo/package_names.txt | 1 - setup_native/source/packinfo/packinfo_office.txt | 15 - .../win32/customactions/javafilter/jfregca.cxx | 323 --------------------- .../win32/customactions/javafilter/jfregca.def | 4 - 4 files changed, 343 deletions(-) delete mode 100644 setup_native/source/win32/customactions/javafilter/jfregca.cxx delete mode 100644 setup_native/source/win32/customactions/javafilter/jfregca.def (limited to 'setup_native/source') diff --git a/setup_native/source/packinfo/package_names.txt b/setup_native/source/packinfo/package_names.txt index 64fa6f52fef2..ec2593d6b615 100644 --- a/setup_native/source/packinfo/package_names.txt +++ b/setup_native/source/packinfo/package_names.txt @@ -30,7 +30,6 @@ %BASISPACKAGEPREFIX%WITHOUTDOTPRODUCTVERSION-headless Headless display module for LibreOffice %PRODUCTVERSION %BASISPACKAGEPREFIX%WITHOUTDOTPRODUCTVERSION-images Images module for LibreOffice %PRODUCTVERSION %BASISPACKAGEPREFIX%WITHOUTDOTPRODUCTVERSION-impress Impress module for LibreOffice %PRODUCTVERSION -%BASISPACKAGEPREFIX%WITHOUTDOTPRODUCTVERSION-javafilter Java filter module for LibreOffice %PRODUCTVERSION %BASISPACKAGEPREFIX%WITHOUTDOTPRODUCTVERSION-kde-integration KDE integration module for LibreOffice %PRODUCTVERSION %BASISPACKAGEPREFIX%WITHOUTDOTPRODUCTVERSION-math Math module for LibreOffice %PRODUCTVERSION %BASISPACKAGEPREFIX%WITHOUTDOTPRODUCTVERSION-onlineupdate Online update modul for LibreOffice %PRODUCTVERSION diff --git a/setup_native/source/packinfo/packinfo_office.txt b/setup_native/source/packinfo/packinfo_office.txt index 3e8c89eb489a..f67453e72e5d 100644 --- a/setup_native/source/packinfo/packinfo_office.txt +++ b/setup_native/source/packinfo/packinfo_office.txt @@ -252,21 +252,6 @@ destpath = "/opt" packageversion = "%ABOUTBOXPRODUCTVERSION" End -Start -module = "gid_Module_Optional_Javafilter" -solarispackagename = "%BASISPACKAGEPREFIX%WITHOUTDOTPRODUCTVERSION-javafilter" -solarisrequires = "%BASISPACKAGEPREFIX%WITHOUTDOTPRODUCTVERSION-core01" -packagename = "%BASISPACKAGEPREFIX%PRODUCTVERSION-javafilter" -freebsdrequires = "%BASISPACKAGEPREFIX%PRODUCTVERSION-core01" -requires = "%BASISPACKAGEPREFIX%PRODUCTVERSION-core01" -copyright = "2012 The Document Foundation" -solariscopyright = "solariscopyrightfile" -vendor = "The Document Foundation" -description = "Java filter module for %PRODUCTNAME %PRODUCTVERSION" -destpath = "/opt" -packageversion = "%ABOUTBOXPRODUCTVERSION" -End - Start module = "gid_Module_Optional_Activexcontrol" solarispackagename = "%BASISPACKAGEPREFIX%WITHOUTDOTPRODUCTVERSION-activex" diff --git a/setup_native/source/win32/customactions/javafilter/jfregca.cxx b/setup_native/source/win32/customactions/javafilter/jfregca.cxx deleted file mode 100644 index 841bdf6e066e..000000000000 --- a/setup_native/source/win32/customactions/javafilter/jfregca.cxx +++ /dev/null @@ -1,323 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . - */ - -#ifdef _MSC_VER -#pragma warning(push, 1) /* disable warnings within system headers */ -#endif -#include -#include -#include -#ifdef _MSC_VER -#pragma warning(pop) -#endif - -#if defined UNICODE -#define _UNICODE -#endif -#include - -//Simple function prototypes -bool update_activesync_regvalues(bool, bool, char** ); -void createKeys(HKEY hKey, char **); -void deleteKeys(HKEY hKey, char **); -bool isMulti(MSIHANDLE); - -//Simple data arrays for registry values -TCHAR *pxlData[8]= { - "{C6AB3E74-9F4F-4370-8120-A8A6FABB7A7C}", //CLSID 1 - key name at InstalledFilters Key - "{43887C67-4D5D-4127-BAAC-87A288494C7C}", //CLSID 2 - key value for Default Export - ".pxl", //Registry key for device type - already there if ActiveSync installerd - ".sxc", //New registry key for SO docs - "InstalledFilters", //Sub-key of device/so doc key - "DefaultImport", //Key name added at device/so level key - "DefaultExport", //Key name added at device/so level key - "Binary Copy", //Key value for DefaultImport -}; - -TCHAR *pswData[8] = { - "{BDD611C3-7BAB-460F-8711-5B9AC9EF6020}", //CLSID 1 - key name at InstalledFilters Key - "{CB43F086-838D-4FA4-B5F6-3406B9A57439}", //CLSID 2 - key value for Default Export - ".psw", //Registry key for device type - already there if ActiveSync installe - ".sxw", //New registry key for SO docs - "InstalledFilters", //Sub-key of device/so doc key - "DefaultImport", //Key name added at device/so level key - "DefaultExport", //Key name added at device/so level key - "Binary Copy", //Key value for DefaultImport -}; - - -//index into registry value arrays -#define CLSID1 0 -#define CLSID2 1 -#define DEVICE_PATH 2 -#define SO_PATH 3 -#define IF_PATH 4 -#define DEFIMPORT_KEY 5 -#define DEFEXPORT_KEY 6 -#define BC_VALUE 7 - -//Constants for Registry buffers -const int MAX_KEY_LENGTH=255; -const int MAX_VALUE_NAME=16383; - -BOOL APIENTRY DllMain( HANDLE, - DWORD ul_reason, - LPVOID - ) -{ - switch (ul_reason) - { - case DLL_PROCESS_ATTACH: - case DLL_THREAD_ATTACH: - case DLL_THREAD_DETACH: - case DLL_PROCESS_DETACH: - break; - } - return TRUE; -} - -extern "C" UINT __declspec(dllexport) install_jf ( MSIHANDLE hModule ) { - bool bMulti = isMulti(hModule); -#ifdef _JRGREG_DEBUG - MessageBox(NULL, bMulti ? "Multi" : "Single", "Install", MB_OK); -#endif - update_activesync_regvalues(bMulti, true, pxlData); - update_activesync_regvalues(bMulti, true, pswData); - - return ERROR_SUCCESS; -} - -extern "C" UINT _declspec(dllexport) uninstall_jf ( MSIHANDLE hModule ) { - bool bMulti = isMulti(hModule); -#ifdef _JRGREG_DEBUG - MessageBox(NULL, bMulti ? "Multi" : "Single", "Uninstall", MB_OK); -#endif - update_activesync_regvalues(false, bMulti, pxlData); - update_activesync_regvalues(false, bMulti, pswData); - - return ERROR_SUCCESS; -} - -/** - Determines if this is being installed on a per user or a machine wide basis - @param hModule - [in] a valid msi handle. - - - @returns - if this is a multi-user install. -*/ -bool isMulti( MSIHANDLE hModule ) { - TCHAR* szValueBuf = NULL; - DWORD cchValueBuf = 0; - bool bRet = false; - UINT uiStat = MsiGetProperty(hModule, TEXT("ALLUSERS"), TEXT(""), &cchValueBuf); - if (ERROR_MORE_DATA == uiStat) - { - ++cchValueBuf; // on output does not include terminating null, so add 1 - szValueBuf = new TCHAR[cchValueBuf]; - if (szValueBuf) - { - uiStat = MsiGetProperty(hModule, TEXT("ALLUSERS"), szValueBuf, &cchValueBuf); - } - } - if (ERROR_SUCCESS != uiStat) - { - return false; - } - bRet = _tcscmp(szValueBuf, TEXT("1")) == 0; - delete [] szValueBuf; - - return bRet; -} - -/** - Add or remove ActiveSync integration entries from the registry - @param bMultiUser - [in] if this is a multiuser install ( for single user install) - - @param bInstall - [in] if installing - - @param data - [in] an array of string containing names of registry keys and values - - - @returns - if this is a multi-user install. -*/ - -bool update_activesync_regvalues(bool bMultiUser, bool bInstall, char **data) { - bool bReturn = false; - CHAR SUKey[] = "Software\\Microsoft\\Windows CE Services\\Partners"; - CHAR MUKey[] = "Software\\Microsoft\\Windows CE Services\\Filters"; - HKEY hKey; - - if (bMultiUser) { - if (ERROR_SUCCESS != RegOpenKeyEx(HKEY_LOCAL_MACHINE, (LPCSTR)MUKey, 0, KEY_ALL_ACCESS, &hKey)) { - return false; - } - if (bInstall) { - createKeys(hKey, data); - } else { - deleteKeys(hKey, data); - } - bReturn = true; - } else { - if (ERROR_SUCCESS != RegOpenKeyEx(HKEY_CURRENT_USER, (LPCSTR)SUKey, 0, KEY_ALL_ACCESS, &hKey)) { - return false; - } - - CHAR achKey[MAX_KEY_LENGTH]; // buffer for subkey name - DWORD cbName; // size of name string - CHAR achClass[MAX_PATH] = ""; // buffer for class name - DWORD cchClassName = MAX_PATH; // size of class string - DWORD cSubKeys=0; // number of subkeys - DWORD cbMaxSubKey; // longest subkey size - DWORD cchMaxClass; // longest class string - DWORD cValues; // number of values for key - DWORD cchMaxValue; // longest value name - DWORD cbMaxValueData; // longest value data - DWORD cbSecurityDescriptor; // size of security descriptor - FILETIME ftLastWriteTime; // last write time - - // Get the class name and the value count. - if (ERROR_SUCCESS == RegQueryInfoKey( - hKey, // key handle - achClass, // buffer for class name - &cchClassName, // size of class string - NULL, // reserved - &cSubKeys, // number of subkeys - &cbMaxSubKey, // longest subkey size - &cchMaxClass, // longest class string - &cValues, // number of values for this key - &cchMaxValue, // longest value name - &cbMaxValueData, // longest value data - &cbSecurityDescriptor, // security descriptor - &ftLastWriteTime)) { // last write time - - if (cSubKeys) { - for (DWORD i=0; i