summaryrefslogtreecommitdiff
path: root/scripting
diff options
context:
space:
mode:
authorDavid Ostrovsky <david@ostrovsky.org>2014-10-09 10:47:42 +0200
committerStephan Bergmann <sbergman@redhat.com>2014-10-10 09:41:29 +0200
commita1552a0ec3fcddd968db274ef41bc2452c50bed9 (patch)
treee5f97283967605204d666c196b4bc5f522d6e08c /scripting
parent87bf3fb4a5def8b0536d44ab406dbd31b09c0daf (diff)
Scripting: Remove org package
Change-Id: If0b6ac87b5d53da43557dee5824e9413a260ba7c Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'scripting')
-rw-r--r--scripting/java/manifest.mf26
-rw-r--r--scripting/java/org/openoffice/idesupport/CommandLineTools.java337
-rw-r--r--scripting/java/org/openoffice/idesupport/ExtensionFinder.java81
-rw-r--r--scripting/java/org/openoffice/idesupport/JavaFinder.java231
-rw-r--r--scripting/java/org/openoffice/idesupport/LocalOffice.java54
-rw-r--r--scripting/java/org/openoffice/idesupport/MethodFinder.java26
-rw-r--r--scripting/java/org/openoffice/idesupport/OfficeDocument.java106
-rw-r--r--scripting/java/org/openoffice/idesupport/OfficeInstallation.java85
-rw-r--r--scripting/java/org/openoffice/idesupport/SVersionRCFile.java226
-rw-r--r--scripting/java/org/openoffice/idesupport/filter/AllFilesFilter.java39
-rw-r--r--scripting/java/org/openoffice/idesupport/filter/BinaryOnlyFilter.java44
-rw-r--r--scripting/java/org/openoffice/idesupport/filter/ExceptParcelFilter.java45
-rw-r--r--scripting/java/org/openoffice/idesupport/filter/FileFilter.java23
-rw-r--r--scripting/java/org/openoffice/idesupport/localoffice/LocalOfficeImpl.java131
-rw-r--r--scripting/java/org/openoffice/idesupport/ui/ConfigurePanel.java223
-rw-r--r--scripting/java/org/openoffice/idesupport/ui/MethodPanel.java164
-rw-r--r--scripting/java/org/openoffice/idesupport/ui/ScriptPanel.java199
-rw-r--r--scripting/java/org/openoffice/idesupport/ui/add.gifbin103 -> 0 bytes
-rw-r--r--scripting/java/org/openoffice/idesupport/xml/Manifest.java125
-rw-r--r--scripting/java/org/openoffice/idesupport/zip/ParcelZipper.java159
-rw-r--r--scripting/java/org/openoffice/netbeans/editor/JavaKit.java237
-rw-r--r--scripting/java/org/openoffice/netbeans/editor/NetBeansSourceView.java197
-rw-r--r--scripting/java/org/openoffice/netbeans/editor/OOo.jcb5
-rw-r--r--scripting/java/org/openoffice/netbeans/editor/OOo.jcs21
-rw-r--r--scripting/java/org/openoffice/netbeans/modules/office/Bundle.properties0
-rw-r--r--scripting/java/org/openoffice/netbeans/modules/office/Bundle_en_US.properties0
-rw-r--r--scripting/java/org/openoffice/netbeans/modules/office/actions/BuildParcelAction.java60
-rw-r--r--scripting/java/org/openoffice/netbeans/modules/office/actions/CompileParcelAction.java35
-rw-r--r--scripting/java/org/openoffice/netbeans/modules/office/actions/ConfigureParcelAction.java61
-rw-r--r--scripting/java/org/openoffice/netbeans/modules/office/actions/DeployParcelAction.java238
-rw-r--r--scripting/java/org/openoffice/netbeans/modules/office/actions/MountDocumentAction.java62
-rw-r--r--scripting/java/org/openoffice/netbeans/modules/office/actions/MountParcelAction.java61
-rw-r--r--scripting/java/org/openoffice/netbeans/modules/office/actions/OfficeDocumentCookie.java32
-rw-r--r--scripting/java/org/openoffice/netbeans/modules/office/actions/OfficeDocumentSupport.java133
-rw-r--r--scripting/java/org/openoffice/netbeans/modules/office/actions/ParcelCookie.java32
-rw-r--r--scripting/java/org/openoffice/netbeans/modules/office/actions/ParcelDescriptorEditorSupport.java136
-rw-r--r--scripting/java/org/openoffice/netbeans/modules/office/actions/ParcelDescriptorParserCookie.java32
-rw-r--r--scripting/java/org/openoffice/netbeans/modules/office/actions/ParcelDescriptorParserSupport.java107
-rw-r--r--scripting/java/org/openoffice/netbeans/modules/office/actions/ParcelFolderCookie.java32
-rw-r--r--scripting/java/org/openoffice/netbeans/modules/office/actions/ParcelFolderSupport.java242
-rw-r--r--scripting/java/org/openoffice/netbeans/modules/office/actions/ParcelSupport.java175
-rw-r--r--scripting/java/org/openoffice/netbeans/modules/office/filesystem/Bundle.properties61
-rw-r--r--scripting/java/org/openoffice/netbeans/modules/office/filesystem/Bundle_en_US.properties0
-rw-r--r--scripting/java/org/openoffice/netbeans/modules/office/filesystem/OpenOfficeDocFileSystem.java1182
-rw-r--r--scripting/java/org/openoffice/netbeans/modules/office/filesystem/OpenOfficeDocFileSystemBeanInfo.java110
-rw-r--r--scripting/java/org/openoffice/netbeans/modules/office/loader/Bundle.properties30
-rw-r--r--scripting/java/org/openoffice/netbeans/modules/office/loader/OfficeDocumentDataLoader.java99
-rw-r--r--scripting/java/org/openoffice/netbeans/modules/office/loader/OfficeDocumentDataLoaderBeanInfo.java63
-rw-r--r--scripting/java/org/openoffice/netbeans/modules/office/loader/OfficeDocumentDataNode.java113
-rw-r--r--scripting/java/org/openoffice/netbeans/modules/office/loader/OfficeDocumentDataObject.java50
-rw-r--r--scripting/java/org/openoffice/netbeans/modules/office/loader/ParcelContentsFolder.java129
-rw-r--r--scripting/java/org/openoffice/netbeans/modules/office/loader/ParcelContentsFolderDataLoader.java70
-rw-r--r--scripting/java/org/openoffice/netbeans/modules/office/loader/ParcelContentsFolderDataLoaderBeanInfo.java65
-rw-r--r--scripting/java/org/openoffice/netbeans/modules/office/loader/ParcelDataLoader.java76
-rw-r--r--scripting/java/org/openoffice/netbeans/modules/office/loader/ParcelDataLoaderBeanInfo.java65
-rw-r--r--scripting/java/org/openoffice/netbeans/modules/office/loader/ParcelDataNode.java103
-rw-r--r--scripting/java/org/openoffice/netbeans/modules/office/loader/ParcelDataObject.java67
-rw-r--r--scripting/java/org/openoffice/netbeans/modules/office/loader/ParcelDescriptorDataLoader.java73
-rw-r--r--scripting/java/org/openoffice/netbeans/modules/office/loader/ParcelDescriptorDataLoaderBeanInfo.java65
-rw-r--r--scripting/java/org/openoffice/netbeans/modules/office/loader/ParcelDescriptorDataNode.java70
-rw-r--r--scripting/java/org/openoffice/netbeans/modules/office/loader/ParcelDescriptorDataObject.java75
-rw-r--r--scripting/java/org/openoffice/netbeans/modules/office/loader/ParcelFolder.java290
-rw-r--r--scripting/java/org/openoffice/netbeans/modules/office/loader/ParcelFolderDataLoader.java93
-rw-r--r--scripting/java/org/openoffice/netbeans/modules/office/loader/ParcelFolderDataLoaderBeanInfo.java65
-rw-r--r--scripting/java/org/openoffice/netbeans/modules/office/nodes/OfficeDocumentChildren.java142
-rw-r--r--scripting/java/org/openoffice/netbeans/modules/office/nodes/ParcelDescriptorChildren.java83
-rw-r--r--scripting/java/org/openoffice/netbeans/modules/office/nodes/ScriptNode.java126
-rw-r--r--scripting/java/org/openoffice/netbeans/modules/office/options/Bundle.properties31
-rw-r--r--scripting/java/org/openoffice/netbeans/modules/office/options/OfficeSettings.java119
-rw-r--r--scripting/java/org/openoffice/netbeans/modules/office/options/OfficeSettingsBeanInfo.java135
-rw-r--r--scripting/java/org/openoffice/netbeans/modules/office/options/OfficeSettingsIcon.gifbin145 -> 0 bytes
-rw-r--r--scripting/java/org/openoffice/netbeans/modules/office/options/OfficeSettingsIcon32.gifbin253 -> 0 bytes
-rw-r--r--scripting/java/org/openoffice/netbeans/modules/office/resources/AppStorage.html28
-rw-r--r--scripting/java/org/openoffice/netbeans/modules/office/resources/AppStorage.settings7
-rw-r--r--scripting/java/org/openoffice/netbeans/modules/office/resources/Bundle.properties41
-rw-r--r--scripting/java/org/openoffice/netbeans/modules/office/resources/EmptyParcel.html28
-rw-r--r--scripting/java/org/openoffice/netbeans/modules/office/resources/OfficeIcon.gifbin588 -> 0 bytes
-rw-r--r--scripting/java/org/openoffice/netbeans/modules/office/resources/OfficeIcon32.gifbin759 -> 0 bytes
-rw-r--r--scripting/java/org/openoffice/netbeans/modules/office/resources/OfficeSettings.settings9
-rw-r--r--scripting/java/org/openoffice/netbeans/modules/office/resources/OpenOfficeDocFileSystem.html28
-rw-r--r--scripting/java/org/openoffice/netbeans/modules/office/resources/OpenOfficeDocFileSystem.settings7
-rw-r--r--scripting/java/org/openoffice/netbeans/modules/office/resources/OpenOfficeDocFileSystemIcon.pngbin702 -> 0 bytes
-rw-r--r--scripting/java/org/openoffice/netbeans/modules/office/resources/OpenOfficeDocFileSystemIcon32.pngbin1533 -> 0 bytes
-rw-r--r--scripting/java/org/openoffice/netbeans/modules/office/resources/ParcelIcon.gifbin576 -> 0 bytes
-rw-r--r--scripting/java/org/openoffice/netbeans/modules/office/resources/ScriptParcel.html28
-rw-r--r--scripting/java/org/openoffice/netbeans/modules/office/resources/ScriptParcelDescriptor.html28
-rw-r--r--scripting/java/org/openoffice/netbeans/modules/office/resources/layer.xml115
-rw-r--r--scripting/java/org/openoffice/netbeans/modules/office/resources/mime-resolver.xml32
-rw-r--r--scripting/java/org/openoffice/netbeans/modules/office/resources/office-scripting.url1
-rw-r--r--scripting/java/org/openoffice/netbeans/modules/office/resources/templates/Empty.bsh_42
-rw-r--r--scripting/java/org/openoffice/netbeans/modules/office/resources/templates/Empty.java_45
-rw-r--r--scripting/java/org/openoffice/netbeans/modules/office/resources/templates/EmptyParcelDescriptor.xml_3
-rw-r--r--scripting/java/org/openoffice/netbeans/modules/office/resources/templates/HelloWorld.java_59
-rw-r--r--scripting/java/org/openoffice/netbeans/modules/office/resources/templates/ParcelDescriptor.xml_8
-rw-r--r--scripting/java/org/openoffice/netbeans/modules/office/resources/webLink.gifbin969 -> 0 bytes
-rw-r--r--scripting/java/org/openoffice/netbeans/modules/office/utils/FrameworkJarChecker.java128
-rw-r--r--scripting/java/org/openoffice/netbeans/modules/office/utils/ManifestParser.java83
-rw-r--r--scripting/java/org/openoffice/netbeans/modules/office/utils/NagDialog.java115
-rw-r--r--scripting/java/org/openoffice/netbeans/modules/office/utils/OfficeModule.java60
-rw-r--r--scripting/java/org/openoffice/netbeans/modules/office/utils/PackageRemover.java98
-rw-r--r--scripting/java/org/openoffice/netbeans/modules/office/utils/ZipMounter.java81
-rw-r--r--scripting/java/org/openoffice/netbeans/modules/office/wizard/Bundle.properties44
-rw-r--r--scripting/java/org/openoffice/netbeans/modules/office/wizard/Bundle_en_US.properties0
-rw-r--r--scripting/java/org/openoffice/netbeans/modules/office/wizard/InstallationPathDescriptor.java63
-rw-r--r--scripting/java/org/openoffice/netbeans/modules/office/wizard/InstallationPathIterator.java150
-rw-r--r--scripting/java/org/openoffice/netbeans/modules/office/wizard/JavaScriptIterator.java246
-rw-r--r--scripting/java/org/openoffice/netbeans/modules/office/wizard/ParcelContentsIterator.java248
-rw-r--r--scripting/java/org/openoffice/netbeans/modules/office/wizard/ParcelPropertiesPanel.java124
-rw-r--r--scripting/java/org/openoffice/netbeans/modules/office/wizard/ParcelPropertiesVisualPanel.form90
-rw-r--r--scripting/java/org/openoffice/netbeans/modules/office/wizard/ParcelPropertiesVisualPanel.java163
-rw-r--r--scripting/java/org/openoffice/netbeans/modules/office/wizard/SelectPathPanel.java134
-rw-r--r--scripting/java/org/openoffice/netbeans/modules/office/wizard/SelectPathVisualPanel.form98
-rw-r--r--scripting/java/org/openoffice/netbeans/modules/office/wizard/SelectPathVisualPanel.java196
-rw-r--r--scripting/workben/bindings/EditDebug.xdl53
-rw-r--r--scripting/workben/bindings/EventsBinding.xdl78
-rw-r--r--scripting/workben/bindings/HelpBinding.xdl47
-rw-r--r--scripting/workben/bindings/KeyBinding.xdl76
-rw-r--r--scripting/workben/bindings/MacroEditor.xdl27
-rw-r--r--scripting/workben/bindings/MenuBinding.xdl82
-rw-r--r--scripting/workben/bindings/ScriptBinding.xba2110
-rw-r--r--scripting/workben/bindings/calckeybinding.xml111
-rw-r--r--scripting/workben/bindings/calcmenubar.xml334
-rw-r--r--scripting/workben/bindings/drawkeybinding.xml75
-rw-r--r--scripting/workben/bindings/drawmenubar.xml369
-rw-r--r--scripting/workben/bindings/eventbindings.xml21
-rw-r--r--scripting/workben/bindings/impresskeybinding.xml79
-rw-r--r--scripting/workben/bindings/impressmenubar.xml344
-rw-r--r--scripting/workben/bindings/manifest.xml31
-rw-r--r--scripting/workben/bindings/writerkeybinding.xml118
-rw-r--r--scripting/workben/bindings/writermenubar.xml298
-rw-r--r--scripting/workben/build.xml387
-rw-r--r--scripting/workben/data/ExampleSpreadSheetLatest.sxcbin14635 -> 0 bytes
-rw-r--r--scripting/workben/data/doc_with_beanshell_scripts.sxwbin7044 -> 0 bytes
-rw-r--r--scripting/workben/data/doc_with_one_script.sxwbin6286 -> 0 bytes
-rw-r--r--scripting/workben/data/doc_with_two_scripts.sxwbin6308 -> 0 bytes
-rw-r--r--scripting/workben/data/objdsc/drafts.com.sun.star.script.framework.protocolhandler.Dispatch.csv5
-rw-r--r--scripting/workben/data/objdsc/drafts.com.sun.star.script.framework.provider.Function.csv1
-rw-r--r--scripting/workben/data/objdsc/drafts.com.sun.star.script.framework.provider.FunctionProvider.csv1
-rw-r--r--scripting/workben/data/objdsc/drafts.com.sun.star.script.framework.runtime.ScriptRuntimeManager.csv2
-rw-r--r--scripting/workben/data/objdsc/drafts.com.sun.star.script.framework.storage.ScriptInfo.csv8
-rw-r--r--scripting/workben/data/objdsc/drafts.com.sun.star.script.framework.storage.ScriptStorage.csv4
-rw-r--r--scripting/workben/data/objdsc/drafts.com.sun.star.script.framework.storage.ScriptStorageManager.csv6
-rw-r--r--scripting/workben/data/script_in_class_file.sxwbin6976 -> 0 bytes
-rw-r--r--scripting/workben/data/script_in_jar_file.sxwbin8081 -> 0 bytes
-rw-r--r--scripting/workben/data/share_scripts.zipbin2248 -> 0 bytes
-rw-r--r--scripting/workben/data/testdata/Function.csv4
-rw-r--r--scripting/workben/data/testdata/FunctionProvider.csv1
-rw-r--r--scripting/workben/data/testdata/ScriptInfo.csv8
-rw-r--r--scripting/workben/data/testdata/ScriptRuntimeManager.csv8
-rw-r--r--scripting/workben/data/testdata/ScriptStorage.csv4
-rw-r--r--scripting/workben/data/testdata/ScriptStorageManager.csv18
-rw-r--r--scripting/workben/data/user_scripts.zipbin6890 -> 0 bytes
-rw-r--r--scripting/workben/data/xscriptcontext_test_document.sxwbin6580 -> 0 bytes
-rw-r--r--scripting/workben/ifc/scripting/ScriptingUtils.java106
-rw-r--r--scripting/workben/ifc/scripting/SecurityDialogUtil.java147
-rw-r--r--scripting/workben/ifc/scripting/_XFunction.java150
-rw-r--r--scripting/workben/ifc/scripting/_XFunctionProvider.java81
-rw-r--r--scripting/workben/ifc/scripting/_XScriptInfo.java308
-rw-r--r--scripting/workben/ifc/scripting/_XScriptInfoAccess.java192
-rw-r--r--scripting/workben/ifc/scripting/_XScriptInvocation.java212
-rw-r--r--scripting/workben/ifc/scripting/_XScriptNameResolver.java167
-rw-r--r--scripting/workben/ifc/scripting/_XScriptSecurity.java353
-rw-r--r--scripting/workben/ifc/scripting/_XScriptStorageManager.java257
-rw-r--r--scripting/workben/ifc/scripting/_XScriptStorageRefresh.java75
-rw-r--r--scripting/workben/ifc/scripting/makefile.mk31
-rw-r--r--scripting/workben/installer/Banner.java41
-rw-r--r--scripting/workben/installer/ExceptionTraceHelper.java49
-rw-r--r--scripting/workben/installer/ExecCmd.java105
-rw-r--r--scripting/workben/installer/FileUpdater.java183
-rw-r--r--scripting/workben/installer/Final.java136
-rw-r--r--scripting/workben/installer/IdeFinal.java121
-rw-r--r--scripting/workben/installer/IdeUpdater.java113
-rw-r--r--scripting/workben/installer/IdeVersion.java337
-rw-r--r--scripting/workben/installer/IdeWelcome.java79
-rw-r--r--scripting/workben/installer/InstUtil.java326
-rw-r--r--scripting/workben/installer/InstallListener.java23
-rw-r--r--scripting/workben/installer/InstallWizard.java350
-rw-r--r--scripting/workben/installer/InstallationEvent.java36
-rw-r--r--scripting/workben/installer/LogStream.java62
-rw-r--r--scripting/workben/installer/NavPanel.java128
-rw-r--r--scripting/workben/installer/Navigation.java66
-rw-r--r--scripting/workben/installer/ProtocolHandler.xcu27
-rw-r--r--scripting/workben/installer/Register.java107
-rw-r--r--scripting/workben/installer/Scripting.BeanShell.xcu28
-rw-r--r--scripting/workben/installer/Scripting.JavaScript.xcu28
-rw-r--r--scripting/workben/installer/Scripting.xcs48
-rw-r--r--scripting/workben/installer/Version.java350
-rw-r--r--scripting/workben/installer/Welcome.java84
-rw-r--r--scripting/workben/installer/XmlUpdater.java389
-rw-r--r--scripting/workben/installer/ZipData.java114
-rw-r--r--scripting/workben/installer/sidebar.jpgbin8393 -> 0 bytes
-rw-r--r--scripting/workben/makefile.mk26
-rw-r--r--scripting/workben/mod/_scripting/Dispatch.java100
-rw-r--r--scripting/workben/mod/_scripting/Function.java88
-rw-r--r--scripting/workben/mod/_scripting/FunctionProvider.java79
-rw-r--r--scripting/workben/mod/_scripting/ScriptInfo.java108
-rw-r--r--scripting/workben/mod/_scripting/ScriptRuntimeManager.java61
-rw-r--r--scripting/workben/mod/_scripting/ScriptStorage.java101
-rw-r--r--scripting/workben/mod/_scripting/ScriptStorageManager.java76
-rw-r--r--scripting/workben/mod/_scripting/TestDataLoader.java116
-rw-r--r--scripting/workben/mod/_scripting/makefile.mk31
201 files changed, 0 insertions, 21407 deletions
diff --git a/scripting/java/manifest.mf b/scripting/java/manifest.mf
deleted file mode 100644
index ba14e301b3eb..000000000000
--- a/scripting/java/manifest.mf
+++ /dev/null
@@ -1,26 +0,0 @@
-Manifest-Version: 1.0
-OpenIDE-Module: org.openoffice.netbeans.modules.office/1
-OpenIDE-Module-Name: Office Support
-OpenIDE-Module-Short-Description: Scripting Support for Office Documents
-OpenIDE-Module-Localizing-Bundle: org/openoffice/netbeans/modules/office/Bundle.properties
-OpenIDE-Module-Specification-Version: 0.2
-OpenIDE-Module-Implementation-Version: 0.2
-OpenIDE-Module-Install: org/openoffice/netbeans/modules/office/utils/OfficeModule.class
-OpenIDE-Module-Layer: org/openoffice/netbeans/modules/office/resources/layer.xml
-
-Name: org/openoffice/netbeans/modules/office/loader/OfficeDocumentDataLoader.class
-OpenIDE-Module-Class: Loader
-
-Name: org/openoffice/netbeans/modules/office/loader/ParcelDataLoader.class
-OpenIDE-Module-Class: Loader
-
-Name: org/openoffice/netbeans/modules/office/loader/ParcelDescriptorDataLoader.class
-Install-Before: org.openide.loaders.XMLDataObject, org.netbeans.modules.xml.core.XMLDataObject
-OpenIDE-Module-Class: Loader
-
-Name: org/openoffice/netbeans/modules/office/loader/ParcelFolderDataLoader.class
-Install-Before: org.openoffice.netbeans.modules.office.loader.ParcelDescriptorDataLoader
-OpenIDE-Module-Class: Loader
-
-Name: org/openoffice/netbeans/modules/office/loader/ParcelContentsFolderDataLoader.class
-OpenIDE-Module-Class: Loader
diff --git a/scripting/java/org/openoffice/idesupport/CommandLineTools.java b/scripting/java/org/openoffice/idesupport/CommandLineTools.java
deleted file mode 100644
index 85995cdfac42..000000000000
--- a/scripting/java/org/openoffice/idesupport/CommandLineTools.java
+++ /dev/null
@@ -1,337 +0,0 @@
-/*
- * 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 .
- */
-
-import java.io.File;
-import java.io.IOException;
-import java.util.ArrayList;
-import java.util.Hashtable;
-import java.util.Enumeration;
-import java.util.StringTokenizer;
-
-import com.sun.star.script.framework.container.ScriptEntry;
-import com.sun.star.script.framework.container.ParcelDescriptor;
-
-import org.openoffice.idesupport.zip.ParcelZipper;
-import org.openoffice.idesupport.filter.AllFilesFilter;
-import com.sun.star.script.framework.container.XMLParserFactory;
-import org.openoffice.idesupport.*;
-
-public class CommandLineTools {
- private static final String PARCEL_XML_FILE =
- ParcelZipper.PARCEL_DESCRIPTOR_XML;
-
- private static String officePath = null;
-
- public static void main(String[] args) {
- CommandLineTools driver = new CommandLineTools();
- Command command = driver.parseArgs(args);
-
- // Get the URL for the Office DTD directory and pass it to the
- // XMLParserFactory so that Office xml files can be parsed
- if (officePath == null) {
- try {
- SVersionRCFile sv = SVersionRCFile.createInstance();
-
- if (sv.getDefaultVersion() != null) {
- officePath = sv.getDefaultVersion().getPath();
- }
- } catch (IOException ioe) {
- System.err.println("Error getting Office directory");
- }
- }
-
- if (officePath == null) {
- driver.fatalUsage("Error: Office Installation path not set");
- }
-
- File officeDir = new File(officePath);
-
- if (!officeDir.exists() || !officeDir.isDirectory()) {
- driver.fatalUsage(
- "Error: Office Installation path not valid: " + officePath);
- }
-
- OfficeInstallation oi = new OfficeInstallation(officePath);
- String url = oi.getURL("share/dtd/officedocument/1_0/");
- XMLParserFactory.setOfficeDTDURL(url);
-
- if (command == null)
- driver.printUsage();
- else {
- try {
- command.execute();
- } catch (Exception e) {
- driver.fatal("Error: " + e.getMessage());
- }
- }
- }
-
- private interface Command {
- void execute() throws Exception;
- }
-
- private void printUsage() {
- System.out.println("java " + getClass().getName() + " -h " +
- "prints this message");
- System.out.println("java " + getClass().getName() +
- " [-o Path to Office Installation] " +
- "-d <script parcel zip file> " +
- "<destination document or directory>");
- System.out.println("java " + getClass().getName() +
- " [-o Path to Office Installation] " +
- "-g [parcel root directory] [options] [script names]");
- System.out.println("options:");
- System.out.println("\t[-l language[=supported extension 1[" +
- File.pathSeparator + "supported extension 2]]]");
- System.out.println("\t[-p name=value]");
- System.out.println("\t[-v]");
- }
-
- private void fatal(String message) {
- System.err.println(message);
- System.exit(-1);
- }
-
- private void fatalUsage(String message) {
- System.err.println(message);
- System.err.println();
- printUsage();
- System.exit(-1);
- }
- private Command parseArgs(String[] args) {
-
- if (args.length < 1) {
- return null;
- } else if (args[0].equals("-h")) {
- return new Command() {
- public void execute() {
- printUsage();
- }
- };
- }
-
- int i = 0;
-
- if (args[0].equals("-o")) {
- officePath = args[i + 1];
- i += 2;
- }
-
- if (args[i].equals("-d")) {
- if ((args.length - i) != 3)
- return null;
- else
- return new DeployCommand(args[i + 1], args[i + 2]);
- } else if (args[i].equals("-g")) {
-
- if ((args.length - i) == 1)
- return new GenerateCommand(System.getProperty("user.dir"));
-
- GenerateCommand command;
- i++;
-
- if (!args[i].startsWith("-"))
- command = new GenerateCommand(args[i++]);
- else
- command = new GenerateCommand(System.getProperty("user.dir"));
-
- for (; i < args.length; i++) {
- if (args[i].equals("-l")) {
- command.setLanguage(args[++i]);
- } else if (args[i].equals("-p")) {
- command.addProperty(args[++i]);
- } else if (args[i].equals("-v")) {
- command.setVerbose();
- } else {
- command.addScript(args[i]);
- }
- }
-
- return command;
- }
-
- return null;
- }
-
- private static class GenerateCommand implements Command {
-
- private File basedir, contents, parcelxml;
- private boolean verbose = false;
- private String language = null;
- private MethodFinder finder = null;
- private ArrayList<ScriptEntry> scripts = null;
- private HashMap properties = new HashMap(3);
-
- public GenerateCommand(String basedir) {
- this.basedir = new File(basedir);
- this.contents = new File(basedir, ParcelZipper.CONTENTS_DIRNAME);
- this.parcelxml = new File(contents, PARCEL_XML_FILE);
- }
-
- public void setLanguage(String language) {
- StringTokenizer tokenizer = new StringTokenizer(language, "=");
- this.language = tokenizer.nextToken();
-
- if (this.language.equalsIgnoreCase("java")) {
- this.finder = JavaFinder.getInstance();
- return;
- }
-
- if (tokenizer.hasMoreTokens()) {
- String ext = (String)tokenizer.nextToken();
- String[] extensions;
-
- if (ext.indexOf(File.pathSeparator) != -1) {
- tokenizer = new StringTokenizer(ext, File.pathSeparator);
- extensions = new String[tokenizer.countTokens()];
- int i = 0;
-
- while (tokenizer.hasMoreTokens())
- extensions[i++] = (String)tokenizer.nextToken();
- } else {
- extensions = new String[1];
- extensions[0] = ext;
- }
-
- this.finder = new ExtensionFinder(this.language, extensions);
- }
- }
-
- public void addProperty(String prop) {
- StringTokenizer tok = new StringTokenizer(prop, "=");
-
- if (tok.countTokens() != 2)
- return;
-
- String name = tok.nextToken();
- String value = tok.nextToken();
-
- properties.put(name, value);
- }
-
- public void setVerbose() {
- verbose = true;
- }
-
- public void addScript(String script) {
- if (language == null)
- return;
-
- addScript(new ScriptEntry(language, script, script, basedir.getName()));
- }
-
- public void addScript(ScriptEntry entry) {
- if (scripts == null)
- scripts = new ArrayList(3);
-
- scripts.add(entry);
- }
-
- public void execute() throws Exception {
-
- if (!basedir.isDirectory()) {
- throw new Exception(basedir.getName() + " is not a directory");
- } else if (!contents.exists()) {
- throw new Exception(basedir.getName() +
- " does not contain a Contents directory");
- }
-
- if (language == null && !parcelxml.exists()) {
- throw new Exception(parcelxml.getName() + " not found and language " +
- "not specified");
- }
-
- if (language != null && parcelxml.exists()) {
- ParcelDescriptor desc;
- String desclang = "";
-
- desc = new ParcelDescriptor(parcelxml);
- desclang = desc.getLanguage().toLowerCase();
-
- if (!desclang.equals(language.toLowerCase()))
- throw new Exception(parcelxml.getName() + " already exists, " +
- "and has a different language attribute: " +
- desc.getLanguage());
- }
-
- if (language != null && scripts == null) {
- if (finder == null)
- throw new Exception("Extension list not specified for this language");
-
- log("Searching for " + language + " scripts");
-
- ScriptEntry[] entries = finder.findMethods(contents);
-
- for (int i = 0; i < entries.length; i++) {
- addScript(entries[i]);
- log("Found: " + entries[i].getLogicalName());
- }
- }
-
- if (scripts != null) {
- if (scripts.isEmpty())
- throw new Exception("No valid scripts found");
-
- ParcelDescriptor desc = new ParcelDescriptor(parcelxml, language);
- desc.setScriptEntries(scripts.toArray(new ScriptEntry[scripts.size()]));
- if (properties.size() != 0) {
- Enumeration enumer = properties.keys();
-
- while (enumer.hasMoreElements()) {
- String name = (String)enumer.nextElement();
- String value = (String)properties.get(name);
- log("Setting property: " + name + " to " + value);
-
- desc.setLanguageProperty(name, value);
- }
- }
-
- desc.write();
- } else {
- if (!parcelxml.exists())
- throw new Exception("No valid scripts found");
- }
-
- contents = new File(contents.getAbsolutePath());
- String name = ParcelZipper.getParcelZipper().zipParcel(contents,
- AllFilesFilter.getInstance());
- System.out.println(name + " generated");
- }
-
- private void log(String message) {
- if (verbose)
- System.out.println(message);
- }
- }
-
- private static class DeployCommand implements Command {
-
- File source, target;
-
- public DeployCommand(String source, String target) {
- this.source = new File(source);
- this.target = new File(target);
- }
-
- public void execute() throws Exception {
- ParcelZipper.getParcelZipper().deployParcel(source, target);
- System.out.println(source.getName() +
- " successfully deployed to " + target.getAbsolutePath());
- }
- }
-}
diff --git a/scripting/java/org/openoffice/idesupport/ExtensionFinder.java b/scripting/java/org/openoffice/idesupport/ExtensionFinder.java
deleted file mode 100644
index 48b80fd77eec..000000000000
--- a/scripting/java/org/openoffice/idesupport/ExtensionFinder.java
+++ /dev/null
@@ -1,81 +0,0 @@
-/*
- * 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 .
- */
-
-package org.openoffice.idesupport;
-
-import java.io.File;
-import java.util.ArrayList;
-import org.openoffice.idesupport.zip.ParcelZipper;
-
-import com.sun.star.script.framework.container.ScriptEntry;
-
-public class ExtensionFinder implements MethodFinder {
-
- private String[] extensions;
- private String language;
-
- public ExtensionFinder(String language, String[] extensions) {
- this.language = language;
- this.extensions = extensions;
- }
-
- public ScriptEntry[] findMethods(File basedir) {
- String parcelName;
- ArrayList<ScriptEntry> files = new ArrayList<ScriptEntry>(10);
- ScriptEntry[] empty = new ScriptEntry[0];
-
- if (basedir == null || !basedir.exists() ||
- !basedir.isDirectory())
- return empty;
-
- parcelName = basedir.getName();
-
- if (parcelName.equals(ParcelZipper.CONTENTS_DIRNAME))
- parcelName = basedir.getParentFile().getName();
-
- findFiles(files, basedir, parcelName);
-
- if (files.size() != 0)
- return files.toArray(empty);
-
- return empty;
- }
-
- private void findFiles(ArrayList<ScriptEntry> list, File basedir,
- String parcelName) {
- File[] children = basedir.listFiles();
- File f;
-
- for (int i = 0; i < children.length; i++) {
- f = children[i];
-
- if (f.isDirectory())
- findFiles(list, f, parcelName);
- else {
- for (int j = 0; j < extensions.length; j++) {
- if (f.getName().endsWith(extensions[j])) {
- ScriptEntry entry = new ScriptEntry(language,
- f.getName(), parcelName);
- list.add(entry);
- break;
- }
- }
- }
- }
- }
-}
diff --git a/scripting/java/org/openoffice/idesupport/JavaFinder.java b/scripting/java/org/openoffice/idesupport/JavaFinder.java
deleted file mode 100644
index b1139ab7dbc7..000000000000
--- a/scripting/java/org/openoffice/idesupport/JavaFinder.java
+++ /dev/null
@@ -1,231 +0,0 @@
-/*
- * 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 .
- */
-
-package org.openoffice.idesupport;
-
-import java.io.File;
-import java.io.IOException;
-import java.lang.reflect.Method;
-import java.lang.reflect.Modifier;
-import java.net.MalformedURLException;
-import java.net.URL;
-import java.net.URLClassLoader;
-import java.util.ArrayList;
-import java.util.Iterator;
-import java.util.List;
-
-import org.openoffice.idesupport.zip.ParcelZipper;
-
-import com.sun.star.script.framework.container.ScriptEntry;
-
-public class JavaFinder implements MethodFinder {
-
- private static JavaFinder finder;
- private static final String JAVA_SUFFIX = ".java";
- private static final String CLASS_SUFFIX = ".class";
- private static final String FIRST_PARAM =
- "drafts.com.sun.star.script.framework.runtime.XScriptContext";
-
- private List<String> classpath = null;
-
- private JavaFinder() {}
-
- private JavaFinder(List<String> classpath) {
- this.classpath = classpath;
- }
-
-
-
- public static JavaFinder getInstance(List<String> classpath) {
- return new JavaFinder(classpath);
- }
-
- public ScriptEntry[] findMethods(File basedir) {
- String parcelName;
- ArrayList<ScriptEntry> result = new ArrayList<ScriptEntry>(10);
- ScriptEntry[] empty = new ScriptEntry[0];
-
- if (basedir == null || !basedir.exists() ||
- !basedir.isDirectory())
- return empty;
-
- parcelName = basedir.getName();
-
- if (parcelName.equals(ParcelZipper.CONTENTS_DIRNAME))
- parcelName = basedir.getParentFile().getName();
-
- String[] classNames = findClassNames(basedir);
-
- if (classNames != null && classNames.length != 0) {
-
- ClassLoader classloader;
-
- if (classpath == null)
- classloader = getClassLoader(basedir);
- else
- classloader = getClassLoader();
-
- for (int i = 0; i < classNames.length; i++) {
- try {
- Class clazz = classloader.loadClass(classNames[i]);
- Method[] methods = clazz.getDeclaredMethods();
-
- for (int k = 0; k < methods.length; k++) {
- if (Modifier.isPublic(methods[k].getModifiers())) {
- Class[] params = methods[k].getParameterTypes();
-
- if (params.length > 0) {
- if (params[0].getName().equals(FIRST_PARAM)) {
- ScriptEntry entry =
- new ScriptEntry(classNames[i] + "." +
- methods[k].getName(), parcelName);
- result.add(entry);
- }
- }
- }
- }
- } catch (ClassNotFoundException e) {
- System.err.println("Caught ClassNotFoundException loading: "
- + classNames[i]);
- continue;
- } catch (NoClassDefFoundError nc) {
- System.err.println("Caught NoClassDefFoundErr loading: " +
- classNames[i]);
- continue;
- }
- }
- }
-
- if (result.size() != 0)
- return result.toArray(empty);
-
- return empty;
- }
-
- private ClassLoader getClassLoader() {
- int len = classpath.size();
- ArrayList<URL> urls = new ArrayList<URL>(len);
-
- for (int i = 0; i < len; i++) {
- try {
- String s = classpath.get(i);
- s = SVersionRCFile.toFileURL(s);
-
- if (s != null)
- urls.add(new URL(s));
- } catch (MalformedURLException mue) {
- }
- }
-
- return new URLClassLoader(urls.toArray(new URL[urls.size()]));
- }
-
- private ClassLoader getClassLoader(File basedir) {
- ArrayList<File> files = findFiles(basedir, ".jar");
- files.add(basedir);
-
- try {
- Iterator<OfficeInstallation> offices =
- SVersionRCFile.createInstance().getVersions();
-
- while (offices.hasNext()) {
- OfficeInstallation oi = offices.next();
- String unoil = SVersionRCFile.getPathForUnoil(oi.getPath());
-
- if (unoil != null) {
- files.add(new File(unoil, "unoil.jar"));
- break;
- }
- }
- } catch (IOException ioe) {
- return null;
- }
-
- URL[] urls = new URL[files.size()];
- String urlpath;
- File f;
-
- for (int i = 0; i < urls.length; i++) {
- try {
- f = files.get(i);
- urlpath = SVersionRCFile.toFileURL(f.getAbsolutePath());
-
- if (urlpath != null)
- urls[i] = new URL(urlpath);
- } catch (MalformedURLException mue) {
- // do nothing, go on to next file
- }
- }
-
- return new URLClassLoader(urls);
- }
-
- private ArrayList<File> findFiles(File basedir, String suffix) {
- ArrayList<File> result = new ArrayList<File>();
- File[] children = basedir.listFiles();
-
- for (int i = 0; i < children.length; i++) {
- if (children[i].isDirectory())
- result.addAll(findFiles(children[i], suffix));
- else if (children[i].getName().endsWith(suffix))
- result.add(children[i]);
- }
-
- return result;
- }
-
- private String[] findClassNames(File basedir) {
- ArrayList<File> classFiles = findFiles(basedir, CLASS_SUFFIX);
- if(classFiles == null || classFiles.isEmpty())
- return null;
-
- ArrayList<File> javaFiles = findFiles(basedir, JAVA_SUFFIX);
-
- if (javaFiles == null || javaFiles.size() == 0)
- return null;
-
- ArrayList<String> result = new ArrayList<String>();
-
- for (int i = 0; i < classFiles.size(); i++) {
- File classFile = classFiles.get(i);
- String className = classFile.getName();
- className = className.substring(0, className.lastIndexOf(CLASS_SUFFIX));
- boolean finished = false;
-
-
- for (int j = 0; j < javaFiles.size() && !finished; j++) {
- File javaFile = javaFiles.get(j);
- String javaName = javaFile.getName();
- javaName = javaName.substring(0, javaName.lastIndexOf(JAVA_SUFFIX));
-
- if (javaName.equals(className)) {
- String path = classFile.getAbsolutePath();
- path = path.substring(basedir.getAbsolutePath().length() + 1);
- path = path.replace(File.separatorChar, '.');
- path = path.substring(0, path.lastIndexOf(CLASS_SUFFIX));
-
- result.add(path);
- javaFiles.remove(j);
- finished = true;
- }
- }
- }
-
- return result.toArray(new String[result.size()]);
- }
-}
diff --git a/scripting/java/org/openoffice/idesupport/LocalOffice.java b/scripting/java/org/openoffice/idesupport/LocalOffice.java
deleted file mode 100644
index 0c05cd097295..000000000000
--- a/scripting/java/org/openoffice/idesupport/LocalOffice.java
+++ /dev/null
@@ -1,54 +0,0 @@
-/*
- * 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 .
- */
-
-package org.openoffice.idesupport;
-
-import java.net.ConnectException;
-
-/**
- * LocalOffice represents a connection to the local office.
- *
- * This class allows to get access to some scripting framework
- * related functionality of the locally running office. The
- * office has to be started with options appropriate for establishing
- * local connection.
- */
-public abstract class LocalOffice
-{
- /**
- * Connects to the running office.
- *
- * @param officePath is a platform specific path string
- * to the office distribution.
- * @param port is a communication port.
- */
- protected abstract void connect(String officePath, int port)
- throws ConnectException;
-
- /**
- * Closes the connection to the running office.
- */
- public abstract void disconnect();
-
- /**
- * Refresh the script storage.
- *
- * @param uri is an identifier of storage has to be refreshed.
- */
- public abstract void refreshStorage(String uri);
-}
diff --git a/scripting/java/org/openoffice/idesupport/MethodFinder.java b/scripting/java/org/openoffice/idesupport/MethodFinder.java
deleted file mode 100644
index 83e81b8d2233..000000000000
--- a/scripting/java/org/openoffice/idesupport/MethodFinder.java
+++ /dev/null
@@ -1,26 +0,0 @@
-/*
- * 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 .
- */
-
-package org.openoffice.idesupport;
-
-import java.io.File;
-import com.sun.star.script.framework.container.ScriptEntry;
-
-public interface MethodFinder {
- ScriptEntry[] findMethods(File basedir);
-}
diff --git a/scripting/java/org/openoffice/idesupport/OfficeDocument.java b/scripting/java/org/openoffice/idesupport/OfficeDocument.java
deleted file mode 100644
index abad0ebbdd77..000000000000
--- a/scripting/java/org/openoffice/idesupport/OfficeDocument.java
+++ /dev/null
@@ -1,106 +0,0 @@
-/*
- * 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 .
- */
-
-package org.openoffice.idesupport;
-
-import java.io.File;
-import java.io.IOException;
-import java.util.ArrayList;
-import java.util.Enumeration;
-import java.util.Iterator;
-import java.util.zip.ZipEntry;
-import java.util.zip.ZipException;
-import java.util.zip.ZipFile;
-
-import org.openoffice.idesupport.zip.ParcelZipper;
-
-public class OfficeDocument {
- public static final String PARCEL_PREFIX_DIR =
- ParcelZipper.PARCEL_PREFIX_DIR;
-
- public static final String[] OFFICE_EXTENSIONS =
- {".sxc" , ".sxw", ".sxi", ".sxd"};
- public static final String OFFICE_PRODUCT_NAME = "OpenOffice.org";
-
- private File file = null;
-
- public OfficeDocument(File file) throws IllegalArgumentException {
- if (!file.exists() || file.isDirectory() || !isOfficeFile(file)) {
- throw new IllegalArgumentException("This is not a valid " +
- OFFICE_PRODUCT_NAME + " document.");
- }
-
- this.file = file;
- }
-
- private boolean isOfficeFile(File file) {
- for (int i = 0; i < OFFICE_EXTENSIONS.length; i++)
- if (file.getName().endsWith(OFFICE_EXTENSIONS[i]))
- return true;
-
- return false;
- }
-
- public Iterator<String> getParcels() {
-
- ArrayList<String> parcels = new ArrayList<String>();
- ZipFile zp = null;
-
- try {
- zp = new ZipFile(this.file);
-
- for (Enumeration enumer = zp.entries(); enumer.hasMoreElements();) {
- ZipEntry ze = (ZipEntry)enumer.nextElement();
-
- if (ze.getName().endsWith(ParcelZipper.PARCEL_DESCRIPTOR_XML)) {
- String tmp = ze.getName();
- int end = tmp.lastIndexOf('/');
- tmp = tmp.substring(0, end);
-
- String parcelName = ze.getName().substring(0, end);
- parcels.add(parcelName);
- }
- }
- } catch (ZipException ze) {
- ze.printStackTrace();
- } catch (IOException ioe) {
- ioe.printStackTrace();
- } finally {
- if (zp != null) {
- try {
- zp.close();
- } catch (IOException asdf) {
- }
- }
- }
-
- return parcels.iterator();
- }
-
- public boolean removeParcel(String parcelName) {
-
- try {
- ParcelZipper.getParcelZipper().removeParcel(file, parcelName);
- } catch (IOException ioe) {
- ioe.printStackTrace();
- return false;
- }
-
- return true;
- }
-}
diff --git a/scripting/java/org/openoffice/idesupport/OfficeInstallation.java b/scripting/java/org/openoffice/idesupport/OfficeInstallation.java
deleted file mode 100644
index fdc89c9d12a1..000000000000
--- a/scripting/java/org/openoffice/idesupport/OfficeInstallation.java
+++ /dev/null
@@ -1,85 +0,0 @@
-/*
- * 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 .
- */
-package org.openoffice.idesupport;
-
-import java.io.File;
-import java.net.URLDecoder;
-
-public class OfficeInstallation implements java.io.Serializable {
-
- private String name;
- private String path;
- private String url;
- private boolean hasFW = false;
-
- private static final String FILE_URL_PREFIX = SVersionRCFile.FILE_URL_PREFIX;
-
- public OfficeInstallation(String path) {
- this(path, path);
- }
-
- public OfficeInstallation(String name, String path) {
-
- this.name = name;
-
- if (path.startsWith(FILE_URL_PREFIX)) {
- this.url = path;
- path = URLDecoder.decode(path);
- path = path.substring(FILE_URL_PREFIX.length());
-
- if (System.getProperty("os.name").startsWith("Windows"))
- path = path.replace('/', File.separatorChar);
-
- this.path = path;
- } else {
- this.path = path;
-
- if (System.getProperty("os.name").startsWith("Windows"))
- path = path.replace(File.separatorChar, '/');
-
- this.url = FILE_URL_PREFIX + path;
- }
- }
-
- public String getName() {
- return name;
- }
-
- public String getPath() {
- return path;
- }
-
-
-
- public String getURL() {
- return url;
- }
-
-
-
-
-
- public boolean supportsFramework() {
- return true;
- }
-
- @Override
- public String toString() {
- return getName();
- }
-}
diff --git a/scripting/java/org/openoffice/idesupport/SVersionRCFile.java b/scripting/java/org/openoffice/idesupport/SVersionRCFile.java
deleted file mode 100644
index 4e754e347c75..000000000000
--- a/scripting/java/org/openoffice/idesupport/SVersionRCFile.java
+++ /dev/null
@@ -1,226 +0,0 @@
-/*
- * 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 .
- */
-
-package org.openoffice.idesupport;
-
-import java.io.BufferedReader;
-import java.io.File;
-import java.io.FileNotFoundException;
-import java.io.FileReader;
-import java.io.IOException;
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.Iterator;
-import java.util.StringTokenizer;
-
-public class SVersionRCFile {
-
- private static final String DEFAULT_NAME =
- System.getProperty("os.name").startsWith("Windows") ?
- System.getProperty("user.home") + File.separator +
- "Application Data" + File.separator + "sversion.ini" :
- System.getProperty("user.home") + File.separator +
- ".sversionrc";
-
- public static final String FILE_URL_PREFIX =
- System.getProperty("os.name").startsWith("Windows") ?
- "file:///" : "file://";
-
-
-
- private static final String VERSIONS_LINE = "[Versions]";
-
- private static final String UNOILJAR =
- "skip_registration" + File.separator + "unoil.jar";
-
- private static final String UNOPACKAGEDIR =
- File.separator + "user" + File.separator + "uno_packages" +
- File.separator + "cache" + File.separator + "uno_packages";
-
- /* Make sure this is in LowerCase !!!!! */
- private static final String SCRIPTF = "scriptf";
-
- private static final HashMap<String, SVersionRCFile> files = new
- HashMap<String, SVersionRCFile>(3);
-
- private File sversionrc = null;
- private OfficeInstallation defaultversion = null;
- private ArrayList<OfficeInstallation> versions = null;
- private long lastModified = 0;
-
- public SVersionRCFile() {
- this(DEFAULT_NAME);
- }
-
- private SVersionRCFile(String name) {
- sversionrc = new File(name);
- versions = new ArrayList<OfficeInstallation>(5);
- }
-
- public static SVersionRCFile createInstance() {
- return (createInstance(DEFAULT_NAME));
- }
-
- private static SVersionRCFile createInstance(String name) {
- SVersionRCFile result = null;
-
- synchronized (SVersionRCFile.class) {
- result = files.get(name);
-
- if (result == null) {
- result = new SVersionRCFile(name);
- files.put(name, result);
- }
- }
-
- return result;
- }
-
- public OfficeInstallation getDefaultVersion() throws IOException {
- if (defaultversion == null) {
- getVersions();
- }
-
- return defaultversion;
- }
-
- public Iterator<OfficeInstallation> getVersions() throws IOException {
-
- long l = sversionrc.lastModified();
-
- if (l > lastModified) {
- BufferedReader br = null;
-
- try {
- br = new BufferedReader(new FileReader(sversionrc));
- load(br);
- lastModified = l;
- } catch (FileNotFoundException fnfe) {
- throw new IOException(fnfe.getMessage());
- } finally {
- if (br != null)
- br.close();
- }
- }
-
- return versions.iterator();
- }
-
- private void load(BufferedReader br) throws IOException {
- String s;
-
- while ((s = br.readLine()) != null &&
- !(s.equals(VERSIONS_LINE))) {}
-
- while ((s = br.readLine()) != null &&
- s.length() != 0) {
- StringTokenizer tokens = new StringTokenizer(s, "=");
- int count = tokens.countTokens();
-
- if (count != 2)
- continue;
-
- String name = tokens.nextToken();
- String path = tokens.nextToken();
- OfficeInstallation oi = new OfficeInstallation(name, path);
-
- if (oi.supportsFramework()) {
- versions.add(oi);
- defaultversion = oi;
- }
- }
- }
-
- public static String toFileURL(String path) {
- File f = new File(path);
-
- if (!f.exists())
- return null;
-
- try {
- path = f.getCanonicalPath();
- } catch (IOException ioe) {
- return null;
- }
-
- if (System.getProperty("os.name").startsWith("Windows"))
- path = path.replace(File.separatorChar, '/');
-
- StringBuilder buf = new StringBuilder(FILE_URL_PREFIX);
- buf.append(path);
-
- if (f.isDirectory())
- buf.append("/");
-
- return buf.toString();
- }
-
- public static String getPathForUnoil(String officeInstall) {
- File unopkgdir = new File(officeInstall, UNOPACKAGEDIR);
-
- if (!unopkgdir.exists()) {
- return null;
- }
-
- File scriptf = null;
- String[] listunopkg = unopkgdir.list();
- int size = listunopkg.length;
-
- for (int i = 0; i < size; i++) {
- if (listunopkg[i].toLowerCase().indexOf(SCRIPTF) > -1) {
- scriptf = new File(unopkgdir, listunopkg[i]);
- }
- }
-
- if (scriptf != null) {
- File unoil = new File(scriptf, UNOILJAR);
-
- if (unoil.exists()) {
- String path = unoil.getParent();
- path = path.substring(path.indexOf(UNOPACKAGEDIR));
- return officeInstall + path;
- }
- }
-
- return null;
- }
-
- public static void main(String[] args) {
- SVersionRCFile ov;
-
- if (args.length == 0)
- ov = new SVersionRCFile();
- else
- ov = new SVersionRCFile(args[0]);
-
- Iterator<OfficeInstallation> enumer;
-
- try {
- enumer = ov.getVersions();
- } catch (IOException ioe) {
- System.err.println("Error getting versions: " + ioe.getMessage());
- return;
- }
-
- while (enumer.hasNext()) {
- OfficeInstallation oi = enumer.next();
- System.out.println("Name: " + oi.getName() + ", Path: " + oi.getPath() +
- ", URL: " + oi.getURL());
- }
- }
-}
diff --git a/scripting/java/org/openoffice/idesupport/filter/AllFilesFilter.java b/scripting/java/org/openoffice/idesupport/filter/AllFilesFilter.java
deleted file mode 100644
index a27400342d6b..000000000000
--- a/scripting/java/org/openoffice/idesupport/filter/AllFilesFilter.java
+++ /dev/null
@@ -1,39 +0,0 @@
-/*
- * 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 .
- */
-
-package org.openoffice.idesupport.filter;
-
-public class AllFilesFilter implements FileFilter {
- private static final AllFilesFilter filter = new AllFilesFilter();
-
- private AllFilesFilter() {
- }
-
- public static AllFilesFilter getInstance() {
- return filter;
- }
-
- public boolean validate(String name) {
- return true;
- }
-
- @Override
- public String toString() {
- return "<all files>";
- }
-}
diff --git a/scripting/java/org/openoffice/idesupport/filter/BinaryOnlyFilter.java b/scripting/java/org/openoffice/idesupport/filter/BinaryOnlyFilter.java
deleted file mode 100644
index 95436158bc6f..000000000000
--- a/scripting/java/org/openoffice/idesupport/filter/BinaryOnlyFilter.java
+++ /dev/null
@@ -1,44 +0,0 @@
-/*
- * 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 .
- */
-
-package org.openoffice.idesupport.filter;
-
-public class BinaryOnlyFilter implements FileFilter {
- private static final String[] EXTENSIONS = {".class", ".jar", ".bsh"};
- private static final String DESCRIPTION = "Executable Files Only";
- private static final BinaryOnlyFilter filter = new BinaryOnlyFilter();
-
- private BinaryOnlyFilter() {
- }
-
- public static BinaryOnlyFilter getInstance() {
- return filter;
- }
- public boolean validate(String name) {
- for (int i = 0; i < EXTENSIONS.length; i++)
- if (name.endsWith(EXTENSIONS[i]))
- return true;
-
- return false;
- }
-
- @Override
- public String toString() {
- return DESCRIPTION;
- }
-}
diff --git a/scripting/java/org/openoffice/idesupport/filter/ExceptParcelFilter.java b/scripting/java/org/openoffice/idesupport/filter/ExceptParcelFilter.java
deleted file mode 100644
index 25ce3562d638..000000000000
--- a/scripting/java/org/openoffice/idesupport/filter/ExceptParcelFilter.java
+++ /dev/null
@@ -1,45 +0,0 @@
-/*
- * 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 .
- */
-
-package org.openoffice.idesupport.filter;
-
-public class ExceptParcelFilter implements FileFilter {
- private static final String DESCRIPTION = "Remove specified Parcel";
- private static final ExceptParcelFilter filter = new ExceptParcelFilter();
- private static String parcelName = null;
-
- private ExceptParcelFilter() {
- }
-
- public void setParcelToRemove(String parcelName) {
- ExceptParcelFilter.parcelName = parcelName;
- }
-
- public static ExceptParcelFilter getInstance() {
- return filter;
- }
-
- public boolean validate(String name) {
- return name.startsWith(ExceptParcelFilter.parcelName);
- }
-
- @Override
- public String toString() {
- return DESCRIPTION + ": " + "<" + ExceptParcelFilter.parcelName + ">";
- }
-}
diff --git a/scripting/java/org/openoffice/idesupport/filter/FileFilter.java b/scripting/java/org/openoffice/idesupport/filter/FileFilter.java
deleted file mode 100644
index f64a902ab255..000000000000
--- a/scripting/java/org/openoffice/idesupport/filter/FileFilter.java
+++ /dev/null
@@ -1,23 +0,0 @@
-/*
- * 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 .
- */
-
-package org.openoffice.idesupport.filter;
-
-public interface FileFilter {
- boolean validate(String name);
-}
diff --git a/scripting/java/org/openoffice/idesupport/localoffice/LocalOfficeImpl.java b/scripting/java/org/openoffice/idesupport/localoffice/LocalOfficeImpl.java
deleted file mode 100644
index 3051b72bbfdd..000000000000
--- a/scripting/java/org/openoffice/idesupport/localoffice/LocalOfficeImpl.java
+++ /dev/null
@@ -1,131 +0,0 @@
-/*
- * 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 .
- */
-
-package org.openoffice.idesupport.localoffice;
-
-import java.net.ConnectException;
-
-import com.sun.star.lang.XMultiComponentFactory;
-import com.sun.star.bridge.UnoUrlResolver;
-import com.sun.star.bridge.XUnoUrlResolver;
-import com.sun.star.beans.XPropertySet;
-import com.sun.star.comp.helper.Bootstrap;
-import com.sun.star.uno.XComponentContext;
-import com.sun.star.uno.UnoRuntime;
-import drafts.com.sun.star.script.framework.storage.XScriptStorageManager;
-
-import org.openoffice.idesupport.LocalOffice;
-
-/**
- * LocalOfficeImpl represents a connection to the local office.
- *
- * This class is an implementation of LocalOffice ane allows to
- * get access to some scripting framework releated functionality
- * of the locally running office. The office has to be started
- * with options appropriate for establishing local connection.
- */
-public final class LocalOfficeImpl
- extends LocalOffice {
- private final static String STORAGE_MRG_SINGLETON =
- "/singletons/drafts.com.sun.star.script.framework.storage.theScriptStorageManager";
-
- private transient XMultiComponentFactory mComponentFactory;
- private transient XComponentContext mComponentContext;
-
- /**
- * Connects to the running office.
- *
- * @param officePath is a platform specific path string
- * to the office distribution.
- * @param port is a communication port.
- */
- @Override
- protected void connect(String officePath, int port)
- throws ConnectException {
- try {
- bootstrap(port);
- } catch (java.lang.Exception ex) {
- throw new ConnectException(ex.getMessage());
- }
- }
-
- /**
- * Refresh the script storage.
- *
- * @param uri is an identifier of storage has to be refreshed.
- */
- @Override
- public void refreshStorage(String uri) {
- try {
- Object object = null;
- object = mComponentContext.getValueByName(STORAGE_MRG_SINGLETON);
- XScriptStorageManager storageMgr;
- storageMgr = UnoRuntime.queryInterface(
- XScriptStorageManager.class, object);
- storageMgr.refreshScriptStorage(uri);
- } catch (java.lang.Exception ex) {
- System.out.println("*** LocalOfficeImpl.refreshStorage: FAILED " +
- ex.getMessage());
- System.out.println("*** LocalOfficeImpl.refreshStorage: FAILED " +
- ex.getClass().getName());
- }
-
- System.out.println("*** LocalOfficeImpl.refreshStorage: DONE");
- }
-
- /**
- * Closes the connection to the running office.
- */
- @Override
- public void disconnect() {
- /*
- if(mComponentFactory != null) {
- XComponent comp = (XComponent)UnoRuntime.queryInterface(
- XComponent.class, mComponentFactory);
- comp.dispose();
- }
- */
- }
-
- /**
- * Boot straps UNO.
- *
- * The office has to be started with following string:
- * "--accept=socket,host=localhost,port=<PORT>;urp;StarOffice.ServiceManager"
- *
- * @param port is a communication port.
- */
- private void bootstrap(int port)
- throws java.lang.Exception {
- Object object;
- mComponentContext = Bootstrap.createInitialComponentContext(null);
- XUnoUrlResolver urlresolver = UnoUrlResolver.create(mComponentContext);
- object = urlresolver.resolve(
- "uno:socket,host=localhost,port=" +
- port +
- ";urp;StarOffice.ServiceManager");
- mComponentFactory = UnoRuntime.queryInterface(
- XMultiComponentFactory.class, object);
- XPropertySet factoryProps;
- factoryProps = UnoRuntime.queryInterface(
- XPropertySet.class, mComponentFactory);
- object = factoryProps.getPropertyValue("DefaultContext");
- mComponentContext = UnoRuntime.queryInterface(
- XComponentContext.class, object);
- }
-}
diff --git a/scripting/java/org/openoffice/idesupport/ui/ConfigurePanel.java b/scripting/java/org/openoffice/idesupport/ui/ConfigurePanel.java
deleted file mode 100644
index 4098dca61f0e..000000000000
--- a/scripting/java/org/openoffice/idesupport/ui/ConfigurePanel.java
+++ /dev/null
@@ -1,223 +0,0 @@
-/*
- * 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 .
- */
-
-package org.openoffice.idesupport.ui;
-
-import java.awt.BorderLayout;
-import java.awt.GridBagConstraints;
-import java.awt.GridBagLayout;
-import java.awt.Insets;
-import java.awt.event.ActionEvent;
-import java.awt.event.ActionListener;
-import java.io.File;
-import java.io.IOException;
-import java.util.ArrayList;
-import java.util.Iterator;
-
-import javax.swing.AbstractButton;
-import javax.swing.ImageIcon;
-import javax.swing.JButton;
-import javax.swing.JPanel;
-import javax.swing.border.LineBorder;
-
-import org.openoffice.idesupport.zip.ParcelZipper;
-
-import com.sun.star.script.framework.container.ParcelDescriptor;
-import com.sun.star.script.framework.container.ScriptEntry;
-
-public class ConfigurePanel extends JPanel {
-
- private File basedir;
- private ArrayList<String> classpath;
- private ParcelDescriptor descriptor;
-
- private MethodPanel methodPanel;
- private ScriptPanel scriptPanel;
-
- public static final String DIALOG_TITLE =
- "Choose What to Export as Scripts";
-
- public ConfigurePanel(String basedir, ArrayList<String> classpath,
- ParcelDescriptor descriptor) {
-
- this.basedir = new File(basedir);
- this.classpath = classpath;
- this.descriptor = descriptor;
- initUI();
- }
-
- public ConfigurePanel(String basedir, ArrayList<String> classpath)
- throws IOException {
-
- this.basedir = new File(basedir);
- this.classpath = classpath;
- this.descriptor = new ParcelDescriptor(new File(this.basedir,
- ParcelZipper.PARCEL_DESCRIPTOR_XML));
- initUI();
- }
-
- public void reload(String basedir, ArrayList<String> classpath,
- ParcelDescriptor descriptor) {
-
- if (basedir != null)
- this.basedir = new File(basedir);
-
- if (classpath != null)
- this.classpath = classpath;
-
- if (descriptor != null) {
- this.descriptor = descriptor;
- }
-
- methodPanel.reload(this.basedir, this.classpath,
- descriptor.getLanguage());
- scriptPanel.reload(descriptor.getScriptEntries());
- }
-
- public void reload(String basedir, ArrayList<String> classpath)
- throws IOException {
-
- if (basedir != null)
- this.basedir = new File(basedir);
-
- if (classpath != null)
- this.classpath = classpath;
-
- this.descriptor = new ParcelDescriptor(new File(this.basedir,
- ParcelZipper.PARCEL_DESCRIPTOR_XML));
-
- methodPanel.reload(this.basedir, this.classpath,
- descriptor.getLanguage());
- scriptPanel.reload(descriptor.getScriptEntries());
- }
-
- public ParcelDescriptor getConfiguration() throws Exception {
- Iterator<ScriptEntry> scripts = scriptPanel.getScriptEntries();
- descriptor.setScriptEntries(scripts);
- return descriptor;
- }
-
- private void initUI() {
-
- JPanel leftPanel = new JPanel();
- JPanel methodButtons = initMethodButtons();
- methodPanel = new MethodPanel(basedir, classpath, descriptor.getLanguage());
-
- leftPanel.setLayout(new BorderLayout());
- leftPanel.add(methodPanel, BorderLayout.CENTER);
-
- JPanel rightPanel = new JPanel();
- JPanel scriptButtons = initScriptButtons();
- scriptPanel = new ScriptPanel(descriptor.getScriptEntries());
-
- rightPanel.setLayout(new BorderLayout());
- rightPanel.add(scriptPanel, BorderLayout.CENTER);
- rightPanel.add(scriptButtons, BorderLayout.SOUTH);
-
- setLayout(new GridBagLayout());
- setPreferredSize(new java.awt.Dimension(700, 300));
- setBorder(LineBorder.createBlackLineBorder());
-
- GridBagConstraints gbc = new GridBagConstraints();
- gbc.gridx = 0;
- gbc.gridy = 0;
- gbc.fill = java.awt.GridBagConstraints.BOTH;
- gbc.ipadx = 40;
- gbc.anchor = java.awt.GridBagConstraints.WEST;
- gbc.insets = new Insets(10, 5, 5, 5);
- gbc.weightx = 0.75;
- add(leftPanel, gbc);
-
- gbc = new java.awt.GridBagConstraints();
- gbc.gridx = 1;
- gbc.gridy = 0;
- add(methodButtons, gbc);
-
- gbc = new java.awt.GridBagConstraints();
- gbc.gridx = 2;
- gbc.gridy = 0;
- gbc.gridwidth = java.awt.GridBagConstraints.REMAINDER;
- gbc.fill = java.awt.GridBagConstraints.BOTH;
- gbc.anchor = java.awt.GridBagConstraints.EAST;
- gbc.insets = new Insets(10, 5, 5, 5);
- gbc.weightx = 1.0;
- gbc.weighty = 1.0;
- add(rightPanel, gbc);
- }
-
- private JPanel initMethodButtons() {
- JPanel panel = new JPanel();
- panel.setLayout(new GridBagLayout());
- ImageIcon icon = new ImageIcon(
- getClass().getResource("/org/openoffice/idesupport/ui/add.gif"));
- JButton addButton = new JButton("Add", icon);
- addButton.setHorizontalTextPosition(AbstractButton.LEFT);
-
- addButton.addActionListener(
- new ActionListener() {
- public void actionPerformed(ActionEvent e) {
- scriptPanel.addScriptEntries(methodPanel.getSelectedEntries());
- }
- }
- );
-
- GridBagConstraints gbc = new java.awt.GridBagConstraints();
- gbc.gridwidth = java.awt.GridBagConstraints.REMAINDER;
- gbc.fill = java.awt.GridBagConstraints.HORIZONTAL;
- gbc.insets = new Insets(5, 5, 5, 5);
- panel.add(addButton, gbc);
-
- JPanel dummyPanel = new JPanel();
- gbc = new java.awt.GridBagConstraints();
- gbc.gridwidth = java.awt.GridBagConstraints.REMAINDER;
- gbc.gridheight = java.awt.GridBagConstraints.REMAINDER;
- gbc.fill = java.awt.GridBagConstraints.BOTH;
- gbc.weightx = 1.0;
- gbc.weighty = 1.0;
- panel.add(dummyPanel, gbc);
-
- return panel;
- }
-
- private JPanel initScriptButtons() {
- JPanel panel = new JPanel();
- JButton removeButton = new JButton("Remove");
- JButton removeAllButton = new JButton("Remove All");
-
- removeButton.addActionListener(
- new ActionListener() {
- public void actionPerformed(ActionEvent e) {
- scriptPanel.removeSelectedRows();
- }
- }
- );
-
- removeAllButton.addActionListener(
- new ActionListener() {
- public void actionPerformed(ActionEvent e) {
- scriptPanel.removeAllRows();
- }
- }
- );
-
- panel.add(removeButton);
- panel.add(removeAllButton);
-
- return panel;
- }
-}
diff --git a/scripting/java/org/openoffice/idesupport/ui/MethodPanel.java b/scripting/java/org/openoffice/idesupport/ui/MethodPanel.java
deleted file mode 100644
index 9bedf5184c34..000000000000
--- a/scripting/java/org/openoffice/idesupport/ui/MethodPanel.java
+++ /dev/null
@@ -1,164 +0,0 @@
-/*
- * 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 .
- */
-
-package org.openoffice.idesupport.ui;
-
-import java.awt.BorderLayout;
-import java.io.File;
-import java.util.ArrayList;
-
-import javax.swing.JLabel;
-import javax.swing.JList;
-import javax.swing.JPanel;
-import javax.swing.JScrollPane;
-
-import org.openoffice.idesupport.ExtensionFinder;
-import org.openoffice.idesupport.JavaFinder;
-import org.openoffice.idesupport.MethodFinder;
-
-import com.sun.star.script.framework.container.ScriptEntry;
-
-public class MethodPanel extends JPanel {
-
- private File basedir;
- private ArrayList<String> classpath;
-
- private JList list;
- private ScriptEntry[] values;
-
- public MethodPanel(File basedir, ArrayList<String> classpath, String language) {
- this.basedir = basedir;
- this.classpath = classpath;
-
- initValues(language);
- initUI();
- }
-
- public void reload(File basedir, ArrayList<String> classpath, String language) {
- this.basedir = basedir;
- this.classpath = classpath;
-
- initValues(language);
- list.setListData(values);
- }
-
- public ScriptEntry[] getSelectedEntries() {
- Object[] selections = list.getSelectedValues();
- ScriptEntry[] entries = new ScriptEntry[selections.length];
-
- for (int i = 0; i < selections.length; i++) {
- entries[i] = (ScriptEntry)selections[i];
- }
-
- return entries;
- }
-
- private void initUI() {
- JLabel label = new JLabel("Available Methods:");
- list = new JList(values);
-
- JScrollPane pane = new JScrollPane(list);
- label.setLabelFor(pane);
-
- BorderLayout layout = new BorderLayout();
- setLayout(layout);
- layout.setVgap(5);
-
- add(label, BorderLayout.NORTH);
- add(pane, BorderLayout.CENTER);
- }
-
- private void initValues(String language) {
- MethodFinder finder;
-
- if (language == null)
- finder = JavaFinder.getInstance(classpath);
- else if (language.equalsIgnoreCase("beanshell"))
- finder = new ExtensionFinder(language, new String[] {".bsh"});
- else
- finder = JavaFinder.getInstance(classpath);
-
- values = finder.findMethods(basedir);
- }
-
- /*
- private class MethodTableModel extends AbstractTableModel {
- final String[] columnNames = {"Method",
- "Language"};
-
- private ArrayList methods;
- private int nextRow;
-
- public MethodTableModel() {
- methods = new ArrayList(11);
- }
-
- public int getColumnCount() {
- return columnNames.length;
- }
-
- public int getRowCount() {
- return methods.size();
- }
-
- public String getColumnName(int col) {
- return columnNames[col];
- }
-
- public void add(ScriptEntry entry) {
- methods.addElement(entry);
- fireTableRowsInserted(nextRow, nextRow);
- nextRow++;
- }
-
- public void remove(int row) {
- methods.removeElementAt(row);
- fireTableRowsDeleted(row, row);
- nextRow--;
- }
-
- public void removeAll() {
- methods.removeAllElements();
- fireTableRowsDeleted(0, nextRow);
- nextRow = 0;
- }
-
- public Object getValueAt(int row) {
- return methods.elementAt(row);
- }
-
- public Object getValueAt(int row, int col) {
- String result = "";
- ScriptEntry entry;
-
- entry = (ScriptEntry)methods.elementAt(row);
-
- if (col == 0)
- result = entry.getLanguageName();
- else if (col == 1)
- result = entry.getLanguage();
-
- return result;
- }
-
- public boolean isCellEditable(int row, int col) {
- return false;
- }
- }
- */
-}
diff --git a/scripting/java/org/openoffice/idesupport/ui/ScriptPanel.java b/scripting/java/org/openoffice/idesupport/ui/ScriptPanel.java
deleted file mode 100644
index c25b5fb04660..000000000000
--- a/scripting/java/org/openoffice/idesupport/ui/ScriptPanel.java
+++ /dev/null
@@ -1,199 +0,0 @@
-/*
- * 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 .
- */
-
-package org.openoffice.idesupport.ui;
-
-import java.awt.BorderLayout;
-import java.awt.event.FocusAdapter;
-import java.awt.event.FocusEvent;
-import java.util.ArrayList;
-import java.util.Iterator;
-
-import javax.swing.DefaultCellEditor;
-import javax.swing.JLabel;
-import javax.swing.JPanel;
-import javax.swing.JScrollPane;
-import javax.swing.JTable;
-import javax.swing.JTextField;
-import javax.swing.table.AbstractTableModel;
-import javax.swing.table.TableCellEditor;
-import javax.swing.table.TableColumn;
-
-import com.sun.star.script.framework.container.ScriptEntry;
-
-public class ScriptPanel extends JPanel {
- private ScriptTableModel model;
- private JTable table;
-
- public ScriptPanel(ScriptEntry[] scripts) {
- model = new ScriptTableModel(scripts);
- initUI();
- }
-
- public void reload(ScriptEntry[] entries) {
- model.removeAll();
- addScriptEntries(entries);
- }
-
- public void addScriptEntries(ScriptEntry[] entries) {
- for (int i = 0; i < entries.length; i++) {
- ScriptEntry entry;
-
- try {
- entry = (ScriptEntry) entries[i].clone();
- } catch (CloneNotSupportedException cnse) {
- entry = new ScriptEntry(entries[i].getLanguage(),
- entries[i].getLanguageName(),
- entries[i].getLocation());
- }
-
- model.add(entry);
- }
- }
-
- public void removeSelectedRows() {
- int[] selections = table.getSelectedRows();
-
- for (int i = selections.length - 1; i >= 0; i--) {
- model.remove(selections[i]);
- }
- }
-
- public void removeAllRows() {
- model.removeAll();
- }
-
- public Iterator<ScriptEntry> getScriptEntries() {
- return model.getScriptEntries();
- }
-
- private void initUI() {
- table = new JTable(model);
- TableColumn column = table.getColumnModel().getColumn(1);
- column.setCellEditor(new DefaultCellEditor(new JTextField()));
-
- table.addFocusListener(new FocusAdapter() {
- @Override
- public void focusLost(FocusEvent evt) {
- tableFocusLost();
- }
- });
-
- JScrollPane pane = new JScrollPane(table);
- JLabel label = new JLabel("Scripts:");
- label.setLabelFor(pane);
-
- BorderLayout layout = new BorderLayout();
- setLayout(layout);
- layout.setVgap(5);
- add(label, BorderLayout.NORTH);
- add(pane, BorderLayout.CENTER);
- }
-
- private void tableFocusLost() {
- TableCellEditor editor = table.getCellEditor();
-
- if (editor != null) {
- Object value = editor.getCellEditorValue();
-
- if (value != null)
- model.setValueAt(value,
- table.getEditingRow(), table.getEditingColumn());
- }
- }
-
- private class ScriptTableModel extends AbstractTableModel {
- final String[] columnNames = {"Exported Method",
- "Script Name"
- };
-
- private ArrayList<ScriptEntry> scripts;
- private int nextRow;
-
- public ScriptTableModel(ScriptEntry[] entries) {
- scripts = new ArrayList<ScriptEntry>(entries.length + 11);
-
- for (int i = 0; i < entries.length; i++) {
- scripts.add(entries[i]);
- }
-
- nextRow = entries.length;
- }
-
- public int getColumnCount() {
- return columnNames.length;
- }
-
- public int getRowCount() {
- return scripts.size();
- }
-
- @Override
- public String getColumnName(int col) {
- return columnNames[col];
- }
-
- public void add(ScriptEntry entry) {
- scripts.add(entry);
- fireTableRowsInserted(nextRow, nextRow);
- nextRow++;
- }
-
- public void remove(int row) {
- scripts.remove(row);
- fireTableRowsDeleted(row, row);
- nextRow--;
- }
-
- public void removeAll() {
- scripts.clear();
- fireTableRowsDeleted(0, nextRow);
- nextRow = 0;
- }
-
- public Iterator<ScriptEntry> getScriptEntries() {
- return scripts.iterator();
- }
-
- public Object getValueAt(int row, int col) {
- String result = "";
- ScriptEntry entry;
-
- entry = scripts.get(row);
-
- if (col == 0)
- result = entry.getLanguageName();
- else if (col == 1)
- result = entry.getLogicalName();
-
- return result;
- }
-
- @Override
- public boolean isCellEditable(int row, int col) {
- return (col != 0);
- }
-
- @Override
- public void setValueAt(Object value, int row, int col) {
- ScriptEntry entry = scripts.get(row);
- entry.setLogicalName((String)value);
- fireTableCellUpdated(row, col);
- }
- }
-}
diff --git a/scripting/java/org/openoffice/idesupport/ui/add.gif b/scripting/java/org/openoffice/idesupport/ui/add.gif
deleted file mode 100644
index e47c986ccf1f..000000000000
--- a/scripting/java/org/openoffice/idesupport/ui/add.gif
+++ /dev/null
Binary files differ
diff --git a/scripting/java/org/openoffice/idesupport/xml/Manifest.java b/scripting/java/org/openoffice/idesupport/xml/Manifest.java
deleted file mode 100644
index 492df63b75ea..000000000000
--- a/scripting/java/org/openoffice/idesupport/xml/Manifest.java
+++ /dev/null
@@ -1,125 +0,0 @@
-/*
- * 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 .
- */
-
-package org.openoffice.idesupport.xml;
-
-import java.io.InputStream;
-import java.io.OutputStream;
-import java.io.ByteArrayInputStream;
-import java.io.ByteArrayOutputStream;
-import java.io.IOException;
-
-import java.util.ArrayList;
-import java.util.Iterator;
-
-import org.w3c.dom.Document;
-import org.w3c.dom.NodeList;
-import org.w3c.dom.Element;
-
-import com.sun.star.script.framework.container.XMLParserFactory;
-
-public class Manifest {
-
- private Document document = null;
- private boolean baseElementsExist = false;
-
- public Manifest(InputStream inputStream) throws IOException {
- document = XMLParserFactory.getParser().parse(inputStream);
- }
-
- public void add(String entry) {
- add(entry, "");
- }
-
- private void add(String entry, String type) {
- Element root, el;
-
- ensureBaseElementsExist();
-
- try {
- root = (Element)
- document.getElementsByTagName("manifest:manifest").item(0);
-
- el = document.createElement("manifest:file-entry");
- el.setAttribute("manifest:media-type", type);
- el.setAttribute("manifest:full-path", entry);
- root.appendChild(el);
- } catch (Exception e) {
- System.err.println("Error adding entry: " + e.getMessage());
- }
- }
-
- private void ensureBaseElementsExist() {
- if (!baseElementsExist) {
- baseElementsExist = true;
- add("Scripts/", "application/script-parcel");
- }
- }
-
- public void remove(String entry) {
- Element root, el;
- int len;
-
- try {
- root = (Element)
- document.getElementsByTagName("manifest:manifest").item(0);
-
- NodeList nl = root.getElementsByTagName("manifest:file-entry");
-
- if (nl == null || (len = nl.getLength()) == 0)
- return;
-
- ArrayList<Element> list = new ArrayList<Element>();
-
- for (int i = 0; i < len; i++) {
- el = (Element)nl.item(i);
-
- if (el.getAttribute("manifest:full-path").startsWith(entry)) {
- list.add(el);
- }
- }
-
- Iterator iter = list.iterator();
-
- while (iter.hasNext())
- root.removeChild((Element)iter.next());
- } catch (Exception e) {
- System.err.println("Error removing entry: " + e.getMessage());
- }
- }
-
- public InputStream getInputStream() throws IOException {
- InputStream result = null;
- ByteArrayOutputStream out = null;
-
- try {
- out = new ByteArrayOutputStream();
- write(out);
- result = new ByteArrayInputStream(out.toByteArray());
- } finally {
- if (out != null)
- out.close();
- }
-
- return result;
- }
-
- private void write(OutputStream out) throws IOException {
- XMLParserFactory.getParser().write(document, out);
- }
-}
diff --git a/scripting/java/org/openoffice/idesupport/zip/ParcelZipper.java b/scripting/java/org/openoffice/idesupport/zip/ParcelZipper.java
deleted file mode 100644
index 3c8d797f220c..000000000000
--- a/scripting/java/org/openoffice/idesupport/zip/ParcelZipper.java
+++ /dev/null
@@ -1,159 +0,0 @@
-/*
- * 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 .
- */
-
-package org.openoffice.idesupport.zip;
-
-import java.io.*;
-import java.util.zip.*;
-import org.openoffice.idesupport.filter.FileFilter;
-import org.openoffice.idesupport.filter.BinaryOnlyFilter;
-import org.openoffice.idesupport.xml.Manifest;
-
-public class ParcelZipper {
- public static final String PARCEL_PREFIX_DIR = "Scripts/";
- private static final String PARCEL_EXTENSION = "sxp";
- public static final String CONTENTS_DIRNAME = "Contents";
- public static final String PARCEL_DESCRIPTOR_XML = "parcel-descriptor.xml";
-
- private static ParcelZipper zipper = null;
-
- private static final FileFilter DEFAULT_FILTER =
- BinaryOnlyFilter.getInstance();
-
- private ParcelZipper() {
- }
-
- public static synchronized ParcelZipper getParcelZipper() {
- if (zipper == null)
- zipper = new ParcelZipper();
-
- return zipper;
- }
-
-
-
-
-
-
-
- public String removeParcel(File document, String parcelName)
- throws IOException {
-
- ZipInputStream documentStream = null;
- ZipOutputStream outStream = null;
- Manifest manifest = null;
-
- if (!parcelName.startsWith(PARCEL_PREFIX_DIR))
- parcelName = PARCEL_PREFIX_DIR + parcelName;
-
- manifest = removeParcelFromManifest(document, parcelName);
-
- // first write contents of document to tmpfile
- File tmpfile = new File(document.getAbsolutePath() + ".tmp");
-
- try {
- ZipEntry outEntry;
- ZipEntry inEntry;
- byte[] bytes = new byte[1024];
- int len;
-
- documentStream = new ZipInputStream(new FileInputStream(document));
- outStream = new ZipOutputStream(new FileOutputStream(tmpfile));
-
- while ((inEntry = documentStream.getNextEntry()) != null) {
-
- if (inEntry.getName().startsWith(parcelName))
- continue;
-
- outEntry = new ZipEntry(inEntry);
- outStream.putNextEntry(outEntry);
-
- if (inEntry.getName().equals("META-INF/manifest.xml") &&
- manifest != null) {
- InputStream manifestStream = null;
-
- try {
- manifestStream = manifest.getInputStream();
-
- while ((len = manifestStream.read(bytes)) != -1)
- outStream.write(bytes, 0, len);
- } finally {
- if (manifestStream != null)
- manifestStream.close();
- }
- } else if (!inEntry.isDirectory()) {
- while ((len = documentStream.read(bytes)) != -1)
- outStream.write(bytes, 0, len);
- }
-
- outStream.closeEntry();
- }
- } catch (IOException ioe) {
- tmpfile.delete();
- throw ioe;
- } finally {
- if (documentStream != null)
- documentStream.close();
-
- if (outStream != null)
- outStream.close();
- }
-
- if (!document.delete()) {
- tmpfile.delete();
- throw new IOException("Could not overwrite " + document);
- } else
- tmpfile.renameTo(document);
-
- return document.getAbsolutePath();
- }
-
- private Manifest getManifestFromDocument(File document) {
- ZipFile documentZip = null;
- Manifest result = null;
-
- try {
- documentZip = new ZipFile(document);
- ZipEntry original = documentZip.getEntry("META-INF/manifest.xml");
-
- if (original != null) {
- result = new Manifest(documentZip.getInputStream(original));
- }
- } catch (IOException ioe) {
- } finally {
- try {
- if (documentZip != null)
- documentZip.close();
- } catch (IOException ioe) {}
- }
-
- return result;
- }
-
- private Manifest removeParcelFromManifest(File document, String name) {
- Manifest result = null;
-
- result = getManifestFromDocument(document);
-
- if (result == null)
- return null;
-
- result.remove(name);
- return result;
- }
-}
diff --git a/scripting/java/org/openoffice/netbeans/editor/JavaKit.java b/scripting/java/org/openoffice/netbeans/editor/JavaKit.java
deleted file mode 100644
index 1a3b6abddd17..000000000000
--- a/scripting/java/org/openoffice/netbeans/editor/JavaKit.java
+++ /dev/null
@@ -1,237 +0,0 @@
-/*
- * 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 .
- */
-package org.openoffice.netbeans.editor;
-
-import java.io.*;
-import java.awt.event.KeyEvent;
-import java.awt.event.InputEvent;
-import java.awt.event.ActionEvent;
-import java.net.URL;
-import java.text.MessageFormat;
-
-import java.util.Map;
-import java.util.List;
-import java.util.ResourceBundle;
-import java.util.MissingResourceException;
-import javax.swing.KeyStroke;
-import javax.swing.JEditorPane;
-import javax.swing.JMenuItem;
-import javax.swing.Action;
-import javax.swing.text.Document;
-import javax.swing.text.JTextComponent;
-import javax.swing.text.TextAction;
-import javax.swing.text.BadLocationException;
-import org.netbeans.editor.*;
-import org.netbeans.editor.ext.*;
-import org.netbeans.editor.ext.java.*;
-
-/**
-* Java editor kit with appropriate document
-*
-* @version 1.00
-*/
-
-/* This class is based on the JavaKit class in the demosrc directory of
- * the editor module of the NetBeans project: http://www.netbeans.org
- *
- * The class sets up an EditorKit for syntax highlighting and code completion
- * of Java syntax
- */
-
-public class JavaKit extends ExtKit {
-
- public static final String JAVA_MIME_TYPE = "text/x-java"; // NOI18N
-
- static final long serialVersionUID = -5445829962533684922L;
-
- static {
- Settings.addInitializer(new JavaSettingsInitializer(JavaKit.class));
- Settings.reset();
-
- URL skeleton = null, body = null;
- skeleton = JavaKit.class.getResource("OOo.jcs");
- body = JavaKit.class.getResource("OOo.jcb");
-
- if (skeleton != null && body != null) {
- DAFileProvider provider = new DAFileProvider(
- new URLAccessor(skeleton),
- new URLAccessor(body));
-
- JCBaseFinder finder = new JCBaseFinder();
- finder.append(provider);
- JavaCompletion.setFinder(finder);
- }
- }
-
- public String getContentType() {
- return JAVA_MIME_TYPE;
- }
-
- /** Create new instance of syntax coloring scanner
- * @param doc document to operate on. It can be null in the cases the syntax
- * creation is not related to the particular document
- */
- public Syntax createSyntax(Document doc) {
- return new JavaSyntax();
- }
-
- /** Create syntax support */
- public SyntaxSupport createSyntaxSupport(BaseDocument doc) {
- return new JavaSyntaxSupport(doc);
- }
-
- public Completion createCompletion(ExtEditorUI extEditorUI) {
- return new JavaCompletion(extEditorUI);
- }
-
- /** Create the formatter appropriate for this kit */
- public Formatter createFormatter() {
- return new JavaFormatter(this.getClass());
- }
-
- protected EditorUI createEditorUI() {
- return new ExtEditorUI();
- }
-
- protected void initDocument(BaseDocument doc) {
- doc.addLayer(new JavaDrawLayerFactory.JavaLayer(),
- JavaDrawLayerFactory.JAVA_LAYER_VISIBILITY);
- doc.addDocumentListener(new JavaDrawLayerFactory.LParenWatcher());
- }
-
- /**
- * DataAccessor for parser DB files via URL streams
- */
- public static class URLAccessor implements DataAccessor {
-
- URL url;
- InputStream stream;
- int streamOff;
- int actOff;
-
- public URLAccessor(URL url) {
- this.url = url;
- }
-
- /** Not implemented
- */
- public void append(byte[] buffer, int off, int len)
- throws IOException {
- throw new IllegalArgumentException("read only!");
- }
-
- /**
- * Reads exactly <code>len</code> bytes from this file resource
- * into the byte array, starting at the current file pointer.
- * This method reads repeatedly from the file until the requested
- * number of bytes are read. This method blocks until the requested
- * number of bytes are read, the end of the inputStream is detected,
- * or an exception is thrown.
- *
- * @param buffer the buffer into which the data is read.
- * @param off the start offset of the data.
- * @param len the number of bytes to read.
- */
- public void read(byte[] buffer, int off, int len) throws IOException {
- InputStream str = getStream(actOff);
-
- while (len > 0) {
- int count = str.read(buffer, off, len);
- streamOff += count;
- off += count;
- len -= count;
- }
- }
-
- /** Opens DataAccessor file resource
- * @param requestWrite if true, file is opened for read/write
- */
- public void open(boolean requestWrite) throws IOException {
- if (requestWrite)
- throw new IllegalArgumentException("read only!");
- }
-
- /** Closes DataAccessor file resource */
- public void close() throws IOException {
- if (stream != null) {
- stream.close();
- stream = null;
- }
- }
-
- /**
- * Returns the current offset in this file.
- *
- * @return the offset from the beginning of the file, in bytes,
- * at which the next read or write occurs.
- */
- public long getFilePointer() throws IOException {
- return actOff;
- }
-
- /** Clears the file and sets the offset to 0 */
- public void resetFile() throws IOException {
- throw new IllegalArgumentException("read only!");
- }
-
- /**
- * Sets the file-pointer offset, measured from the beginning of this
- * file, at which the next read or write occurs.
- */
- public void seek(long pos) throws IOException {
- actOff = (int)pos;
- }
-
- /** Gets InputStream prepared for reading from <code>off</code>
- * offset position
- */
- private InputStream getStream(int off) throws IOException {
- if (streamOff > off && stream != null) {
- stream.close();
- stream = null;
- }
-
- if (stream == null) {
- stream = url.openStream();
- streamOff = 0;
- }
-
- while (streamOff < off) {
- long len = stream.skip(off - streamOff);
- streamOff += (int)len;
-
- if (len == 0) throw new IOException("EOF");
- }
-
- return stream;
- }
-
- public int getFileLength() {
- try {
- int l = url.openConnection().getContentLength();
- return l;
- } catch (IOException e) {
- return 0;
- }
- }
-
- public String toString() {
- return url.toString();
- }
- }
-}
diff --git a/scripting/java/org/openoffice/netbeans/editor/NetBeansSourceView.java b/scripting/java/org/openoffice/netbeans/editor/NetBeansSourceView.java
deleted file mode 100644
index 19388fd8f82f..000000000000
--- a/scripting/java/org/openoffice/netbeans/editor/NetBeansSourceView.java
+++ /dev/null
@@ -1,197 +0,0 @@
-/*
- * 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 .
- */
-package org.openoffice.netbeans.editor;
-
-import javax.swing.*;
-import javax.swing.text.Document;
-import javax.swing.event.DocumentListener;
-import javax.swing.event.DocumentEvent;
-
-import java.io.*;
-import java.util.ResourceBundle;
-
-import javax.swing.text.Caret;
-import org.netbeans.editor.*;
-import org.netbeans.editor.ext.*;
-
-import com.sun.star.script.framework.provider.beanshell.ScriptSourceView;
-import com.sun.star.script.framework.provider.beanshell.ScriptSourceModel;
-
-public class NetBeansSourceView extends JPanel
- implements ScriptSourceView, DocumentListener {
-
- private ScriptSourceModel model;
- private JEditorPane pane;
- private boolean isModified = false;
-
- static {
- // Feed our kits with their default Settings
- Settings.addInitializer(
- new BaseSettingsInitializer(), Settings.CORE_LEVEL);
- Settings.addInitializer(
- new ExtSettingsInitializer(), Settings.CORE_LEVEL);
- Settings.reset();
-
- try {
- Class kitClass = Class.forName(
- NetBeansSourceView.class.getPackage().getName() + ".JavaKit");
-
- JEditorPane.registerEditorKitForContentType(
- "text/x-java", kitClass.getName(), kitClass.getClassLoader());
- } catch (ClassNotFoundException exc) {
- }
- }
-
- private class MyLocalizer implements LocaleSupport.Localizer {
- private ResourceBundle bundle;
-
- public MyLocalizer(String bundleName) {
- bundle = ResourceBundle.getBundle(bundleName);
- }
-
- // Localizer
- public String getString(String key) {
- return bundle.getString(key);
- }
- }
-
- public NetBeansSourceView(ScriptSourceModel model) {
- this.model = model;
-
- LocaleSupport.addLocalizer(
- new MyLocalizer("org.netbeans.editor.Bundle"));
-
- pane = new JEditorPane("text/x-java", "");
- pane.setText(model.getText());
-
- JScrollPane spane = new JScrollPane();
- spane.setViewportView(pane);
- setLayout(new java.awt.GridLayout(1, 1));
- add(spane);
-
- pane.getDocument().addDocumentListener(this);
- }
-
- public static void main(String[] args) {
- if (args.length < 1) {
- System.err.println("No file specified");
- System.exit(-1);
- }
-
- File f = new File(args[0]);
-
- if (!f.exists() || !f.isFile()) {
- System.err.println("Invalid file");
- System.exit(-1);
- }
-
- java.net.URL url = null;
-
- try {
- url = f.toURL();
- } catch (java.net.MalformedURLException mue) {
- System.err.println("Invalid file");
- System.exit(-1);
- }
-
- NetBeansSourceView view =
- new NetBeansSourceView(new ScriptSourceModel(url));
-
- JFrame frame = new JFrame();
- frame.getContentPane().add(view);
- frame.setSize(640, 480);
- frame.show();
- }
-
- // Code grabbed from NetBeans editor module
- public void scrollToLine(int line) {
- BaseDocument doc = Utilities.getDocument(pane);
-
- int pos = -1;
-
- if (doc != null) {
- // Obtain the offset where to jump
- pos = Utilities.getRowStartFromLineOffset(doc, line);
- }
-
- if (pos != -1) {
- Caret caret = pane.getCaret();
-
- if (caret instanceof BaseCaret) { // support extended scroll mode
- BaseCaret bCaret = (BaseCaret)caret;
- bCaret.setDot(pos, bCaret, EditorUI.SCROLL_FIND);
- } else {
- caret.setDot(pos);
- }
- }
- }
-
- public void clear() {
- pane.setText("");
- }
-
- public void update() {
- /* Remove ourselves as a DocumentListener while loading the source
- so we don't get a storm of DocumentEvents during loading */
- pane.getDocument().removeDocumentListener(this);
-
- if (!isModified) {
- pane.setText(model.getText());
- }
-
- // scroll to current position of the model
- try {
- scrollToLine(model.getCurrentPosition());
- } catch (Exception e) {
- // couldn't scroll to line, do nothing
- }
-
- // Add back the listener
- pane.getDocument().addDocumentListener(this);
- }
-
- public boolean isModified() {
- return isModified;
- }
-
- public void setModified(boolean value) {
- isModified = value;
- }
-
- public String getText() {
- return pane.getText();
- }
-
- /* Implementation of DocumentListener interface */
- public void insertUpdate(DocumentEvent e) {
- doChanged(e);
- }
-
- public void removeUpdate(DocumentEvent e) {
- doChanged(e);
- }
-
- public void changedUpdate(DocumentEvent e) {
- doChanged(e);
- }
-
- public void doChanged(DocumentEvent e) {
- isModified = true;
- }
-
-}
diff --git a/scripting/java/org/openoffice/netbeans/editor/OOo.jcb b/scripting/java/org/openoffice/netbeans/editor/OOo.jcb
deleted file mode 100644
index 7286934fae65..000000000000
--- a/scripting/java/org/openoffice/netbeans/editor/OOo.jcb
+++ /dev/null
@@ -1,5 +0,0 @@
-LABELED_BYshortSPLIT_PANEshortHYPER_LINKshortPOPUP_MENUshortGLASS_PANEshortTABLE_CELLshortTEXT_FRAMEshortSTATUS_BARshortROW_HEADERshortSCROLL_BARshortSELECTABLEshortEXPANDABLEshortMULTI_LINEshortHORIZONTALshortLastColumnintSegmentEndintdeleteTextbooleaninsertTextbooleanADJUST_ABScom.sun.star.awt.AdjustmentTypegetDefaultcom.sun.star.awt.AdjustmentTypeRightInsetintFocusFlagsshortDECORATIVEshortNONE_valueintgetDefaultcom.sun.star.awt.FontSlantBOLDDOTTEDshortDOUBLEWAVEshortDASHDOTDOTshortNORMALfloatULTRALIGHTfloat ULTRAEXPANDEDfloatStartColorintRECT_valueintELLIPTICALcom.sun.star.awt.GradientStylegetDefaultcom.sun.star.awt.GradientStyleNOCHILDRENshortPROPERTIESshortPROPERTIESshortRADIOCHECKshortClickCountintUpdateRectcom.sun.star.awt.RectangleEXECUTE_UPshortHELP_valueintgetDefaultcom.sun.star.awt.PushButtonTypeZEROBITS com.sun.star.awt.RasterOperationgetDefault com.sun.star.awt.RasterOperationHORIZONTALintNOTALLOWEDintDEF_CANCELintgetDefaultcom.sun.star.awt.WindowClassRightInsetintgetMaskDIBbytecreatePeervoidgetContextjava.lang.Object setContextvoidgetControlcom.sun.star.awt.XControladdControlvoidendExecutevoidsetFiltersvoidselectFontvoidkeyPressedbooleankeyPressedvoidselectItemvoidinsertItemvoidgetItemPosshortremoveItemvoidenableItemvoiddeactivatevoidmouseMovedvoidselectFormvoidupdateTextvoidremoveTextvoidgetMaximumintsetMaximumvoidisEditablebooleaninsertTextvoidsetMenuBarvoidgetWindowscom.sun.star.awt.XWindowgetPosSizecom.sun.star.awt.RectanglesetPosSizevoidsetVisiblevoidinvalidatevoidsetPointervoidgetToolkitcom.sun.star.awt.XToolkitAttributesshortREADONLYshortREMOVEABLEshortATTRIBUTESintgetDefault com.sun.star.beans.PropertyStategetStringsjava.lang.String setStringsvoidgetMethods"com.sun.star.reflection.XIdlMethod.lib.uno.typeinfo.TypeInfoAUTO_valueintgetDefault,com.sun.star.chart.ChartAxisArrangeOrderTypeDATA_RANGE&com.sun.star.chart.ChartDataChangeTypegetDefault&com.sun.star.chart.ChartDataChangeTypeROWS_valueintgetDefault%com.sun.star.chart.ChartDataRowSourceNONE_valueintgetDefault%com.sun.star.chart.ChartErrorCategoryNONE_valueintgetDefault*com.sun.star.chart.ChartErrorIndicatorType
-NONE_valueintLEFT_valueintgetDefault&com.sun.star.chart.ChartLegendPositionNONE_valueintPOLYNOMIAL+com.sun.star.chart.ChartRegressionCurveTypegetDefault+com.sun.star.chart.ChartRegressionCurveTypegetDiagramcom.sun.star.chart.XDiagramsetDiagramvoidattachDatavoidgetDownBarcom.sun.star.beans.XPropertySet__waitTimeint_otherSide-com.sun.star.comp.connections.PipedConnectionm_lateInitjava.lang.Object initializevoidm_manifestjava.lang.String initializevoidEXTENSIBLEshortlistLayers)com.sun.star.configuration.backend.XLayer"startLayervoidreadSchemavoidstartGroupvoidremoveNodevoidmodifyNodevoidtar.container.XElementAccess UNOTYPEINFO&com.sun.star.lib.uno.typeinfo.TypeInfogetByIndexjava.lang.Object request_idintrequest_idintrequest_idintrequest_idintobject_keybytegetDefault,com.sun.star.corba.giop.LocateStatusType_1_2byte_orderbooleangetDefault#com.sun.star.corba.giop.MsgType_1_1request_idintgetDefault+com.sun.star.corba.giop.ReplyStatusType_1_2service_context%com.sun.star.corba.iop.ServiceContextobject_keybyterequest_idintreserved_2byterequest_idintreserved_3byteobject_keybytereserved_1byteservice_context%com.sun.star.corba.iop.ServiceContextreserved_2bytereserved_1byterequest_idintreserved_3byteobject_keybyteobject_keybytecomponents&com.sun.star.corba.iop.TaggedComponentobject_keybytecontext_idinttk_booleancom.sun.star.corba.TCKindtk_wstringcom.sun.star.corba.TCKindgetDefaultcom.sun.star.corba.TCKindPersistantbyteDragSource)com.sun.star.datatransfer.dnd.XDragSourceDragActionbyteUserActionbyteDropActionbyteDropActionbyteDragSource)com.sun.star.datatransfer.dnd.XDragSourceDropActionbyteDropActionbyteautoscrollvoidacceptDragvoidrejectDragvoidrejectDropvoidacceptDropvoidUSE_CONFIGshortLEFT_valueintgetDefaultcom.sun.star.drawing.AlignmentMORE_FRONT com.sun.star.drawing.ArrangementBACK_valueintgetDefault com.sun.star.drawing.ArrangementgetDefaultcom.sun.star.drawing.BitmapModehorizontalshortFULL_valueintgetDefaultcom.sun.star.drawing.CircleKindMONO_valueintgetDefaultcom.sun.star.drawing.ColorModeLEFT_valueintAUTO_valueintgetDefault#com.sun.star.drawing.ConnectionTypeLINE_valueintgetDefault"com.sun.star.drawing.ConnectorTypeRECT_valueintgetDefaultcom.sun.star.drawing.DashStyleDirectionYdoubleDirectionZdoubleDirectionXdoubleDRAW_valueintgetDefault!com.sun.star.drawing.DrawViewModeDOWN_valueintLEFT_valueintHORIZONTAL$com.sun.star.drawing.EscapeDirectiongetDefault$com.sun.star.drawing.EscapeDirectionHATCHcom.sun.star.drawing.FillStyleNONE_valueintgetDefaultcom.sun.star.drawing.FillStyleIsRelativebooleangetDefaultcom.sun.star.drawing.HatchStyleLEFT_valueintAUTO_valueintgetDefault+com.sun.star.drawing.HorizontalDimensioninggetDefaultcom.sun.star.drawing.LayerType ARROW_valueintNONE_valueintgetDefault com.sun.star.drawing.LineEndType MITER_valueintNONE_valueintgetDefaultcom.sun.star.drawing.LineJointNONE_valueintDASH_valueintgetDefaultcom.sun.star.drawing.LineStylegetDefault com.sun.star.drawing.MeasureKindAUTO_valueintgetDefault'com.sun.star.drawing.MeasureTextHorzPosBREAKEDLINE_valueintWEST_valueintEAST_valueintAUTO_valueintgetDefault'com.sun.star.drawing.MeasureTextVertPosHORIZONTALcom.sun.star.drawing.MirrorAxisgetDefaultcom.sun.star.drawing.MirrorAxisFLAT_valueintgetDefault com.sun.star.drawing.NormalsKindgetDefault!com.sun.star.drawing.PolygonFlagsLINE_valueintPOLY_valueintPLIN_valueintgetDefault com.sun.star.drawing.PolygonKindgetDefault#com.sun.star.drawing.ProjectionModeMIDDLE_TOP#com.sun.star.drawing.RectanglePointgetDefault#com.sun.star.drawing.RectanglePointFLAT_valueintgetDefaultcom.sun.star.drawing.ShadeModeHORIZONTAL#com.sun.star.drawing.SnapObjectTypegetDefault#com.sun.star.drawing.SnapObjectTypeBLOCKcom.sun.star.drawing.TextAdjustLEFT_valueintgetDefaultcom.sun.star.drawing.TextAdjustDOWN_valueintLEFT_valueintgetDefault+com.sun.star.drawing.TextAnimationDirectionSCROLL&com.sun.star.drawing.TextAnimationKindNONE_valueintgetDefault&com.sun.star.drawing.TextAnimationKindNONE_valueintRESIZEATTR&com.sun.star.drawing.TextFitToSizeTypegetDefault&com.sun.star.drawing.TextFitToSizeTypeLEFT_valueintgetDefault)com.sun.star.drawing.TextHorizontalAdjustgetDefault'com.sun.star.drawing.TextVerticalAdjustgetDefault com.sun.star.drawing.TextureKindgetDefault!com.sun.star.drawing.TextureKind2getDefault com.sun.star.drawing.TextureModegetDefault*com.sun.star.drawing.TextureProjectionModeAUTO_valueintgetDefault)com.sun.star.drawing.VerticalDimensioningcanConnectbooleanconnectEndvoidgetControlcom.sun.star.awt.XControlModelsetControlvoidsendToBackvoidenterGroupvoidleaveGroupvoidnNextStateintgetClassIDbyteisReadonlybooleansaveObjectvoidgetPosRectcom.sun.star.awt.RectangledoHandsOffvoidisHandsOffbooleangetDefault#com.sun.star.form.DataSelectionTypeParameters#com.sun.star.container.XIndexAccessPUSH_valueintgetDefault com.sun.star.form.FormButtonTypeTEXT_valueintgetDefault$com.sun.star.form.FormSubmitEncodingPOST_valueintgetDefault"com.sun.star.form.FormSubmitMethodgetDefault com.sun.star.form.ListSourceTypeNONE_valueintgetDefault#com.sun.star.form.NavigationBarModePAGE_valueintgetDefault com.sun.star.form.TabulatorCyclesetColumnsvoidgetColumns&com.sun.star.container.XIndexContainerpositionedvoidnCharacterintsSymbolSetjava.lang.String FeatureURLcom.sun.star.util.URLbIsCommentbooleanFeatureURLcom.sun.star.util.URLgetDefaultcom.sun.star.frame.FrameActionHORIZONTALshortinitializevoidgetContentcom.sun.star.ucb.XContentsetCreatorvoidgetCreator"com.sun.star.frame.XFramesSupplierdeactivatevoidinitializevoidisReadonlybooleanstoreToURLvoidstoreAsURLvoidCTL_ARABICshortCTL_HEBREWshortSHORT_YEARintLONG_MONTHintDST_OFFSETshortAbbrevNamejava.lang.String BankSymboljava.lang.String getDefault#com.sun.star.i18n.DirectionPropertyformatCodejava.lang.String formatNamejava.lang.String formatTypejava.lang.String TITLE_CASEintANY_LETTERintASC_DOLLARintUNI_LETTERintUNI_NUMBERintANY_NUMBERintUNI_NUMBERintANY_NUMBERintASC_NUMBERintbreakIndexintNUMBER_ENDshortNUMBER_INTshortFRACTION_1shortTIME_STARTshortDATE_STARTshortFRACTION_2shortStartFlagsintCandidatesjava.lang.String getDefault(com.sun.star.i18n.TransliterationModulesgetDefault+com.sun.star.i18n.TransliterationModulesNewONE_TO_ONEshortkLao_valueintkMongoliancom.sun.star.i18n.UnicodeScriptkMalayalamcom.sun.star.i18n.UnicodeScriptgetDefaultcom.sun.star.i18n.UnicodeScriptUNASSIGNEDshortWORD_COUNTshortnextScriptintgetDefault"com.sun.star.i18n.NumberFormatCodeloadModulevoidABOVE_WORDshortBELOW_WORDshortFALSE_WORDshortgetDefault$com.sun.star.installation.ProtDlgResaExceptionjava.lang.Object exportDatavoidimportDatavoidreadDoubledoublewriteHypervoidwriteFloatvoidwriteShortvoidcloseInputvoidjumpToMarkvoiddeleteMarkvoidcreateMarkintreadObjectcom.sun.star.io.XPersistObjectwriteBytesvoidterminatedvoidreadStringjava.lang.String SYSTEM_OS2shortSYSTEM_MACshortinitializevoid_listenersjava.util.Vector _firstReadbooleansetWeakRefvoidsetWeakRefvoidshowStatusvoidshowStatusvoidgetContentjava.lang.Object setWeakRefvoidgetContentjava.lang.Object checkWritevoidcheckWritevoidgetContextjava.lang.Object addWatchervoid_iProtocol2com.sun.star.lib.uno.environments.remote.IProtocol(_negotiateboolean_listenersjava.util.Vector getContextjava.lang.Object isSynchronbooleanwriteReplyvoidreadObjectjava.lang.Object _jobQueuesjava.util.Hashtable _iReceiver2com.sun.star.lib.uno.environments.remote.IReceiver(isSynchronboolean_disposeIdjava.lang.Object _doDisposejava.lang.Object _ref_countint_throwablejava.lang.Throwable getContextjava.lang.Object bInDisposebooleantrimToSizevoidgetRootOidjava.lang.String writeReplyvoid_superType-com.sun.star.lib.uno.typedesc.TypeDescription_typeClasscom.sun.star.uno.TypeClassisReadOnlybooleanCONSTintisUnsignedbooleanFROM_RIGHT,com.sun.star.linguistic2.ConversionDirectiongetDefault,com.sun.star.linguistic2.ConversionDirectiongetDefault'com.sun.star.linguistic2.DictionaryTypegetEntries)com.sun.star.linguistic2.XDictionaryEntrygetEntries)com.sun.star.linguistic2.XDictionaryEntryisNegativebooleangetMeaningjava.lang.String getLocalescom.sun.star.lang.LocaleBEST_SPEEDshortPluginNamejava.lang.String getDefault"com.sun.star.plugin.PluginVariableNONE_valueintPATH_valueintHIDE_valueintgetDefault)com.sun.star.presentation.AnimationEffectSLOW_valueintFAST_valueintgetDefault(com.sun.star.presentation.AnimationSpeedVERB_valueintNONE_valueintgetDefault%com.sun.star.presentation.ClickActionNONE_valueintgetDefault$com.sun.star.presentation.FadeEffectgetDefault+com.sun.star.presentation.PresentationRangegetDefault'com.sun.star.reflection.FieldAccessModegetDefault"com.sun.star.reflection.MethodModegetDefault!com.sun.star.reflection.ParamModegetDefault2com.sun.star.reflection.TypeDescriptionSearchDepthgetMethods"com.sun.star.reflection.XIdlMethodgetClasses!com.sun.star.reflection.XIdlClassisReadOnlybooleangetMembers7com.sun.star.reflection.XInterfaceMemberTypeDescriptiongetMembers(com.sun.star.reflection.XTypeDescriptiongetService/com.sun.star.reflection.XServiceTypeDescriptionLINK_valueintgetDefault%com.sun.star.registry.RegistryKeyTypeSTRINGLIST'com.sun.star.registry.RegistryValueTypeLONG_valueintgetDefault'com.sun.star.registry.RegistryValueTypegetKeyNamejava.lang.String createLinkbooleanisReadOnlybooleangetKeyType%com.sun.star.registry.RegistryKeyTypedeleteLinkvoidgetRootKey"com.sun.star.registry.XRegistryKeyisReadOnlybooleansetDefaultvoidgetDefaultcom.sun.star.lang.LocaleloadBundle%com.sun.star.resource.XResourceBundleScanFailedcom.sun.star.scanner.ScanErrorgetDefaultcom.sun.star.scanner.ScanErrorMethodNamejava.lang.String SourceCodejava.lang.String UNKNOWNintgetDefault com.sun.star.script.FinishReasonSourceCodejava.lang.String Step_valueintBreakPoint#com.sun.star.script.InterruptReasongetDefault#com.sun.star.script.InterruptReasongetDefaultcom.sun.star.script.MemberTypeScriptCodejava.lang.String ScriptTypejava.lang.String ScriptCodejava.lang.String ScriptTypejava.lang.String doContinuevoidisVariablebooleanisFunctionbooleanConnectioncom.sun.star.sdbc.XConnectionParameters#com.sun.star.container.XIndexAccessgetBooleanbooleanupdateNullvoidupdateTimevoidupdateDatevoidupdateBytevoidupdateLongvoidgetQueries"com.sun.star.container.XNameAccessNOT_PSEUDOintNOT_PSEUDOintDuringReadbooleanIsRequiredbooleanclearBatchvoidfindColumnintgetTypeMap"com.sun.star.container.XNameAccessgetCatalogjava.lang.String setCatalogvoidisReadOnlybooleansetTypeMapvoidgetSchemascom.sun.star.sdbc.XResultSetgetColumnscom.sun.star.sdbc.XResultSetisReadOnlybooleanacceptsURLbooleansetBooleanvoidclearBatchvoidrefreshRowvoidrowUpdatedbooleanrowDeletedbooleanisWritablebooleanisCurrencybooleanisNullableintisReadOnlybooleangetBooleanbooleanrowChangedvoidupdateBytevoidupdateNullvoidupdateDatevoidupdateTimevoidupdateLongvoidreadDoubledoublereadObjectjava.lang.Object readStringjava.lang.String writeBytesvoidwriteArrayvoidwriteShortvoidwriteFloatvoidgetColumns"com.sun.star.container.XNameAccessdeleteRowsintdropByNamevoidgetIndexes"com.sun.star.container.XNameAccessgetContext+com.sun.star.security.XAccessControlContextFONT_valueintDELETEFILEcom.sun.star.setup.ActionTypeMAKEFOLDERcom.sun.star.setup.ActionTypegetDefaultcom.sun.star.setup.ActionTypebOverwritebooleanstrDirnamejava.lang.String strPatternjava.lang.String nDriveSizeintstrCountryjava.lang.String eErrorCode$com.sun.star.setup.ResponseErrorCodeFULLDELETEcom.sun.star.setup.InstallTypegetDefaultcom.sun.star.setup.InstallTypestrDirnamejava.lang.String isSelectedbooleanUNIX_SOLSGcom.sun.star.setup.OSTypeUNIX_LINUXcom.sun.star.setup.OSTypeUNIX_SOLIGcom.sun.star.setup.OSTypegetDefaultcom.sun.star.setup.OSTypestrSectionjava.lang.String getDefault$com.sun.star.setup.ResponseErrorCodestrPatternjava.lang.String bOverwritebooleangetDefaultcom.sun.star.setup.UpdateTypebDeleteAllbooleanLEFT_valueintgetDefaultcom.sun.star.sheet.Border COLUMNS_valueintNONE_valueintLEFT_valueintROWS_valueintgetDefault!com.sun.star.sheet.CellDeleteModeANNOTATIONint
-DOWN_valueintNONE_valueintROWS_valueintgetDefault!com.sun.star.sheet.CellInsertModeNONE_valueintLESS_valueintLESS_EQUAL$com.sun.star.sheet.ConditionOperatorgetDefault$com.sun.star.sheet.ConditionOperatorNONE_valueintgetDefault!com.sun.star.sheet.DataImportMode
-DATA_valueintPAGE_valueintgetDefault,com.sun.star.sheet.DataPilotFieldOrientationgetDefaultcom.sun.star.sheet.FillDateModegetDefault com.sun.star.sheet.FillDirection SIMPLE_valueintDATE_valueintAUTO_valueintgetDefaultcom.sun.star.sheet.FillModegetDefault#com.sun.star.sheet.FilterConnectionTOP_VALUES!com.sun.star.sheet.FilterOperatorLESS_valueintLESS_EQUAL!com.sun.star.sheet.FilterOperatorgetDefault!com.sun.star.sheet.FilterOperatorIsOptionalbooleanVARP_valueintNONE_valueintAUTO_valueintgetDefault"com.sun.star.sheet.GeneralFunctionDivergencedoublePRINT_AREAintROW_HEADERint
-NONE_valueintgetDefault!com.sun.star.sheet.PasteOperationNONE_valueintgetDefault com.sun.star.sheet.SheetLinkModeConnection#com.sun.star.sheet.FilterConnectionBOTH_valueintgetDefault%com.sun.star.sheet.TableOperationModeSTOP_valueintINFO_valueintgetDefault'com.sun.star.sheet.ValidationAlertStyleDATE_valueintLIST_valueintTIME_valueintgetDefault!com.sun.star.sheet.ValidationTypefillSeriesvoidsetSourcesvoidgetSources#com.sun.star.table.CellRangeAddressgetResultscom.sun.star.sheet.MemberResultgetResultscom.sun.star.sheet.DataResultgetMembers"com.sun.star.container.XNameAccessgetContentjava.lang.String setContentvoidoutputListvoidshowErrorsbooleansetLinkUrlvoidgetLinkUrljava.lang.String hideDetailvoidshowDetailvoidmoveByNamevoidcopyByNamevoidPRINT_AREAintROW_HEADERintNONE_valueintPAGE_AFTERcom.sun.star.style.BreakTypegetDefaultcom.sun.star.style.BreakTypeMIDDLE_TOP"com.sun.star.style.GraphicLocationNONE_valueintAREA_valueintgetDefault"com.sun.star.style.GraphicLocationLEFT_valueintgetDefault&com.sun.star.style.HorizontalAlignmentCHARS_THAIshortLEFT_valueintgetDefault"com.sun.star.style.PageStyleLayoutBLOCK"com.sun.star.style.ParagraphAdjustLEFT_valueintgetDefault"com.sun.star.style.ParagraphAdjustDEFAULTcom.sun.star.style.TabAlignLEFT_valueintgetDefaultcom.sun.star.style.TabAligngetDefault$com.sun.star.style.VerticalAlignmentGenerationintSyncFilterjava.lang.String VFS_FOLDERintinitializebooleanPosixErrorintgetSubjectjava.lang.String setSubjectvoidTEXT_valueintgetDefault"com.sun.star.table.CellContentTypeLEFT_valueintgetDefault"com.sun.star.table.CellHoriJustifygetDefault"com.sun.star.table.CellOrientationgetDefault"com.sun.star.table.CellVertJustifyBOTTOM_RIGHT_valueintNONE_valueintgetDefault!com.sun.star.table.ShadowLocationBottomLinecom.sun.star.table.BorderLineROWS_valueintgetDefault#com.sun.star.table.TableOrientationgetDefault%com.sun.star.table.TableSortFieldTypeautoFormatvoidsetFormulavoidgetFormulajava.lang.String gotoOffsetvoidgetColumns com.sun.star.table.XTableColumnsINFO_valueintgetDefault+com.sun.star.task.InteractionClassificationgetDefault%com.sun.star.task.PasswordRequestModegetRequestjava.lang.Object LOLA_valueintTEST_valueintgetDefault!com.sun.star.test.bridge.TestEnumsetValues2)com.sun.star.test.bridge.TestDataElementscallOnewayvoidcomplex_in*com.sun.star.test.performance.ComplexTypestestPassedbooleanFIRST_NAMEshortIDENTIFIERshortTECHREPORTshortCONFERENCEshortHARD_SPACEshortLINE_BREAKshortDDMMMMYYYYshortDISK_ABOVEshortDISK_BELOWshortLEFT_valueintgetDefault"com.sun.star.text.HorizontalAdjustONLY_valueintgetDefaultcom.sun.star.text.NotePrintModePREV_valueintNEXT_valueintgetDefault com.sun.star.text.PageNumberTypePRINT_AREAshortFRAME_LEFTshortPAGE_RIGHTshortPAGE_FRAMEshortBLOCKcom.sun.star.text.RubyAdjustLEFT_valueintgetDefaultcom.sun.star.text.RubyAdjustFilterNamejava.lang.String LeftMarginint AT_PARAGRAPH'com.sun.star.text.TextContentAnchorTypegetDefault'com.sun.star.text.TextContentAnchorTypeHHMMSSAMPMshortCHAR_TOPshortNONE_valueintLEFT_valueintgetDefaultcom.sun.star.text.WrapTextModegetDefaultcom.sun.star.text.WritingModejumpToPagebooleanprintPagesvoidsetColumnsvoidgetColumnscom.sun.star.text.TextColumninitializevoidgetColumns com.sun.star.table.XTableColumnsmergeRangebooleansplitRangebooleansetVisiblevoidServerNamejava.lang.String HasAccountbooleanDiagnosticjava.lang.String getDefault%com.sun.star.ucb.ContentCreationErrorPropertiescom.sun.star.beans.PropertyAttributesintgetDefaultcom.sun.star.ucb.CookiePolicySEND_valueintgetDefaultcom.sun.star.ucb.CookieRequestgetDefault"com.sun.star.ucb.DocumentStoreModeNO_DOCINFOintFetchErrorshortStartIndexintgetDefault"com.sun.star.ucb.FolderListCommandSubscribedbooleanCANT_WRITEcom.sun.star.ucb.IOErrorCodegetDefaultcom.sun.star.ucb.IOErrorCodeDiagnosticjava.lang.String Diagnosticjava.lang.String ActionInfojava.lang.Object LockTokensjava.lang.String ZERO_valueintgetDefaultcom.sun.star.ucb.LockDepthgetDefaultcom.sun.star.ucb.LockScopegetDefaultcom.sun.star.ucb.LockTypePropertiesjava.lang.String Propertiescom.sun.star.beans.PropertygetDefault%com.sun.star.ucb.OutgoingMessageState LOWEST_valueintHIGH_valueintgetDefaultcom.sun.star.ucb.PriorityValueState#com.sun.star.ucb.PropertyValueStategetDefault#com.sun.star.ucb.PropertyValueStateNewsgroupsjava.lang.String PERSISTENT'com.sun.star.ucb.RememberAuthenticationgetDefault'com.sun.star.ucb.RememberAuthenticationgetDefault2com.sun.star.ucb.RemoteContentProviderChangeActionIdentifierjava.lang.String MARKUNREADshortVALUE_TRUEshortPropertiescom.sun.star.beans.PropertyDEEP_valueintNONE_valueintgetDefault com.sun.star.ucb.SearchRecursiongetDefault"com.sun.star.ucb.SynchronizePolicyMOVE_valueintLINK_valueintCOPY_valueintgetDefault)com.sun.star.ucb.TransferCommandOperationONCE_valueintgetDefault!com.sun.star.ucb.VerificationModemapContentcom.sun.star.ucb.XContentgetDataURLjava.lang.String setDataURLvoidsetAccountvoidisReadOnlybooleanGET_SELECTED_ITEM_INDEXshortgetDefault,com.sun.star.ui.ContextMenuInterceptorActiongetContextjava.lang.Object isUnsignedboolean_typeClasscom.sun.star.uno.TypeClassCHAR_valueintBYTE_valueintTYPE_valueintVOID_valueintLONG_valueintENUM_valueintgetDefaultcom.sun.star.uno.TypeClassgetMappingcom.sun.star.uno.IMappinggetBridgescom.sun.star.uno.IBridgeisLoggablebooleanisLoggablebooleanDONE_valueintgetDefault%com.sun.star.util.DataEditorEventTypeEndMinutesshortStartHoursshortEndSecondsshortStartMonthshortINCH_100THshortSCIENTIFICshortgetDefault"com.sun.star.util.SearchAlgorithms searchStringjava.lang.String searchFlagintgetDefaultcom.sun.star.util.SortFieldTypegetContent#com.sun.star.container.XIndexAccessgetClasses!com.sun.star.util.AtomDescriptionisModifiedbooleanreplaceAllintmapStringsbooleansetOptionsvoidparseSmartbooleanPAGE_WIDTHshortUSER_valueintgetDefaultcom.sun.star.view.PaperFormatgetDefault"com.sun.star.view.PaperOrientationJOB_FAILED com.sun.star.view.PrintableStategetDefault com.sun.star.view.PrintableStategetControlcom.sun.star.awt.XControlgetPrinter com.sun.star.beans.PropertyValuesetPrintervoidgetPrinter com.sun.star.beans.PropertyValuescreenDownbooleanendElementvoidcharactersvoidLineNumberintcharactersvoidendElementvoidfatalErrorvoidstartCDATAvoidgetDesktopcom.sun.star.frame.XDesktop \ No newline at end of file
diff --git a/scripting/java/org/openoffice/netbeans/editor/OOo.jcs b/scripting/java/org/openoffice/netbeans/editor/OOo.jcs
deleted file mode 100644
index c5cc334221ba..000000000000
--- a/scripting/java/org/openoffice/netbeans/editor/OOo.jcs
+++ /dev/null
@@ -1,21 +0,0 @@
-!com.sun.star.awt.XProgressMonitor† ¸44com.sun.star.awt.XRadioButton† ¹hKcom.sun.star.awt.XRegion† º³‚´com.sun.star.awt.XScrollBar† ½g‚‹com.sun.star.awt.XSpinField† ¿òQcom.sun.star.awt.XSpinListener† ÁC+$com.sun.star.awt.XSystemChildFactory† Ân€Æ+com.sun.star.awt.XSystemDependentWindowPeer† Ã4€¤com.sun.star.awt.XTabController† ÃØé$com.sun.star.awt.XTabControllerModel† ÅÁ‚.com.sun.star.awt.XTextArea† Çï€com.sun.star.awt.XTextComponent† È‚„com.sun.star.awt.XTextEditField† Ë€‹&com.sun.star.awt.XTextLayoutConstrains† ËŽ€Úcom.sun.star.awt.XTextListener† Ìh€¦com.sun.star.awt.XTimeField† ÍÀcom.sun.star.awt.XToolkit† Î΂Kcom.sun.star.awt.XTopWindow† ÑY#com.sun.star.awt.XTopWindowListener† Òr‚%com.sun.star.awt.XUnoControlContainer† Ôˆh'com.sun.star.awt.XUserInputInterception† Õðucom.sun.star.awt.XVclContainer† ×e5&com.sun.star.awt.XVclContainerListener† Øš€î"com.sun.star.awt.XVclContainerPeer† Ùˆcom.sun.star.awt.XVclWindowPeer† Ú¢‚5com.sun.star.awt.XView† Ü×<com.sun.star.awt.XWindow† Þ„S com.sun.star.awt.XWindowListener† âfUcom.sun.star.awt.XWindowPeer† ã»O'com.sun.star.beans.IllegalTypeException å
-i)com.sun.star.beans.IntrospectionException åsi com.sun.star.beans.MethodConcept† åÜ€˜com.sun.star.beans.NamedValue æt€³)com.sun.star.beans.NotRemoveableException ç'icom.sun.star.beans.Property ç€ð$com.sun.star.beans.PropertyAttribute† è€€ä&com.sun.star.beans.PropertyChangeEvent édN"com.sun.star.beans.PropertyConcept† ê²l)com.sun.star.beans.PropertyExistException ëi(com.sun.star.beans.PropertySetInfoChange† ë‡J-com.sun.star.beans.PropertySetInfoChangeEvent ëÑ€Ñ com.sun.star.beans.PropertyState ì¢s+com.sun.star.beans.PropertyStateChangeEvent îo com.sun.star.beans.PropertyValue ï„(com.sun.star.beans.PropertyVetoException ðœicom.sun.star.beans.StringPair ñ€µ+com.sun.star.beans.UnknownPropertyException ñºicom.sun.star.beans.XExactName† ò#€¤#com.sun.star.beans.XFastPropertySet† òÇß+com.sun.star.beans.XHierarchicalPropertySet† ô¦‚‹/com.sun.star.beans.XHierarchicalPropertySetInfo† ÷1.com.sun.star.beans.XIntroTest† ø_…•!com.sun.star.beans.XIntrospection† ýô€¶'com.sun.star.beans.XIntrospectionAccess† þªƒ "com.sun.star.beans.XMaterialHolder†¡Ê€0com.sun.star.beans.XMultiHierarchicalPropertySet†¡Y‚3$com.sun.star.beans.XMultiPropertySet†¡Œ‚Þ'com.sun.star.beans.XMultiPropertyStates†¡j‚,com.sun.star.beans.XPropertiesChangeListener†¡ q€·,com.sun.star.beans.XPropertiesChangeNotifier†¡
-(Fcom.sun.star.beans.XProperty†¡ n€œ"com.sun.star.beans.XPropertyAccess†¡
-”*com.sun.star.beans.XPropertyChangeListener†¡ ž€µ%com.sun.star.beans.XPropertyContainer†¡S»com.sun.star.beans.XPropertySet†¡…1#com.sun.star.beans.XPropertySetInfo†¡?G1com.sun.star.beans.XPropertySetInfoChangeListener†¡†€Ã1com.sun.star.beans.XPropertySetInfoChangeNotifier†¡I2!com.sun.star.beans.XPropertyState†¡{‚X/com.sun.star.beans.XPropertyStateChangeListener†¡Ó€¿%com.sun.star.beans.XPropertyWithState†¡’J*com.sun.star.beans.XVetoableChangeListener†¡Ü€ß)com.sun.star.bridge.BridgeExistsException¡»i2com.sun.star.bridge.InvalidProtocolChangeException¡$"com.sun.star.bridge.ModelDependent†¡;R$com.sun.star.bridge.ProtocolProperty¡€³com.sun.star.bridge.XBridge†¡ @€ê"com.sun.star.bridge.XBridgeFactory†¡!*á#com.sun.star.bridge.XBridgeSupplier†¡# $com.sun.star.bridge.XBridgeSupplier2†¡$ €ê%com.sun.star.bridge.XInstanceProvider†¡$ö€Ò'com.sun.star.bridge.XProtocolProperties†¡%È:#com.sun.star.bridge.XUnoUrlResolver†¡'),com.sun.star.chart.ChartAxisArrangeOrderType¡(+î"com.sun.star.chart.ChartAxisAssign†¡*=!com.sun.star.chart.ChartAxisMarks†¡*V@#com.sun.star.chart.ChartDataCaption†¡*–m'com.sun.star.chart.ChartDataChangeEvent¡+C&com.sun.star.chart.ChartDataChangeType¡,F‚tcom.sun.star.chart.ChartDataRow¡.º%com.sun.star.chart.ChartDataRowSource¡/É!com.sun.star.chart.ChartDataValue¡0ီ%com.sun.star.chart.ChartErrorCategory¡1‚h*com.sun.star.chart.ChartErrorIndicatorType¡3÷Ì&com.sun.star.chart.ChartLegendPosition¡5Ãã+com.sun.star.chart.ChartRegressionCurveType¡7¦‚t%com.sun.star.chart.ChartSeriesAddress¡::!com.sun.star.chart.ChartSolidType†¡;T_"com.sun.star.chart.ChartSymbolType†¡;³€Ãcom.sun.star.chart.X3DDisplay†¡<v€Ê!com.sun.star.chart.XAxisXSupplier†¡=@4!com.sun.star.chart.XAxisYSupplier†¡>t4!com.sun.star.chart.XAxisZSupplier†¡?¨4com.sun.star.chart.XChartData†¡@Üp"com.sun.star.chart.XChartDataArray†¡BLc0com.sun.star.chart.XChartDataChangeEventListener†¡C¯€¸!com.sun.star.chart.XChartDocument†¡Dgécom.sun.star.chart.XDiagram†¡FP{$com.sun.star.chart.XStatisticDisplay†¡GË$com.sun.star.chart.XTwoAxisXSupplier†¡HÍ€ª$com.sun.star.chart.XTwoAxisYSupplier†¡Iw€ª-com.sun.star.comp.bridgefactory.BridgeFactory¡J!ƒ3&com.sun.star.comp.connections.Acceptor¡MT‚o'com.sun.star.comp.connections.Connector¡OÂ%6com.sun.star.comp.connections.ConstantInstanceProvider¡Qè‚¿-com.sun.star.comp.connections.PipedConnection¡T§ƒ®"com.sun.star.comp.helper.Bootstrap¡XUä)com.sun.star.comp.helper.ComponentContext¡Z9«.com.sun.star.comp.helper.ComponentContextEntry¡[䀘/com.sun.star.comp.helper.RegistryServiceFactory¡\|‚9,com.sun.star.comp.helper.SharedLibraryLoader¡^µƒ .com.sun.star.comp.loader.FactoryHelper.Factory ¡a¾…‡&com.sun.star.comp.loader.FactoryHelper¡gE‚´#com.sun.star.comp.loader.JavaLoader¡iù„ï*com.sun.star.comp.loader.JavaLoaderFactory¡nè‚°0com.sun.star.comp.loader.RegistrationClassFinder¡q˜‚ /com.sun.star.comp.servicemanager.ServiceManager ¡s¡‰°?com.sun.star.comp.typedescriptionmanager.TypeDescriptionManager(¡}Q96com.sun.star.comp.urlresolver.UrlResolver._UrlResolver ¡~ŠJ)com.sun.star.comp.urlresolver.UrlResolver¡Ô@com.sun.star.configuration.backend.AuthenticationFailedException"¡€ä€›9com.sun.star.configuration.backend.BackendAccessException"¡€‹8com.sun.star.configuration.backend.BackendSetupException"¡‚
-€û9com.sun.star.configuration.backend.CannotConnectException"¡ƒ€›:com.sun.star.configuration.backend.ConnectionLostException"¡ƒ €œDcom.sun.star.configuration.backend.InsufficientAccessRightsException"¡„<€œJcom.sun.star.configuration.backend.InvalidAuthenticationMechanismException"¡„Ø€›9com.sun.star.configuration.backend.MalformedDataException"¡…s€Ö0com.sun.star.configuration.backend.NodeAttribute"†¡†Ia2com.sun.star.configuration.backend.SchemaAttribute"†¡†ªb5com.sun.star.configuration.backend.TemplateIdentifier"¡‡ €·+com.sun.star.configuration.backend.XBackend"†¡‡ÃƒÝ3com.sun.star.configuration.backend.XBackendEntities"†¡‹ Ò2com.sun.star.configuration.backend.XCompositeLayer"†¡ré)com.sun.star.configuration.backend.XLayer"†¡[A0com.sun.star.configuration.backend.XLayerHandler"†¡œˆ„1com.sun.star.configuration.backend.XLayerImporter"†¡™ ƒ<5com.sun.star.configuration.backend.XMultiLayerStratum"†¡œ\…O*com.sun.star.configuration.backend.XSchema"†¡¡«‚ü1com.sun.star.configuration.backend.XSchemaHandler"†¡¤§Š2com.sun.star.configuration.backend.XSchemaSupplier"†¡®¿+6com.sun.star.configuration.backend.XSingleLayerStratum"†¡¯ê‚!2com.sun.star.configuration.backend.XUpdatableLayer"†¡² K1com.sun.star.configuration.backend.XUpdateHandler"†¡³V‹=;com.sun.star.configuration.CannotLoadConfigurationException¡¾“i:com.sun.star.configuration.InstallationIncompleteException¡¾ü€Š8com.sun.star.configuration.InvalidBootstrapFileException¡¿†€û8com.sun.star.configuration.MissingBootstrapFileException¡À€û-com.sun.star.configuration.XTemplateContainer†¡Á|€š,com.sun.star.configuration.XTemplateInstance†¡Â€“1com.sun.star.connection.AlreadyAcceptingException¡Â©i0com.sun.star.connection.ConnectionSetupException¡Ãi*com.sun.star.connection.NoConnectException¡Ã{i(com.sun.star.connection.SocketPermission¡Ã䀵!com.sun.star.connection.XAcceptor†¡Ä™\#com.sun.star.connection.XConnection†¡Åõc$com.sun.star.connection.XConnection2†¡ÇX€ê.com.sun.star.connection.XConnectionBroadcaster†¡ÈB€ð"com.sun.star.connection.XConnector†¡É2%com.sun.star.container.ContainerEvent¡ÊB,com.sun.star.container.ElementExistException¡ËUi-com.sun.star.container.NoSuchElementException¡Ë¾icom.sun.star.container.XChild†¡Ì'€Ý,com.sun.star.container.XComponentEnumeration†¡Í€Ô2com.sun.star.container.XComponentEnumerationAccess†¡ÍØ€È!com.sun.star.container.XContainer†¡Î 
-)com.sun.star.container.XContainerListener†¡Ïª>&com.sun.star.container.XContainerQuery†¡Ðè90com.sun.star.container.XContentEnumerationAccess†¡Ò!€ô%com.sun.star.container.XElementAccess†¡Ó€²#com.sun.star.container.XEnumeration†¡ÓÇ)com.sun.star.container.XEnumerationAccess†¡Ô΀²(com.sun.star.container.XHierarchicalName†¡Õ€-.com.sun.star.container.XHierarchicalNameAccess†¡Ö­1com.sun.star.container.XHierarchicalNameContainer†¡×Ââ/com.sun.star.container.XHierarchicalNameReplace†¡Ù¤Q(com.sun.star.container.XIdentifierAccess†¡Úõ+com.sun.star.container.XIdentifierContainer†¡Ü t)com.sun.star.container.XIdentifierReplace†¡Ý€7(com.sun.star.container.XImplicitIDAccess†¡Þ·+com.sun.star.container.XImplicitIDContainer†¡ß¾)com.sun.star.container.XImplicitIDReplace†¡à×€à#com.sun.star.container.XIndexAccess†¡á·
-&com.sun.star.container.XIndexContainer†¡âÁ¤$com.sun.star.container.XIndexReplace†¡äe,"com.sun.star.container.XNameAccess†¡å‘Y%com.sun.star.container.XNameContainer†¡æê¾#com.sun.star.container.XNameReplace†¡è¨9com.sun.star.container.XNamed†¡éဳcom.sun.star.container.XSet†¡ê”£&com.sun.star.container.XUniqueIDAccess†¡ì74+com.sun.star.corba.giop.CancelRequestHeader¡íkp*com.sun.star.corba.giop.FragmentHeader_1_2¡íÛp)com.sun.star.corba.giop.IORAddressingInfo¡îK€½-com.sun.star.corba.giop.LocateReplyHeader_1_2¡ï€ß/com.sun.star.corba.giop.LocateRequestHeader_1_0¡ï瀬,com.sun.star.corba.giop.LocateStatusType_1_2¡ð“‚ð)com.sun.star.corba.giop.MessageHeader_1_0¡óƒj)com.sun.star.corba.giop.MessageHeader_1_1¡ôí_#com.sun.star.corba.giop.MsgType_1_1¡öL‚ò'com.sun.star.corba.giop.ReplyHeader_1_2¡ù>…+com.sun.star.corba.giop.ReplyStatusType_1_2¡úÂâ)com.sun.star.corba.giop.RequestHeader_1_0¡ý¥‚)com.sun.star.corba.giop.RequestHeader_1_1¡ÿÄ‚s)com.sun.star.corba.giop.RequestHeader_1_2¢7‚80com.sun.star.corba.giop.SystemExceptionReplyBody¢o€ë%com.sun.star.corba.giop.TargetAddress¢Z€*com.sun.star.corba.giop.TargetAddressGroup†¢ÚWcom.sun.star.corba.giop.Version¢1€„/com.sun.star.corba.iiop.BiDirIIOPServiceContext¢µ€õ#com.sun.star.corba.iiop.ListenPoint¢ª€º'com.sun.star.corba.iiop.ProfileBody_1_0¢ dJ'com.sun.star.corba.iiop.ProfileBody_1_1¢
-®ìcom.sun.star.corba.iiop.Version¢ š€„com.sun.star.corba.iop.IOR¢ =%com.sun.star.corba.iop.ProfileIdGroup†¢[€‡%com.sun.star.corba.iop.ServiceContext¢‰%com.sun.star.corba.iop.ServiceIdGroup†¢’I&com.sun.star.corba.iop.TaggedComponent¢Û€­$com.sun.star.corba.iop.TaggedProfile¢ˆ€©com.sun.star.corba.CorbaString8¢1€‰com.sun.star.corba.CorbaUnion¢ºk"com.sun.star.corba.LogicalThreadID¢%€Òcom.sun.star.corba.ObjectKey¢÷€ïcom.sun.star.corba.OneThreadID¢怦com.sun.star.corba.TCKind¢ŒˆÊ2com.sun.star.datatransfer.clipboard.ClipboardEvent#¢V€×9com.sun.star.datatransfer.clipboard.RenderingCapabilities#†¢-<.com.sun.star.datatransfer.clipboard.XClipboard#†¢i@0com.sun.star.datatransfer.clipboard.XClipboardEx#†¢ ©€£5com.sun.star.datatransfer.clipboard.XClipboardFactory#†¢!L€ñ6com.sun.star.datatransfer.clipboard.XClipboardListener#†¢"=€Â5com.sun.star.datatransfer.clipboard.XClipboardManager#†¢"ÿñ6com.sun.star.datatransfer.clipboard.XClipboardNotifier#†¢$ð$3com.sun.star.datatransfer.clipboard.XClipboardOwner#†¢&€â7com.sun.star.datatransfer.clipboard.XFlushableClipboard#†¢&ö€†*com.sun.star.datatransfer.dnd.DNDConstants†¢'|€º.com.sun.star.datatransfer.dnd.DragGestureEvent¢(6^1com.sun.star.datatransfer.dnd.DragSourceDragEvent¢)” 1com.sun.star.datatransfer.dnd.DragSourceDropEvent¢*´'-com.sun.star.datatransfer.dnd.DragSourceEvent¢+ÛX6com.sun.star.datatransfer.dnd.DropTargetDragEnterEvent¢-3™1com.sun.star.datatransfer.dnd.DropTargetDragEvent¢.Ìu1com.sun.star.datatransfer.dnd.DropTargetDropEvent¢0AÙ-com.sun.star.datatransfer.dnd.DropTargetEvent¢2€Ž:com.sun.star.datatransfer.dnd.InvalidDNDOperationException¢2¨p)com.sun.star.datatransfer.dnd.XAutoscroll†¢3€¼2com.sun.star.datatransfer.dnd.XDragGestureListener†¢3Ô€Ä4com.sun.star.datatransfer.dnd.XDragGestureRecognizer†¢4˜<)com.sun.star.datatransfer.dnd.XDragSource†¢5Ô0com.sun.star.datatransfer.dnd.XDragSourceContext†¢7q€è1com.sun.star.datatransfer.dnd.XDragSourceListener†¢8Yë)com.sun.star.datatransfer.dnd.XDropTarget†¢:D™4com.sun.star.datatransfer.dnd.XDropTargetDragContext†¢;Ý€¡4com.sun.star.datatransfer.dnd.XDropTargetDropContext†¢<~€Å1com.sun.star.datatransfer.dnd.XDropTargetListener†¢=Cé$com.sun.star.datatransfer.DataFlavor¢?,4com.sun.star.datatransfer.UnsupportedFlavorException¢@.i/com.sun.star.datatransfer.XDataFormatTranslator†¢@—+*com.sun.star.datatransfer.XMimeContentType†¢A¤1com.sun.star.datatransfer.XMimeContentTypeFactory†¢Cf€ó-com.sun.star.datatransfer.XSystemTransferable†¢DY€“-com.sun.star.datatransfer.XTransferDataAccess†¢Dì€õ'com.sun.star.datatransfer.XTransferable†¢Eáž)com.sun.star.datatransfer.XTransferableEx†¢G€Ø-com.sun.star.datatransfer.XTransferableSource†¢HW€œ+com.sun.star.document.AmbigousFilterRequest¢Hó=*com.sun.star.document.BrokenPackageRequest¢J0€Ï!com.sun.star.document.EventObject¢Jÿ€ª*com.sun.star.document.FilterOptionsRequest¢K©t%com.sun.star.document.LinkUpdateModes†¢MX#com.sun.star.document.MacroExecMode†¢Mu€å)com.sun.star.document.NoSuchFilterRequest¢NZ€Í.com.sun.star.document.PrinterIndependentLayout†¢O'o(com.sun.star.document.RedlineDisplayType†¢O–j#com.sun.star.document.UpdateDocMode†¢P'com.sun.star.drawing.MeasureTextHorzPos¢”6Ä'com.sun.star.drawing.MeasureTextVertPos¢•úücom.sun.star.drawing.MirrorAxis¢—ö com.sun.star.drawing.NormalsKind¢™G,com.sun.star.drawing.PolyPolygonBezierCoords¢šKS'com.sun.star.drawing.PolyPolygonShape3D¢›ž!com.sun.star.drawing.PolygonFlags¢œ´– com.sun.star.drawing.PolygonKind¢žJ‚Ùcom.sun.star.drawing.Position3D¢¡#€³#com.sun.star.drawing.ProjectionMode¢¡Ö #com.sun.star.drawing.RectanglePoint¢¢öƒHcom.sun.star.drawing.ShadeMode¢¦>t#com.sun.star.drawing.SnapObjectType¢§²`com.sun.star.drawing.TextAdjust¢©¼+com.sun.star.drawing.TextAnimationDirection¢ªÎ¸&com.sun.star.drawing.TextAnimationKind¢¬†ñ&com.sun.star.drawing.TextFitToSizeType¢®wÀ)com.sun.star.drawing.TextHorizontalAdjust¢°7¶'com.sun.star.drawing.TextVerticalAdjust¢±íª com.sun.star.drawing.TextureKind¢³—
-!com.sun.star.drawing.TextureKind2¢´¡V com.sun.star.drawing.TextureMode¢µ÷K*com.sun.star.drawing.TextureProjectionMode¢·B)com.sun.star.drawing.VerticalDimensioning¢¸Ï¸&com.sun.star.drawing.XConnectableShape†¢º‡€ö$com.sun.star.drawing.XConnectorShape†¢»}Ç"com.sun.star.drawing.XControlShape†¢½D€Õcom.sun.star.drawing.XDrawPage†¢¾l(com.sun.star.drawing.XDrawPageDuplicator†¢¾…€½&com.sun.star.drawing.XDrawPageExpander†¢¿B€»(com.sun.star.drawing.XDrawPageSummarizer†¢¿ý€¾&com.sun.star.drawing.XDrawPageSupplier†¢À»€com.sun.star.drawing.XDrawPages†¢ÁX€æ'com.sun.star.drawing.XDrawPagesSupplier†¢Â>€Ÿcom.sun.star.drawing.XDrawView†¢ÂÝ€Ý(com.sun.star.drawing.XGluePointsSupplier†¢Ãº€§com.sun.star.drawing.XLayer†¢Äao"com.sun.star.drawing.XLayerManager†¢Äп#com.sun.star.drawing.XLayerSupplier†¢Æ€¥&com.sun.star.drawing.XMasterPageTarget†¢Ç4€Û)com.sun.star.drawing.XMasterPagesSupplier†¢È€¡com.sun.star.drawing.XShape†¢È°M"com.sun.star.drawing.XShapeAligner†¢Éý€Å#com.sun.star.drawing.XShapeArranger†¢Ê‚0!com.sun.star.drawing.XShapeBinder†¢Ìò€å#com.sun.star.drawing.XShapeCombiner†¢Í×€ç%com.sun.star.drawing.XShapeDescriptor†¢Î¾€ com.sun.star.drawing.XShapeGroup†¢ÏN€™"com.sun.star.drawing.XShapeGrouper†¢Ïç€ñ!com.sun.star.drawing.XShapeMirror†¢ÐØcom.sun.star.drawing.XShapes†¢Ññ€Ô.com.sun.star.drawing.XUniversalShapeDescriptor†¢ÒÅ€¢com.sun.star.embed.Aspects†¢Óg€¶com.sun.star.embed.BorderWidths¢Ô€¨com.sun.star.embed.ElementModes†¢ÔÅ€Äcom.sun.star.embed.EmbedMisc†¢Õ‰‚÷com.sun.star.embed.EmbedStates†¢Ø€€Œ#com.sun.star.embed.EmbedUpdateModes†¢Ù Qcom.sun.star.embed.EmbedVerbs†¢Ù]€Ú!com.sun.star.embed.EntryInitModes†¢Ú7€¤*com.sun.star.embed.InvalidStorageException¢ÚÛi%com.sun.star.embed.StorageWTException¢ÛD€‹,com.sun.star.embed.UnreachableStateException¢ÛÏ€Ó&com.sun.star.embed.WrongStateException¢Ü¢i$com.sun.star.embed.XClassifiedObject†¢Ý %com.sun.star.embed.XComponentSupplier†¢Þ €œ&com.sun.star.embed.XEmbedObjectFactory†¢Þ©ƒã com.sun.star.embed.XEmbedPersist†¢âŒ…¹"com.sun.star.embed.XEmbeddedClient†¢èE€Â"com.sun.star.embed.XEmbeddedObject†¢é„1-com.sun.star.embed.XEncryptionProtectedSource†¢í8€)com.sun.star.embed.XIPMainContainerWindow†¢íÈ+!com.sun.star.embed.XInplaceClient†¢îó„U!com.sun.star.embed.XInplaceObject†¢óH‚„#com.sun.star.embed.XInplaceUIWindow†¢õÌ‚"com.sun.star.embed.XLinkageSupport†¢÷Í%com.sun.star.embed.XPersistanceHolder†¢øÛ€àcom.sun.star.embed.XStorage†¢ù»ŒE$com.sun.star.embed.XTransactedObject†£'com.sun.star.embed.XTransactionListener†£)‚(com.sun.star.embed.XTransferableSupplier†£ «€ª com.sun.star.embed.XVisualObject†£
-U‚7"com.sun.star.embed.XWindowSupplier†£ Œ€•#com.sun.star.form.DataSelectionType£ ! %com.sun.star.form.DatabaseDeleteEvent£Á€Õ(com.sun.star.form.DatabaseParameterEvent£–€Ñcom.sun.star.form.ErrorEvent£g€§ com.sun.star.form.FormButtonType£|#com.sun.star.form.FormComponentType†£Š©$com.sun.star.form.FormSubmitEncoding£3W"com.sun.star.form.FormSubmitMethod£Š com.sun.star.form.ListSourceType£Ž‚ #com.sun.star.form.NavigationBarMode£®T com.sun.star.form.TabulatorCycle£G+com.sun.star.form.XApproveActionBroadcaster†£I(com.sun.star.form.XApproveActionListener†£Y€®!com.sun.star.form.XBoundComponent†£€Šcom.sun.star.form.XBoundControl†£‘€¡$com.sun.star.form.XChangeBroadcaster†£2€ô!com.sun.star.form.XChangeListener†£&€¥+com.sun.star.form.XConfirmDeleteBroadcaster†£Ë(com.sun.star.form.XConfirmDeleteListener†£ Û€°/com.sun.star.form.XDatabaseParameterBroadcaster†£!‹,com.sun.star.form.XDatabaseParameterListener†£"›€¼!com.sun.star.form.XDeleteListener†£#W€ã#com.sun.star.form.XErrorBroadcaster†£$:€ð com.sun.star.form.XErrorListener†£%*€©com.sun.star.form.XForm†£%Óp com.sun.star.form.XFormComponent†£&Cm!com.sun.star.form.XFormController†£&°?)com.sun.star.form.XFormControllerListener†£'ï€è com.sun.star.form.XFormsSupplier†£(×€¡com.sun.star.form.XGrid†£)x€¿$com.sun.star.form.XGridColumnFactory†£*7(com.sun.star.form.XGridFieldDataSupplier†£+=€ícom.sun.star.form.XGridPeer†£,*€å(com.sun.star.form.XImageProducerSupplier†£-€£!com.sun.star.form.XInsertListener†£-²€Ýcom.sun.star.form.XLoadListener†£.~com.sun.star.form.XLoadable†£0 ;&com.sun.star.form.XPositioningListener†£1H€¨com.sun.star.form.XReset†£1ð com.sun.star.form.XResetListener†£2ò€ã"com.sun.star.form.XRestoreListener†£3Õ€¦com.sun.star.form.XSubmit†£4{C!com.sun.star.form.XSubmitListener†£5¾€®$com.sun.star.form.XUpdateBroadcaster†£6l€ô!com.sun.star.form.XUpdateListener†£7`€ã%com.sun.star.formula.SymbolDescriptor£8CÂ%com.sun.star.frame.DispatchDescriptor£:€â&com.sun.star.frame.DispatchResultEvent£:ç€À&com.sun.star.frame.DispatchResultState†£;§N$com.sun.star.frame.DispatchStatement£;õw0com.sun.star.frame.DoubleInitializationException£=li$com.sun.star.frame.FeatureStateEvent£=Õ_com.sun.star.frame.FrameAction£?4ƒ8#com.sun.star.frame.FrameActionEvent£Bl"com.sun.star.frame.FrameSearchFlag†£Cp€š-com.sun.star.frame.IllegalArgumentIOException£D
-j+com.sun.star.frame.TerminationVetoException£Dti com.sun.star.frame.WindowArrange†£DÝ€†)com.sun.star.frame.XBrowseHistoryRegistry†£Ec#com.sun.star.frame.XComponentLoader†£Fd@%com.sun.star.frame.XComponentRegistry†£G¤€¼!com.sun.star.frame.XConfigManager†£H`com.sun.star.frame.XController†£Ið£com.sun.star.frame.XDesktop†£K“Ãcom.sun.star.frame.XDesktopTask†£MV€´com.sun.star.frame.XDispatch†£N
-z"com.sun.star.frame.XDispatchHelper†£O„$com.sun.star.frame.XDispatchProvider†£P’.0com.sun.star.frame.XDispatchProviderInterception†£QÀ0/com.sun.star.frame.XDispatchProviderInterceptor†£Rðš$com.sun.star.frame.XDispatchRecorder†£TŠž,com.sun.star.frame.XDispatchRecorderSupplier†£V(n*com.sun.star.frame.XDispatchResultListener†£W–€·%com.sun.star.frame.XDocumentTemplates†£XM‚¤+com.sun.star.frame.XExtendedFilterDetection†£Zñ€Â com.sun.star.frame.XFilterDetect†£[³€Úcom.sun.star.frame.XFrame†£\ƒ¦'com.sun.star.frame.XFrameActionListener†£`3€¯com.sun.star.frame.XFrameLoader†£`â $com.sun.star.frame.XFrameLoaderQuery†£aïH!com.sun.star.frame.XFrameSetModel†£c7€·com.sun.star.frame.XFrames†£cî"com.sun.star.frame.XFramesSupplier†£dõ€ý#com.sun.star.frame.XInterceptorInfo†£eò€–%com.sun.star.frame.XLoadEventListener†£fˆ€écom.sun.star.frame.XLoadable†£gqŠcom.sun.star.frame.XModel†£hû‚Ë%com.sun.star.frame.XNotifyingDispatch†£kÆ€ü&com.sun.star.frame.XRecordableDispatch†£l€î"com.sun.star.frame.XStatusListener†£m°€²com.sun.star.frame.XStorable†£nbË'com.sun.star.frame.XSynchronousDispatch†£p-€Ø*com.sun.star.frame.XSynchronousFrameLoader†£q€Ócom.sun.star.frame.XTask†£qØ€Þ!com.sun.star.frame.XTasksSupplier†£r¶€Ó%com.sun.star.frame.XTerminateListener†£s‰com.sun.star.frame.XUrlList†£t£€³"com.sun.star.frame.XWindowArranger†£uV€²com.sun.star.i18n.AmPmValue†£v1com.sun.star.i18n.Boundary£v9€„com.sun.star.i18n.BreakType†£v½acom.sun.star.i18n.CTLScriptType†£w~com.sun.star.i18n.Calendar£wœ‚‰%com.sun.star.i18n.CalendarDisplayCode†£z%g&com.sun.star.i18n.CalendarDisplayIndex†£{Œb$com.sun.star.i18n.CalendarFieldIndex†£{îNcom.sun.star.i18n.CalendarItem£}<€ècom.sun.star.i18n.CharType†£~$ƒ3'com.sun.star.i18n.CharacterIteratorMode†£Wa!com.sun.star.i18n.CollatorOptions†£¸€Šcom.sun.star.i18n.Currency£‚B‡#com.sun.star.i18n.DirectionProperty£ƒÉ‡‚%com.sun.star.i18n.ForbiddenCharacters£‹K€ºcom.sun.star.i18n.FormatElement£Œš com.sun.star.i18n.Implementation£Ÿ€¦(com.sun.star.i18n.InputSequenceCheckMode†£ŽEN com.sun.star.i18n.KCharacterType†£Ž“€¥#com.sun.star.i18n.KNumberFormatType†£8G$com.sun.star.i18n.KNumberFormatUsage†£€Âcom.sun.star.i18n.KParseTokens†£A‚Ócom.sun.star.i18n.KParseType†£“€Ö%com.sun.star.i18n.LanguageCountryInfo£“êc-com.sun.star.i18n.LineBreakHyphenationOptions£•Mp"com.sun.star.i18n.LineBreakResults£–½€ö&com.sun.star.i18n.LineBreakUserOptions£—³e com.sun.star.i18n.LocaleDataItem£™„`com.sun.star.i18n.LocaleItem†£x‚com.sun.star.i18n.Months†£Ÿ—€å.com.sun.star.i18n.MultipleCharsOutputException£ |i"com.sun.star.i18n.NativeNumberMode†£ å€ñ+com.sun.star.i18n.NativeNumberXmlAttributes£¡Ö€õ"com.sun.star.i18n.NumberFormatCode£¢ËR#com.sun.star.i18n.NumberFormatIndex†£¤†¶com.sun.star.i18n.ParseResult£ªÓI!com.sun.star.i18n.ScriptDirection†£¬Ycom.sun.star.i18n.ScriptType†£¬uX&com.sun.star.i18n.TextConversionOption†£¬Íg&com.sun.star.i18n.TextConversionResult£­4€ü$com.sun.star.i18n.TextConversionType†£®0j(com.sun.star.i18n.TransliterationModules£®šŽù+com.sun.star.i18n.TransliterationModulesNew£½“š½%com.sun.star.i18n.TransliterationType†£ØP€com.sun.star.i18n.UnicodeScript£ØÝ›ãcom.sun.star.i18n.UnicodeType†£ôÀƒ5com.sun.star.i18n.Weekdays†£÷õ€–com.sun.star.i18n.WordType†£ø‹} com.sun.star.i18n.XBreakIterator†£ù‡žcom.sun.star.i18n.XCalendar†¤€ê&com.sun.star.lang.NoSuchFieldException¤Vôi'com.sun.star.lang.NoSuchMethodException¤W]i$com.sun.star.lang.NoSupportException¤WÆi&com.sun.star.lang.NullPointerException¤X/i/com.sun.star.lang.ServiceNotRegisteredException¤X˜i!com.sun.star.lang.SystemDependent†¤Y€ž(com.sun.star.lang.WrappedTargetException¤YŸ€Ù/com.sun.star.lang.WrappedTargetRuntimeException¤Zx€àcom.sun.star.lang.XComponent†¤[X"com.sun.star.lang.XConnectionPoint†¤\\¶+com.sun.star.lang.XConnectionPointContainer†¤^z com.sun.star.lang.XEventListener†¤_Œ€¢!com.sun.star.lang.XInitialization†¤`.€²com.sun.star.lang.XLocalizable†¤`à€Çcom.sun.star.lang.XMain†¤a§€Ž(com.sun.star.lang.XMultiComponentFactory†¤b5Ì&com.sun.star.lang.XMultiServiceFactory†¤dk%com.sun.star.lang.XServiceDisplayName†¤el€µcom.sun.star.lang.XServiceInfo†¤f!€ýcom.sun.star.lang.XServiceName†¤g€’)com.sun.star.lang.XSingleComponentFactory†¤g°s'com.sun.star.lang.XSingleServiceFactory†¤i#com.sun.star.lang.XTypeProvider†¤j5€±com.sun.star.lang.XUnoTunnel†¤j怌)com.sun.star.ldap.LdapConnectionException¤kri&com.sun.star.ldap.LdapGenericException¤kÛ€¹0com.sun.star.lib.connections.pipe.PipeConnection!¤l”ƒˆ.com.sun.star.lib.connections.pipe.pipeAcceptor!¤p‚E/com.sun.star.lib.connections.pipe.pipeConnector!¤raû4com.sun.star.lib.connections.socket.SocketConnection#¤t\ƒê2com.sun.star.lib.connections.socket.socketAcceptor#¤xF‚E3com.sun.star.lib.connections.socket.socketConnector#¤z‹û!com.sun.star.lib.sandbox.Cachable†¤|†x%com.sun.star.lib.sandbox.ClassContext†¤|þ‚ *com.sun.star.lib.sandbox.ClassContextProxy¤ ƒß#com.sun.star.lib.sandbox.CodeSource¤‚èY#com.sun.star.lib.sandbox.Disposable†¤ƒA+)com.sun.star.lib.sandbox.ExecutionContext„¤ƒl…com.sun.star.lib.sandbox.Holder†¤ˆ†l!com.sun.star.lib.sandbox.JarEntry¤ˆò€µ-com.sun.star.lib.sandbox.PermissionCollection¤‰§€Ô)com.sun.star.lib.sandbox.ProtectionDomain¤Š{€¶!com.sun.star.lib.sandbox.Resource†¤‹1°&com.sun.star.lib.sandbox.ResourceProxy¤ŒáƒM'com.sun.star.lib.sandbox.ResourceViewer¤.€‘(com.sun.star.lib.sandbox.SandboxSecurity¤¿†Ë1com.sun.star.lib.sandbox.SandboxSecurityException¤—Š€Ñ+com.sun.star.lib.sandbox.SandboxThreadGroup¤˜[€Ö com.sun.star.lib.sandbox.WeakRef¤™1€"com.sun.star.lib.sandbox.WeakTable¤™Îtcom.sun.star.lib.sandbox.XImage†¤›B„²=com.sun.star.lib.uno.adapter.XInputStreamToInputStreamAdapter¤Ÿô?com.sun.star.lib.uno.adapter.XOutputStreamToOutputStreamAdapter¤¡‘#Mcom.sun.star.lib.uno.bridges.java_remote.java_remote_bridge.MessageDispatcher(¤¢´€;com.sun.star.lib.uno.bridges.java_remote.java_remote_bridge(¤£C‡Õ7com.sun.star.lib.uno.environments.java.java_environment&¤«‚1com.sun.star.lib.uno.environments.remote.IMarshal(†¤­6z1com.sun.star.lib.uno.environments.remote.IMessage(†¤­°X2com.sun.star.lib.uno.environments.remote.IProtocol(†¤¯ƒ2com.sun.star.lib.uno.environments.remote.IReceiver(†¤²€4com.sun.star.lib.uno.environments.remote.IThreadPool(†¤²‚c3com.sun.star.lib.uno.environments.remote.IUnmarshal(†¤´ó_7com.sun.star.lib.uno.environments.remote.JavaThreadPool(¤µR‚>com.sun.star.lib.uno.environments.remote.JavaThreadPoolFactory(¤·á€Î,com.sun.star.lib.uno.environments.remote.Job(¤¸¯ƒ©1com.sun.star.lib.uno.environments.remote.JobQueue(¤¼X‚Ï1com.sun.star.lib.uno.environments.remote.Protocol(„¤¿'‚]1com.sun.star.lib.uno.environments.remote.ThreadId(¤Á„:com.sun.star.lib.uno.environments.remote.ThreadPoolManager(¤ÂŒq;com.sun.star.lib.uno.environments.remote.remote_environment(¤Âýõ)com.sun.star.lib.uno.helper.ComponentBase¤Äò¸#com.sun.star.lib.uno.helper.Factory¤Æªƒ.com.sun.star.lib.uno.helper.InterfaceContainer¤ÉÀ„47com.sun.star.lib.uno.helper.MultiTypeInterfaceContainer¤Íôm'com.sun.star.lib.uno.helper.PropertySet¤Ïa•"com.sun.star.lib.uno.helper.UnoUrl¤ßö‚2'com.sun.star.lib.uno.helper.WeakAdapter¤â(€ß$com.sun.star.lib.uno.helper.WeakBase¤ã2?com.sun.star.lib.uno.protocols.urp.Marshal.M_InterfaceReference" ¤ä9x5com.sun.star.lib.uno.protocols.urp.Marshal.M_ThreadId" ¤ä±l&com.sun.star.lib.uno.protocols.urp.urp"¤åƒ5.com.sun.star.lib.uno.typedesc.FieldDescription¤èR€¹/com.sun.star.lib.uno.typedesc.MethodDescription¤é ‚È-com.sun.star.lib.uno.typedesc.TypeDescription¤ëÓ‹¬/com.sun.star.lib.uno.typeinfo.AttributeTypeInfo¤÷€.com.sun.star.lib.uno.typeinfo.ConstantTypeInfo¤øL,com.sun.star.lib.uno.typeinfo.MemberTypeInfo¤øZf,com.sun.star.lib.uno.typeinfo.MethodTypeInfo¤øÀ€Â/com.sun.star.lib.uno.typeinfo.ParameterTypeInfo¤ù‚&com.sun.star.lib.uno.typeinfo.TypeInfo¤úOcom.sun.star.lib.uno.Proxy†¤ûß%com.sun.star.lib.util.DisposeListener†¤ûöZ%com.sun.star.lib.util.DisposeNotifier†¤üP_ com.sun.star.lib.util.IInvokable†¤ü¯J!com.sun.star.lib.util.IInvokeHook†¤üù€ƒ)com.sun.star.lib.util.NativeLibraryLoader¤ý|€§"com.sun.star.lib.util.StringHelper¤þ#fcom.sun.star.lib.util.WeakMap¤þ‰‚d#com.sun.star.lib.util.WeakMap.Entry„ ¥{ƒ2com.sun.star.linguistic2.XConversionDictionaryList†¥ ™‚Â$com.sun.star.linguistic2.XDictionary†¥[ƒ%com.sun.star.linguistic2.XDictionary1†¥܃_)com.sun.star.linguistic2.XDictionaryEntry†¥;€Ú1com.sun.star.linguistic2.XDictionaryEventListener†¥€¿(com.sun.star.linguistic2.XDictionaryList†¥Ôƒ}5com.sun.star.linguistic2.XDictionaryListEventListener†¥Q€Ç(com.sun.star.linguistic2.XHyphenatedWord†¥=$com.sun.star.linguistic2.XHyphenator†¥U‚Ö6com.sun.star.linguistic2.XLinguServiceEventBroadcaster†¥!+43com.sun.star.linguistic2.XLinguServiceEventListener†¥"_€Ã-com.sun.star.linguistic2.XLinguServiceManager†¥#"‚ã!com.sun.star.linguistic2.XMeaning†¥&€´)com.sun.star.linguistic2.XPossibleHyphens†¥&¹2com.sun.star.linguistic2.XSearchableDictionaryList†¥'¾+com.sun.star.linguistic2.XSpellAlternatives†¥(Â&com.sun.star.linguistic2.XSpellChecker†¥)ÝÊ'com.sun.star.linguistic2.XSpellChecker1†¥+§¦,com.sun.star.linguistic2.XSupportedLanguages†¥-M€©*com.sun.star.linguistic2.XSupportedLocales†¥-ö€Ë#com.sun.star.linguistic2.XThesaurus†¥.Á12com.sun.star.loader.CannotActivateFactoryException¥/òi)com.sun.star.loader.XImplementationLoader†¥0[Î'com.sun.star.mozilla.MenuMultipleChange¥2)%com.sun.star.mozilla.MenuSingleChange¥3¶€¸*com.sun.star.mozilla.XCloseSessionListener†¥4n€™com.sun.star.mozilla.XMenuProxy†¥5,'com.sun.star.mozilla.XMenuProxyListener†¥63"$com.sun.star.mozilla.XPluginInstance†¥7U‚.com.sun.star.mozilla.XPluginInstanceNotifySink†¥9f€•(com.sun.star.mozilla.XPluginInstancePeer†¥9û‚ð,com.sun.star.mozilla.XPluginInstanceSyncPeer†¥<ë€Ó&com.sun.star.mozilla.XPluginWindowPeer†¥=¾€š2com.sun.star.mozilla.XRemoteServiceManagerProvider†¥>X€¿.com.sun.star.packages.manifest.XManifestReader†¥?€È.com.sun.star.packages.manifest.XManifestWriter†¥?߀Ò&com.sun.star.packages.zip.ZipConstants†¥@±ƒÀ"com.sun.star.packages.zip.ZipEntry¥DqÌ&com.sun.star.packages.zip.ZipException¥F=i(com.sun.star.packages.zip.ZipIOException¥F¦j3com.sun.star.packages.EncryptionNotAllowedException¥Gi+com.sun.star.packages.NoEncryptionException¥Gyi*com.sun.star.packages.NoRawFormatException¥Gâj,com.sun.star.packages.WrongPasswordException¥HLi*com.sun.star.packages.XDataSinkEncrSupport†¥Hµ‚q%com.sun.star.plugin.PluginDescription¥K&$#com.sun.star.plugin.PluginException¥LJ€½com.sun.star.plugin.PluginMode†¥M6"com.sun.star.plugin.PluginVariable¥M="com.sun.star.plugin.XPlugin†¥N_"com.sun.star.plugin.XPluginContext†¥Ou„ô"com.sun.star.plugin.XPluginManager†¥Ti‚ )com.sun.star.presentation.AnimationEffect¥W  *Õ(com.sun.star.presentation.AnimationSpeed¥Þg%com.sun.star.presentation.ClickAction¥ƒE„Œ$com.sun.star.presentation.FadeEffect¥‡Ñ”_+com.sun.star.presentation.PresentationRange¥œ0ò5com.sun.star.presentation.XCustomPresentationSupplier†¥ž"€¯0com.sun.star.presentation.XHandoutMasterSupplier†¥žÑ€¦'com.sun.star.presentation.XPresentation†¥Ÿw€©+com.sun.star.presentation.XPresentationPage†¥  €¡/com.sun.star.presentation.XPresentationSupplier†¥ Á€ª'com.sun.star.reflection.FieldAccessMode¥¡kÀ0com.sun.star.reflection.InvalidTypeNameException¥£+i1com.sun.star.reflection.InvocationTargetException¥£”€‹"com.sun.star.reflection.MethodMode¥¤/com.sun.star.reflection.NoSuchTypeNameException¥¥-i!com.sun.star.reflection.ParamInfo¥¥–'!com.sun.star.reflection.ParamMode¥¦½<2com.sun.star.reflection.TypeDescriptionSearchDepth¥§ùL-com.sun.star.reflection.XArrayTypeDescription†¥©E€ê0com.sun.star.reflection.XCompoundTypeDescription†¥ª/0com.sun.star.reflection.XConstantTypeDescription†¥«I€¡1com.sun.star.reflection.XConstantsTypeDescription†¥«ê€½,com.sun.star.reflection.XEnumTypeDescription†¥¬§€Õ!com.sun.star.reflection.XIdlArray†¥­|‚J!com.sun.star.reflection.XIdlClass†¥¯ÆƒÖ)com.sun.star.reflection.XIdlClassProvider†¥³œ€¢!com.sun.star.reflection.XIdlField†¥´>Ê"com.sun.star.reflection.XIdlField2†¥¶Ê"com.sun.star.reflection.XIdlMember†¥·Ò€Æ"com.sun.star.reflection.XIdlMethod†¥¸˜‚2&com.sun.star.reflection.XIdlReflection†¥ºÊ€õ0com.sun.star.reflection.XIndirectTypeDescription†¥»¿€º:com.sun.star.reflection.XInterfaceAttributeTypeDescription†¥¼y€Ù7com.sun.star.reflection.XInterfaceMemberTypeDescription†¥½R€µ7com.sun.star.reflection.XInterfaceMethodTypeDescription†¥¾Y1com.sun.star.reflection.XInterfaceTypeDescription†¥¿`!(com.sun.star.reflection.XMethodParameter†¥À.com.sun.star.reflection.XModuleTypeDescription†¥Á„€³0com.sun.star.reflection.XPropertyTypeDescription†¥Â7€á%com.sun.star.reflection.XProxyFactory†¥Ã€°/com.sun.star.reflection.XServiceTypeDescription†¥ÃÈô1com.sun.star.reflection.XSingletonTypeDescription†¥Å¼€º(com.sun.star.reflection.XTypeDescription†¥Æv€º3com.sun.star.reflection.XTypeDescriptionEnumeration†¥Ç0€æ9com.sun.star.reflection.XTypeDescriptionEnumerationAccess†¥È’-com.sun.star.reflection.XUnionTypeDescription†¥É¨¿;com.sun.star.registry.CannotRegisterImplementationException¥Ëgi.com.sun.star.registry.InvalidRegistryException¥ËÐi+com.sun.star.registry.InvalidValueException¥Ì9i,com.sun.star.registry.MergeConflictException¥Ì¢i%com.sun.star.registry.RegistryKeyType¥Í 'com.sun.star.registry.RegistryValueType¥Î‚è1com.sun.star.registry.XImplementationRegistration†¥Ñ‚"com.sun.star.registry.XRegistryKey†¥Ó‹³%com.sun.star.registry.XSimpleRegistry†¥ÞÅ‚Ü.com.sun.star.resource.MissingResourceException¥á¡pcom.sun.star.resource.XLocale†¥â…ä%com.sun.star.resource.XResourceBundle†¥çõO+com.sun.star.resource.XResourceBundleLoader†¥éD‡com.sun.star.scanner.ScanError¥êË‚V#com.sun.star.scanner.ScannerContext¥í!€§%com.sun.star.scanner.ScannerException¥íÈ€ë$com.sun.star.scanner.XScannerManager†¥î³‚–"com.sun.star.script.AllEventObject¥ñIy*com.sun.star.script.CannotConvertException¥òÂ%0com.sun.star.script.CannotCreateAdapterException¥óçi&com.sun.star.script.ContextInformation¥ôPŒcom.sun.star.script.FailReason†¥õÜ€þ%com.sun.star.script.FinishEngineEvent¥öÚ- com.sun.star.script.FinishReason¥ø=(com.sun.star.script.InterruptEngineEvent¥ùDÉ#com.sun.star.script.InterruptReason¥û ‚Ú"com.sun.star.script.InvocationInfo¥ýç‚:com.sun.star.script.MemberType¦seAccess†¦E"÷(com.sun.star.sdb.XDatabaseAccessListener†¦G7%com.sun.star.sdb.XDatabaseEnvironment†¦HPc'com.sun.star.sdb.XFormDocumentsSupplier†¦I³€¦-com.sun.star.sdb.XInteractionSupplyParameters†¦JY€¸$com.sun.star.sdb.XParametersSupplier†¦K€¤!com.sun.star.sdb.XQueriesSupplier†¦Kµ€ *com.sun.star.sdb.XQueryDefinitionsSupplier†¦LU€©)com.sun.star.sdb.XReportDocumentsSupplier†¦Lþ€¨!com.sun.star.sdb.XResultSetAccess†¦M¦€¿*com.sun.star.sdb.XRowSetApproveBroadcaster†¦Ne'com.sun.star.sdb.XRowSetApproveListener†¦Os9 com.sun.star.sdb.XRowSetSupplier†¦P¬€É%com.sun.star.sdb.XSQLErrorBroadcaster†¦Qu€ú"com.sun.star.sdb.XSQLErrorListener†¦Ro€«"com.sun.star.sdb.XSQLQueryComposer†¦S‚â)com.sun.star.sdb.XSQLQueryComposerFactory†¦Uü€©&com.sun.star.sdbc.BatchUpdateException¦V¥com.sun.star.sdbc.BestRowScope†¦WµMcom.sun.star.sdbc.BestRowType†¦XIcom.sun.star.sdbc.ChangeAction†¦XKQcom.sun.star.sdbc.ChangeEvent¦Xœ€¡com.sun.star.sdbc.ColumnSearch†¦Y=Lcom.sun.star.sdbc.ColumnType†¦Y‰Icom.sun.star.sdbc.ColumnValue†¦YÒR com.sun.star.sdbc.DataTruncation¦Z$_com.sun.star.sdbc.DataType†¦[ƒÂcom.sun.star.sdbc.Deferrability†¦]E[$com.sun.star.sdbc.DriverPropertyInfo¦] d com.sun.star.sdbc.FetchDirection†¦_Gcom.sun.star.sdbc.IndexType†¦_K`com.sun.star.sdbc.KeyRule†¦_«o!com.sun.star.sdbc.ProcedureColumn†¦`j!com.sun.star.sdbc.ProcedureResult†¦`„C&com.sun.star.sdbc.ResultSetConcurrency†¦`Ç;com.sun.star.sdbc.ResultSetType†¦a`com.sun.star.sdbc.SQLException¦ab"com.sun.star.sdbc.SQLWarning¦b„€œ&com.sun.star.sdbc.TransactionIsolation†¦c €com.sun.star.sdbc.XArray†¦c¡‚Ð!com.sun.star.sdbc.XBatchExecution†¦fq#com.sun.star.sdbc.XBlob†¦g”Ùcom.sun.star.sdbc.XClob†¦im÷com.sun.star.sdbc.XCloseable†¦kd€com.sun.star.sdbc.XColumnLocate†¦l€µcom.sun.star.sdbc.XConnection†¦l¶…·com.sun.star.sdbc.XDataSource†¦rmd#com.sun.star.sdbc.XDatabaseMetaData†¦sÑ /com.sun.star.sdbc.XDriver†¦£n‚com.sun.star.sdbc.XDriverAccess†¦¥v€¯ com.sun.star.sdbc.XDriverManager†¦¦%£%com.sun.star.sdbc.XGeneratedResultSet†¦§È€Â%com.sun.star.sdbc.XIsolatedConnection†¦¨Š€"com.sun.star.sdbc.XMultipleResults†¦ª
-4 com.sun.star.sdbc.XOutParameters†¦«>+com.sun.star.sdbc.XParameters†¦¬i‡ª#com.sun.star.sdbc.XPooledConnection†¦´€¾)com.sun.star.sdbc.XPreparedBatchExecution†¦´Ñ$com.sun.star.sdbc.XPreparedStatement†¦µàcom.sun.star.sdbc.XRef†¦·_€³com.sun.star.sdbc.XResultSet†¦¸„n$com.sun.star.sdbc.XResultSetMetaData†¦¼€†&,com.sun.star.sdbc.XResultSetMetaDataSupplier†¦Â¦€Ã"com.sun.star.sdbc.XResultSetUpdate†¦ÃiÃcom.sun.star.sdbc.XRow†¦Å,† com.sun.star.sdbc.XRowSet†¦ËL)!com.sun.star.sdbc.XRowSetListener†¦Ìucom.sun.star.sdbc.XRowUpdate†¦Í‘…Þcom.sun.star.sdbc.XSQLData†¦Óoncom.sun.star.sdbc.XSQLInput†¦ÔÝ…ˆcom.sun.star.sdbc.XSQLOutput†¦Úe†[com.sun.star.sdbc.XStatement†¦àÀ»com.sun.star.sdbc.XStruct†¦â{#com.sun.star.sdbc.XWarningsSupplier†¦ã™€écom.sun.star.sdbcx.CheckOption†¦ä‚B"com.sun.star.sdbcx.CompareBookmark†¦äÄkcom.sun.star.sdbcx.KeyType†¦å/Fcom.sun.star.sdbcx.Privilege†¦åu€œ"com.sun.star.sdbcx.PrivilegeObject†¦æAcom.sun.star.sdbcx.XAlterTable†¦æR¥com.sun.star.sdbcx.XAppend†¦ç÷€û com.sun.star.sdbcx.XAuthorizable†¦èòÙ#com.sun.star.sdbcx.XColumnsSupplier†¦êË€ !com.sun.star.sdbcx.XCreateCatalog†¦ëk€÷*com.sun.star.sdbcx.XDataDefinitionSupplier†¦ìb)com.sun.star.sdbcx.XDataDescriptorFactory†¦ícom.sun.star.sdbcx.XDeleteRows†¦î–€µcom.sun.star.sdbcx.XDrop†¦ïKQcom.sun.star.sdbcx.XDropCatalog†¦ðœ
-"com.sun.star.sdbcx.XGroupsSupplier†¦ñ¦€Ÿ#com.sun.star.sdbcx.XIndexesSupplier†¦òE€  com.sun.star.sdbcx.XKeysSupplier†¦ò倞com.sun.star.sdbcx.XRename†¦óƒ€àcom.sun.star.sdbcx.XRowLocate†¦ôc‚U"com.sun.star.sdbcx.XTablesSupplier†¦ö¸€Ÿcom.sun.star.sdbcx.XUser†¦÷W€Ó!com.sun.star.sdbcx.XUsersSupplier†¦ø*€ž!com.sun.star.sdbcx.XViewsSupplier†¦øÈ€ž,com.sun.star.security.AccessControlException¦ùf€ã#com.sun.star.security.AllPermission¦úIm'com.sun.star.security.RuntimePermission¦ú¶€„+com.sun.star.security.XAccessControlContext†¦û:€É'com.sun.star.security.XAccessController†¦ü‚)com.sun.star.security.XAction†¦þ,€£com.sun.star.security.XPolicy†¦þÏ€ècom.sun.star.setup.ActionType¦ÿ·„˜com.sun.star.setup.BaseAction§O€Ü!com.sun.star.setup.CopyFileAction§+Ú"com.sun.star.setup.DeleteDirAction§€Î#com.sun.star.setup.DeleteFileAction§Ó·%com.sun.star.setup.DeleteFolderAction§ Š€Ñ)com.sun.star.setup.DeleteFolderItemAction§
-[!com.sun.star.setup.DownloadAction§ a€úcom.sun.star.setup.FontAction§ ['%com.sun.star.setup.InstallEnvironment§ ‚†"com.sun.star.setup.InstallResponse§…+com.sun.star.setup.InstallType§°‚Ž com.sun.star.setup.MakeDirAction§>€å#com.sun.star.setup.MakeFolderAction§#€ô'com.sun.star.setup.MakeFolderItemAction§º%com.sun.star.setup.MakeShortcutAction§Ñncom.sun.star.setup.MirrorEntry§?€Ûcom.sun.star.setup.ModuleInfo§‚gcom.sun.star.setup.ModuleState§€Êcom.sun.star.setup.OSType§ Kƒ$com.sun.star.setup.ProfileItemAction§#Y‡$com.sun.star.setup.ResponseErrorCode§$à,com.sun.star.setup.SizeInfo§& €Ôcom.sun.star.setup.UnzipAction§&à‚lcom.sun.star.setup.UpdateType§)L~$com.sun.star.setup.VersionIdentifier§*Êy(com.sun.star.setup.WindowsRegistryAction§,CÂcom.sun.star.setup.XSetup†§.†ocom.sun.star.sheet.Border§4tR!com.sun.star.sheet.CellDeleteMode§5ƾcom.sun.star.sheet.CellFlags†§7„€©!com.sun.star.sheet.CellInsertMode§8-Ä$com.sun.star.sheet.ConditionOperator§9ñƒ`!com.sun.star.sheet.DataImportMode§=Q€,com.sun.star.sheet.DataPilotFieldOrientation§>Ñ‚com.sun.star.sheet.DataResult§@à€†"com.sun.star.sheet.DataResultFlags†§AfFcom.sun.star.sheet.FillDateMode§A¬È com.sun.star.sheet.FillDirection§Ct”com.sun.star.sheet.FillMode§Ež#com.sun.star.sheet.FilterConnection§F¦!com.sun.star.sheet.FilterOperator§Gªƒê com.sun.star.sheet.FormulaResult†§K”B#com.sun.star.sheet.FunctionArgument§KÖ€Û#com.sun.star.sheet.FunctionCategory†§L±€Ö"com.sun.star.sheet.GeneralFunction§M‡ƒÑcom.sun.star.sheet.GoalResult§QX€’ com.sun.star.sheet.LocalizedName§Qê€Äcom.sun.star.sheet.MemberResult§R®€Ê$com.sun.star.sheet.MemberResultFlags†§SxK com.sun.star.sheet.MoveDirection†§SÃR!com.sun.star.sheet.NamedRangeFlag†§Tk!com.sun.star.sheet.PasteOperation§T€Î&com.sun.star.sheet.RangeSelectionEvent§VN€°com.sun.star.sheet.ResultEvent§Vþ€¦ com.sun.star.sheet.SheetLinkMode§W¤A$com.sun.star.sheet.StatusBarFunction†§X倆!com.sun.star.sheet.SubTotalColumn§Yk€Â#com.sun.star.sheet.TableFilterField§Z-‘%com.sun.star.sheet.TableOperationMode§[¾V%com.sun.star.sheet.TablePageBreakData§]€‘,com.sun.star.sheet.TableValidationVisibility†§]¥X'com.sun.star.sheet.ValidationAlertStyle§]ýª!com.sun.star.sheet.ValidationType§_§‚ˆcom.sun.star.sheet.XAddIn†§b/‚Zcom.sun.star.sheet.XAreaLink†§d‰5com.sun.star.sheet.XAreaLinks†§e¾#%com.sun.star.sheet.XArrayFormulaRange†§fá€Ã com.sun.star.sheet.XCalculatable†§g¤€ù#com.sun.star.sheet.XCellAddressable†§h€ ,com.sun.star.sheet.XCellFormatRangesSupplier†§i=€ª(com.sun.star.sheet.XCellRangeAddressable†§i瀦!com.sun.star.sheet.XCellRangeData†§j€½$com.sun.star.sheet.XCellRangeFormula†§kJ€Ã%com.sun.star.sheet.XCellRangeMovement†§l ñ%com.sun.star.sheet.XCellRangeReferrer†§mþ€¡#com.sun.star.sheet.XCellRangesQuery†§nŸ‚–com.sun.star.sheet.XCellSeries†§q5<&com.sun.star.sheet.XCompatibilityNames†§rq€½"com.sun.star.sheet.XConsolidatable†§s.+com.sun.star.sheet.XConsolidationDescriptor†§t<‚¯com.sun.star.sheet.XDDELink†§vë€Ó'com.sun.star.sheet.XDataPilotDescriptor†§w¾‚Ò*com.sun.star.sheet.XDataPilotMemberResults†§z€$com.sun.star.sheet.XDataPilotResults†§{-€›"com.sun.star.sheet.XDataPilotTable†§{È€¹#com.sun.star.sheet.XDataPilotTables†§|e+com.sun.star.sheet.XDataPilotTablesSupplier†§}怩!com.sun.star.sheet.XDatabaseRange†§~ô"com.sun.star.sheet.XDatabaseRanges†§€ƒ€ó&com.sun.star.sheet.XDimensionsSupplier†§v€£$com.sun.star.sheet.XDocumentAuditing†§‚€…#com.sun.star.sheet.XFillAcrossSheet†§‚ž€ com.sun.star.sheet.XFormulaQuery†§ƒ-€÷"com.sun.star.sheet.XFunctionAccess†§„$(com.sun.star.sheet.XFunctionDescriptions†§…7€Öcom.sun.star.sheet.XGoalSeek†§† €ñ'com.sun.star.sheet.XHeaderFooterContent†§†þ€ï'com.sun.star.sheet.XHierarchiesSupplier†§‡í€¤com.sun.star.sheet.XLabelRange†§ˆ‘Ycom.sun.star.sheet.XLabelRanges†§‰ê€õ"com.sun.star.sheet.XLevelsSupplier†§Šß€Ÿ#com.sun.star.sheet.XMembersSupplier†§‹~€ %com.sun.star.sheet.XMultipleOperation†§Œcom.sun.star.sheet.XNamedRange†§;gcom.sun.star.sheet.XNamedRanges†§Ž¢£com.sun.star.sheet.XPrintAreas†§E‚u"com.sun.star.sheet.XRangeSelection†§’º‚=0com.sun.star.sheet.XRangeSelectionChangeListener†§”÷€¸*com.sun.star.sheet.XRangeSelectionListener†§•¯€é#com.sun.star.sheet.XRecentFunctions†§–˜€Ô"com.sun.star.sheet.XResultListener†§—l€§com.sun.star.sheet.XScenario†§˜5com.sun.star.sheet.XScenarios†§™H%com.sun.star.sheet.XScenariosSupplier†§šO€#com.sun.star.sheet.XSheetAnnotation†§šì)com.sun.star.sheet.XSheetAnnotationAnchor†§œ €¤$com.sun.star.sheet.XSheetAnnotations†§œ¯€à,com.sun.star.sheet.XSheetAnnotationsSupplier†§€¦!com.sun.star.sheet.XSheetAuditing†§ž5Ú#com.sun.star.sheet.XSheetCellCursor†§ D"com.sun.star.sheet.XSheetCellRange†§¡S€£+com.sun.star.sheet.XSheetCellRangeContainer†§¡öý#com.sun.star.sheet.XSheetCellRanges†§£ó"com.sun.star.sheet.XSheetCondition†§¥û+com.sun.star.sheet.XSheetConditionalEntries†§§
-€Ý)com.sun.star.sheet.XSheetConditionalEntry†§§ç€½)com.sun.star.sheet.XSheetFilterDescriptor†§¨¤€é#com.sun.star.sheet.XSheetFilterable†§©€þ%com.sun.star.sheet.XSheetFilterableEx†§ª‹€ê!com.sun.star.sheet.XSheetLinkable†§«u‚"com.sun.star.sheet.XSheetOperation†§­}€ì com.sun.star.sheet.XSheetOutline†§®i‚G"com.sun.star.sheet.XSheetPageBreak†§°°!com.sun.star.sheet.XSheetPastable†§±À£com.sun.star.sheet.XSpreadsheet†§³c'com.sun.star.sheet.XSpreadsheetDocument†§´r€#com.sun.star.sheet.XSpreadsheetView†§µ€ß com.sun.star.sheet.XSpreadsheets†§µî*(com.sun.star.sheet.XSubTotalCalculatable†§·)&com.sun.star.sheet.XSubTotalDescriptor†§¸A€¼!com.sun.star.sheet.XSubTotalField†§¸ý'2com.sun.star.sheet.XUniqueCellFormatRangesSupplier†§º$€°"com.sun.star.sheet.XUsedAreaCursor†§ºÔ€¿!com.sun.star.sheet.XViewFreezable†§»“€´com.sun.star.sheet.XViewPane†§¼G4%com.sun.star.sheet.XViewPanesSupplier†§½{€£!com.sun.star.sheet.XViewSplitable†§¾ "com.sun.star.sheet.XVolatileResult†§¿>€öcom.sun.star.sheet._NamedRange†§À4kcom.sun.star.style.BreakType§ÀŸ‚_com.sun.star.style.CaseMap†§Âþr com.sun.star.style.DropCapFormat§Ãp€ "com.sun.star.style.GraphicLocation§Äƒü&com.sun.star.style.HorizontalAlignment§È _%com.sun.star.style.LineNumberPosition†§ÉkYcom.sun.star.style.LineSpacing§ÉÄ€ˆ"com.sun.star.style.LineSpacingMode†§ÊLX com.sun.star.style.NumberingType†§Ê¤ƒs"com.sun.star.style.PageStyleLayout§ÎŒ"com.sun.star.style.ParagraphAdjust§Ï£Ñ)com.sun.star.style.ParagraphStyleCategory†§Ñtvcom.sun.star.style.TabAlign§Ñê¤com.sun.star.style.TabStop§ÓŽ€î$com.sun.star.style.VerticalAlignment§Ô|U$com.sun.star.style.XDefaultsSupplier†§ÕÑ€žcom.sun.star.style.XStyle†§Öo&"com.sun.star.style.XStyleCondition†§×•€å)com.sun.star.style.XStyleFamiliesSupplier†§Øz€¦com.sun.star.style.XStyleLoader†§Ù com.sun.star.svg.XSVGPrinter†§Ú< com.sun.star.svg.XSVGWriter†§ÛG€®com.sun.star.sync.SyncAction†§Ûõ€ïcom.sun.star.sync.SyncElement§Üä€ýcom.sun.star.sync.SyncEvent†§Ýဋcom.sun.star.sync.SyncInfo§Þl…com.sun.star.sync.SyncMode†§ßñ€com.sun.star.sync.SyncOptions†§à~€¿com.sun.star.sync.SyncScheme§á=€´com.sun.star.sync.SyncType†§áñ€µ com.sun.star.sync.XSyncCollector†§â¦ƒ_com.sun.star.sync.XSynchronizer†§æŸ*com.sun.star.sync2.BadPartnershipException§ç¤€Õ)com.sun.star.system.SimpleMailClientFlags†§èyZ/com.sun.star.system.SystemShellExecuteException§èÓ€º+com.sun.star.system.SystemShellExecuteFlags†§éH"com.sun.star.system.XProxySettings†§éÕ‚f%com.sun.star.system.XSimpleMailClient†§ì;L-com.sun.star.system.XSimpleMailClientSupplier†§í‡€®&com.sun.star.system.XSimpleMailMessage†§î5‚'com.sun.star.system.XSystemShellExecute†§ðÄ com.sun.star.table.BorderLine§ñÏ€Ïcom.sun.star.table.CellAddress§òž€˜"com.sun.star.table.CellContentType§ó6Ž"com.sun.star.table.CellHoriJustify§ôÄ‚"com.sun.star.table.CellOrientation§öÚ¦#com.sun.star.table.CellRangeAddress§ø€€Ñ"com.sun.star.table.CellVertJustify§ùQ’com.sun.star.table.ShadowFormat§úã!com.sun.star.table.ShadowLocation§ûæìcom.sun.star.table.TableBorder§ýÒƒc#com.sun.star.table.TableOrientation¨5!com.sun.star.table.TableSortField¨E•%com.sun.star.table.TableSortFieldType¨Út#com.sun.star.table.XAutoFormattable†¨N€Âcom.sun.star.table.XCell†¨5com.sun.star.table.XCellCursor†¨E€êcom.sun.star.table.XCellRange†¨/©"com.sun.star.table.XColumnRowRange†¨ Ø€Ëcom.sun.star.table.XTableChart†¨
-£scom.sun.star.table.XTableCharts†¨ ''com.sun.star.table.XTableChartsSupplier†¨ =€œ com.sun.star.table.XTableColumns†¨ Ù€Ãcom.sun.star.table.XTableRows†¨œ€Ã.com.sun.star.task.ClassifiedInteractionRequest¨_)com.sun.star.task.DocumentPasswordRequest¨m-"com.sun.star.task.ErrorCodeRequest¨š€·+com.sun.star.task.InteractionClassification¨QÄ'com.sun.star.task.MasterPasswordRequest¨€È#com.sun.star.task.NoMasterException¨Ý€ÿ!com.sun.star.task.PasswordRequest¨Ü;%com.sun.star.task.PasswordRequestMode¨–-com.sun.star.task.UnsupportedOverwriteRequest¨­com.sun.star.task.UrlRecord¨¾com.sun.star.task.UserRecord¨Á€æcom.sun.star.task.XAsyncJob†¨§€ó#com.sun.star.task.XInteractionAbort†¨šz%com.sun.star.task.XInteractionApprove†¨z*com.sun.star.task.XInteractionContinuation†¨Ž~(com.sun.star.task.XInteractionDisapprove†¨ z%com.sun.star.task.XInteractionHandler†¨†€§&com.sun.star.task.XInteractionPassword†¨-€Ê%com.sun.star.task.XInteractionRequest†¨÷€Ñ#com.sun.star.task.XInteractionRetry†¨ Èzcom.sun.star.task.XJob†¨!B€ôcom.sun.star.task.XJobExecutor†¨"6€“com.sun.star.task.XJobListener†¨"É€»$com.sun.star.task.XPasswordContainer†¨#„ƒA"com.sun.star.task.XStatusIndicator†¨&Å€þ)com.sun.star.task.XStatusIndicatorFactory†¨'À«*com.sun.star.task.XStatusIndicatorSupplier†¨(n€¨)com.sun.star.test.bridge.TestDataElements¨)Á$com.sun.star.test.bridge.TestElement¨*×|!com.sun.star.test.bridge.TestEnum¨,S‚4#com.sun.star.test.bridge.TestSimple¨.‡®$com.sun.star.test.bridge.XBridgeTest†¨05«%com.sun.star.test.bridge.XBridgeTest2†¨1à…(com.sun.star.test.bridge.XBridgeTestBase†¨7}‰ž'com.sun.star.test.bridge.XRecursiveCall†¨A€¸*com.sun.star.test.performance.ComplexTypes¨AÓ’)com.sun.star.test.performance.SimpleTypes¨Ce^.com.sun.star.test.performance.XPerformanceTest†¨DǺcom.sun.star.test.TestEvent¨L}€Ûcom.sun.star.test.XSimpleTest†¨MXÏcom.sun.star.test.XTest†¨O'‚;com.sun.star.test.XTestListener†¨Qb%com.sun.star.text.AuthorDisplayFormat†¨Rvb'com.sun.star.text.BibliographyDataField†¨RØ‚Q&com.sun.star.text.BibliographyDataType†¨U)¶com.sun.star.text.ChapterFormat†¨Vßx*com.sun.star.text.CharacterCompressionType†¨WW`"com.sun.star.text.ControlCharacter†¨W·€¢#com.sun.star.text.DateDisplayFormat†¨XY€Å#com.sun.star.text.DocumentStatistic†¨YW'com.sun.star.text.FilenameDisplayFormat†¨Yu[com.sun.star.text.FontEmphasis†¨YЀÔcom.sun.star.text.FontRelief†¨Z¤L#com.sun.star.text.FootnoteNumbering†¨ZðWcom.sun.star.text.GraphicCrop¨[G€¨!com.sun.star.text.HoriOrientation†¨['com.sun.star.text.HoriOrientationFormat¨\€ß"com.sun.star.text.HorizontalAdjust¨]oK-com.sun.star.text.InvalidTextContentException¨^º€ñ com.sun.star.text.MailMergeEvent¨_«€¸com.sun.star.text.MailMergeType†¨`c8com.sun.star.text.NotePrintMode¨`›~ com.sun.star.text.PageNumberType¨bA$com.sun.star.text.ParagraphVertAlign†¨cZn!com.sun.star.text.PlaceholderType†¨cÈm$com.sun.star.text.ReferenceFieldPart†¨d5€Á&com.sun.star.text.ReferenceFieldSource†¨dö€ com.sun.star.text.RelOrientation†¨ew€Îcom.sun.star.text.RubyAdjust¨fE±!com.sun.star.text.SectionFileLink¨gö€»!com.sun.star.text.SetVariableType†¨h±[com.sun.star.text.SizeType†¨i F&com.sun.star.text.TableColumnSeparator¨iR€“'com.sun.star.text.TemplateDisplayFormat†¨iåzcom.sun.star.text.TextColumn¨j_€ 'com.sun.star.text.TextContentAnchorType¨jÿ‚$com.sun.star.text.TextGridMode†¨m#P#com.sun.star.text.TimeDisplayFormat†¨ms€œcom.sun.star.text.UserDataPart†¨n !com.sun.star.text.UserFieldFormat†¨o/E!com.sun.star.text.VertOrientation†¨ot€Ô'com.sun.star.text.VertOrientationFormat¨pH€µcom.sun.star.text.WrapTextMode¨pýúcom.sun.star.text.WritingMode¨r÷2com.sun.star.text.WritingMode2†¨t)f$com.sun.star.text.XAutoTextContainer†¨tt com.sun.star.text.XAutoTextEntry†¨v€Ÿ com.sun.star.text.XAutoTextGroup†¨v¢‚j%com.sun.star.text.XBookmarkInsertTool†¨y €×$com.sun.star.text.XBookmarksSupplier†¨y〢+com.sun.star.text.XChapterNumberingSupplier†¨z…€°+com.sun.star.text.XDefaultNumberingProvider†¨{56%com.sun.star.text.XDependentTextField†¨|k com.sun.star.text.XDocumentIndex†¨}‚€¨$com.sun.star.text.XDocumentIndexMark†¨~*€À*com.sun.star.text.XDocumentIndexesSupplier†¨~ꀩ+com.sun.star.text.XEndnotesSettingsSupplier†¨“€¦#com.sun.star.text.XEndnotesSupplier†¨€9€Ücom.sun.star.text.XFootnote†¨€¸,com.sun.star.text.XFootnotesSettingsSupplier†¨Í€§$com.sun.star.text.XFootnotesSupplier†¨‚t€Þcom.sun.star.text.XHeaderFooter†¨ƒR€Ì(com.sun.star.text.XHeaderFooterPageStyle†¨„€Í*com.sun.star.text.XLineNumberingProperties†¨„뀭(com.sun.star.text.XLineNumberingSupplier†¨…˜€ï'com.sun.star.text.XMailMergeBroadcaster†¨†‡
-$com.sun.star.text.XMailMergeListener†¨‡‘€°com.sun.star.text.XModule†¨ˆAk%com.sun.star.text.XNumberingFormatter†¨ˆ¬)com.sun.star.text.XNumberingRulesSupplier†¨‰¯€¨$com.sun.star.text.XNumberingTypeInfo†¨ŠW1com.sun.star.text.XPageCursor†¨‹ˆ` com.sun.star.text.XPagePrintable†¨ŒèT"com.sun.star.text.XParagraphCursor†¨Ž<g)com.sun.star.text.XReferenceMarksSupplier†¨£€§,com.sun.star.text.XRelativeTextContentInsert†¨J’,com.sun.star.text.XRelativeTextContentRemove†¨‘ÜN com.sun.star.text.XRubySelection†¨“*€ñ!com.sun.star.text.XSentenceCursor†¨”acom.sun.star.text.XSimpleText†¨•|Úcom.sun.star.text.XText†¨—Vscom.sun.star.text.XTextColumns†¨˜É.com.sun.star.text.XTextContent†¨™÷€ùcom.sun.star.text.XTextCursor†¨šð“com.sun.star.text.XTextDocument†¨œƒ€¥%com.sun.star.text.XTextEmbeddedObject†¨(€º.com.sun.star.text.XTextEmbeddedObjectsSupplier†¨â€¨com.sun.star.text.XTextField†¨žŠ€¡%com.sun.star.text.XTextFieldsSupplier†¨Ÿ+€ècom.sun.star.text.XTextFrame†¨ €•%com.sun.star.text.XTextFramesSupplier†¨ ¨€£-com.sun.star.text.XTextGraphicObjectsSupplier†¨¡K€§com.sun.star.text.XTextRange†¨¡ò6#com.sun.star.text.XTextRangeCompare†¨£(ƒ!com.sun.star.text.XTextRangeMover†¨¤«€®com.sun.star.text.XTextSection†¨¥Y€Ü'com.sun.star.text.XTextSectionsSupplier†¨¦5€¥%com.sun.star.text.XTextShapesSupplier†¨¦Ú€ com.sun.star.text.XTextTable†¨§z¯"com.sun.star.text.XTextTableCursor†¨©)ü%com.sun.star.text.XTextTablesSupplier†¨«%€£!com.sun.star.text.XTextViewCursor†¨«È€Ò)com.sun.star.text.XTextViewCursorSupplier†¨¬š€¢com.sun.star.text.XWordCursor†¨­<I,com.sun.star.ucb.AlreadyInitializedException¨®…i&com.sun.star.ucb.AuthenticationRequest¨®î‚—#com.sun.star.ucb.CHAOSProgressStart¨±…€²com.sun.star.ucb.Command¨²7€Ì(com.sun.star.ucb.CommandAbortedException¨³i'com.sun.star.ucb.CommandFailedException¨³l€Ðcom.sun.star.ucb.CommandInfo¨´<€Õ"com.sun.star.ucb.CommandInfoChange†¨µH'com.sun.star.ucb.CommandInfoChangeEvent¨µY€Ñcom.sun.star.ucb.ConnectionMode†¨¶*:com.sun.star.ucb.ContentAction†¨¶dq%com.sun.star.ucb.ContentCreationError¨¶Õ‚Ì)com.sun.star.ucb.ContentCreationException¨¹¡€úcom.sun.star.ucb.ContentEvent¨º›"com.sun.star.ucb.ContentInfo¨»½%com.sun.star.ucb.ContentInfoAttribute†¨¼Ü€Š$com.sun.star.ucb.ContentProviderInfo¨½f€á+com.sun.star.ucb.ContentResultSetCapability†¨¾G(com.sun.star.ucb.Cookie¨¾o¾com.sun.star.ucb.CookiePolicy¨À-:com.sun.star.ucb.CookieRequest¨Ág€ücom.sun.star.ucb.CrossReference¨Âc€—$com.sun.star.ucb.DocumentHeaderField¨Âú€³"com.sun.star.ucb.DocumentStoreMode¨Ã­ 4com.sun.star.ucb.DuplicateCommandIdentifierException¨Ä¹i+com.sun.star.ucb.DuplicateProviderException¨Å"icom.sun.star.ucb.Error†¨Å‹Š!com.sun.star.ucb.ExportStreamInfo¨Ïª€Ãcom.sun.star.ucb.FetchError†¨ÐmQcom.sun.star.ucb.FetchResult¨Ð¾#com.sun.star.ucb.FileSystemNotation†¨ÑÃpcom.sun.star.ucb.FolderList¨Ò3/"com.sun.star.ucb.FolderListCommand¨ÓbU com.sun.star.ucb.FolderListEntry¨Ô·*.com.sun.star.ucb.GlobalTransferCommandArgument¨Õál%com.sun.star.ucb.HandleCookiesRequest¨×MÌcom.sun.star.ucb.IOErrorCode¨ÙŠî+com.sun.star.ucb.IllegalIdentifierException¨äi&com.sun.star.ucb.InsertCommandArgument¨äp€Ã(com.sun.star.ucb.InteractiveAppException¨å3€÷0com.sun.star.ucb.InteractiveAugmentedIOException¨æ*Z3com.sun.star.ucb.InteractiveBadTransferURLException¨ç„i*com.sun.star.ucb.InteractiveCHAOSException¨çíS+com.sun.star.ucb.InteractiveFileIOException¨é@.'com.sun.star.ucb.InteractiveIOException¨ên)3com.sun.star.ucb.InteractiveNetworkConnectException¨ë—,com.sun.star.ucb.InteractiveNetworkException¨ì¨€¬3com.sun.star.ucb.InteractiveNetworkGeneralException¨íT€ª3com.sun.star.ucb.InteractiveNetworkOffLineException¨íþ€ª0com.sun.star.ucb.InteractiveNetworkReadException¨î¨7com.sun.star.ucb.InteractiveNetworkResolveNameException¨ï½1com.sun.star.ucb.InteractiveNetworkWriteException¨ðÎ0com.sun.star.ucb.InteractiveWrongMediumException¨ñãcom.sun.star.ucb.Link¨òö€»com.sun.star.ucb.ListAction¨ó±€Õcom.sun.star.ucb.ListActionType†¨ô†€“com.sun.star.ucb.ListEvent¨õ€ò,com.sun.star.ucb.ListenerAlreadySetException¨ö icom.sun.star.ucb.Lock¨öt†com.sun.star.ucb.LockDepth¨÷ú#com.sun.star.ucb.LockEntry¨ù€Ùcom.sun.star.ucb.LockScope¨ùö€ôcom.sun.star.ucb.LockType¨úꀮ,com.sun.star.ucb.MissingInputStreamException¨û˜i+com.sun.star.ucb.MissingPropertiesException¨ü‰#com.sun.star.ucb.PropertyValueState© œÂcom.sun.star.ucb.RecipientInfo© ^‚æ'com.sun.star.ucb.RememberAuthentication©Dl2com.sun.star.ucb.RemoteContentProviderChangeAction©°N1com.sun.star.ucb.RemoteContentProviderChangeEvent©þ#com.sun.star.ucb.ResultSetException©€œcom.sun.star.ucb.Rule©¹com.sun.star.ucb.RuleAction†©Í€Ücom.sun.star.ucb.RuleOperator†©©€¹com.sun.star.ucb.RuleSet©b€ßcom.sun.star.ucb.RuleTerm©A#&com.sun.star.ucb.SearchCommandArgument©d com.sun.star.ucb.SearchCriterium©€Çcom.sun.star.ucb.SearchInfo©Fé com.sun.star.ucb.SearchRecursion©/Ecom.sun.star.ucb.SendInfo©t€»com.sun.star.ucb.SendMediaTypes©/€â)com.sun.star.ucb.ServiceNotFoundException© icom.sun.star.ucb.SortingInfo© z€­"com.sun.star.ucb.SynchronizePolicy©!'‰)com.sun.star.ucb.TransferCommandOperation©"°hcom.sun.star.ucb.TransferInfo©$€ôcom.sun.star.ucb.TransferResult©% €æ,com.sun.star.ucb.UnsupportedCommandException©%òi-com.sun.star.ucb.UnsupportedDataSinkException©&[€Î.com.sun.star.ucb.UnsupportedNameClashException©')€¹-com.sun.star.ucb.UnsupportedOpenModeException©'‸!com.sun.star.ucb.VerificationMode©(šF.com.sun.star.ucb.WelcomeDynamicResultSetStruct©)à€àcom.sun.star.ucb.XAnyCompare†©*À€¨#com.sun.star.ucb.XAnyCompareFactory†©+h€º/com.sun.star.ucb.XCachedContentResultSetFactory†©,"€ú3com.sun.star.ucb.XCachedContentResultSetStubFactory†©-€Ð/com.sun.star.ucb.XCachedDynamicResultSetFactory†©-ì3com.sun.star.ucb.XCachedDynamicResultSetStubFactory†©.òî$com.sun.star.ucb.XCommandEnvironment†©0à€êcom.sun.star.ucb.XCommandInfo†©1Êã+com.sun.star.ucb.XCommandInfoChangeListener†©3­€¹+com.sun.star.ucb.XCommandInfoChangeNotifier†©4f"com.sun.star.ucb.XCommandProcessor†©5„X#com.sun.star.ucb.XCommandProcessor2†©6Ü€žcom.sun.star.ucb.XContent†©7zjcom.sun.star.ucb.XContentAccess†©8ä com.sun.star.ucb.XContentCreator†©9ô€ü&com.sun.star.ucb.XContentEventListener†©:ð€ª#com.sun.star.ucb.XContentIdentifier†©;š€É*com.sun.star.ucb.XContentIdentifierFactory†©<c€Â*com.sun.star.ucb.XContentIdentifierMapping†©=%Œ!com.sun.star.ucb.XContentProvider†©>±X(com.sun.star.ucb.XContentProviderFactory†©@ €¾(com.sun.star.ucb.XContentProviderManager†©@Ç‚)com.sun.star.ucb.XContentProviderSupplier†©B×€§$com.sun.star.ucb.XContentTransmitter†©C~€¯com.sun.star.ucb.XDataContainer†©D-J"com.sun.star.ucb.XDynamicResultSet†©Ew‚**com.sun.star.ucb.XDynamicResultSetListener†©G¡€¡com.sun.star.ucb.XFetchProvider†©HB€®/com.sun.star.ucb.XFetchProviderForContentAccess†©Hðf)com.sun.star.ucb.XFileIdentifierConverter†©JV@+com.sun.star.ucb.XInteractionCookieHandling†©K–€ü,com.sun.star.ucb.XInteractionHandlerSupplier†©L’€0com.sun.star.ucb.XInteractionReplaceExistingData†©M"z1com.sun.star.ucb.XInteractionSupplyAuthentication†©Mœƒ'com.sun.star.ucb.XInteractionSupplyName†©P°€¢.com.sun.star.ucb.XParameterizedContentProvider†©QR”'com.sun.star.ucb.XPersistentPropertySet†©Ræ€Ç!com.sun.star.ucb.XProgressHandler†©S­€Ç!com.sun.star.ucb.XPropertyMatcher†©Tt€Ð(com.sun.star.ucb.XPropertyMatcherFactory†©UD€Î%com.sun.star.ucb.XPropertySetRegistry†©V€û,com.sun.star.ucb.XPropertySetRegistryFactory†©W €Æcom.sun.star.ucb.XRecycler†©WÓ€Ñ/com.sun.star.ucb.XRemoteContentProviderAcceptor†©X¤[0com.sun.star.ucb.XRemoteContentProviderActivator†©Yÿ€º5com.sun.star.ucb.XRemoteContentProviderChangeListener†©Z¹€Í5com.sun.star.ucb.XRemoteContentProviderChangeNotifier†©[†F8com.sun.star.ucb.XRemoteContentProviderConnectionControl†©\Ì€Ö2com.sun.star.ucb.XRemoteContentProviderDistributor†©]¢¢3com.sun.star.ucb.XRemoteContentProviderDoneListener†©_D€É/com.sun.star.ucb.XRemoteContentProviderSupplier†©` €È"com.sun.star.ucb.XSimpleFileAccess†©`Õˆ#com.sun.star.ucb.XSimpleFileAccess2†©hê€Ø#com.sun.star.ucb.XSimpleFileAccess3†©iÂ`/com.sun.star.ucb.XSortedDynamicResultSetFactory†©k"'&com.sun.star.ucb.XSourceInitialization†©lI€Ã2com.sun.star.ui.dialogs.CommonFilePickerElementIds†©m €Ò&com.sun.star.ui.dialogs.ControlActions†©mÞ1com.sun.star.ui.dialogs.ExecutableDialogException©nãi/com.sun.star.ui.dialogs.ExecutableDialogResults†©oL54com.sun.star.ui.dialogs.ExtendedFilePickerElementIds†©o¹'com.sun.star.ui.dialogs.FilePickerEvent©q:€”/com.sun.star.ui.dialogs.FilePreviewImageFormats†©qÎ(-com.sun.star.ui.dialogs.ListboxControlActions†©qö€µ+com.sun.star.ui.dialogs.TemplateDescription†©r«®&com.sun.star.ui.dialogs.XControlAccess†©tYq+com.sun.star.ui.dialogs.XControlInformation†©uÊÂ)com.sun.star.ui.dialogs.XExecutableDialog†©wŒ€©#com.sun.star.ui.dialogs.XFilePicker†©x5‚0com.sun.star.ui.dialogs.XFilePickerControlAccess†©y·k+com.sun.star.ui.dialogs.XFilePickerListener†©{"¾+com.sun.star.ui.dialogs.XFilePickerNotifier†©|à$com.sun.star.ui.dialogs.XFilePreview†©}ðŒ+com.sun.star.ui.dialogs.XFilterGroupManager†©|€ê&com.sun.star.ui.dialogs.XFilterManager†©€f^%com.sun.star.ui.dialogs.XFolderPicker†©ÄY*com.sun.star.ui.ActionTriggerSeparatorType†©ƒJ'com.sun.star.ui.ContextMenuExecuteEvent©ƒg¨,com.sun.star.ui.ContextMenuInterceptorAction©…‚(com.sun.star.ui.XContextMenuInterception†©‡'com.sun.star.ui.XContextMenuInterceptor†©ˆ'€ãcom.sun.star.uno.Any©‰
-3com.sun.star.uno.AnyConverter©Š=ˆTcom.sun.star.uno.Ascii©’‘2com.sun.star.uno.AsciiString©’ÃP$com.sun.star.uno.DeploymentException©“pcom.sun.star.uno.Enum„©“ƒ5com.sun.star.uno.Exception©“¸€¶com.sun.star.uno.IBridge†©”n¦com.sun.star.uno.IEnvironment†©–Å"com.sun.star.uno.IFieldDescription†©—Ù€ com.sun.star.uno.IMapping†©˜yi#com.sun.star.uno.IMemberDescription†©˜â€•#com.sun.star.uno.IMethodDescription†©™wB com.sun.star.uno.IQueryInterface†©š¹€ !com.sun.star.uno.ITypeDescription†©›Y‚‘!com.sun.star.uno.MappingException©êp!com.sun.star.uno.RuntimeException©žZ€½"com.sun.star.uno.SecurityException©Ÿpcom.sun.star.uno.Type©Ÿ‡„Þcom.sun.star.uno.TypeClass©¤eˆ8com.sun.star.uno.Uik©¬€Ñcom.sun.star.uno.Union©­nXcom.sun.star.uno.UnoRuntime©­Æ„ºcom.sun.star.uno.WeakReference©²€pcom.sun.star.uno.XAdapter†©²ðcom.sun.star.uno.XAggregation†©³ó€Ú"com.sun.star.uno.XComponentContext†©´Í€è com.sun.star.uno.XCurrentContext†©µµ€¦com.sun.star.uno.XInterface†©¶[Ncom.sun.star.uno.XNamingService†©¶©ocom.sun.star.uno.XReference†©¸com.sun.star.uno.XWeak†©¸—€™"com.sun.star.util.logging.LogLevel†©¹0€”!com.sun.star.util.logging.XLogger†©¹Ä['com.sun.star.util.logging.XLoggerRemote†©»€'com.sun.star.util.AliasProgrammaticPair©¼Ÿ€¿"com.sun.star.util.AtomClassRequest©½^€ž!com.sun.star.util.AtomDescription©½ü€Ÿ com.sun.star.util.CellProtection©¾›€âcom.sun.star.util.ChangesEvent©¿},$com.sun.star.util.CloseVetoException©À©i!com.sun.star.util.DataEditorEvent©Á€Ï%com.sun.star.util.DataEditorEventType©Áácom.sun.star.util.Date©Âû€žcom.sun.star.util.DateTime©Ã™com.sun.star.util.DateTimeRange©Äª‚#com.sun.star.util.DiskFullException©Æ®pcom.sun.star.util.ElementChange©Ç€ò!com.sun.star.util.FileIOException©Èi0com.sun.star.util.MalformedNumberFormatException©Èy€¸com.sun.star.util.MeasureUnit†©É1!com.sun.star.util.ModeChangeEvent©ÊL€¨%com.sun.star.util.NotNumericException©Êôicom.sun.star.util.NumberFormat†©Ë]€û"com.sun.star.util.SearchAlgorithms©ÌX_com.sun.star.util.SearchFlags†©Í·€Ëcom.sun.star.util.SearchOptions©Î‚ïcom.sun.star.util.SearchResult©Ðq€écom.sun.star.util.SortField©ÑZ€ácom.sun.star.util.SortFieldType©Ò;Vcom.sun.star.util.Time©Ó‘€Écom.sun.star.util.URL©ÔZ‚Mcom.sun.star.util.VetoException©Ö§icom.sun.star.util.XArchiver†©×Äcom.sun.star.util.XAtomServer†©ØÔ° com.sun.star.util.XCancelManager†©Ú„€îcom.sun.star.util.XCancellable†©Ûr~com.sun.star.util.XChainable†©Ûðocom.sun.star.util.XChangesBatch†©Ý_ "com.sun.star.util.XChangesListener†©Þh€®"com.sun.star.util.XChangesNotifier†©ß€øcom.sun.star.util.XChangesSet†©à€ªcom.sun.star.util.XCloneable†©à¸€›#com.sun.star.util.XCloseBroadcaster†©áS€ð com.sun.star.util.XCloseListener†©âCcom.sun.star.util.XCloseable†©ãY€¶com.sun.star.util.XDataEditor†©ä_%com.sun.star.util.XDataEditorListener†©ån€² com.sun.star.util.XFlushListener†©æ €¥com.sun.star.util.XFlushable†©æÅcom.sun.star.util.XImportable†©çÇ€îcom.sun.star.util.XIndent†©èµ€£com.sun.star.util.XLinkUpdate†©éX€ƒ#com.sun.star.util.XLocalizedAliases†©éÛ„ƒ com.sun.star.util.XMacroExpander†©î^€Ðcom.sun.star.util.XMergeable†©ï.€£,com.sun.star.util.XModeChangeApproveListener†©ïÑ€Ô(com.sun.star.util.XModeChangeBroadcaster†©ð¥‚%com.sun.star.util.XModeChangeListener†©òª€­com.sun.star.util.XModeSelector†©óW3com.sun.star.util.XModifiable†©ôŠ€Û$com.sun.star.util.XModifyBroadcaster†©õe€ô!com.sun.star.util.XModifyListener†©öY€¦(com.sun.star.util.XNumberFormatPreviewer†©öÿ»$com.sun.star.util.XNumberFormatTypes†©øº— com.sun.star.util.XNumberFormats†©úQ‚Ô(com.sun.star.util.XNumberFormatsSupplier†©ý%€ã"com.sun.star.util.XNumberFormatter†©þ‚ý"com.sun.star.util.XPropertyReplace†ª‚lcom.sun.star.util.XProtectable†ªq"com.sun.star.util.XRefreshListener†ªu€§com.sun.star.util.XRefreshable†ª $com.sun.star.util.XReplaceDescriptor†ª(€Ícom.sun.star.util.XReplaceable†ªõ€î#com.sun.star.util.XSearchDescriptor†ªã€Çcom.sun.star.util.XSearchable†ªª¬%com.sun.star.util.XSimpleErrorHandler†ª
-V€šcom.sun.star.util.XSortable†ª
-ð€Ý%com.sun.star.util.XStringAbbreviation†ª Í€Ñcom.sun.star.util.XStringEscape†ª ž7 com.sun.star.util.XStringMapping†ª Õ€™%com.sun.star.util.XStringSubstitution†ªncom.sun.star.util.XStringWidth†ª €›com.sun.star.util.XTextSearch†ª¦Rcom.sun.star.util.XTimeStamped†ªø€!com.sun.star.util.XURLTransformer†ªˆc"com.sun.star.util.XUniqueIDFactory†ª뀒com.sun.star.util.XUpdatable†ª}~"com.sun.star.view.DocumentZoomType†ªû€‚com.sun.star.view.PaperFormatª}‚€"com.sun.star.view.PaperOrientationªýcom.sun.star.view.PrintJobEventª€Æ com.sun.star.view.PrintableStateªÛ‚X%com.sun.star.view.PrintableStateEventª3€Æ com.sun.star.view.XControlAccess†ªù€ècom.sun.star.view.XLineCursor†ªá€ócom.sun.star.view.XPrintJob†ªÔ&com.sun.star.view.XPrintJobBroadcaster†ªñ€ü#com.sun.star.view.XPrintJobListener†ª 퀭com.sun.star.view.XPrintPreview†ª!š€å(com.sun.star.view.XPrintSettingsSupplier†ª"€£com.sun.star.view.XPrintable†ª#"g'com.sun.star.view.XPrintableBroadcaster†ª$‰ \ No newline at end of file
diff --git a/scripting/java/org/openoffice/netbeans/modules/office/Bundle.properties b/scripting/java/org/openoffice/netbeans/modules/office/Bundle.properties
deleted file mode 100644
index e69de29bb2d1..000000000000
--- a/scripting/java/org/openoffice/netbeans/modules/office/Bundle.properties
+++ /dev/null
diff --git a/scripting/java/org/openoffice/netbeans/modules/office/Bundle_en_US.properties b/scripting/java/org/openoffice/netbeans/modules/office/Bundle_en_US.properties
deleted file mode 100644
index e69de29bb2d1..000000000000
--- a/scripting/java/org/openoffice/netbeans/modules/office/Bundle_en_US.properties
+++ /dev/null
diff --git a/scripting/java/org/openoffice/netbeans/modules/office/actions/BuildParcelAction.java b/scripting/java/org/openoffice/netbeans/modules/office/actions/BuildParcelAction.java
deleted file mode 100644
index 9aa998cfe77a..000000000000
--- a/scripting/java/org/openoffice/netbeans/modules/office/actions/BuildParcelAction.java
+++ /dev/null
@@ -1,60 +0,0 @@
-/*
- * 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 .
- */
-
-package org.openoffice.netbeans.modules.office.actions;
-
-import java.util.Vector;
-import java.util.Enumeration;
-
-import org.openide.nodes.Node;
-import org.openide.util.HelpCtx;
-import org.openide.util.RequestProcessor;
-import org.openide.actions.BuildAllAction;
-
-import org.openide.compiler.Compiler;
-import org.openide.compiler.CompilerJob;
-import org.openide.compiler.CompilerTask;
-
-import org.openoffice.netbeans.modules.office.utils.FrameworkJarChecker;
-
-public class BuildParcelAction extends BuildAllAction {
- public String getName() {
- return "Build";
- }
-
- protected void performAction(Node[] activatedNodes) {
- FrameworkJarChecker.mountDependencies();
-
- for (int i = 0; i < activatedNodes.length; i++) {
- ArrayList v = new ArrayList(1);
- v.addElement(activatedNodes[i]);
-
- CompilerJob job = createJob(v.elements(), Compiler.DEPTH_INFINITE);
- CompilerTask task = job.start();
- task.waitFinished();
-
- if (task.isSuccessful()) {
- ParcelFolderCookie cookie = (ParcelFolderCookie)
- activatedNodes[i].getCookie(ParcelFolderCookie.class);
-
- if (cookie != null)
- cookie.generate();
- }
- }
- }
-}
diff --git a/scripting/java/org/openoffice/netbeans/modules/office/actions/CompileParcelAction.java b/scripting/java/org/openoffice/netbeans/modules/office/actions/CompileParcelAction.java
deleted file mode 100644
index f494c7ab66f0..000000000000
--- a/scripting/java/org/openoffice/netbeans/modules/office/actions/CompileParcelAction.java
+++ /dev/null
@@ -1,35 +0,0 @@
-/*
- * 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 .
- */
-
-package org.openoffice.netbeans.modules.office.actions;
-
-import org.openide.nodes.Node;
-import org.openide.actions.CompileAllAction;
-
-import org.openoffice.netbeans.modules.office.utils.FrameworkJarChecker;
-
-public class CompileParcelAction extends CompileAllAction {
- public String getName() {
- return "Compile";
- }
-
- protected void performAction(Node[] activatedNodes) {
- FrameworkJarChecker.mountDependencies();
- super.performAction(activatedNodes);
- }
-}
diff --git a/scripting/java/org/openoffice/netbeans/modules/office/actions/ConfigureParcelAction.java b/scripting/java/org/openoffice/netbeans/modules/office/actions/ConfigureParcelAction.java
deleted file mode 100644
index fa64996ced70..000000000000
--- a/scripting/java/org/openoffice/netbeans/modules/office/actions/ConfigureParcelAction.java
+++ /dev/null
@@ -1,61 +0,0 @@
-/*
- * 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 .
- */
-
-package org.openoffice.netbeans.modules.office.actions;
-
-import org.openide.nodes.Node;
-import org.openide.util.HelpCtx;
-import org.openide.util.RequestProcessor;
-import org.openide.util.actions.CookieAction;
-
-import org.openoffice.netbeans.modules.office.utils.FrameworkJarChecker;
-
-public class ConfigureParcelAction extends CookieAction {
-
- public String getName() {
- return "Configure";
- }
-
- protected java.lang.Class[] cookieClasses() {
- return new Class[] {ParcelFolderCookie.class};
- }
-
- protected int mode() {
- return CookieAction.MODE_EXACTLY_ONE;
- }
-
- public HelpCtx getHelpCtx() {
- return HelpCtx.DEFAULT_HELP;
- }
-
- protected void performAction(final Node[] activatedNodes) {
- FrameworkJarChecker.mountDependencies();
-
- RequestProcessor.getDefault().post(new Runnable() {
- public void run() {
- for (int i = 0; i < activatedNodes.length; i++) {
- ParcelFolderCookie pfc = (ParcelFolderCookie)
- activatedNodes[i].getCookie(ParcelFolderCookie.class);
-
- if (pfc != null)
- pfc.configure();
- }
- }
- });
- }
-}
diff --git a/scripting/java/org/openoffice/netbeans/modules/office/actions/DeployParcelAction.java b/scripting/java/org/openoffice/netbeans/modules/office/actions/DeployParcelAction.java
deleted file mode 100644
index 04a17a8976fc..000000000000
--- a/scripting/java/org/openoffice/netbeans/modules/office/actions/DeployParcelAction.java
+++ /dev/null
@@ -1,238 +0,0 @@
-/*
- * 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 .
- */
-
-package org.openoffice.netbeans.modules.office.actions;
-
-import java.io.File;
-import java.io.IOException;
-import java.util.Hashtable;
-import java.util.List;
-import java.util.ArrayList;
-import java.util.Enumeration;
-
-import javax.swing.JMenuItem;
-import javax.swing.JFileChooser;
-import javax.swing.filechooser.FileFilter;
-import javax.swing.event.ChangeEvent;
-import javax.swing.event.ChangeListener;
-import java.awt.event.ActionListener;
-import java.awt.event.ActionEvent;
-
-import org.openide.TopManager;
-import org.openide.NotifyDescriptor;
-import org.openide.awt.Actions;
-import org.openide.nodes.Node;
-import org.openide.util.HelpCtx;
-import org.openide.util.NbBundle;
-import org.openide.util.RequestProcessor;
-import org.openide.util.actions.*;
-import org.openide.awt.JMenuPlus;
-
-import org.openoffice.idesupport.SVersionRCFile;
-import org.openoffice.idesupport.OfficeInstallation;
-import org.openoffice.idesupport.zip.ParcelZipper;
-import org.openoffice.idesupport.LocalOffice;
-
-import org.openoffice.netbeans.modules.office.utils.NagDialog;
-import org.openoffice.netbeans.modules.office.options.OfficeSettings;
-
-public class DeployParcelAction extends CookieAction implements
- Presenter.Popup {
-
- private static final String BROWSE_LABEL = "Office Document...";
- private static final String DEPLOY_LABEL = "Deploy To";
-
- public String getName() {
- return DEPLOY_LABEL;
- }
-
- public HelpCtx getHelpCtx() {
- return HelpCtx.DEFAULT_HELP;
- }
-
- public JMenuItem getPopupPresenter() {
- JMenuPlus menu = new JMenuPlus(DEPLOY_LABEL);
- JMenuItem item, user, share;
- final OfficeInstallation oi = OfficeSettings.getDefault().getOfficeDirectory();
-
- ActionListener listener = new ActionListener() {
- public void actionPerformed(ActionEvent e) {
- JMenuItem choice = (JMenuItem)e.getSource();
- String label = choice.getText();
-
- Node[] nodes = getActivatedNodes();
- final ParcelCookie parcelCookie =
- (ParcelCookie)nodes[0].getCookie(ParcelCookie.class);
-
- File target = new File(oi.getPath(File.separator + label +
- File.separator + "Scripts"));
-
- File langdir = new File(target, parcelCookie.getLanguage());
-
- if (!langdir.exists()) {
- boolean response = askIfCreateDirectory(langdir);
-
- if (!response) {
- return;
- }
- }
-
- deploy(target);
- }
- };
-
- user = new JMenuItem("user");
- user.addActionListener(listener);
-
- share = new JMenuItem("share");
- share.addActionListener(listener);
-
- item = new JMenuPlus(oi.getName());
- item.add(user);
- item.add(share);
- menu.add(item);
-
- menu.addSeparator();
- item = new JMenuItem(BROWSE_LABEL);
- item.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent e) {
- File target = getTargetFile();
-
- if (target == null)
- return;
-
- deploy(target);
- }
- });
- menu.add(item);
-
- return menu;
- }
-
- protected int mode() {
- return MODE_ONE;
- }
-
- protected Class[] cookieClasses() {
- return new Class[] { ParcelCookie.class };
- }
-
- protected void performAction(Node[] activatedNodes) {
- // do nothing, should not happen
- }
-
- private void deploy(final File target) {
- Node[] nodes = getActivatedNodes();
- final ParcelCookie parcelCookie =
- (ParcelCookie)nodes[0].getCookie(ParcelCookie.class);
-
- RequestProcessor.getDefault().post(new Runnable() {
- public void run() {
- boolean result = parcelCookie.deploy(target);
-
- if (result && target.isDirectory()) {
- showNagDialog();
- }
- }
- });
- }
-
- private boolean askIfCreateDirectory(File directory) {
- String message = directory.getAbsolutePath() + " does not exist. " +
- "Do you want to create it now?";
-
- NotifyDescriptor d = new NotifyDescriptor.Confirmation(
- message, NotifyDescriptor.OK_CANCEL_OPTION);
- TopManager.getDefault().notify(d);
-
- if (d.getValue() == NotifyDescriptor.CANCEL_OPTION)
- return false;
-
- boolean result;
-
- try {
- result = directory.mkdirs();
- } catch (SecurityException se) {
- result = false;
- }
-
- if (!result) {
- String tmp = "Error creating: " + directory.getAbsolutePath();
- NotifyDescriptor d2 = new NotifyDescriptor.Message(
- tmp, NotifyDescriptor.ERROR_MESSAGE);
- TopManager.getDefault().notify(d2);
- }
-
- return result;
- }
-
- private void refreshOffice(String path) {
- ClassLoader syscl = TopManager.getDefault().currentClassLoader();
- LocalOffice office = LocalOffice.create(syscl, path, 8100);
- office.refreshStorage("file://" + path + "/program/../user");
- office.disconnect();
- }
-
- private void showNagDialog() {
- String message = "If you currently have Office running you will " +
- "need to click on the Tools/Scripting Add-on's/Refresh All Scripts " +
- " menu item in Office so that the scripts in this parcel can be detected.";
-
- OfficeSettings settings = OfficeSettings.getDefault();
-
- if (settings.getWarnAfterDirDeploy()) {
- NagDialog warning = NagDialog.createInformationDialog(
- message, "Show this message in future", true);
-
- warning.show();
-
- if (!warning.getState())
- settings.setWarnAfterDirDeploy(false);
- }
- }
-
- private File getTargetFile() {
- File target = null;
-
- JFileChooser chooser = new JFileChooser();
- chooser.setDialogTitle("Deploy Parcel To Office Document");
- chooser.setApproveButtonText("Deploy");
- chooser.setFileSelectionMode(JFileChooser.FILES_ONLY);
- chooser.setFileFilter(new FileFilter() {
- public boolean accept(File file) {
- return file.isDirectory() ||
- file.getName().endsWith(".sxw") ||
- file.getName().endsWith(".sxc") ||
- file.getName().endsWith(".sxd") ||
- file.getName().endsWith(".sxi");
- }
-
- public String getDescription() {
- return "Office Documents";
- }
- });
-
- int result = chooser.showDialog(null, null);
-
- if (result == JFileChooser.APPROVE_OPTION) {
- target = chooser.getSelectedFile();
- }
-
- return target;
- }
-}
diff --git a/scripting/java/org/openoffice/netbeans/modules/office/actions/MountDocumentAction.java b/scripting/java/org/openoffice/netbeans/modules/office/actions/MountDocumentAction.java
deleted file mode 100644
index 8b22e93ef9c4..000000000000
--- a/scripting/java/org/openoffice/netbeans/modules/office/actions/MountDocumentAction.java
+++ /dev/null
@@ -1,62 +0,0 @@
-/*
- * 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 .
- */
-
-package org.openoffice.netbeans.modules.office.actions;
-
-import org.openide.nodes.Node;
-import org.openide.util.HelpCtx;
-import org.openide.util.RequestProcessor;
-import org.openide.util.actions.CookieAction;
-
-/**
- * @version 1.0
- */
-public class MountDocumentAction extends CookieAction {
- public String getName() {
- return "Mount Document"; //NOI18N
- }
-
- public HelpCtx getHelpCtx() {
- return HelpCtx.DEFAULT_HELP;
- }
-
- protected int mode() {
- // enable duplication for as many qualifying nodes as are selected:
- return CookieAction.MODE_ALL;
- }
-
- protected java.lang.Class[] cookieClasses() {
- // just the DuplicateCookie:
- return new Class[] {OfficeDocumentCookie.class};
- }
-
- protected void performAction(final Node[] activatedNodes) {
- RequestProcessor.getDefault().post(new Runnable() {
- public void run() {
- for (int i = 0; i < activatedNodes.length; i++) {
- OfficeDocumentCookie cookie = (OfficeDocumentCookie)activatedNodes[i].getCookie(
- OfficeDocumentCookie.class);
-
- if (cookie != null) {
- cookie.mount();
- }
- }
- }
- });
- }
-}
diff --git a/scripting/java/org/openoffice/netbeans/modules/office/actions/MountParcelAction.java b/scripting/java/org/openoffice/netbeans/modules/office/actions/MountParcelAction.java
deleted file mode 100644
index 01395dc3fb7d..000000000000
--- a/scripting/java/org/openoffice/netbeans/modules/office/actions/MountParcelAction.java
+++ /dev/null
@@ -1,61 +0,0 @@
-/*
- * 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 .
- */
-
-package org.openoffice.netbeans.modules.office.actions;
-
-import org.openide.nodes.Node;
-import org.openide.util.HelpCtx;
-import org.openide.util.RequestProcessor;
-import org.openide.util.actions.CookieAction;
-
-/**
- * @version 1.0
- */
-public class MountParcelAction extends CookieAction {
- public String getName() {
- return "Mount Parcel"; //NOI18N
- }
-
- public HelpCtx getHelpCtx() {
- return HelpCtx.DEFAULT_HELP;
- }
-
- protected int mode() {
- // enable duplication for as many qualifying nodes as are selected:
- return CookieAction.MODE_ALL;
- }
-
- protected java.lang.Class[] cookieClasses() {
- return new Class[] {ParcelCookie.class};
- }
-
- protected void performAction(final Node[] activatedNodes) {
- RequestProcessor.getDefault().post(new Runnable() {
- public void run() {
- for (int i = 0; i < activatedNodes.length; i++) {
- ParcelCookie mpc = (ParcelCookie)activatedNodes[i].getCookie(
- ParcelCookie.class);
-
- if (mpc != null) {
- mpc.mount();
- }
- }
- }
- });
- }
-}
diff --git a/scripting/java/org/openoffice/netbeans/modules/office/actions/OfficeDocumentCookie.java b/scripting/java/org/openoffice/netbeans/modules/office/actions/OfficeDocumentCookie.java
deleted file mode 100644
index df57575020f4..000000000000
--- a/scripting/java/org/openoffice/netbeans/modules/office/actions/OfficeDocumentCookie.java
+++ /dev/null
@@ -1,32 +0,0 @@
-/*
- * 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 .
- */
-
-package org.openoffice.netbeans.modules.office.actions;
-
-import java.util.Enumeration;
-import javax.swing.event.ChangeListener;
-import org.openide.nodes.Node;
-
-public interface OfficeDocumentCookie extends Node.Cookie {
- void mount();
- Enumeration getParcels();
- void removeParcel(String name);
-
- void addChangeListener(ChangeListener cl);
- void removeChangeListener(ChangeListener cl);
-}
diff --git a/scripting/java/org/openoffice/netbeans/modules/office/actions/OfficeDocumentSupport.java b/scripting/java/org/openoffice/netbeans/modules/office/actions/OfficeDocumentSupport.java
deleted file mode 100644
index c77fc63a7cbc..000000000000
--- a/scripting/java/org/openoffice/netbeans/modules/office/actions/OfficeDocumentSupport.java
+++ /dev/null
@@ -1,133 +0,0 @@
-/*
- * 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 .
- */
-
-package org.openoffice.netbeans.modules.office.actions;
-
-import java.io.IOException;
-import java.io.File;
-import java.beans.PropertyVetoException;
-import java.util.Enumeration;
-import java.util.Set;
-import java.util.HashSet;
-import java.util.Iterator;
-import javax.swing.event.ChangeListener;
-import javax.swing.event.ChangeEvent;
-
-import org.openide.ErrorManager;
-import org.openide.filesystems.FileObject;
-import org.openide.filesystems.FileUtil;
-import org.openide.filesystems.FileChangeListener;
-import org.openide.filesystems.FileEvent;
-import org.openide.filesystems.FileAttributeEvent;
-import org.openide.filesystems.FileRenameEvent;
-import org.openide.cookies.OpenCookie;
-
-import org.openoffice.idesupport.OfficeDocument;
-
-import org.openoffice.netbeans.modules.office.options.OfficeSettings;
-import org.openoffice.netbeans.modules.office.loader.OfficeDocumentDataObject;
-import org.openoffice.netbeans.modules.office.utils.ZipMounter;
-import org.openoffice.netbeans.modules.office.utils.ManifestParser;
-
-public class OfficeDocumentSupport implements OfficeDocumentCookie, OpenCookie,
- FileChangeListener {
- protected OfficeDocumentDataObject dataObj;
- private boolean isMounted = false;
- private OfficeDocument document;
- private Set listeners;
-
- public OfficeDocumentSupport(OfficeDocumentDataObject dataObj) {
- this.dataObj = dataObj;
- FileObject fo = dataObj.getPrimaryFile();
-
- try {
- this.document = new OfficeDocument(FileUtil.toFile(fo));
- } catch (Exception e) {
- e.printStackTrace();
- }
-
- fo.addFileChangeListener(this);
- }
-
- public void mount() {
- File file = FileUtil.toFile(dataObj.getPrimaryFile());
-
- try {
- ZipMounter.getZipMounter().mountZipFile(file);
- isMounted = true;
- } catch (IOException ioe) {
- ErrorManager.getDefault().notify(ioe);
- } catch (PropertyVetoException pve) {
- ErrorManager.getDefault().notify(pve);
- }
- }
-
- public void open() {
- File file = FileUtil.toFile(dataObj.getPrimaryFile());
-
- OfficeSettings settings = OfficeSettings.getDefault();
- File soffice = new File(settings.getOfficeDirectory().getPath(
- File.separator + "soffice"));
-
- try {
- Process p = Runtime.getRuntime().exec(new String[] {
- soffice.getAbsolutePath(), file.getAbsolutePath()
- });
- } catch (IOException ioe) {
- ErrorManager.getDefault().notify(ioe);
- }
- }
-
- public Enumeration getParcels() {
- return document.getParcels();
- }
-
- public void removeParcel(String name) {
- document.removeParcel(name);
- dataObj.getPrimaryFile().refresh(true);
- }
-
- public void addChangeListener(ChangeListener cl) {
- if (listeners == null)
- listeners = new HashSet();
-
- listeners.add(cl);
- }
-
- public void removeChangeListener(ChangeListener cl) {
- if (listeners == null)
- return;
-
- listeners.remove(cl);
- }
-
- public void fileChanged(FileEvent fe) {
- if (listeners != null) {
- Iterator iter = listeners.iterator();
-
- while (iter.hasNext())
- ((ChangeListener)iter.next()).stateChanged(new ChangeEvent(this));
- }
- }
-
- public void fileAttributeChanged(FileAttributeEvent fe) {}
- public void fileDataCreated(FileEvent fe) {}
- public void fileDeleted(FileEvent fe) {}
- public void fileFolderCreated(FileEvent fe) {}
- public void fileRenamed(FileRenameEvent fe) {}
-}
diff --git a/scripting/java/org/openoffice/netbeans/modules/office/actions/ParcelCookie.java b/scripting/java/org/openoffice/netbeans/modules/office/actions/ParcelCookie.java
deleted file mode 100644
index 1c782ae6bf22..000000000000
--- a/scripting/java/org/openoffice/netbeans/modules/office/actions/ParcelCookie.java
+++ /dev/null
@@ -1,32 +0,0 @@
-/*
- * 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 .
- */
-
-package org.openoffice.netbeans.modules.office.actions;
-
-import java.io.File;
-import org.openide.nodes.Node;
-
-public interface ParcelCookie extends Node.Cookie {
- File getFile();
-
- String getLanguage();
-
- void mount();
-
- boolean deploy(File target);
-}
diff --git a/scripting/java/org/openoffice/netbeans/modules/office/actions/ParcelDescriptorEditorSupport.java b/scripting/java/org/openoffice/netbeans/modules/office/actions/ParcelDescriptorEditorSupport.java
deleted file mode 100644
index c4378ceff24d..000000000000
--- a/scripting/java/org/openoffice/netbeans/modules/office/actions/ParcelDescriptorEditorSupport.java
+++ /dev/null
@@ -1,136 +0,0 @@
-/*
- * 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 .
- */
-
-package org.openoffice.netbeans.modules.office.actions;
-
-import java.io.IOException;
-
-import org.openide.cookies.*;
-import org.openide.filesystems.FileLock;
-import org.openide.filesystems.FileObject;
-import org.openide.loaders.DataObject;
-import org.openide.text.DataEditorSupport;
-import org.openide.windows.CloneableOpenSupport;
-
-import org.openoffice.netbeans.modules.office.loader.ParcelDescriptorDataObject;
-
-/** Support for editing a data object as text.
- */
-// Replace OpenCookie with EditCookie or maybe ViewCookie as desired:
-public class ParcelDescriptorEditorSupport extends DataEditorSupport implements
- EditorCookie, OpenCookie, CloseCookie, PrintCookie {
-
- /** Create a new editor support.
- * @param obj the data object whose primary file will be edited as text
- */
- public ParcelDescriptorEditorSupport(ParcelDescriptorDataObject obj) {
- super(obj, new ParcelDescriptorEnv(obj));
- // Set a MIME type as needed, e.g.:
- setMIMEType("text/xml");
- }
-
- /** Called when the document is modified.
- * Here, adding a save cookie to the object and marking it modified.
- * @return true if the modification is acceptable
- */
- protected boolean notifyModified() {
- if (!super.notifyModified()) {
- return false;
- }
-
- ParcelDescriptorDataObject obj = (ParcelDescriptorDataObject)getDataObject();
-
- if (obj.getCookie(SaveCookie.class) == null) {
- obj.setModified(true);
- // You must implement this method on the object:
- obj.addSaveCookie(new Save());
- }
-
- return true;
- }
-
- /** Called when the document becomes unmodified.
- * Here, removing the save cookie from the object and marking it unmodified.
- */
- protected void notifyUnmodified() {
- ParcelDescriptorDataObject obj = (ParcelDescriptorDataObject)getDataObject();
- SaveCookie save = (SaveCookie)obj.getCookie(SaveCookie.class);
-
- if (save != null) {
- // You must implement this method on the object:
- obj.removeSaveCookie(save);
- obj.setModified(false);
- }
-
- super.notifyUnmodified();
- }
-
- /** A save cookie to use for the editor support.
- * When saved, saves the document to disk and marks the object unmodified.
- */
- private class Save implements SaveCookie {
- public void save() throws IOException {
- saveDocument();
- getDataObject().setModified(false);
- }
- }
-
- /** A description of the binding between the editor support and the object.
- * Note this may be serialized as part of the window system and so
- * should be static, and use the transient modifier where needed.
- */
- private static class ParcelDescriptorEnv extends DataEditorSupport.Env {
-
- /** Create a new environment based on the data object.
- * @param obj the data object to edit
- */
- public ParcelDescriptorEnv(ParcelDescriptorDataObject obj) {
- super(obj);
- }
-
- /** Get the file to edit.
- * @return the primary file normally
- */
- protected FileObject getFile() {
- return getDataObject().getPrimaryFile();
- }
-
- /** Lock the file to edit.
- * Should be taken from the file entry if possible, helpful during
- * e.g. deletion of the file.
- * @return a lock on the primary file normally
- * @throws IOException if the lock could not be taken
- */
- protected FileLock takeLock() throws IOException {
- return ((ParcelDescriptorDataObject)
- getDataObject()).getPrimaryEntry().takeLock();
- }
-
- /** Find the editor support this environment represents.
- * Note that we have to look it up, as keeping a direct
- * reference would not permit this environment to be serialized.
- * @return the editor support
- */
- public CloneableOpenSupport findCloneableOpenSupport() {
- return (ParcelDescriptorEditorSupport)getDataObject().getCookie(
- ParcelDescriptorEditorSupport.class);
- }
-
- }
-
-}
diff --git a/scripting/java/org/openoffice/netbeans/modules/office/actions/ParcelDescriptorParserCookie.java b/scripting/java/org/openoffice/netbeans/modules/office/actions/ParcelDescriptorParserCookie.java
deleted file mode 100644
index 0e7e4226d657..000000000000
--- a/scripting/java/org/openoffice/netbeans/modules/office/actions/ParcelDescriptorParserCookie.java
+++ /dev/null
@@ -1,32 +0,0 @@
-/*
- * 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 .
- */
-
-package org.openoffice.netbeans.modules.office.actions;
-
-import org.w3c.dom.NodeList;
-import javax.swing.event.ChangeListener;
-import org.openide.nodes.Node;
-
-public interface ParcelDescriptorParserCookie extends Node.Cookie {
- // should return a NodeList of org.w3c.dom.Element
- NodeList getScriptElements();
-
- void addChangeListener(ChangeListener cl);
-
- void removeChangeListener(ChangeListener cl);
-}
diff --git a/scripting/java/org/openoffice/netbeans/modules/office/actions/ParcelDescriptorParserSupport.java b/scripting/java/org/openoffice/netbeans/modules/office/actions/ParcelDescriptorParserSupport.java
deleted file mode 100644
index f3f105679677..000000000000
--- a/scripting/java/org/openoffice/netbeans/modules/office/actions/ParcelDescriptorParserSupport.java
+++ /dev/null
@@ -1,107 +0,0 @@
-/*
- * 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 .
- */
-
-package org.openoffice.netbeans.modules.office.actions;
-
-import java.io.*;
-import java.util.*;
-import javax.swing.event.ChangeListener;
-import javax.swing.event.ChangeEvent;
-
-import org.w3c.dom.Document;
-import org.w3c.dom.NodeList;
-import org.xml.sax.InputSource;
-import org.xml.sax.SAXException;
-
-import org.openide.filesystems.*;
-import org.openide.xml.XMLUtil;
-
-public class ParcelDescriptorParserSupport
- implements ParcelDescriptorParserCookie, FileChangeListener {
- private FileObject fo;
- private Document document;
- private Set listeners;
-
- public ParcelDescriptorParserSupport(FileObject fo) {
- this.fo = fo;
- fo.addFileChangeListener(this);
- }
-
- private synchronized void parseFile() {
- File file = FileUtil.toFile(fo);
- InputSource is;
-
- try {
- is = new InputSource(new FileInputStream(file));
- } catch (FileNotFoundException fnfe) {
- System.out.println("Couldn't find file: " + file.getName());
- return;
- }
-
- document = null;
-
- try {
- document = XMLUtil.parse(is, false, false, null, null);
- } catch (IOException ioe) {
- System.out.println("IO Error parsing file: " + file.getName());
- } catch (SAXException se) {
- System.out.println("Sax Error parsing file: " + file.getName());
- }
- }
-
- public synchronized NodeList getScriptElements() {
- if (document == null)
- parseFile();
-
- if (document != null)
- return document.getElementsByTagName("script");
-
- return null;
- }
-
- public void addChangeListener(ChangeListener cl) {
- if (listeners == null)
- listeners = new HashSet();
-
- listeners.add(cl);
- }
-
- public void removeChangeListener(ChangeListener cl) {
- if (listeners == null)
- return;
-
- listeners.remove(cl);
- }
-
- public void fileChanged(FileEvent fe) {
- parseFile();
-
- if (listeners != null) {
- Iterator iter = listeners.iterator();
-
- while (iter.hasNext())
- ((ChangeListener)iter.next()).stateChanged(new ChangeEvent(this));
- }
- }
-
- public void fileAttributeChanged(FileAttributeEvent fe) {}
- public void fileDataCreated(FileEvent fe) {}
- public void fileDeleted(FileEvent fe) {}
- public void fileFolderCreated(FileEvent fe) {}
- public void fileRenamed(FileRenameEvent fe) {}
-}
diff --git a/scripting/java/org/openoffice/netbeans/modules/office/actions/ParcelFolderCookie.java b/scripting/java/org/openoffice/netbeans/modules/office/actions/ParcelFolderCookie.java
deleted file mode 100644
index 6a17ee13ab31..000000000000
--- a/scripting/java/org/openoffice/netbeans/modules/office/actions/ParcelFolderCookie.java
+++ /dev/null
@@ -1,32 +0,0 @@
-/*
- * 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 .
- */
-
-package org.openoffice.netbeans.modules.office.actions;
-
-import org.openide.nodes.Node;
-
-public interface ParcelFolderCookie extends Node.Cookie {
- void generate();
-
- boolean configure();
-
- void setClasspath(String value);
- String getClasspath();
-
- String getLanguage();
-}
diff --git a/scripting/java/org/openoffice/netbeans/modules/office/actions/ParcelFolderSupport.java b/scripting/java/org/openoffice/netbeans/modules/office/actions/ParcelFolderSupport.java
deleted file mode 100644
index ce0ac563b0a5..000000000000
--- a/scripting/java/org/openoffice/netbeans/modules/office/actions/ParcelFolderSupport.java
+++ /dev/null
@@ -1,242 +0,0 @@
-/*
- * 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 .
- */
-
-package org.openoffice.netbeans.modules.office.actions;
-
-import java.util.Vector;
-import java.util.StringTokenizer;
-
-import java.io.*;
-import java.beans.PropertyVetoException;
-import java.awt.Dialog;
-
-import org.w3c.dom.Document;
-import org.xml.sax.InputSource;
-import org.xml.sax.SAXException;
-
-import org.openide.TopManager;
-import org.openide.DialogDescriptor;
-import org.openide.ErrorManager;
-import org.openide.xml.XMLUtil;
-import org.openide.execution.NbClassPath;
-
-import org.openide.cookies.OpenCookie;
-import org.openide.loaders.DataObject;
-import org.openide.loaders.DataNode;
-
-import org.openide.filesystems.FileObject;
-import org.openide.filesystems.FileSystem;
-import org.openide.filesystems.JarFileSystem;
-import org.openide.filesystems.FileUtil;
-import org.openide.filesystems.Repository;
-
-import org.openide.nodes.*;
-import org.openide.windows.OutputWriter;
-
-import org.openoffice.netbeans.modules.office.loader.ParcelFolder;
-import org.openoffice.netbeans.modules.office.options.OfficeSettings;
-import org.openoffice.netbeans.modules.office.utils.ManifestParser;
-
-import com.sun.star.script.framework.container.ParcelDescriptor;
-
-import org.openoffice.idesupport.zip.ParcelZipper;
-import org.openoffice.idesupport.filter.FileFilter;
-import org.openoffice.idesupport.ui.ConfigurePanel;
-
-public class ParcelFolderSupport implements ParcelFolderCookie {
- protected ParcelFolder parcelFolder;
- private ConfigurePanel configuror = null;
-
- public ParcelFolderSupport(ParcelFolder parcelFolder) {
- this.parcelFolder = parcelFolder;
- }
-
- public String getLanguage() {
- ParcelDescriptor descriptor = getParcelDescriptor();
-
- if (descriptor == null) {
- return "";
- } else {
- return descriptor.getLanguage();
- }
- }
-
- public String getClasspath() {
- ParcelDescriptor descriptor = getParcelDescriptor();
-
- if (descriptor == null) {
- return "";
- } else {
- return descriptor.getLanguageProperty("classpath");
- }
- }
-
- public void setClasspath(String value) {
- ParcelDescriptor descriptor = getParcelDescriptor();
-
- if (descriptor != null) {
- descriptor.setLanguageProperty("classpath", value);
-
- try {
- descriptor.write();
- } catch (IOException ioe) {
- ErrorManager.getDefault().notify(ioe);
- }
- }
- }
-
- private ParcelDescriptor getParcelDescriptor() {
- FileObject primary = parcelFolder.getPrimaryFile();
-
- File contents = FileUtil.toFile(
- primary.getFileObject(ParcelZipper.CONTENTS_DIRNAME));
-
- return ParcelDescriptor.getParcelDescriptor(contents);
- }
-
- public void generate() {
- ParcelFolder.ParcelFolderNode node =
- (ParcelFolder.ParcelFolderNode)parcelFolder.getNodeDelegate();
-
- FileObject parcelBase = parcelFolder.getPrimaryFile();
- FileObject contentsBase =
- parcelBase.getFileObject(ParcelZipper.CONTENTS_DIRNAME);
-
- File parcelDir = FileUtil.toFile(parcelBase);
- File contentsDir = FileUtil.toFile(contentsBase);
-
- // The Location property is not displayed so just
- // use the Parcel Recipe directory as the target directory
- File targetDir = FileUtil.toFile(parcelFolder.getPrimaryFile());
- File targetfile = new File(targetDir, File.separator +
- parcelBase.getName() + "." + ParcelZipper.PARCEL_EXTENSION);
-
- boolean proceed = configure();
-
- if (!proceed) {
- return;
- }
-
- final OutputWriter out =
- ParcelSupport.getOutputWindowWriter(parcelDir.getName() + " (generating)");
-
- try {
- out.println("Generating: " + parcelDir.getName(), null);
- ParcelZipper.getParcelZipper().zipParcel(contentsDir, targetfile,
- node.getFileFilter());
- out.println("\nGENERATION SUCCESSFUL.");
- out.println("\nRight click on the generated parcel to deploy it");
-
- if (targetDir.equals(parcelDir)) {
- parcelBase.refresh(true);
- }
- } catch (IOException ioe) {
- out.println("GENERATION FAILED: reason: " + ioe.getClass().getName() + ": " +
- ioe.getMessage());
- } finally {
- if (out != null) {
- out.close();
- }
- }
- }
-
- public boolean configure() {
-
- FileObject primary = parcelFolder.getPrimaryFile();
-
- File contents = FileUtil.toFile(
- primary.getFileObject(ParcelZipper.CONTENTS_DIRNAME));
-
- ArrayList<String> classpath = getConfigureClasspath();
- classpath.add(contents.getAbsolutePath());
-
- try {
- ParcelDescriptor descriptor = getParcelDescriptor();
-
- if (descriptor == null) {
- descriptor = ParcelDescriptor.createParcelDescriptor(contents);
- }
-
- if (configuror == null) {
- configuror = new ConfigurePanel(contents.getAbsolutePath(),
- classpath, descriptor);
- } else {
- configuror.reload(contents.getAbsolutePath(), classpath,
- descriptor);
- }
- } catch (IOException ioe) {
- ErrorManager.getDefault().notify(ioe);
- return false;
- }
-
- DialogDescriptor dd = new DialogDescriptor(configuror,
- ConfigurePanel.DIALOG_TITLE);
-
- Dialog dialog = TopManager.getDefault().createDialog(dd);
- dialog.show();
-
- if (dd.getValue() == DialogDescriptor.OK_OPTION) {
- try {
- ParcelDescriptor descriptor = configuror.getConfiguration();
- descriptor.write();
- } catch (Exception e) {
- ErrorManager.getDefault().notify(e);
- }
- } else {
- return false;
- }
-
- return true;
- }
-
- private ArrayList<String> getConfigureClasspath() {
- ArrayList<String> result = new ArrayList<String>();
-
- String classpath = NbClassPath.createRepositoryPath().getClassPath();
-
- if (System.getProperty("os.name").startsWith("Windows")) {
- // under windows path is enclosed by quotes
- // e.g. C:\path1;d:\path2 would appear as
- // "C:\path1;d:\path2" therefore for us
- // we need to remove 1 character at either end of the
- // classpath returned from "createRepositoryPath().getClassPath()"
-
- if (classpath.startsWith("\"") && classpath.endsWith("\"")) {
- StringBuffer buff = new StringBuffer(classpath);
- buff.delete(0, 1);
- buff.delete(buff.length() - 1, buff.length());
- classpath = buff.toString();
- }
- }
-
- StringTokenizer tokens = new StringTokenizer(classpath, File.pathSeparator);
-
- while (tokens.hasMoreTokens())
- result.addElement(tokens.nextToken());
-
- OfficeSettings settings = OfficeSettings.getDefault();
- File classesDir = new File(settings.getOfficeDirectory().getPath(
- File.separator + "program" + File.separator + "classes"));
- File[] jarfiles = classesDir.listFiles();
-
- for (int i = 0; i < jarfiles.length; i++)
- result.addElement(jarfiles[i].getAbsolutePath());
-
- return result;
- }
-}
diff --git a/scripting/java/org/openoffice/netbeans/modules/office/actions/ParcelSupport.java b/scripting/java/org/openoffice/netbeans/modules/office/actions/ParcelSupport.java
deleted file mode 100644
index 381be44ccadb..000000000000
--- a/scripting/java/org/openoffice/netbeans/modules/office/actions/ParcelSupport.java
+++ /dev/null
@@ -1,175 +0,0 @@
-/*
- * 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 .
- */
-
-package org.openoffice.netbeans.modules.office.actions;
-
-import java.io.File;
-import java.io.IOException;
-import java.beans.PropertyVetoException;
-import java.util.Enumeration;
-import java.util.Calendar;
-
-import org.openide.TopManager;
-import org.openide.NotifyDescriptor;
-import org.openide.windows.OutputWriter;
-import org.openide.windows.InputOutput;
-
-import org.openide.ErrorManager;
-import org.openide.nodes.Node;
-import org.openide.filesystems.Repository;
-import org.openide.filesystems.FileSystem;
-import org.openide.filesystems.FileObject;
-import org.openide.filesystems.FileUtil;
-import org.openide.filesystems.FileEvent;
-
-import org.openoffice.idesupport.zip.ParcelZipper;
-
-import org.openoffice.netbeans.modules.office.options.OfficeSettings;
-import org.openoffice.netbeans.modules.office.utils.NagDialog;
-import org.openoffice.netbeans.modules.office.utils.ZipMounter;
-import org.openoffice.netbeans.modules.office.utils.ManifestParser;
-
-public class ParcelSupport implements ParcelCookie {
- private FileObject fo;
- private ParcelZipper zipper = ParcelZipper.getParcelZipper();
- private String language = null;
-
- public ParcelSupport(FileObject fo) {
- this.fo = fo;
- }
-
- public File getFile() {
- return FileUtil.toFile(fo);
- }
-
- public String getLanguage() {
- if (language == null) {
- try {
- language = zipper.getParcelLanguage(getFile());
- } catch (IOException ioe) {
- return null;
- }
- }
-
- return language;
- }
-
- public void mount() {
- File parcel = FileUtil.toFile(fo);
-
- if (parcel != null) {
- try {
- ZipMounter.getZipMounter().mountZipFile(parcel);
- } catch (IOException ioe) {
- ErrorManager.getDefault().notify(ioe);
- } catch (PropertyVetoException pve) {
- ErrorManager.getDefault().notify(pve);
- }
- }
- }
-
- public boolean deploy(File target) {
- File source = FileUtil.toFile(fo);
-
- if (!target.isDirectory()) {
- OfficeSettings settings = OfficeSettings.getDefault();
- String message = "If you already have this document open in " +
- "Office, please close it before continuing. Click OK to " +
- "continue deployment.";
-
- if (settings.getWarnBeforeDocDeploy()) {
- NagDialog warning = NagDialog.createConfirmationDialog(
- message, "Show this message in future", true);
-
- boolean result = warning.show();
-
- if (!warning.getState())
- settings.setWarnBeforeDocDeploy(false);
-
- if (!result)
- return false;
- }
- }
-
- OutputWriter out =
- getOutputWindowWriter(fo.getName() + " (deploying)");
-
- try {
- if (!zipper.isOverwriteNeeded(source, target))
- if (!promptForOverwrite(source, target))
- return false;
- } catch (IOException ioe) {
- out.println("DEPLOYMENT FAILED: reason: " +
- ioe.getClass().getName() + ": " + ioe.getMessage());
- return false;
- }
-
- try {
- out.println("Deploying: " + fo.getName() +
- "\nTo: " + target.getAbsolutePath(), null);
-
- zipper.deployParcel(source, target);
-
- out.println("\nDEPLOYMENT SUCCESSFUL.");
-
- FileObject[] fileobjs = FileUtil.fromFile(target);
-
- if (fileobjs != null) {
- for (int i = 0; i < fileobjs.length; i++)
- fileobjs[i].refresh(true);
- }
- } catch (IOException ioe) {
- out.println("DEPLOYMENT FAILED: reason: " +
- ioe.getClass().getName() + ": " + ioe.getMessage());
- return false;
- } finally {
- if (out != null)
- out.close();
- }
-
- return true;
- }
-
- public static OutputWriter getOutputWindowWriter(String title) {
- InputOutput io = TopManager.getDefault().getIO(title, false);
- io.setFocusTaken(true);
- io.setOutputVisible(true);
-
- OutputWriter out = io.getOut();
-
- try {
- out.reset();
- } catch (IOException e) {
- e.printStackTrace(System.err);
- }
-
- out.println(Calendar.getInstance().getTime() + ":\n");
- return out;
- }
-
- private boolean promptForOverwrite(File source, File target) {
- String message = source.getName() + " has already been deployed " +
- "to this target. Do you wish to overwrite it?";
-
- NotifyDescriptor d = new NotifyDescriptor.Confirmation(
- message, NotifyDescriptor.OK_CANCEL_OPTION);
- TopManager.getDefault().notify(d);
-
- return (d.getValue() != NotifyDescriptor.CANCEL_OPTION);
- }
-}
diff --git a/scripting/java/org/openoffice/netbeans/modules/office/filesystem/Bundle.properties b/scripting/java/org/openoffice/netbeans/modules/office/filesystem/Bundle.properties
deleted file mode 100644
index f44811a494b0..000000000000
--- a/scripting/java/org/openoffice/netbeans/modules/office/filesystem/Bundle.properties
+++ /dev/null
@@ -1,61 +0,0 @@
-#
-# 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 .
-#
-# Filesystems API
-# {0} - root path
-# x-no-translate
-LAB_invalid_file_system=invalid OpenOffice.org document {0}
-# {0} - root path
-LAB_valid_file_system={0}
-# {0} - root path
-EXC_root_dir_does_not_exist=Root directory {0} does not exist.
-# {0} - original name before annotation
-LBL_modified_files={0} <somehow annotated>
-# {0} - file name and extension
-# {1} - display name of filesystem
-# {2} - full path to file
-EXC_file_could_not_be_locked={2} could not be locked; it did not exist or was not writable.
-# {0} - file name and extension
-# {1} - display name of filesystem
-# {2} - full path to file
-EXC_create_empty_name=Cannot create a file with an empty name.
-# {0} - file name and extension
-# {1} - display name of filesystem
-# {2} - full path to file
-EXC_folder_already_exists=Folder {2} already exists.
-# {0} - file name and extension
-# {1} - display name of filesystem
-# {2} - full path to file
-EXC_folder_could_not_be_created=Folder {2} could not be created.
-# {0} - file name and extension
-# {1} - display name of filesystem
-# {2} - full path to file
-EXC_file_could_not_be_created=File {2} could not be created.
-# {0} - old file name and extension
-# {1} - new file name and extension
-# {2} - display name of filesystem
-# {3} - full path to old file
-# {4} - full path to new file
-EXC_file_could_not_be_renamed=File {3} could not be renamed to {4}.
-# {0} - file name and extension
-# {1} - display name of filesystem
-# {2} - full path to file
-EXC_file_could_not_be_deleted=File {2} could not be deleted.
-PROP_readOnly=Read Only
-HINT_readOnly=Whether this filesystem should be writable, or read-only.
-PROP_document=OpenOffice.org Document
-HINT_document=OpenOffice.org Document (mount point) of this filesystem.
diff --git a/scripting/java/org/openoffice/netbeans/modules/office/filesystem/Bundle_en_US.properties b/scripting/java/org/openoffice/netbeans/modules/office/filesystem/Bundle_en_US.properties
deleted file mode 100644
index e69de29bb2d1..000000000000
--- a/scripting/java/org/openoffice/netbeans/modules/office/filesystem/Bundle_en_US.properties
+++ /dev/null
diff --git a/scripting/java/org/openoffice/netbeans/modules/office/filesystem/OpenOfficeDocFileSystem.java b/scripting/java/org/openoffice/netbeans/modules/office/filesystem/OpenOfficeDocFileSystem.java
deleted file mode 100644
index 6081445d258a..000000000000
--- a/scripting/java/org/openoffice/netbeans/modules/office/filesystem/OpenOfficeDocFileSystem.java
+++ /dev/null
@@ -1,1182 +0,0 @@
-/*
- * 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 .
- */
-
-package org.openoffice.netbeans.modules.office.filesystem;
-
-import java.beans.*;
-import java.io.*;
-import java.util.*;
-import java.util.zip.*;
-
-import org.openide.ErrorManager;
-import org.openide.filesystems.*;
-import org.openide.filesystems.FileSystem; // override java.io.FileSystem
-import org.openide.util.NbBundle;
-
-// ISSUES:
-// - This FS saves (updates) the file on 'setDocument' or 'removeNotify'.
-// It has to let the user to decide to update or not.
-
-// TODOS:
-// - 'Update' action on the mounted document which saves all recent modifications.
-// - To introduce 'scope' editable property to control editable portion of
-// the mounted document.
-// - Acceptable document type identification before mount.
-
-/**
- * OpenOffice.org Document filesystem.
- */
-public class OpenOfficeDocFileSystem
- extends AbstractFileSystem {
- public static final String SCRIPTS_ROOT = "Scripts"; // must be a folder
- public static final String SEPARATOR = "/"; // zip file separator
-
- private static final int OS_UNKNOWN = 0;
- private static final int OS_UNIX = 1;
- private static final int OS_MACOS = 2;
- private static final int OS_WINDOWS = 3;
-
- private static final int REFRESH_OFF = -1; // -1 is desabled
- private static final int REFRESH_TIME = REFRESH_OFF; // (mS)
- private static final String TMP_FILE_PREF = "sx_";
- private static final String TMP_FILE_SUFX = ".sxx";
-
- private transient Map cache; // filesystem cache
- private transient File docFile; // OpenOffice document
- private transient ZipFile zipFile;
-
- private static transient int osType; // type of OS
-
- private transient ChildrenStrategy childrenStrategy;
- private transient EditableStrategy editableStrategy;
-
- private transient boolean isModified; // true if an entry has been removed
-
- /**
- * Static constructor.
- */
- static {
- // Identify the type of OS
- String osname = System.getProperty("os.name");
-
- if (osname.startsWith("Mac OS"))
- osType = OS_MACOS;
- else if (osname.startsWith("Windows"))
- osType = OS_WINDOWS;
- else
- osType = OS_UNIX;
- }
-
- /**
- * Default constructor. Initializes new OpenOffice filesystem.
- */
- public OpenOfficeDocFileSystem() {
- // Create the filesystem cache
- cache = new HashMap();
-
- // Initialize strategies
- editableStrategy = new EditableStrategy(SCRIPTS_ROOT);
- childrenStrategy = new ChildrenStrategy();
-
- // Create and use implementations of filesystem functionality:
- info = new InfoImpl();
- change = new ChangeImpl();
-
- // Handle filesystem.attributes files normally:
- DefaultAttributes defattr = new DefaultAttributes(
- info, change, new ListImpl());
-
- // Handle filesystem.attributes files normally + adds virtual attribute
- // "java.io.File" that is used in conversion routines FileUtil.toFile and
- // FileUtil.fromFile
- //defattr = new InnerAttrs(this, info, change, new ListImpl());
- // (Otherwise set attr to a special implementation, and use ListImpl for list.)
- attr = defattr;
- list = defattr;
-
- setRefreshTime(REFRESH_OFF);
- }
-
- /**
- * Constructor. Initializes new OpenOffice filesystem with FS capability.
- */
- public OpenOfficeDocFileSystem(FileSystemCapability cap) {
- this();
- setCapability(cap);
- }
-
- /**
- * Provides unique signature of an instance of the filesystem.
- * NOTE: The scope is not a part of the signature so it is impossible
- * to mount the same archive more than once.
- */
- public static String computeSystemName(File file) {
- return OpenOfficeDocFileSystem.class.getName() + "[" + file + "]";
- }
-
- // ----------- PROPERTIES --------------
-
- /**
- * Provides the 'human readable' name of the instance of the filesystem.
- */
- public String getDisplayName() {
- if (!isValid())
- return NbBundle.getMessage(OpenOfficeDocFileSystem.class,
- "LAB_invalid_file_system", ((docFile != null) ? docFile.toString() : ""));
- else
- return NbBundle.getMessage(OpenOfficeDocFileSystem.class,
- "LAB_valid_file_system", docFile.toString());
- }
-
- /**
- * Retrieves the 'document' property.
- */
- public File getDocument() {
- return docFile;
- }
-
- /**
- * Sets the 'document' property.
- */
- // Bean setter. Changing the OpenOffice document (or in general, the identity
- // of the root file object) should cause everything using this filesystem
- // to refresh. The system name must change and refreshRoot should be used
- // to ensure that everything is correctly updated.
-
- public synchronized void setDocument(File file)
- throws java.beans.PropertyVetoException, java.io.IOException {
- System.out.println("OpenOfficeDocFileSystem.setDocument: file=\"" +
- file.toString() + "\"");
-
- if (!file.exists() || !file.isFile()) {
- IOException ioe = new IOException(
- file.toString() + " does not exist");
- ErrorManager.getDefault().annotate(ioe, NbBundle.getMessage(
- OpenOfficeDocFileSystem.class, "EXC_root_dir_does_not_exist",
- file.toString()));
- throw ioe;
- }
-
- // update the document
- try {
- updateDocument();
- } catch (IOException ioe) {
- // cannot save all!!!
- System.out.println("*** OpenOfficeDocFileSystem.setDocument:");
- System.out.println(" file: " + ((docFile != null) ? docFile.toString() :
- ""));
- System.out.println(" exception: " + ioe.getMessage());
- }
-
- // new document type verification!!!
- closeDocument();
-
- // open a new document
- try {
- openDocument(file);
- firePropertyChange(PROP_ROOT, null, refreshRoot());
- setRefreshTime(REFRESH_TIME);
- } catch (IOException ioe) {
- // cannot open a new document!!!
- System.out.println("*** OpenOfficeDocFileSystem.setDocument:");
- System.out.println(" file: " + ((file != null) ? file.toString() : ""));
- System.out.println(" exception: " + ioe.getMessage());
- }
- }
-
- /**
- * Retrieves 'readonly' property.
- * NOTE: The portion of the mounted document available to the user is
- * always editable.
- */
- public boolean isReadOnly() {
- return false;
- }
-
- /**
- * Sets 'readonly' property.
- * NOTE: The portion of the mounted document available to the user is
- * always editable.
- */
- public void setReadOnly(boolean flag) {
- // sorry! it is not supported.
- }
-
- // ----------- SPECIAL CAPABILITIES --------------
-
- /**
- * Participates in the environment configuration.
- * This is how you can affect the classpath for execution, compilation, etc.
- */
- public void prepareEnvironment(FileSystem.Environment environment) {
- // BUG: the compiller cannot access files within the OpenOffice document.
- //environment.addClassPath(docFile.toString());
- }
-
- /* -----------------------------------------------------------
- * Affect the name and icon of files on this filesystem according to their
- * "status", e.g. version-control modification-commit state:
- /*
- private class StatusImpl implements Status {
- public Image annotateIcon(Image icon, int iconType, Set files) {
- // You may first modify it, e.g. by adding a check mark to the icon
- // if that makes sense for this file or group of files.
- return icon;
- }
- public String annotateName(String name, Set files) {
- // E.g. add some sort of suffix to the name if some of the
- // files are modified but not backed up or committed somehow:
- if (theseFilesAreModified(files))
- return NbBundle.getMessage(OpenOfficeDocFileSystem.class, "LBL_modified_files", name);
- else
- return name;
- }
- }
-
- private transient Status status;
-
- public Status getStatus() {
- if (status == null) {
- status = new StatusImpl();
- }
- return status;
- }
- // And use fireFileStatusChanged whenever you know something has changed.
- */
-
- /*
- // Filesystem-specific actions, such as version-control operations.
- // The actions should typically be CookieActions looking for DataObject
- // cookies, where the object's primary file is on this type of filesystem.
- public SystemAction[] getActions() {
- // ------>>>> UPDATE OPENOFFICE DOCUMENT <<<<------
- return new SystemAction[] {
- SystemAction.get(SomeAction.class),
- null, // separator
- SystemAction.get(SomeOtherAction.class)
- };
- }
- */
-
- /**
- * Notifies this filesystem that it has been removed from the repository.
- * Concrete filesystem implementations could perform clean-up here.
- * The default implementation does nothing.
- * <p>Note that this method is <em>advisory</em> and serves as an optimization
- * to avoid retaining resources for too long etc. Filesystems should maintain correct
- * semantics regardless of whether and when this method is called.
- */
- public void removeNotify() {
- setRefreshTime(REFRESH_OFF); // disable refresh
-
- // update the document
- try {
- updateDocument();
- } catch (IOException ioe) {
- // cannot save all!!!
- System.out.println("*** OpenOfficeDocFileSystem.removeNotify:");
- System.out.println(" exception: " + ioe.getMessage());
- }
-
- closeDocument();
- super.removeNotify();
- }
-
- /*
- * Opens (mounts) an OpenOffice document.
- */
- private void openDocument(File file)
- throws IOException, PropertyVetoException {
- synchronized (cache) {
- setSystemName(computeSystemName(file));
- docFile = file;
- zipFile = new ZipFile(docFile);
- cacheDocument(zipFile.entries(), editableStrategy);
- isModified = false;
- } // synchronized
- }
-
- /*
- * Closes the document and cleans up the cache.
- */
- private void closeDocument() {
- synchronized (cache) {
- // if a document mounted - close it
- if (docFile != null) {
- // close the document archive
- if (zipFile != null) {
- try {
- zipFile.close();
- } catch (IOException ioe) {
- // sorry! we can do nothing about it.
- }
- }
-
- zipFile = null;
- // clean up cache
- scanDocument(new CleanStrategy());
- docFile = null;
- isModified = false;
- }
- } // synchronized
- }
-
- /*
- * Creates a document cache.
- */
- private void cacheDocument(Enumeration entries, Strategy editables) {
- Entry cacheEntry;
- ZipEntry archEntry;
-
- synchronized (cache) {
- cache.clear();
- // root folder
- cacheEntry = new ReadWriteEntry(null);
- cache.put(cacheEntry.getName(), cacheEntry);
-
- // the rest of items
- while (entries.hasMoreElements()) {
- archEntry = (ZipEntry)entries.nextElement();
- cacheEntry = new Entry(archEntry);
-
- if (editables.evaluate(cacheEntry))
- cacheEntry = new ReadWriteEntry(archEntry);
-
- cache.put(cacheEntry.getName(), cacheEntry);
- }
- } // synchronized
- }
-
- /*
- * Updates the document.
- */
- private void updateDocument()
- throws IOException {
- if (docFile == null)
- return;
-
- synchronized (cache) {
- ModifiedStrategy modifiedStrategy = new ModifiedStrategy();
- scanDocument(modifiedStrategy);
-
- if (isModified || modifiedStrategy.isModified()) {
- File tmpFile = null;
-
- try {
- // create updated document
- tmpFile = File.createTempFile(
- TMP_FILE_PREF, TMP_FILE_SUFX, docFile.getParentFile());
- saveDocument(tmpFile);
- } catch (IOException ioe) {
- if (tmpFile != null)
- tmpFile.delete();
-
- throw ioe;
- }
-
- // close the document archive
- if (zipFile != null) {
- try {
- zipFile.close();
- } catch (IOException ioe) {
- }
- }
-
- zipFile = null;
- // create the document and backup
- File newFile = new File(docFile.getParentFile() + File.separator +
- "~" + docFile.getName());
-
- if (newFile.exists())
- newFile.delete(); // delete old backup
-
- docFile.renameTo(newFile);
- tmpFile.renameTo(docFile);
- // open the document archive
- zipFile = new ZipFile(docFile);
- }
-
- isModified = false;
- } // synchronized
- }
-
- /*
- * Saves the document in a new archive.
- */
- private void saveDocument(File file)
- throws IOException {
- synchronized (cache) {
- SaveStrategy saver = new SaveStrategy(file);
- scanDocument(saver);
- saver.close();
- } // synchronized
- }
-
- /*
- * Provides each individual entry in the cached document to an apraiser.
- */
- private void scanDocument(Strategy strategy) {
- synchronized (cache) {
- Iterator itr = cache.values().iterator();
-
- while (itr.hasNext()) {
- strategy.evaluate((Entry)itr.next());
- }
- } // synchronized
- }
-
- /*
- * Retrieves or creates a file.
- */
- private Entry getFileEntry(String name)
- throws IOException {
- Entry cEntry = null;
-
- synchronized (cache) {
- cEntry = (Entry)cache.get(name);
-
- if (cEntry == null) {
- // create a new file
- ZipEntry zEntry = new ZipEntry(name);
- zEntry.setTime(new Date().getTime());
- cEntry = new Entry(zEntry);
-
- if (!editableStrategy.evaluate(cEntry)) {
- throw new IOException(
- "cannot create/edit readonly file"); // I18N
- }
-
- cEntry = new ReadWriteEntry(zEntry);
- cache.put(cEntry.getName(), cEntry);
- isModified = true;
- }
- } // synchronized
-
- return cEntry;
- }
-
- /*
- * Retrieves or creates a folder.
- */
- private Entry getFolderEntry(String name)
- throws IOException {
- Entry cEntry = null;
-
- synchronized (cache) {
- cEntry = (Entry)cache.get(name);
-
- if (cEntry == null) {
- // create a new folder
- ZipEntry zEntry = new ZipEntry(name + SEPARATOR);
- zEntry.setMethod(ZipEntry.STORED);
- zEntry.setSize(0);
- CRC32 crc = new CRC32();
- zEntry.setCrc(crc.getValue());
- zEntry.setTime(new Date().getTime());
- cEntry = new Entry(zEntry);
-
- if (!editableStrategy.evaluate(cEntry)) {
- throw new IOException(
- "cannot create folder"); // I18N
- }
-
- cEntry = new ReadWriteEntry(zEntry);
- cEntry.getOutputStream(); // sets up modified flag
- cache.put(cEntry.getName(), cEntry);
- isModified = true;
- } else {
- if (!cEntry.isFolder())
- cEntry = null;
- }
- } // synchronized
-
- return cEntry;
- }
-
- /*
- * Converts the name to ZIP file name.
- * Removes the leading file separator if there is one.
- * This is WORKAROUND of the BUG in AbstractFileObject:
- * While AbstractFileObject reprecents the root of the filesystem it uses
- * the absolute path (the path starts with '/'). It is inconsistent with
- * the rest of the code.
- * WORKAROUND: we have to strip leading '/' if it is in the name.
- */
- private static String zipName(String name) {
- String zname = ((name.startsWith(File.separator)) ?
- name.substring(File.separator.length()) : name);
-
- switch (osType) {
- case OS_MACOS:
- zname = zname.replace(':', '/'); // ':' by '/'
- break;
-
- case OS_WINDOWS:
- zname = zname.replace((char)0x5c, '/'); // '\' by '/'
- break;
-
- default:
- break;
- }
-
- return zname;
- }
-
- // ----------- IMPLEMENTATIONS OF ABSTRACT FUNCTIONALITY ----------
-
- /* -----------------------------------------------------------
- * Information about files and operations on the contents which do
- * not affect the file's presence or name.
- */
- private class InfoImpl
- implements Info {
- public boolean folder(String name) {
- synchronized (cache) {
- String zname = zipName(name);
- Entry entry = (Entry)cache.get(zname);
-
- if (entry != null)
- return entry.isFolder();
-
- // logical zip file entry
- childrenStrategy.setParent(zname);
- scanDocument(childrenStrategy);
- return (childrenStrategy.countChildren() > 0);
- }
- }
-
- public Date lastModified(String name) {
- synchronized (cache) {
- Entry entry = (Entry)cache.get(zipName(name));
- return new Date((entry != null) ? entry.getTime() : 0L);
- }
- }
-
- public boolean readOnly(String name) {
- synchronized (cache) {
- Entry entry = (Entry)cache.get(zipName(name));
- return entry && entry.isReadOnly();
- }
- }
-
- public String mimeType(String name) {
- // Unless you have some special means of determining MIME type
- // (e.g. HTTP headers), ask IDE to use its normal heuristics:
- // the MIME resolver pool and then file extensions, or if nothing
- // matches, just content/unknown.
- return null;
- }
-
- public long size(String name) {
- synchronized (cache) {
- Entry entry = (Entry)cache.get(zipName(name));
- return (entry != null) ? entry.getSize() : 0;
- } // synchronized
- }
-
- public InputStream inputStream(String name)
- throws FileNotFoundException {
- synchronized (cache) {
- Entry entry = (Entry)cache.get(zipName(name));
- return (entry != null) ? entry.getInputStream() : null;
- } // synchronized
- }
-
- public OutputStream outputStream(String name)
- throws IOException {
- return getFileEntry(zipName(name)).getOutputStream();
- }
-
- // AbstractFileSystem handles locking the file to the rest of the IDE.
- // This only means that you should define how the file should be locked
- // to the outside world--perhaps it does not need to be.
- public void lock(String name)
- throws IOException {
- /*
- File file = getFile(name);
- if (file.exists() == true && file.canWrite() == false) {
- IOException ioe = new IOException("file " + file +
- " could not be locked");
- ErrorManager.getDefault().annotate(ioe, NbBundle.getMessage(
- OpenOfficeDocFileSystem.class, "EXC_file_could_not_be_locked",
- file.getName(), getDisplayName(), file.getPath()));
- throw ioe;
- }
- */
- }
-
- public void unlock(String name) {
- // Nothing special needed to unlock a file to the outside world.
- }
-
- public void markUnimportant(String name) {
- // Do nothing special. Version-control systems may use this to mark
- // certain files (e.g. *.class) as not needing to be stored in the VCS
- // while others (source files) are by default important.
- }
-
- }
-
- /* -----------------------------------------------------------
- * Operations that change the available files.
- */
- private class ChangeImpl
- implements Change {
- public void createFolder(String name)
- throws IOException {
- synchronized (cache) {
- String zname = zipName(name);
-
- if (cache.get(zname) != null) {
- throw new IOException(
- "cannot create new folder: " + name); // I18N
- }
-
- getFolderEntry(zname);
- } // synchronized
- }
-
- public void createData(String name)
- throws IOException {
- synchronized (cache) {
- String zname = zipName(name);
-
- if (cache.get(zname) != null) {
- throw new IOException(
- "cannot create new data: " + name); // I18N
- }
-
- OutputStream os = getFileEntry(zname).getOutputStream();
- os.close();
- } // synchronized
- }
-
- public void rename(String oldName, String newName)
- throws IOException {
- String oname = zipName(oldName);
- String nname = zipName(newName);
-
- if ((oname.length() == 0) || (nname.length() == 0)) {
- throw new IOException(
- "cannot move or rename the root folder"); // I18N
- }
-
- synchronized (cache) {
- if (cache.get(nname) != null) {
- throw new IOException(
- "target file/folder " + newName + " exists"); // I18N
- }
-
- Entry entry = (Entry)cache.get(oname);
-
- if (entry == null) {
- throw new IOException(
- "there is no such a file/folder " + oldName); // I18N
- }
-
- if (entry.isReadOnly()) {
- throw new IOException(
- "file/folder " + oldName + " is readonly"); // I18N
- }
-
- entry.rename(nname);
-
- if (!editableStrategy.evaluate(entry)) {
- entry.rename(oname);
- throw new IOException(
- "cannot create file/folder"); // I18N
- }
-
- cache.remove(oname);
- cache.put(entry.getName(), entry);
- } // synchronized
- }
-
- public void delete(String name)
- throws IOException {
- String zname = zipName(name);
-
- if (zname.length() == 0) {
- throw new IOException(
- "cannot delete the root folder"); // I18N
- }
-
- synchronized (cache) {
- Entry entry = (Entry)cache.remove(zname);
-
- if (entry != null) {
- // BUG: this is the design bug. Cache has to
- // remember that the entry was removed.
- isModified = true;
- entry.clean();
- }
- } // synchronized
- }
- }
-
- /* -----------------------------------------------------------
- * Operation which provides the directory structure.
- */
- private class ListImpl
- implements List {
- public String[] children(String name) {
- String[] children = null;
-
- synchronized (cache) {
- String zname = zipName(name);
- Entry entry = (Entry)cache.get(zname);
-
- if (entry != null) {
- // real zip file entry
- if (entry.isFolder()) {
- childrenStrategy.setParent(entry.getName());
- }
- } else {
- // logical zip file entry
- // (portion of the path of a real zip file entry)
- childrenStrategy.setParent(zname);
- }
-
- scanDocument(childrenStrategy);
- children = childrenStrategy.getChildren();
- } // synchronize
-
- return children;
- }
-
- }
-
- /** -----------------------------------------------------------
- * This class adds new virtual attribute "java.io.File".
- * Because of the fact that FileObjects of __Sample__FileSystem are convertible
- * to java.io.File by means of attributes. */
- /*private static class InnerAttrs extends DefaultAttributes {
- //static final long serialVersionUID = 1257351369229921993L;
- __Sample__FileSystem sfs;
- public InnerAttrs(__Sample__FileSystem sfs, AbstractFileSystem.Info info,
- AbstractFileSystem.Change change,AbstractFileSystem.List list ) {
- super(info, change, list);
- this.sfs = sfs;
- }
- public Object readAttribute(String name, String attrName) {
- if (attrName.equals("java.io.File")) // NOI18N
- return sfs.getFile(name);
-
- return super.readAttribute(name, attrName);
- }
- }*/
-
- /* -----------------------------------------------------------
- // Optional special implementations of copy and (cross-directory) move.
- private class TransferImpl implements Transfer {
-
- public boolean copy(String name, Transfer target, String targetName) throws IOException {
- // Only permit special implementation within single FS
- // (or you could implement it across filesystems if you wished):
- if (target != this) return false;
- // Specially copy the file in an efficient way, e.g. implement
- // a copy-on-write algorithm.
- return true;
- }
-
- public boolean move(String name, Transfer target, String targetName) throws IOException {
- // Only permit special implementation within single FS
- // (or you could implement it across filesystems if you wished):
- if (target != this) return false;
- // Specially move the file, e.g. retain rename information even
- // across directories in a version-control system.
- return true;
- }
-
- }
- */
-
- /* -----------------------------------------------------------
- * This interface hides an action will be performed on an entry.
- */
- private interface Strategy {
- boolean evaluate(Entry entry);
- }
-
- /* -----------------------------------------------------------
- * Recognizes editable (read-write) entires
- */
- private class EditableStrategy
- implements Strategy {
- private String scope;
-
- public EditableStrategy(String scope) {
- this.scope = scope;
- }
-
- public boolean evaluate(Entry entry) {
- // recognizes all entries in a subtree of the
- // 'scope' as editable entries
- return entry && entry.getName().startsWith(scope);
- }
- }
-
- /* -----------------------------------------------------------
- * Recognizes and accumulates immediate children of the parent.
- */
- private class ChildrenStrategy
- implements Strategy {
- private String parent;
- private Collection children = new HashSet();
-
- public void setParent(String name) {
- parent = (name.length() > 0) ? (name + SEPARATOR) : "";
-
- if (children == null)
- children = (java.util.List)new LinkedList();
-
- children.clear();
- }
-
- public boolean evaluate(Entry entry) {
- // do not accept "children" of a file
- // ignore "read only" part of the filesystem
- if (!entry.isReadOnly()) {
- // identify a child
- if ((entry.getName().length() > 0) &&
- (entry.getName().startsWith(parent))) {
- // identify an immediate child
- String child = entry.getName();
-
- if (parent.length() > 0) {
- child = entry.getName().substring(parent.length());
- }
-
- int idx = child.indexOf(SEPARATOR);
-
- if (idx > 0) // more path elements ahead
- child = child.substring(0, idx);
-
- return children.add(child);
- }
- }
-
- return false;
- }
-
- public int countChildren() {
- return children.size();
- }
-
- public String[] getChildren() {
- String[] chn = new String[children.size()];
- Iterator itr = children.iterator();
- int idx = 0;
-
- while (itr.hasNext()) {
- chn[idx++] = (String)itr.next();
- }
-
- return chn;
- }
- }
-
- /* -----------------------------------------------------------
- * Recognizes cache entries which have to be save into new archive.
- */
- private class ModifiedStrategy
- implements Strategy {
- private boolean modified;
-
- public boolean evaluate(Entry entry) {
- modified |= entry.isModified();
- return entry.isModified();
- }
-
- public boolean isModified() {
- return modified;
- }
- }
-
- /* -----------------------------------------------------------
- * Saves each entry in the filesystem cache.
- */
- private class SaveStrategy
- implements Strategy {
- ZipOutputStream docos;
- IOException ioexp;
-
- public SaveStrategy(File newdoc)
- throws IOException {
- docos = new ZipOutputStream(new FileOutputStream(newdoc));
- ioexp = null; // success by default
- }
-
- public boolean evaluate(Entry entry) {
- if (entry.getName().length() == 0)
- return false;
-
- try {
- entry.save(docos);
- } catch (IOException ioe) {
- if (ioexp == null)
- ioexp = ioe;
- }
-
- return true;
- }
-
- public void close()
- throws IOException {
- if (docos != null) {
- try {
- docos.close();
- } catch (IOException ioe) {
- ioexp = ioe;
- } finally {
- docos = null;
- }
-
- if (ioexp != null) {
- throw ioexp;
- }
- }
- }
- }
-
- /* -----------------------------------------------------------
- * Cleans each entiry in the filesystem cache.
- */
- private class CleanStrategy
- implements Strategy {
- public boolean evaluate(Entry entry) {
- try {
- entry.clean();
- } catch (java.lang.Exception exp) {
- // sorry! can do nothing about it.
- }
-
- return true;
- }
- }
-
- /* -----------------------------------------------------------
- * ReadOnly cache entry
- */
- private class Entry {
- private String name;
- private boolean folder;
- private long size;
- private long time;
- private File node; // data files only
-
- public Entry(ZipEntry entry) {
- if (entry != null) {
- name = entry.getName();
- folder = entry.isDirectory();
- size = entry.getSize();
- time = entry.getTime();
-
- // removes tail file separator from a folder name
- if (folder && name.endsWith(SEPARATOR)) {
- name = name.substring(
- 0, name.length() - SEPARATOR.length());
- }
- } else {
- // 'null' is special cace of root folder
- name = "";
- folder = true;
- size = 0;
- time = -1;
- }
- }
-
- public boolean isReadOnly() {
- return true;
- }
-
- public boolean isFolder() {
- return folder;
- }
-
- public boolean isModified() {
- return false;
- }
-
- public String getName() {
- return name;
- }
-
- public long getSize() {
- return size;
- }
-
- public long getTime() {
- // adjust last modified time to the java.io.File
- return (time >= 0) ? time : 0;
- }
-
- public InputStream getInputStream()
- throws FileNotFoundException {
- return !isFolder() ? new FileInputStream(getFile()) : null;
- }
-
- public OutputStream getOutputStream()
- throws IOException {
- return null;
- }
-
- public void rename(String name)
- throws IOException {
- // BUG: this is the design bug. Cache has to manage such kind
- // of operation in order to keep the data integrity.
- this.name = name;
- }
-
- public void save(ZipOutputStream arch)
- throws IOException {
- InputStream is = null;
- ZipEntry entry = new ZipEntry(
- getName() + ((isFolder()) ? SEPARATOR : ""));
-
- try {
- if (isFolder()) {
- // folder
- entry.setMethod(ZipEntry.STORED);
- entry.setSize(0);
- CRC32 crc = new CRC32();
- entry.setCrc(crc.getValue());
- entry.setTime(getTime());
- arch.putNextEntry(entry);
- } else {
- // file
- if (!isModified())
- entry.setTime(getTime());
- else
- entry.setTime(node.lastModified());
-
- arch.putNextEntry(entry);
- is = getInputStream();
- FileUtil.copy(is, arch);
- }
- } finally {
- // close streams
- if (is != null) {
- try {
- is.close();
- } catch (java.io.IOException ioe) {
- // sorry! can do nothing about it.
- }
- }
-
- if (arch != null)
- arch.closeEntry();
- }
- }
-
- public void clean()
- throws IOException {
- if (node != null)
- node.delete();
- }
-
- public String toString() {
- return (
- ((isReadOnly()) ? "RO " : "RW ") +
- ((isFolder()) ? "D" : "F") +
- " \"" + getName() + "\"");
- }
-
- /* package */ File getFile()
- throws FileNotFoundException {
- if (node == null) {
- try {
- node = File.createTempFile(TMP_FILE_PREF, TMP_FILE_SUFX);
- // copy the file from archive to the cache
- OutputStream nos = null;
- InputStream zis = null;
-
- try {
- ZipEntry entry = zipFile.getEntry(getName());
-
- if (entry != null) {
- // copy existing file to the cache
- zis = zipFile.getInputStream(entry);
- nos = new FileOutputStream(node);
- FileUtil.copy(zis, nos);
- }
- } finally {
- // close streams
- if (nos != null) {
- try {
- nos.close();
- } catch (java.io.IOException ioe) {
- }
- }
-
- if (zis != null) {
- try {
- zis.close();
- } catch (java.io.IOException ioe) {
- }
- }
- }
- } catch (java.lang.Exception exp) {
- // delete cache file
- if (node != null)
- node.delete();
-
- node = null;
- throw new FileNotFoundException(
- "cannot access file: " + getName()); // I18N
- }
- }
-
- return node;
- }
-
- }
-
- /* -----------------------------------------------------------
- * ReadWrite cache entry
- */
- private class ReadWriteEntry
- extends Entry {
- private boolean modified;
-
- // 'null' is special cace of root folder
- public ReadWriteEntry(ZipEntry entry) {
- super(entry);
- }
-
- public boolean isReadOnly() {
- return false;
- }
-
- public boolean isModified() {
- return modified;
- }
-
- public void rename(String name)
- throws IOException {
- modified = true;
- super.rename(name);
- }
-
- public OutputStream getOutputStream()
- throws IOException {
- modified = true;
- return !isFolder() ? new FileOutputStream(getFile()) : null;
- }
- }
-}
diff --git a/scripting/java/org/openoffice/netbeans/modules/office/filesystem/OpenOfficeDocFileSystemBeanInfo.java b/scripting/java/org/openoffice/netbeans/modules/office/filesystem/OpenOfficeDocFileSystemBeanInfo.java
deleted file mode 100644
index ad3d18e154db..000000000000
--- a/scripting/java/org/openoffice/netbeans/modules/office/filesystem/OpenOfficeDocFileSystemBeanInfo.java
+++ /dev/null
@@ -1,110 +0,0 @@
-/*
- * 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 .
- */
-
-package org.openoffice.netbeans.modules.office.filesystem;
-
-import java.awt.Image;
-import java.io.File;
-import java.beans.*;
-
-import org.openide.ErrorManager;
-import org.openide.filesystems.FileSystem;
-import org.openide.util.NbBundle;
-import org.openide.util.Utilities;
-
-/**
- * Description of the OpenOffice.org Document filesystem.
- */
-public class OpenOfficeDocFileSystemBeanInfo
- extends SimpleBeanInfo {
- private static String ICONLOCATION =
- "org/openoffice/netbeans/modules/office/resources";
- private static String COLORICON16NAME =
- ICONLOCATION + File.separator + "OpenOfficeDocFileSystemIcon.png";
- private static String COLORICON32NAME =
- ICONLOCATION + File.separator + "OpenOfficeDocFileSystemIcon32.png";
-
- /**
- * Retrieves an additional bean information.
- */
- public BeanInfo[] getAdditionalBeanInfo() {
- try {
- return new BeanInfo[] {
- Introspector.getBeanInfo(FileSystem.class)
- };
- } catch (IntrospectionException ie) {
- ErrorManager.getDefault().notify(ie);
- return null;
- }
- }
- /*
- // If you have a visual dialog to customize configuration of the
- // filesystem:
- public BeanDescriptor getBeanDescriptor()
- {
- return new BeanDescriptor(OpenOfficeDocFileSystem.class,
- OpenOfficeDocFileSystemCustomizer.class);
- }
- */
- /**
- * Retrieves bean property descriptors.
- */
- public PropertyDescriptor[] getPropertyDescriptors() {
- try {
- // Included only to make it a writable property (it is read-only
- // in FileSystem):
- PropertyDescriptor readOnly = new PropertyDescriptor(
- "readOnly", OpenOfficeDocFileSystem.class);
- readOnly.setDisplayName(NbBundle.getMessage(
- OpenOfficeDocFileSystemBeanInfo.class, "PROP_readOnly"));
- readOnly.setShortDescription(NbBundle.getMessage(
- OpenOfficeDocFileSystemBeanInfo.class, "HINT_readOnly"));
-
- // This could be whatever properties you use to configure the
- // filesystem:
- PropertyDescriptor document = new PropertyDescriptor(
- "Document", OpenOfficeDocFileSystem.class);
- document.setDisplayName(NbBundle.getMessage(
- OpenOfficeDocFileSystemBeanInfo.class, "PROP_document"));
- document.setShortDescription(NbBundle.getMessage(
- OpenOfficeDocFileSystemBeanInfo.class, "HINT_document"));
- // Request to the property editor that it be permitted only to
- // choose directories:
- document.setValue("directories", Boolean.FALSE); // NOI18N
- document.setValue("files", Boolean.TRUE); // NOI18N
-
- return new PropertyDescriptor[] {readOnly, document};
- } catch (IntrospectionException ie) {
- ErrorManager.getDefault().notify(ie);
- return null;
- }
- }
-
- /**
- * Retrieves an icon by the icon type.
- */
- public Image getIcon(int type) {
- if ((type == BeanInfo.ICON_COLOR_16x16) ||
- (type == BeanInfo.ICON_MONO_16x16)) {
- return Utilities.loadImage(COLORICON16NAME);
- } else {
- return Utilities.loadImage(COLORICON32NAME);
- }
- }
-
-}
diff --git a/scripting/java/org/openoffice/netbeans/modules/office/loader/Bundle.properties b/scripting/java/org/openoffice/netbeans/modules/office/loader/Bundle.properties
deleted file mode 100644
index 9bc1619697f1..000000000000
--- a/scripting/java/org/openoffice/netbeans/modules/office/loader/Bundle.properties
+++ /dev/null
@@ -1,30 +0,0 @@
-#
-# 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 .
-#
-# Datasystems API
-#PROP_myProp=<name of my property>
-#HINT_myProp=<description of my property>
-#LBL_DataNode_exec_sheet=Execution
-#HINT_DataNode_exec_sheet=Properties pertaining to compiling, running, and debugging.
-# x-no-translate
-LBL_loaderName=<display name of the data loader>
-# Datasystems API
-#PROP_myProp=<name of my property>
-#HINT_myProp=<description of my property>
-#LBL_DataNode_exec_sheet=Execution
-#HINT_DataNode_exec_sheet=Properties pertaining to compiling, running, and debugging.
-LBL_loaderName=<display name of the data loader>
diff --git a/scripting/java/org/openoffice/netbeans/modules/office/loader/OfficeDocumentDataLoader.java b/scripting/java/org/openoffice/netbeans/modules/office/loader/OfficeDocumentDataLoader.java
deleted file mode 100644
index 268c6054b2bb..000000000000
--- a/scripting/java/org/openoffice/netbeans/modules/office/loader/OfficeDocumentDataLoader.java
+++ /dev/null
@@ -1,99 +0,0 @@
-/*
- * 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 .
- */
-
-package org.openoffice.netbeans.modules.office.loader;
-
-import java.io.IOException;
-import java.io.File;
-
-import org.openide.actions.*;
-import org.openide.filesystems.*;
-import org.openide.loaders.*;
-import org.openide.util.NbBundle;
-import org.openide.util.actions.SystemAction;
-
-import org.openoffice.netbeans.modules.office.actions.MountDocumentAction;
-
-/** Recognizes single files in the Repository as being of a certain type.
- */
-public class OfficeDocumentDataLoader extends UniFileLoader {
-
- public OfficeDocumentDataLoader() {
- this("org.openoffice.netbeans.modules.office.loader.OfficeDocumentDataObject");
- }
-
- // Can be useful for subclasses:
- protected OfficeDocumentDataLoader(String recognizedObjectClass) {
- super(recognizedObjectClass);
- }
-
- protected String defaultDisplayName() {
- return "Office Document";
- }
-
- protected void initialize() {
- super.initialize();
-
- ExtensionList extensions = new ExtensionList();
- extensions.addExtension("sxw");
- extensions.addExtension("sxc");
- extensions.addExtension("sxd");
- extensions.addExtension("sxi");
- setExtensions(extensions);
- }
-
- protected FileObject findPrimaryFile(FileObject fo) {
- ExtensionList extensions = getExtensions();
-
- if (!extensions.isRegistered(fo))
- return null;
-
- File document = FileUtil.toFile(fo);
- JarFileSystem jarFs = new JarFileSystem();
-
- try {
- jarFs.setJarFile(document);
- } catch (IOException e) {
- return null;
- } catch (Exception e) {
- return null;
- }
-
- return fo;
- }
-
- protected SystemAction[] defaultActions() {
- return new SystemAction[] {
- SystemAction.get(OpenAction.class),
- null,
- SystemAction.get(CutAction.class),
- SystemAction.get(CopyAction.class),
- SystemAction.get(PasteAction.class),
- null,
- SystemAction.get(DeleteAction.class),
- SystemAction.get(RenameAction.class),
- null,
- SystemAction.get(PropertiesAction.class),
- };
- }
-
- protected MultiDataObject createMultiObject(FileObject primaryFile) throws
- DataObjectExistsException, IOException {
- return new OfficeDocumentDataObject(primaryFile, this);
- }
-}
diff --git a/scripting/java/org/openoffice/netbeans/modules/office/loader/OfficeDocumentDataLoaderBeanInfo.java b/scripting/java/org/openoffice/netbeans/modules/office/loader/OfficeDocumentDataLoaderBeanInfo.java
deleted file mode 100644
index 1f036b155348..000000000000
--- a/scripting/java/org/openoffice/netbeans/modules/office/loader/OfficeDocumentDataLoaderBeanInfo.java
+++ /dev/null
@@ -1,63 +0,0 @@
-/*
- * 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 .
- */
-
-package org.openoffice.netbeans.modules.office.loader;
-
-import java.awt.Image;
-import java.beans.*;
-
-import org.openide.ErrorManager;
-import org.openide.util.NbBundle;
-import org.openide.util.Utilities;
-
-public class OfficeDocumentDataLoaderBeanInfo extends SimpleBeanInfo {
-
- // If you have additional properties:
- /*
- public PropertyDescriptor[] getPropertyDescriptors() {
- try {
- PropertyDescriptor myProp = new PropertyDescriptor("myProp", OfficeDocumentDataLoader.class);
- myProp.setDisplayName(NbBundle.getMessage(OfficeDocumentDataLoaderBeanInfo.class, "PROP_myProp"));
- myProp.setShortDescription(NbBundle.getMessage(OfficeDocumentDataLoaderBeanInfo.class, "HINT_myProp"));
- return new PropertyDescriptor[] {myProp};
- } catch (IntrospectionException ie) {
- ErrorManager.getDefault().notify(ie);
- return null;
- }
- }
- */
-
- public BeanInfo[] getAdditionalBeanInfo() {
- try {
- // I.e. MultiFileLoader.class or UniFileLoader.class.
- return new BeanInfo[] {Introspector.getBeanInfo(OfficeDocumentDataLoader.class.getSuperclass())};
- } catch (IntrospectionException ie) {
- ErrorManager.getDefault().notify(ie);
- return null;
- }
- }
-
- public Image getIcon(int type) {
- if (type == BeanInfo.ICON_COLOR_16x16 || type == BeanInfo.ICON_MONO_16x16) {
- return Utilities.loadImage("org/openoffice/netbeans/modules/office/resources/OfficeIcon.gif");
- } else {
- return Utilities.loadImage("org/openoffice/netbeans/modules/office/resources/OfficeIcon32.gif");
- }
- }
-
-}
diff --git a/scripting/java/org/openoffice/netbeans/modules/office/loader/OfficeDocumentDataNode.java b/scripting/java/org/openoffice/netbeans/modules/office/loader/OfficeDocumentDataNode.java
deleted file mode 100644
index 32d438f1f3c2..000000000000
--- a/scripting/java/org/openoffice/netbeans/modules/office/loader/OfficeDocumentDataNode.java
+++ /dev/null
@@ -1,113 +0,0 @@
-/*
- * 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 .
- */
-
-package org.openoffice.netbeans.modules.office.loader;
-
-import java.awt.datatransfer.Transferable;
-import java.util.List;
-import java.io.*;
-
-import org.openide.loaders.*;
-import org.openide.nodes.*;
-import org.openide.util.NbBundle;
-import org.openide.filesystems.*;
-
-import org.openoffice.netbeans.modules.office.actions.OfficeDocumentCookie;
-import org.openoffice.netbeans.modules.office.nodes.OfficeDocumentChildren;
-
-/** A node to represent this object.
- */
-public class OfficeDocumentDataNode extends DataNode {
-
- public OfficeDocumentDataNode(OfficeDocumentDataObject obj) {
- this(obj, new OfficeDocumentChildren((OfficeDocumentCookie)
- obj.getCookie(OfficeDocumentCookie.class)));
- }
-
- public OfficeDocumentDataNode(OfficeDocumentDataObject obj, Children ch) {
- super(obj, ch);
- setIconBase("/org/openoffice/netbeans/modules/office/resources/OfficeIcon");
- }
-
- protected OfficeDocumentDataObject getOfficeDocumentDataObject() {
- return (OfficeDocumentDataObject)getDataObject();
- }
-
- // Allow for pasting of Script Parcels to Office Documents
- protected void createPasteTypes(Transferable t, List ls) {
- Node[] copies = NodeTransfer.nodes(t, NodeTransfer.COPY);
-
- if (copies != null) {
- for (int i = 0; i < copies.length; i++) {
- if (copies[i] instanceof ParcelDataNode) {
- File source = FileUtil.toFile(((ParcelDataNode)
- copies[i]).getDataObject().getPrimaryFile());
- File target = FileUtil.toFile(getDataObject().getPrimaryFile());
-
- if (source.exists() && source.canRead() &&
- target.exists() && target.canWrite()) {
- ls.add(new ParcelDataNode.ParcelPasteType((ParcelDataNode)copies[i], target,
- false));
- }
- }
- }
- }
-
- Node[] moves = NodeTransfer.nodes(t, NodeTransfer.MOVE);
-
- if (moves != null) {
- for (int i = 0; i < moves.length; i++) {
- if (moves[i] instanceof ParcelDataNode) {
- File source = FileUtil.toFile(((ParcelDataNode)
- moves[i]).getDataObject().getPrimaryFile());
- File target = FileUtil.toFile(getDataObject().getPrimaryFile());
-
- if (source.exists() && source.canRead() &&
- target.exists() && target.canWrite()) {
- ls.add(new ParcelDataNode.ParcelPasteType((ParcelDataNode)moves[i], target,
- true));
- }
- }
- }
- }
-
- // Also try superclass, but give it lower priority:
- super.createPasteTypes(t, ls);
- }
-
- /* Example of adding Executor / Debugger / Arguments to node:
- protected Sheet createSheet() {
- Sheet sheet = super.createSheet();
- Sheet.Set set = sheet.get(ExecSupport.PROP_EXECUTION);
- if (set == null) {
- set = new Sheet.Set();
- set.setName(ExecSupport.PROP_EXECUTION);
- set.setDisplayName(NbBundle.getMessage(OfficeDocumentDataNode.class, "LBL_DataNode_exec_sheet"));
- set.setShortDescription(NbBundle.getMessage(OfficeDocumentDataNode.class, "HINT_DataNode_exec_sheet"));
- }
- ((ExecSupport)getCookie(ExecSupport.class)).addProperties(set);
- // Maybe:
- ((CompilerSupport)getCookie(CompilerSupport.class)).addProperties(set);
- sheet.put(set);
- return sheet;
- }
- */
-
- // Don't use getDefaultAction(); just make that first in the data loader's getActions list
-
-}
diff --git a/scripting/java/org/openoffice/netbeans/modules/office/loader/OfficeDocumentDataObject.java b/scripting/java/org/openoffice/netbeans/modules/office/loader/OfficeDocumentDataObject.java
deleted file mode 100644
index 742b7d882968..000000000000
--- a/scripting/java/org/openoffice/netbeans/modules/office/loader/OfficeDocumentDataObject.java
+++ /dev/null
@@ -1,50 +0,0 @@
-/*
- * 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 .
- */
-
-package org.openoffice.netbeans.modules.office.loader;
-
-import org.openide.actions.*;
-import org.openide.cookies.*;
-import org.openide.filesystems.*;
-import org.openide.loaders.*;
-import org.openide.nodes.*;
-import org.openide.util.HelpCtx;
-
-import org.openoffice.netbeans.modules.office.actions.*;
-
-public class OfficeDocumentDataObject extends MultiDataObject {
-
- public OfficeDocumentDataObject(FileObject pf,
- OfficeDocumentDataLoader loader) throws DataObjectExistsException {
- super(pf, loader);
- init();
- }
-
- private void init() {
- CookieSet cookies = getCookieSet();
- cookies.add(new OfficeDocumentSupport(this));
- }
-
- public HelpCtx getHelpCtx() {
- return HelpCtx.DEFAULT_HELP;
- }
-
- protected Node createNodeDelegate() {
- return new OfficeDocumentDataNode(this);
- }
-}
diff --git a/scripting/java/org/openoffice/netbeans/modules/office/loader/ParcelContentsFolder.java b/scripting/java/org/openoffice/netbeans/modules/office/loader/ParcelContentsFolder.java
deleted file mode 100644
index 7ac5ce14069a..000000000000
--- a/scripting/java/org/openoffice/netbeans/modules/office/loader/ParcelContentsFolder.java
+++ /dev/null
@@ -1,129 +0,0 @@
-/*
- * 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 .
- */
-
-package org.openoffice.netbeans.modules.office.loader;
-
-import java.io.IOException;
-
-import org.openide.TopManager;
-import org.openide.NotifyDescriptor;
-import org.openide.ErrorManager;
-
-import org.openide.filesystems.FileObject;
-import org.openide.filesystems.FileLock;
-import org.openide.filesystems.FileUtil;
-import org.openide.filesystems.FileSystem;
-import org.openide.filesystems.Repository;
-
-import org.openide.loaders.DataObject;
-import org.openide.loaders.DataFolder;
-import org.openide.loaders.DataObjectExistsException;
-
-import org.openide.nodes.Node;
-import org.openide.util.datatransfer.NewType;
-
-import org.openoffice.netbeans.modules.office.actions.ParcelFolderCookie;
-import org.openoffice.netbeans.modules.office.utils.PackageRemover;
-
-public class ParcelContentsFolder extends DataFolder {
- public ParcelContentsFolder(FileObject pf,
- ParcelContentsFolderDataLoader loader)
- throws DataObjectExistsException {
- super(pf, loader);
- }
-
- public Node createNodeDelegate() {
- return new DataFolder.FolderNode() {
- public NewType[] getNewTypes() {
- NewType[] newtypes = new NewType[1];
- newtypes[0] = new NewType() {
- public String getName() {
- return "New Script";
- }
-
- public void create() {
- DataFolder contents = (DataFolder)getDataObject();
- ParcelFolderCookie cookie =
- (ParcelFolderCookie)contents.getFolder().
- getCookie(ParcelFolderCookie.class);
-
- String language = cookie.getLanguage();
- ParcelContentsFolder.createEmptyScript(contents,
- language);
- }
- };
- return newtypes;
- }
- };
- }
-
- public static void createEmptyScript(DataFolder parent, String language) {
- String sourceFile = "Templates/OfficeScripting/EmptyScript/Empty";
-
- if (language.equalsIgnoreCase("java")) {
- sourceFile += ".java";
- }
- else if (language.equalsIgnoreCase("beanshell")) {
- sourceFile += ".bsh";
- } else {
- NotifyDescriptor d = new NotifyDescriptor.Message(
- "Language not defined for this Parcel Folder");
- TopManager.getDefault().notify(d);
- return;
- }
-
- FileSystem fs = Repository.getDefault().getDefaultFileSystem();
- DataObject result = null;
-
- try {
- DataObject dObj = DataObject.find(fs.findResource(sourceFile));
- result = dObj.createFromTemplate(parent);
- } catch (IOException ioe) {
- ErrorManager.getDefault().notify(ioe);
- }
-
- FileObject fo = result.getPrimaryFile();
-
- if (fo.getExt().equals("java")) {
- FileLock lock = null;
-
- try {
- PackageRemover.removeDeclaration(FileUtil.toFile(fo));
-
- // IssueZilla 11986 - rename the FileObject
- // so the JavaNode is resynchronized
- lock = fo.lock();
-
- if (lock != null) {
- fo.rename(lock, fo.getName(), fo.getExt());
- }
- } catch (IOException ioe) {
- NotifyDescriptor d = new NotifyDescriptor.Message(
- "Error removing package declaration from file: " +
- fo.getNameExt() +
- ". You should manually remove this declaration " +
- "before building the Parcel Recipe");
- TopManager.getDefault().notify(d);
- } finally {
- if (lock != null) {
- lock.releaseLock();
- }
- }
- }
- }
-}
diff --git a/scripting/java/org/openoffice/netbeans/modules/office/loader/ParcelContentsFolderDataLoader.java b/scripting/java/org/openoffice/netbeans/modules/office/loader/ParcelContentsFolderDataLoader.java
deleted file mode 100644
index 77a0e490b192..000000000000
--- a/scripting/java/org/openoffice/netbeans/modules/office/loader/ParcelContentsFolderDataLoader.java
+++ /dev/null
@@ -1,70 +0,0 @@
-/*
- * 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 .
- */
-
-package org.openoffice.netbeans.modules.office.loader;
-
-import org.openide.loaders.*;
-import org.openide.filesystems.FileObject;
-import org.openide.actions.*;
-import org.openide.util.NbBundle;
-import org.openide.util.actions.SystemAction;
-
-import org.openoffice.idesupport.zip.ParcelZipper;
-
-public class ParcelContentsFolderDataLoader extends UniFileLoader {
-
- public ParcelContentsFolderDataLoader() {
- this("org.openide.loaders.DataFolder");
- }
-
- protected ParcelContentsFolderDataLoader(String recognizedObjectClass) {
- super(recognizedObjectClass);
- }
-
- protected String defaultDisplayName() {
- return "Office Script Parcel Contents";
- }
-
- protected FileObject findPrimaryFile(FileObject fo) {
- if (!fo.isFolder() ||
- !fo.getName().equals(ParcelZipper.CONTENTS_DIRNAME) ||
- fo.getFileObject(ParcelZipper.PARCEL_DESCRIPTOR_XML) == null)
- return null;
-
- return fo;
- }
-
- protected SystemAction[] defaultActions() {
- return new SystemAction[] {
- SystemAction.get(PasteAction.class),
- SystemAction.get(NewAction.class),
- // null,
- // SystemAction.get(PropertiesAction.class),
- };
- }
-
- protected MultiDataObject createMultiObject(FileObject primaryFile)
- throws DataObjectExistsException {
- return new ParcelContentsFolder(primaryFile, this);
- }
-
- protected MultiDataObject.Entry createPrimaryEntry(MultiDataObject obj,
- FileObject primaryFile) {
- return new FileEntry.Folder(obj, primaryFile);
- }
-}
diff --git a/scripting/java/org/openoffice/netbeans/modules/office/loader/ParcelContentsFolderDataLoaderBeanInfo.java b/scripting/java/org/openoffice/netbeans/modules/office/loader/ParcelContentsFolderDataLoaderBeanInfo.java
deleted file mode 100644
index b5c925973199..000000000000
--- a/scripting/java/org/openoffice/netbeans/modules/office/loader/ParcelContentsFolderDataLoaderBeanInfo.java
+++ /dev/null
@@ -1,65 +0,0 @@
-/*
- * 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 .
- */
-
-package org.openoffice.netbeans.modules.office.loader;
-
-import java.awt.Image;
-import java.beans.*;
-
-import org.openide.ErrorManager;
-import org.openide.util.NbBundle;
-import org.openide.util.Utilities;
-
-/** Description of {@link ParcelFolderDataLoader}.
- */
-public class ParcelContentsFolderDataLoaderBeanInfo extends SimpleBeanInfo {
-
- // If you have additional properties:
- /*
- public PropertyDescriptor[] getPropertyDescriptors() {
- try {
- PropertyDescriptor myProp = new PropertyDescriptor("myProp", ParcelFolderDataLoader.class);
- myProp.setDisplayName(NbBundle.getMessage(ParcelFolderDataLoaderBeanInfo.class, "PROP_myProp"));
- myProp.setShortDescription(NbBundle.getMessage(ParcelFolderDataLoaderBeanInfo.class, "HINT_myProp"));
- return new PropertyDescriptor[] {myProp};
- } catch (IntrospectionException ie) {
- ErrorManager.getDefault().notify(ie);
- return null;
- }
- }
- */
-
- public BeanInfo[] getAdditionalBeanInfo() {
- try {
- // I.e. MultiFileLoader.class or UniFileLoader.class.
- return new BeanInfo[] {Introspector.getBeanInfo(ParcelContentsFolderDataLoader.class.getSuperclass())};
- } catch (IntrospectionException ie) {
- ErrorManager.getDefault().notify(ie);
- return null;
- }
- }
-
- public Image getIcon(int type) {
- if (type == BeanInfo.ICON_COLOR_16x16 || type == BeanInfo.ICON_MONO_16x16) {
- return Utilities.loadImage("org/openoffice/netbeans/modules/office/loaders/ParcelFolderDataIcon.gif");
- } else {
- return Utilities.loadImage("org/openoffice/netbeans/modules/office/loaders/ParcelFolderDataIcon32.gif");
- }
- }
-
-}
diff --git a/scripting/java/org/openoffice/netbeans/modules/office/loader/ParcelDataLoader.java b/scripting/java/org/openoffice/netbeans/modules/office/loader/ParcelDataLoader.java
deleted file mode 100644
index 86e86742c43e..000000000000
--- a/scripting/java/org/openoffice/netbeans/modules/office/loader/ParcelDataLoader.java
+++ /dev/null
@@ -1,76 +0,0 @@
-/*
- * 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 .
- */
-
-package org.openoffice.netbeans.modules.office.loader;
-
-import java.io.IOException;
-import java.io.File;
-
-import org.openide.actions.*;
-import org.openide.filesystems.*;
-import org.openide.loaders.*;
-import org.openide.util.NbBundle;
-import org.openide.util.actions.SystemAction;
-
-import org.openoffice.netbeans.modules.office.actions.*;
-import org.openoffice.idesupport.zip.ParcelZipper;
-
-/** Recognizes single files in the Repository as being of a certain type.
- */
-public class ParcelDataLoader extends UniFileLoader {
-
- public ParcelDataLoader() {
- this("org.openoffice.netbeans.modules.office.loader.ParcelDataObject");
- }
-
- // Can be useful for subclasses:
- protected ParcelDataLoader(String recognizedObjectClass) {
- super(recognizedObjectClass);
- }
-
- protected String defaultDisplayName() {
- return "Office Script Parcel";
- }
-
- protected void initialize() {
- super.initialize();
-
- ExtensionList extensions = new ExtensionList();
- extensions.addExtension(ParcelZipper.PARCEL_EXTENSION);
- setExtensions(extensions);
- }
-
- protected SystemAction[] defaultActions() {
- return new SystemAction[] {
- SystemAction.get(DeployParcelAction.class),
- null,
- SystemAction.get(CutAction.class),
- SystemAction.get(CopyAction.class),
- null,
- SystemAction.get(DeleteAction.class),
- SystemAction.get(RenameAction.class),
- null,
- SystemAction.get(PropertiesAction.class),
- };
- }
-
- protected MultiDataObject createMultiObject(FileObject primaryFile) throws
- DataObjectExistsException, IOException {
- return new ParcelDataObject(primaryFile, this);
- }
-}
diff --git a/scripting/java/org/openoffice/netbeans/modules/office/loader/ParcelDataLoaderBeanInfo.java b/scripting/java/org/openoffice/netbeans/modules/office/loader/ParcelDataLoaderBeanInfo.java
deleted file mode 100644
index 68c0374a55e9..000000000000
--- a/scripting/java/org/openoffice/netbeans/modules/office/loader/ParcelDataLoaderBeanInfo.java
+++ /dev/null
@@ -1,65 +0,0 @@
-/*
- * 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 .
- */
-
-package org.openoffice.netbeans.modules.office.loader;
-
-import java.awt.Image;
-import java.beans.*;
-
-import org.openide.ErrorManager;
-import org.openide.util.NbBundle;
-import org.openide.util.Utilities;
-
-/** Description of {@link ParcelDataLoader}.
- */
-public class ParcelDataLoaderBeanInfo extends SimpleBeanInfo {
-
- // If you have additional properties:
- /*
- public PropertyDescriptor[] getPropertyDescriptors() {
- try {
- PropertyDescriptor myProp = new PropertyDescriptor("myProp", ParcelDataLoader.class);
- myProp.setDisplayName(NbBundle.getMessage(ParcelDataLoaderBeanInfo.class, "PROP_myProp"));
- myProp.setShortDescription(NbBundle.getMessage(ParcelDataLoaderBeanInfo.class, "HINT_myProp"));
- return new PropertyDescriptor[] {myProp};
- } catch (IntrospectionException ie) {
- ErrorManager.getDefault().notify(ie);
- return null;
- }
- }
- */
-
- public BeanInfo[] getAdditionalBeanInfo() {
- try {
- // I.e. MultiFileLoader.class or UniFileLoader.class.
- return new BeanInfo[] {Introspector.getBeanInfo(ParcelDataLoader.class.getSuperclass())};
- } catch (IntrospectionException ie) {
- ErrorManager.getDefault().notify(ie);
- return null;
- }
- }
-
- public Image getIcon(int type) {
- if (type == BeanInfo.ICON_COLOR_16x16 || type == BeanInfo.ICON_MONO_16x16) {
- return Utilities.loadImage("org/openoffice/netbeans/modules/office/loaders/ParcelDataIcon.gif");
- } else {
- return Utilities.loadImage("org/openoffice/netbeans/modules/office/loaders/ParcelDataIcon32.gif");
- }
- }
-
-}
diff --git a/scripting/java/org/openoffice/netbeans/modules/office/loader/ParcelDataNode.java b/scripting/java/org/openoffice/netbeans/modules/office/loader/ParcelDataNode.java
deleted file mode 100644
index cb51b982e7c4..000000000000
--- a/scripting/java/org/openoffice/netbeans/modules/office/loader/ParcelDataNode.java
+++ /dev/null
@@ -1,103 +0,0 @@
-/*
- * 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 .
- */
-
-package org.openoffice.netbeans.modules.office.loader;
-
-import java.io.*;
-import java.awt.datatransfer.Transferable;
-import java.util.zip.*;
-
-import org.openide.loaders.*;
-import org.openide.nodes.*;
-import org.openide.filesystems.FileObject;
-import org.openide.util.NbBundle;
-import org.openide.util.datatransfer.*;
-import org.openide.ErrorManager;
-import org.openide.windows.OutputWriter;
-
-import org.openoffice.netbeans.modules.office.actions.ParcelCookie;
-
-/** A node to represent this object.
- */
-public class ParcelDataNode extends DataNode {
-
- public ParcelDataNode(ParcelDataObject obj) {
- this(obj, Children.LEAF);
- }
-
- public ParcelDataNode(ParcelDataObject obj, Children ch) {
- super(obj, ch);
- setIconBase("/org/openoffice/netbeans/modules/office/resources/ParcelIcon");
- }
-
- protected ParcelDataObject getParcelDataObject() {
- return (ParcelDataObject)getDataObject();
- }
-
- public static class ParcelPasteType extends PasteType {
- ParcelDataNode sourceParcel = null;
- File targetDocument = null;
- boolean isCut = false;
-
- public ParcelPasteType(ParcelDataNode sourceParcel,
- File targetDocument, boolean isCut) {
- this.sourceParcel = sourceParcel;
- this.targetDocument = targetDocument;
- this.isCut = isCut;
- }
-
- public Transferable paste() {
- ParcelCookie parcelCookie =
- (ParcelCookie)sourceParcel.getCookie(ParcelCookie.class);
- parcelCookie.deploy(targetDocument);
-
- if (isCut) {
- FileObject fo = sourceParcel.getDataObject().getPrimaryFile();
-
- try {
- fo.delete();
- } catch (IOException ioe) {}
-
- return ExTransferable.EMPTY;
- } else {
- return null;
- }
- }
- }
-
- /* Example of adding Executor / Debugger / Arguments to node:
- protected Sheet createSheet() {
- Sheet sheet = super.createSheet();
- Sheet.Set set = sheet.get(ExecSupport.PROP_EXECUTION);
- if (set == null) {
- set = new Sheet.Set();
- set.setName(ExecSupport.PROP_EXECUTION);
- set.setDisplayName(NbBundle.getMessage(ParcelDataNode.class, "LBL_DataNode_exec_sheet"));
- set.setShortDescription(NbBundle.getMessage(ParcelDataNode.class, "HINT_DataNode_exec_sheet"));
- }
- ((ExecSupport)getCookie(ExecSupport.class)).addProperties(set);
- // Maybe:
- ((CompilerSupport)getCookie(CompilerSupport.class)).addProperties(set);
- sheet.put(set);
- return sheet;
- }
- */
-
- // Don't use getDefaultAction(); just make that first in the data loader's getActions list
-
-}
diff --git a/scripting/java/org/openoffice/netbeans/modules/office/loader/ParcelDataObject.java b/scripting/java/org/openoffice/netbeans/modules/office/loader/ParcelDataObject.java
deleted file mode 100644
index 0c9cf1720ca3..000000000000
--- a/scripting/java/org/openoffice/netbeans/modules/office/loader/ParcelDataObject.java
+++ /dev/null
@@ -1,67 +0,0 @@
-/*
- * 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 .
- */
-
-package org.openoffice.netbeans.modules.office.loader;
-
-import org.openide.actions.*;
-import org.openide.cookies.*;
-import org.openide.filesystems.FileObject;
-import org.openide.loaders.*;
-import org.openide.nodes.*;
-import org.openide.util.HelpCtx;
-
-import org.openoffice.netbeans.modules.office.actions.*;
-
-/** Represents a Parcel object in the Repository.
- */
-public class ParcelDataObject extends MultiDataObject {
-
- public ParcelDataObject(FileObject pf,
- ParcelDataLoader loader) throws DataObjectExistsException {
- super(pf, loader);
- init();
- }
-
- private void init() {
- CookieSet cookies = getCookieSet();
- cookies.add(new ParcelSupport(getPrimaryFile()));
- }
-
- public HelpCtx getHelpCtx() {
- return HelpCtx.DEFAULT_HELP;
- // If you add context help, change to:
- // return new HelpCtx(ParcelDataObject.class);
- }
-
- protected Node createNodeDelegate() {
- return new ParcelDataNode(this);
- }
-
- /* If you made an Editor Support you will want to add these methods:
-
- final void addSaveCookie(SaveCookie save) {
- getCookieSet().add(save);
- }
-
- final void removeSaveCookie(SaveCookie save) {
- getCookieSet().remove(save);
- }
-
- */
-
-}
diff --git a/scripting/java/org/openoffice/netbeans/modules/office/loader/ParcelDescriptorDataLoader.java b/scripting/java/org/openoffice/netbeans/modules/office/loader/ParcelDescriptorDataLoader.java
deleted file mode 100644
index 58b94c91031c..000000000000
--- a/scripting/java/org/openoffice/netbeans/modules/office/loader/ParcelDescriptorDataLoader.java
+++ /dev/null
@@ -1,73 +0,0 @@
-/*
- * 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 .
- */
-
-package org.openoffice.netbeans.modules.office.loader;
-
-import java.io.IOException;
-
-import org.openide.actions.*;
-import org.openide.filesystems.*;
-import org.openide.loaders.*;
-import org.openide.util.NbBundle;
-import org.openide.util.actions.SystemAction;
-
-import org.openoffice.idesupport.OfficeDocument;
-
-/** Recognizes single files in the Repository as being of a certain type.
- */
-public class ParcelDescriptorDataLoader extends UniFileLoader {
-
- public ParcelDescriptorDataLoader() {
- this("org.openoffice.netbeans.modules.office.loader.ParcelDescriptorDataObject");
- }
-
- // Can be useful for subclasses:
- protected ParcelDescriptorDataLoader(String recognizedObjectClass) {
- super(recognizedObjectClass);
- }
-
- protected String defaultDisplayName() {
- return OfficeDocument.OFFICE_PRODUCT_NAME + " Script Parcel Descriptor";
- }
-
- protected void initialize() {
- super.initialize();
-
- getExtensions().addMimeType("text/x-parcel+xml");
- }
-
- protected SystemAction[] defaultActions() {
- return new SystemAction[] {
- SystemAction.get(OpenAction.class),
- null,
- SystemAction.get(CutAction.class),
- SystemAction.get(CopyAction.class),
- SystemAction.get(PasteAction.class),
- null,
- SystemAction.get(DeleteAction.class),
- SystemAction.get(RenameAction.class),
- null,
- SystemAction.get(PropertiesAction.class),
- };
- }
-
- protected MultiDataObject createMultiObject(FileObject primaryFile) throws
- DataObjectExistsException, IOException {
- return new ParcelDescriptorDataObject(primaryFile, this);
- }
-}
diff --git a/scripting/java/org/openoffice/netbeans/modules/office/loader/ParcelDescriptorDataLoaderBeanInfo.java b/scripting/java/org/openoffice/netbeans/modules/office/loader/ParcelDescriptorDataLoaderBeanInfo.java
deleted file mode 100644
index f9824ca29b21..000000000000
--- a/scripting/java/org/openoffice/netbeans/modules/office/loader/ParcelDescriptorDataLoaderBeanInfo.java
+++ /dev/null
@@ -1,65 +0,0 @@
-/*
- * 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 .
- */
-
-package org.openoffice.netbeans.modules.office.loader;
-
-import java.awt.Image;
-import java.beans.*;
-
-import org.openide.ErrorManager;
-import org.openide.util.NbBundle;
-import org.openide.util.Utilities;
-
-/** Description of {@link ParcelDescriptorDataLoader}.
- */
-public class ParcelDescriptorDataLoaderBeanInfo extends SimpleBeanInfo {
-
- // If you have additional properties:
- /*
- public PropertyDescriptor[] getPropertyDescriptors() {
- try {
- PropertyDescriptor myProp = new PropertyDescriptor("myProp", ParcelDescriptorDataLoader.class);
- myProp.setDisplayName(NbBundle.getMessage(ParcelDescriptorDataLoaderBeanInfo.class, "PROP_myProp"));
- myProp.setShortDescription(NbBundle.getMessage(ParcelDescriptorDataLoaderBeanInfo.class, "HINT_myProp"));
- return new PropertyDescriptor[] {myProp};
- } catch (IntrospectionException ie) {
- ErrorManager.getDefault().notify(ie);
- return null;
- }
- }
- */
-
- public BeanInfo[] getAdditionalBeanInfo() {
- try {
- // I.e. MultiFileLoader.class or UniFileLoader.class.
- return new BeanInfo[] {Introspector.getBeanInfo(ParcelDescriptorDataLoader.class.getSuperclass())};
- } catch (IntrospectionException ie) {
- ErrorManager.getDefault().notify(ie);
- return null;
- }
- }
-
- public Image getIcon(int type) {
- if (type == BeanInfo.ICON_COLOR_16x16 || type == BeanInfo.ICON_MONO_16x16) {
- return Utilities.loadImage("org/openoffice/netbeans/modules/office/loaders/ParcelDescriptorDataIcon.gif");
- } else {
- return Utilities.loadImage("org/openoffice/netbeans/modules/office/loaders/ParcelDescriptorDataIcon32.gif");
- }
- }
-
-}
diff --git a/scripting/java/org/openoffice/netbeans/modules/office/loader/ParcelDescriptorDataNode.java b/scripting/java/org/openoffice/netbeans/modules/office/loader/ParcelDescriptorDataNode.java
deleted file mode 100644
index e92a321cd726..000000000000
--- a/scripting/java/org/openoffice/netbeans/modules/office/loader/ParcelDescriptorDataNode.java
+++ /dev/null
@@ -1,70 +0,0 @@
-/*
- * 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 .
- */
-
-package org.openoffice.netbeans.modules.office.loader;
-
-import org.openide.loaders.*;
-import org.openide.nodes.*;
-import org.openide.util.NbBundle;
-
-import org.openoffice.netbeans.modules.office.nodes.*;
-import org.openoffice.netbeans.modules.office.actions.*;
-
-/** A node to represent this object.
- */
-public class ParcelDescriptorDataNode extends DataNode {
-
- public ParcelDescriptorDataNode(ParcelDescriptorDataObject obj) {
- this(obj, Children.LEAF);
- }
-
- public ParcelDescriptorDataNode(ParcelDescriptorDataObject obj, Children ch) {
- super(obj, ch);
- setHidden(true);
- setIconBase("/org/openoffice/netbeans/modules/office/resources/OfficeIcon");
- }
-
- protected ParcelDescriptorDataObject getParcelDescriptorDataObject() {
- return (ParcelDescriptorDataObject)getDataObject();
- }
-
- public boolean canRename() {
- return false;
- }
-
- /* Example of adding Executor / Debugger / Arguments to node:
- protected Sheet createSheet() {
- Sheet sheet = super.createSheet();
- Sheet.Set set = sheet.get(ExecSupport.PROP_EXECUTION);
- if (set == null) {
- set = new Sheet.Set();
- set.setName(ExecSupport.PROP_EXECUTION);
- set.setDisplayName(NbBundle.getMessage(ParcelDescriptorDataNode.class, "LBL_DataNode_exec_sheet"));
- set.setShortDescription(NbBundle.getMessage(ParcelDescriptorDataNode.class, "HINT_DataNode_exec_sheet"));
- }
- ((ExecSupport)getCookie(ExecSupport.class)).addProperties(set);
- // Maybe:
- ((CompilerSupport)getCookie(CompilerSupport.class)).addProperties(set);
- sheet.put(set);
- return sheet;
- }
- */
-
- // Don't use getDefaultAction(); just make that first in the data loader's getActions list
-
-}
diff --git a/scripting/java/org/openoffice/netbeans/modules/office/loader/ParcelDescriptorDataObject.java b/scripting/java/org/openoffice/netbeans/modules/office/loader/ParcelDescriptorDataObject.java
deleted file mode 100644
index f72735cfc2ad..000000000000
--- a/scripting/java/org/openoffice/netbeans/modules/office/loader/ParcelDescriptorDataObject.java
+++ /dev/null
@@ -1,75 +0,0 @@
-/*
- * 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 .
- */
-
-package org.openoffice.netbeans.modules.office.loader;
-
-import org.openide.actions.*;
-import org.openide.cookies.*;
-import org.openide.filesystems.*;
-import org.openide.loaders.*;
-import org.openide.nodes.*;
-import org.openide.util.HelpCtx;
-
-import org.openoffice.netbeans.modules.office.actions.ParcelDescriptorEditorSupport;
-import org.openoffice.netbeans.modules.office.actions.ParcelDescriptorParserSupport;
-
-/** Represents a ParcelDescriptor object in the Repository.
- */
-public class ParcelDescriptorDataObject extends MultiDataObject {
-
- private boolean canParse = false;
-
- public ParcelDescriptorDataObject(FileObject pf,
- ParcelDescriptorDataLoader loader) throws DataObjectExistsException {
- super(pf, loader);
- init();
- }
-
- private void init() {
- FileObject fo = getPrimaryFile();
-
- if (FileUtil.toFile(fo) != null)
- canParse = true;
-
- CookieSet cookies = getCookieSet();
- cookies.add(new ParcelDescriptorEditorSupport(this));
-
- if (canParse)
- cookies.add(new ParcelDescriptorParserSupport(getPrimaryFile()));
- }
-
- public HelpCtx getHelpCtx() {
- return HelpCtx.DEFAULT_HELP;
- }
-
- protected Node createNodeDelegate() {
- if (canParse)
- return new ParcelDescriptorDataNode(this);
- else
- return new ParcelDescriptorDataNode(this, Children.LEAF);
- }
-
- // If you made an Editor Support you will want to add these methods:
- public final void addSaveCookie(SaveCookie save) {
- getCookieSet().add(save);
- }
-
- public final void removeSaveCookie(SaveCookie save) {
- getCookieSet().remove(save);
- }
-}
diff --git a/scripting/java/org/openoffice/netbeans/modules/office/loader/ParcelFolder.java b/scripting/java/org/openoffice/netbeans/modules/office/loader/ParcelFolder.java
deleted file mode 100644
index 8d2755576aa6..000000000000
--- a/scripting/java/org/openoffice/netbeans/modules/office/loader/ParcelFolder.java
+++ /dev/null
@@ -1,290 +0,0 @@
-/*
- * 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 .
- */
-
-package org.openoffice.netbeans.modules.office.loader;
-
-import java.io.File;
-import java.io.IOException;
-import java.beans.PropertyEditor;
-import java.beans.PropertyEditorSupport;
-
-import org.openide.loaders.DataFolder;
-import org.openide.loaders.DataObject;
-import org.openide.loaders.DataFilter;
-import org.openide.loaders.DataObjectExistsException;
-
-import org.openide.filesystems.FileObject;
-import org.openide.filesystems.FileUtil;
-
-import org.openide.nodes.CookieSet;
-import org.openide.nodes.Node;
-import org.openide.nodes.PropertySupport;
-import org.openide.nodes.Sheet;
-import org.openide.util.HelpCtx;
-
-import org.openoffice.idesupport.filter.*;
-import org.openoffice.idesupport.zip.ParcelZipper;
-import org.openoffice.netbeans.modules.office.actions.ParcelFolderCookie;
-import org.openoffice.netbeans.modules.office.actions.ParcelFolderSupport;
-
-public class ParcelFolder extends DataFolder {
-
- public static final String LANGUAGE_ATTRIBUTE = "language";
-
- public ParcelFolder(FileObject pf, ParcelFolderDataLoader loader)
- throws DataObjectExistsException {
- super(pf, loader);
- CookieSet cookies = getCookieSet();
- cookies.add(new ParcelFolderSupport(this));
- }
-
- public Node createNodeDelegate() {
- return new ParcelFolderNode(this, new ParcelFolderFilter());
- }
-
- public class ParcelFolderNode extends DataFolder.FolderNode {
- private static final String LOCATION = "location";
- private static final String FILTER = "filter";
- private static final String LANGUAGE = LANGUAGE_ATTRIBUTE;
- private static final String CLASSPATH = "classpath";
-
- private File location;
- private FileFilter filter;
- private String language;
- private String classpath;
-
- private final FileFilter DEFAULT_FILTER = BinaryOnlyFilter.getInstance();
-
- public ParcelFolderNode(ParcelFolder pf, DataFilter dataFilter) {
- super(pf.createNodeChildren(dataFilter));
-
- location = (File)pf.getPrimaryFile().getAttribute(LOCATION);
-
- if (location == null)
- location = FileUtil.toFile(pf.getPrimaryFile());
-
- String name = (String)pf.getPrimaryFile().getAttribute(FILTER);
-
- if (name == null)
- filter = DEFAULT_FILTER;
- else {
- for (int i = 0; i < availableFilters.length; i++)
- if (name.equals(availableFilters[i].toString()))
- filter = availableFilters[i];
- }
-
- language = (String)pf.getPrimaryFile().getAttribute(LANGUAGE);
-
- ParcelFolderCookie cookie =
- (ParcelFolderCookie)pf.getCookie(ParcelFolderCookie.class);
- String s = cookie.getClasspath();
-
- if (s != null) {
- classpath = s;
- } else {
- classpath = ".";
- cookie.setClasspath(classpath);
- }
- }
-
- public File getTargetDir() {
- return location;
- }
-
- public FileFilter getFileFilter() {
- return filter;
- }
-
- public String getLanguage() {
- if (language == null)
- language = (String)getPrimaryFile().getAttribute(LANGUAGE);
-
- return language;
- }
-
- public Sheet createSheet() {
- Sheet sheet;
- Sheet.Set props;
- Node.Property prop;
-
- sheet = super.createSheet();
- props = sheet.get(Sheet.PROPERTIES);
-
- if (props == null) {
- props = Sheet.createPropertiesSet();
- sheet.put(props);
- }
-
- prop = createFilterProperty();
- props.put(prop);
-
- prop = createFilterProperty();
- props.put(prop);
-
- prop = createClasspathProperty();
- props.put(prop);
-
- return sheet;
- }
-
- private Node.Property createLocationProperty() {
- Node.Property prop =
- new PropertySupport.ReadWrite(LOCATION, File.class,
- "Location", "Output location of Parcel Zip File") {
- public void setValue(Object obj) {
- if (obj instanceof File) {
- location = (File)obj;
-
- try {
- getPrimaryFile().setAttribute(LOCATION, location);
- } catch (IOException ioe) {
- }
- }
- }
-
- public Object getValue() {
- return location;
- }
- };
- prop.setValue("files", Boolean.FALSE);
- return prop;
- }
-
- private String[] languages = {"Java", "BeanShell"};
-
- private Node.Property createLanguageProperty() {
- Node.Property prop =
- new PropertySupport.ReadWrite(LANGUAGE, String.class,
- "Parcel Language", "Language of scripts in this Parcel") {
- public void setValue(Object obj) {
- if (obj instanceof String) {
- language = (String)obj;
-
- try {
- getPrimaryFile().setAttribute(LANGUAGE, language);
- } catch (IOException ioe) {
- }
- }
- }
-
- public Object getValue() {
- if (language == null)
- language = (String)getPrimaryFile().getAttribute(LANGUAGE);
-
- return language;
- }
-
- public PropertyEditor getPropertyEditor() {
- return new PropertyEditorSupport() {
- public String[] getTags() {
- return languages;
- }
-
- public void setAsText(String text) {
- for (int i = 0; i < languages.length; i++)
- if (text.equals(languages[i]))
- this.setValue(languages[i]);
- }
-
- public String getAsText() {
- return (String)this.getValue();
- }
- };
- }
- };
- return prop;
- }
-
- private FileFilter[] availableFilters = new FileFilter[] {
- BinaryOnlyFilter.getInstance(), AllFilesFilter.getInstance()
- };
-
- private Node.Property createFilterProperty() {
- Node.Property prop =
- new PropertySupport.ReadWrite(FILTER, String.class,
- "File Filter", "Files to be included in Parcel") {
- public void setValue(Object obj) {
- if (obj instanceof FileFilter) {
- filter = (FileFilter)obj;
-
- try {
- getPrimaryFile().setAttribute(FILTER, filter.toString());
- } catch (IOException ioe) {
- }
- }
- }
-
- public Object getValue() {
- return filter;
- }
-
- public PropertyEditor getPropertyEditor() {
- return new PropertyEditorSupport() {
- public String[] getTags() {
- String[] tags = new String[availableFilters.length];
-
- for (int i = 0; i < availableFilters.length; i++)
- tags[i] = availableFilters[i].toString();
-
- return tags;
- }
-
- public void setAsText(String text) {
- for (int i = 0; i < availableFilters.length; i++)
- if (text.equals(availableFilters[i].toString()))
- this.setValue(availableFilters[i]);
- }
-
- public String getAsText() {
- return this.getValue().toString();
- }
- };
- }
- };
- return prop;
- }
-
- private Node.Property createClasspathProperty() {
- Node.Property prop =
- new PropertySupport.ReadWrite(CLASSPATH, String.class,
- "Classpath", "Classpath property for scripts in this parcel") {
- public void setValue(Object obj) {
- if (obj instanceof String) {
- classpath = (String)obj;
-
- ParcelFolderCookie cookie = (ParcelFolderCookie)
- getDataObject().getCookie(ParcelFolderCookie.class);
- cookie.setClasspath(classpath);
- }
- }
-
- public Object getValue() {
- return classpath;
- }
- };
- return prop;
- }
- }
-
- private class ParcelFolderFilter implements DataFilter {
- public boolean acceptDataObject(DataObject dobj) {
- String name = dobj.getPrimaryFile().getNameExt();
- return !name.equals(ParcelZipper.PARCEL_DESCRIPTOR_XML);
- }
- }
-}
diff --git a/scripting/java/org/openoffice/netbeans/modules/office/loader/ParcelFolderDataLoader.java b/scripting/java/org/openoffice/netbeans/modules/office/loader/ParcelFolderDataLoader.java
deleted file mode 100644
index 64b26c248d64..000000000000
--- a/scripting/java/org/openoffice/netbeans/modules/office/loader/ParcelFolderDataLoader.java
+++ /dev/null
@@ -1,93 +0,0 @@
-/*
- * 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 .
- */
-
-package org.openoffice.netbeans.modules.office.loader;
-
-import java.io.IOException;
-import java.io.File;
-
-import org.openide.actions.*;
-import org.openide.filesystems.*;
-import org.openide.loaders.*;
-import org.openide.util.NbBundle;
-import org.openide.util.actions.SystemAction;
-
-import org.openoffice.idesupport.zip.ParcelZipper;
-import org.openoffice.netbeans.modules.office.actions.*;
-
-/** Recognizes single files in the Repository as being of a certain type.
- */
-
-public class ParcelFolderDataLoader extends UniFileLoader {
-
- public ParcelFolderDataLoader() {
- this("org.openoffice.netbeans.modules.office.loader.ParcelFolder");
- }
-
- protected ParcelFolderDataLoader(String recognizedObjectClass) {
- super(recognizedObjectClass);
- }
-
- protected String defaultDisplayName() {
- return "Office Script Parcel Folder";
- }
-
- protected FileObject findPrimaryFile(FileObject fo) {
- if (!fo.isFolder())
- return null;
-
- FileObject contents = fo.getFileObject(ParcelZipper.CONTENTS_DIRNAME);
-
- if (contents == null)
- return null;
-
- FileObject descriptor = contents.getFileObject(
- ParcelZipper.PARCEL_DESCRIPTOR_XML);
-
- if (descriptor == null)
- return null;
-
- return fo;
- }
-
- protected SystemAction[] defaultActions() {
- return new SystemAction[] {
- SystemAction.get(CompileParcelAction.class),
- SystemAction.get(BuildParcelAction.class),
- SystemAction.get(ConfigureParcelAction.class),
- null,
- SystemAction.get(CutAction.class),
- SystemAction.get(CopyAction.class),
- null,
- SystemAction.get(DeleteAction.class),
- SystemAction.get(RenameAction.class),
- null,
- SystemAction.get(PropertiesAction.class),
- };
- }
-
- protected MultiDataObject createMultiObject(FileObject primaryFile) throws
- DataObjectExistsException, IOException {
- return new ParcelFolder(primaryFile, this);
- }
-
- protected MultiDataObject.Entry createPrimaryEntry(MultiDataObject obj,
- FileObject primaryFile) {
- return new FileEntry.Folder(obj, primaryFile);
- }
-}
diff --git a/scripting/java/org/openoffice/netbeans/modules/office/loader/ParcelFolderDataLoaderBeanInfo.java b/scripting/java/org/openoffice/netbeans/modules/office/loader/ParcelFolderDataLoaderBeanInfo.java
deleted file mode 100644
index 357658bdb184..000000000000
--- a/scripting/java/org/openoffice/netbeans/modules/office/loader/ParcelFolderDataLoaderBeanInfo.java
+++ /dev/null
@@ -1,65 +0,0 @@
-/*
- * 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 .
- */
-
-package org.openoffice.netbeans.modules.office.loader;
-
-import java.awt.Image;
-import java.beans.*;
-
-import org.openide.ErrorManager;
-import org.openide.util.NbBundle;
-import org.openide.util.Utilities;
-
-/** Description of {@link ParcelFolderDataLoader}.
- */
-public class ParcelFolderDataLoaderBeanInfo extends SimpleBeanInfo {
-
- // If you have additional properties:
- /*
- public PropertyDescriptor[] getPropertyDescriptors() {
- try {
- PropertyDescriptor myProp = new PropertyDescriptor("myProp", ParcelFolderDataLoader.class);
- myProp.setDisplayName(NbBundle.getMessage(ParcelFolderDataLoaderBeanInfo.class, "PROP_myProp"));
- myProp.setShortDescription(NbBundle.getMessage(ParcelFolderDataLoaderBeanInfo.class, "HINT_myProp"));
- return new PropertyDescriptor[] {myProp};
- } catch (IntrospectionException ie) {
- ErrorManager.getDefault().notify(ie);
- return null;
- }
- }
- */
-
- public BeanInfo[] getAdditionalBeanInfo() {
- try {
- // I.e. MultiFileLoader.class or UniFileLoader.class.
- return new BeanInfo[] {Introspector.getBeanInfo(ParcelFolderDataLoader.class.getSuperclass())};
- } catch (IntrospectionException ie) {
- ErrorManager.getDefault().notify(ie);
- return null;
- }
- }
-
- public Image getIcon(int type) {
- if (type == BeanInfo.ICON_COLOR_16x16 || type == BeanInfo.ICON_MONO_16x16) {
- return Utilities.loadImage("org/openoffice/netbeans/modules/office/loaders/ParcelFolderDataIcon.gif");
- } else {
- return Utilities.loadImage("org/openoffice/netbeans/modules/office/loaders/ParcelFolderDataIcon32.gif");
- }
- }
-
-}
diff --git a/scripting/java/org/openoffice/netbeans/modules/office/nodes/OfficeDocumentChildren.java b/scripting/java/org/openoffice/netbeans/modules/office/nodes/OfficeDocumentChildren.java
deleted file mode 100644
index b5e939bc2811..000000000000
--- a/scripting/java/org/openoffice/netbeans/modules/office/nodes/OfficeDocumentChildren.java
+++ /dev/null
@@ -1,142 +0,0 @@
-/*
- * 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 .
- */
-
-package org.openoffice.netbeans.modules.office.nodes;
-
-import java.io.IOException;
-import java.util.*;
-import javax.swing.event.ChangeEvent;
-import javax.swing.event.ChangeListener;
-
-import org.openide.nodes.*;
-import org.openide.actions.*;
-import org.openide.util.actions.SystemAction;
-import org.openide.util.HelpCtx;
-
-import org.openoffice.netbeans.modules.office.options.OfficeSettings;
-import org.openoffice.netbeans.modules.office.utils.NagDialog;
-import org.openoffice.netbeans.modules.office.actions.OfficeDocumentCookie;
-
-public class OfficeDocumentChildren extends Children.Keys
- implements ChangeListener {
-
- private OfficeDocumentCookie document = null;
-
- public OfficeDocumentChildren(OfficeDocumentCookie cookie) {
- document = cookie;
- }
-
- private void refreshKeys() {
- if (document == null) {
- setKeys(Collections.EMPTY_SET);
- return;
- }
-
- Enumeration parcels = document.getParcels();
-
- if (!parcels.hasMoreElements()) {
- setKeys(Collections.EMPTY_SET);
- return;
- }
-
- ArrayList keys = new ArrayList();
-
- while (parcels.hasMoreElements()) {
- String parcel = (String)parcels.nextElement();
- keys.add(parcel);
- }
-
- setKeys(keys);
- }
-
- protected void addNotify() {
- super.addNotify();
- document.addChangeListener(this);
- refreshKeys();
- }
-
- protected void removeNotify() {
- super.removeNotify();
- document.removeChangeListener(this);
- setKeys(Collections.EMPTY_SET);
- }
-
- protected Node[] createNodes(Object key) {
- String name = (String)key;
- return new Node[] {new ParcelNode(name)};
- }
-
- public void stateChanged(ChangeEvent e) {
- refreshKeys();
- }
-
- private class ParcelNode extends AbstractNode {
- private String name;
-
- public ParcelNode(String name) {
- super(Children.LEAF);
- this.name = name;
- init();
- }
-
- private void init() {
- setIconBase("/org/openoffice/netbeans/modules/office/resources/ParcelIcon");
-
- setName(name);
- setDisplayName(name.substring(name.lastIndexOf('/') + 1));
- setShortDescription(name);
- }
-
- protected SystemAction[] createActions() {
- return new SystemAction[] {
- SystemAction.get(DeleteAction.class),
- };
- }
-
- public HelpCtx getHelpCtx() {
- return HelpCtx.DEFAULT_HELP;
- }
-
- public boolean canDestroy() {
- return true;
- }
-
- public void destroy() throws IOException {
- OfficeSettings settings = OfficeSettings.getDefault();
- String message = "If you already have this document open in " +
- "Office, please close it before continuing. Click OK to " +
- "delete this parcel.";
-
- if (settings.getWarnBeforeParcelDelete()) {
- NagDialog warning = NagDialog.createConfirmationDialog(
- message, "Show this message in future", true);
-
- boolean result = warning.show();
-
- if (!warning.getState())
- settings.setWarnBeforeParcelDelete(false);
-
- if (!result)
- return;
- }
-
- super.destroy();
- document.removeParcel(name);
- }
- }
-}
diff --git a/scripting/java/org/openoffice/netbeans/modules/office/nodes/ParcelDescriptorChildren.java b/scripting/java/org/openoffice/netbeans/modules/office/nodes/ParcelDescriptorChildren.java
deleted file mode 100644
index 52312ea03574..000000000000
--- a/scripting/java/org/openoffice/netbeans/modules/office/nodes/ParcelDescriptorChildren.java
+++ /dev/null
@@ -1,83 +0,0 @@
-/*
- * 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 .
- */
-
-package org.openoffice.netbeans.modules.office.nodes;
-
-import java.util.*;
-import javax.swing.event.ChangeEvent;
-import javax.swing.event.ChangeListener;
-
-import org.w3c.dom.NodeList;
-import org.w3c.dom.Element;
-
-import org.openide.nodes.*;
-import org.openoffice.netbeans.modules.office.actions.ParcelDescriptorParserCookie;
-
-/** List of children of a containing node.
- * Remember to document what your permitted keys are!
- */
-public class ParcelDescriptorChildren extends Children.Keys implements
- ChangeListener {
-
- private ParcelDescriptorParserCookie parserCookie = null;
-
- public ParcelDescriptorChildren(ParcelDescriptorParserCookie cookie) {
- parserCookie = cookie;
- }
-
- private void refreshKeys() {
- NodeList nl;
- int len;
-
- if (parserCookie == null ||
- (nl = parserCookie.getScriptElements()) == null ||
- (len = nl.getLength()) == 0) {
- setKeys(Collections.EMPTY_SET);
- return;
- }
-
- ArrayList keys = new ArrayList(len);
-
- for (int i = 0; i < len; i++)
- keys.add(nl.item(i));
-
- setKeys(keys);
- }
-
- protected void addNotify() {
- super.addNotify();
- parserCookie.addChangeListener(this);
- refreshKeys();
- }
-
- protected void removeNotify() {
- super.removeNotify();
- parserCookie.removeChangeListener(this);
- setKeys(Collections.EMPTY_SET);
- }
-
- protected Node[] createNodes(Object key) {
- Element el = (Element)key;
- System.out.println("element is: " + el);
- return new Node[] {new ScriptNode(el)};
- }
-
- public void stateChanged(ChangeEvent e) {
- refreshKeys();
- }
-}
diff --git a/scripting/java/org/openoffice/netbeans/modules/office/nodes/ScriptNode.java b/scripting/java/org/openoffice/netbeans/modules/office/nodes/ScriptNode.java
deleted file mode 100644
index 861a4a4f1909..000000000000
--- a/scripting/java/org/openoffice/netbeans/modules/office/nodes/ScriptNode.java
+++ /dev/null
@@ -1,126 +0,0 @@
-/*
- * 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 .
- */
-
-package org.openoffice.netbeans.modules.office.nodes;
-
-import org.w3c.dom.*;
-
-import org.openide.actions.*;
-import org.openide.nodes.*;
-import org.openide.util.HelpCtx;
-import org.openide.util.NbBundle;
-import org.openide.util.actions.SystemAction;
-
-/** A simple node with no children.
- */
-public class ScriptNode extends AbstractNode {
- private Element element;
- private static final String LOGICAL_NAME = "logicalname";
- private static final String LANGUAGE_NAME = "languagename";
-
- public ScriptNode(Element element) {
- super(Children.LEAF);
- this.element = element;
- init();
- }
-
- private void init() {
- setIconBase("/org/openoffice/netbeans/modules/office/resources/OfficeIcon");
- setDefaultAction(SystemAction.get(PropertiesAction.class));
-
- NodeList nl = element.getElementsByTagName(LOGICAL_NAME);
- Element nameElement = (Element)nl.item(0);
-
- String name = nameElement.getAttribute("value");
- setName(name);
- setDisplayName(name.substring(name.lastIndexOf('.') + 1));
- setShortDescription(name);
- }
-
- protected SystemAction[] createActions() {
- return new SystemAction[] {
- SystemAction.get(ToolsAction.class),
- null,
- SystemAction.get(PropertiesAction.class),
- };
- }
-
- public HelpCtx getHelpCtx() {
- return HelpCtx.DEFAULT_HELP;
- }
-
- // RECOMMENDED - handle cloning specially (so as not to invoke the overhead of FilterNode):
- /*
- public Node cloneNode() {
- // Try to pass in similar constructor params to what you originally got:
- return new ScriptNode();
- }
- */
-
- protected Sheet createSheet() {
- Sheet sheet = super.createSheet();
- Sheet.Set props = sheet.get(Sheet.PROPERTIES);
-
- if (props == null) {
- props = Sheet.createPropertiesSet();
- sheet.put(props);
- }
-
- org.openide.nodes.Node.Property prop = null;
-
- if ((prop = getStringProperty(LOGICAL_NAME)) != null)
- props.put(prop);
-
- if ((prop = getStringProperty(LANGUAGE_NAME)) != null)
- props.put(prop);
-
- return sheet;
- }
-
- private org.openide.nodes.Node.Property getStringProperty(String name) {
- NodeList nl = element.getElementsByTagName(name);
-
- if (nl.getLength() != 1)
- return null;
-
- Element nameElement = (Element)nl.item(0);
- String value = nameElement.getAttribute("value");
-
- return new StringProperty(this, name, value);
- }
-
- private class StringProperty extends PropertySupport.ReadOnly {
- private String name, value;
- private ScriptNode sn;
-
- public StringProperty(ScriptNode sn, String name, String value) {
- super(value, String.class, name,
- "The name of the java language method for this script");
- this.sn = sn;
- this.name = name;
- this.value = value;
- }
-
- public Object getValue() {
- return value;
- }
-
- }
-
-
-}
diff --git a/scripting/java/org/openoffice/netbeans/modules/office/options/Bundle.properties b/scripting/java/org/openoffice/netbeans/modules/office/options/Bundle.properties
deleted file mode 100644
index 3c3795df9b96..000000000000
--- a/scripting/java/org/openoffice/netbeans/modules/office/options/Bundle.properties
+++ /dev/null
@@ -1,31 +0,0 @@
-#
-# 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 .
-#
-# Options API
-# x-no-translate
-LBL_settings=Office Settings
-PROP_OfficeDirectory=Path to Office installation
-HINT_OfficeDirectory=Path to the Office installation
-
-HINT_WarnBeforeDocDeploy=Pop up a dialog before deploying to a document
-PROP_WarnBeforeDocDeploy=Pop up a dialog before deploying to a document
-
-HINT_WarnAfterDirDeploy=Pop up a dialog after deploying to a directory
-PROP_WarnAfterDirDeploy=Pop up a dialog after deploying to a directory
-
-HINT_WarnBeforeMount=Warn before mounting Office Scripting Framework support jar
-PROP_WarnBeforeMount=Warn before mounting Office Scripting Framework support jar
diff --git a/scripting/java/org/openoffice/netbeans/modules/office/options/OfficeSettings.java b/scripting/java/org/openoffice/netbeans/modules/office/options/OfficeSettings.java
deleted file mode 100644
index 4a917987b1f6..000000000000
--- a/scripting/java/org/openoffice/netbeans/modules/office/options/OfficeSettings.java
+++ /dev/null
@@ -1,119 +0,0 @@
-/*
- * 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 .
- */
-
-package org.openoffice.netbeans.modules.office.options;
-
-import java.util.Hashtable;
-import java.util.Enumeration;
-import java.io.File;
-import java.io.IOException;
-
-import org.openide.options.SystemOption;
-import org.openide.util.HelpCtx;
-import org.openide.util.NbBundle;
-
-import org.openoffice.idesupport.SVersionRCFile;
-import org.openoffice.idesupport.OfficeInstallation;
-
-/** Options for something or other.
- */
-public class OfficeSettings extends SystemOption {
-
- public static final String OFFICE_DIRECTORY = "OfficeDirectory";
- public static final String WARN_BEFORE_DOC_DEPLOY = "WarnBeforeDocDeploy";
- public static final String WARN_BEFORE_PARCEL_DELETE = "WarnBeforeParcelDelete";
- public static final String WARN_AFTER_DIR_DEPLOY = "WarnAfterDirDeploy";
- public static final String WARN_BEFORE_MOUNT = "WarnBeforeMount";
-
- protected void initialize() {
- super.initialize();
-
- setWarnBeforeDocDeploy(true);
- setWarnBeforeParcelDelete(true);
- setWarnAfterDirDeploy(true);
- setWarnBeforeMount(true);
-
- if (getOfficeDirectory() == null) {
- SVersionRCFile sversion = SVersionRCFile.createInstance();
-
- try {
- Enumeration enumeration = sversion.getVersions();
- OfficeInstallation oi;
-
- while (enumeration.hasMoreElements()) {
- oi = (OfficeInstallation)enumeration.nextElement();
- setOfficeDirectory(oi);
- return;
- }
- } catch (IOException ioe) {
- }
- }
- }
-
- public String displayName() {
- return "Office Settings";
- }
-
- public HelpCtx getHelpCtx() {
- return HelpCtx.DEFAULT_HELP;
- }
-
- public static OfficeSettings getDefault() {
- return (OfficeSettings)findObject(OfficeSettings.class, true);
- }
-
- public OfficeInstallation getOfficeDirectory() {
- return (OfficeInstallation)getProperty(OFFICE_DIRECTORY);
- }
-
- public void setOfficeDirectory(OfficeInstallation oi) {
- putProperty(OFFICE_DIRECTORY, oi, true);
- }
-
- public boolean getWarnBeforeDocDeploy() {
- return ((Boolean)getProperty(WARN_BEFORE_DOC_DEPLOY)).booleanValue();
- }
-
- public void setWarnBeforeDocDeploy(boolean value) {
- putProperty(WARN_BEFORE_DOC_DEPLOY, Boolean.valueOf(value), true);
- }
-
- public boolean getWarnBeforeParcelDelete() {
- return ((Boolean)getProperty(WARN_BEFORE_PARCEL_DELETE)).booleanValue();
- }
-
- public void setWarnBeforeParcelDelete(boolean value) {
- putProperty(WARN_BEFORE_PARCEL_DELETE, Boolean.valueOf(value), true);
- }
-
- public boolean getWarnAfterDirDeploy() {
- return ((Boolean)getProperty(WARN_AFTER_DIR_DEPLOY)).booleanValue();
- }
-
- public void setWarnAfterDirDeploy(boolean value) {
- putProperty(WARN_AFTER_DIR_DEPLOY, Boolean.valueOf(value), true);
- }
-
- public boolean getWarnBeforeMount() {
- return ((Boolean)getProperty(WARN_BEFORE_MOUNT)).booleanValue();
- }
-
- public void setWarnBeforeMount(boolean value) {
- putProperty(WARN_BEFORE_MOUNT, Boolean.valueOf(value), true);
- }
-}
diff --git a/scripting/java/org/openoffice/netbeans/modules/office/options/OfficeSettingsBeanInfo.java b/scripting/java/org/openoffice/netbeans/modules/office/options/OfficeSettingsBeanInfo.java
deleted file mode 100644
index a811ab855fd5..000000000000
--- a/scripting/java/org/openoffice/netbeans/modules/office/options/OfficeSettingsBeanInfo.java
+++ /dev/null
@@ -1,135 +0,0 @@
-/*
- * 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 .
- */
-
-package org.openoffice.netbeans.modules.office.options;
-
-import java.awt.Image;
-import java.awt.Component;
-import javax.swing.event.ChangeListener;
-import javax.swing.event.ChangeEvent;
-import java.beans.*;
-
-import org.openide.ErrorManager;
-import org.openide.util.NbBundle;
-import org.openide.util.Utilities;
-
-import org.openoffice.idesupport.OfficeInstallation;
-import org.openoffice.netbeans.modules.office.wizard.SelectPathPanel;
-
-/** Description of {@link OfficeSettings}.
- */
-public class OfficeSettingsBeanInfo extends SimpleBeanInfo {
-
- public PropertyDescriptor[] getPropertyDescriptors() {
- try {
- PropertyDescriptor[] props = new PropertyDescriptor[] {
- new PropertyDescriptor(OfficeSettings.OFFICE_DIRECTORY,
- OfficeSettings.class,
- "get" + OfficeSettings.OFFICE_DIRECTORY,
- "set" + OfficeSettings.OFFICE_DIRECTORY),
- new PropertyDescriptor(OfficeSettings.WARN_BEFORE_DOC_DEPLOY,
- OfficeSettings.class,
- "get" + OfficeSettings.WARN_BEFORE_DOC_DEPLOY,
- "set" + OfficeSettings.WARN_BEFORE_DOC_DEPLOY),
- new PropertyDescriptor(OfficeSettings.WARN_BEFORE_PARCEL_DELETE,
- OfficeSettings.class,
- "get" + OfficeSettings.WARN_BEFORE_PARCEL_DELETE,
- "set" + OfficeSettings.WARN_BEFORE_PARCEL_DELETE),
- new PropertyDescriptor(OfficeSettings.WARN_AFTER_DIR_DEPLOY,
- OfficeSettings.class,
- "get" + OfficeSettings.WARN_AFTER_DIR_DEPLOY,
- "set" + OfficeSettings.WARN_AFTER_DIR_DEPLOY),
- new PropertyDescriptor(OfficeSettings.WARN_BEFORE_MOUNT,
- OfficeSettings.class,
- "get" + OfficeSettings.WARN_BEFORE_MOUNT,
- "set" + OfficeSettings.WARN_BEFORE_MOUNT)
- };
-
- props[0].setDisplayName(NbBundle.getMessage(
- OfficeSettingsBeanInfo.class, "PROP_OfficeDirectory"));
- props[0].setShortDescription(NbBundle.getMessage(
- OfficeSettingsBeanInfo.class, "HINT_OfficeDirectory"));
- props[0].setPropertyEditorClass(OfficeDirectoryEditor.class);
-
- props[1].setDisplayName(NbBundle.getMessage(
- OfficeSettingsBeanInfo.class, "PROP_WarnBeforeDocDeploy"));
- props[1].setShortDescription(NbBundle.getMessage(
- OfficeSettingsBeanInfo.class, "HINT_WarnBeforeDocDeploy"));
- props[1].setHidden(true);
-
- props[2].setDisplayName(NbBundle.getMessage(
- OfficeSettingsBeanInfo.class, "PROP_WarnAfterDirDeploy"));
- props[2].setShortDescription(NbBundle.getMessage(
- OfficeSettingsBeanInfo.class, "HINT_WarnAfterDirDeploy"));
- props[2].setHidden(true);
-
- props[3].setDisplayName(NbBundle.getMessage(
- OfficeSettingsBeanInfo.class, "PROP_WarnBeforeMount"));
- props[3].setShortDescription(NbBundle.getMessage(
- OfficeSettingsBeanInfo.class, "HINT_WarnBeforeMount"));
- props[3].setHidden(true);
-
- return props;
- } catch (IntrospectionException ie) {
- ErrorManager.getDefault().notify(ie);
- return null;
- }
- }
-
- public Image getIcon(int type) {
- if (type == BeanInfo.ICON_COLOR_16x16 || type == BeanInfo.ICON_MONO_16x16) {
- return Utilities.loadImage("/org/openoffice/netbeans/modules/office/options/OfficeSettingsIcon.gif");
- } else {
- return Utilities.loadImage("/org/openoffice/netbeans/modules/office/options/OfficeSettingsIcon32.gif");
- }
- }
-
- public static class OfficeDirectoryEditor extends PropertyEditorSupport
- implements ChangeListener {
-
- private SelectPathPanel panel;
-
- public String getAsText() {
- return ((OfficeInstallation)getValue()).getPath();
- }
-
- public void setAsText(String path) {
- OfficeInstallation oi = new OfficeInstallation(path);
-
- if (!oi.supportsFramework())
- throw new IllegalArgumentException(path +
- " is not a valid Office install");
- else
- setValue(oi);
- }
-
- public Component getCustomEditor() {
- panel = new SelectPathPanel();
- panel.addChangeListener(this);
- return panel.getComponent();
- }
-
- public boolean supportsCustomEditor() {
- return true;
- }
-
- public void stateChanged(ChangeEvent evt) {
- setValue(panel.getSelectedPath());
- }
- }
-}
diff --git a/scripting/java/org/openoffice/netbeans/modules/office/options/OfficeSettingsIcon.gif b/scripting/java/org/openoffice/netbeans/modules/office/options/OfficeSettingsIcon.gif
deleted file mode 100644
index 9bed8526705b..000000000000
--- a/scripting/java/org/openoffice/netbeans/modules/office/options/OfficeSettingsIcon.gif
+++ /dev/null
Binary files differ
diff --git a/scripting/java/org/openoffice/netbeans/modules/office/options/OfficeSettingsIcon32.gif b/scripting/java/org/openoffice/netbeans/modules/office/options/OfficeSettingsIcon32.gif
deleted file mode 100644
index 65bfc82bc25f..000000000000
--- a/scripting/java/org/openoffice/netbeans/modules/office/options/OfficeSettingsIcon32.gif
+++ /dev/null
Binary files differ
diff --git a/scripting/java/org/openoffice/netbeans/modules/office/resources/AppStorage.html b/scripting/java/org/openoffice/netbeans/modules/office/resources/AppStorage.html
deleted file mode 100644
index 16094bba5c8c..000000000000
--- a/scripting/java/org/openoffice/netbeans/modules/office/resources/AppStorage.html
+++ /dev/null
@@ -1,28 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
-<!--
- * 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 .
--->
-
-<HTML>
- <HEAD>
- <TITLE></TITLE>
- </HEAD>
- <BODY>
- <P>
-This wizard will let you mount the Office Application scripts directory
- </BODY>
-</HTML>
diff --git a/scripting/java/org/openoffice/netbeans/modules/office/resources/AppStorage.settings b/scripting/java/org/openoffice/netbeans/modules/office/resources/AppStorage.settings
deleted file mode 100644
index b682273020b3..000000000000
--- a/scripting/java/org/openoffice/netbeans/modules/office/resources/AppStorage.settings
+++ /dev/null
@@ -1,7 +0,0 @@
-<?xml version="1.0"?>
-<!DOCTYPE settings PUBLIC "-//NetBeans//DTD Session settings 1.0//EN" "http://www.netbeans.org/dtds/sessionsettings-1_0.dtd">
-<settings version="1.0">
- <module name="org.openoffice.netbeans.modules.office/1"/>
- <instanceof class="org.openide.filesystems.FileSystem"/>
- <instance class="org.netbeans.core.ExLocalFileSystem"/>
-</settings>
diff --git a/scripting/java/org/openoffice/netbeans/modules/office/resources/Bundle.properties b/scripting/java/org/openoffice/netbeans/modules/office/resources/Bundle.properties
deleted file mode 100644
index 316c1bb4217a..000000000000
--- a/scripting/java/org/openoffice/netbeans/modules/office/resources/Bundle.properties
+++ /dev/null
@@ -1,41 +0,0 @@
-#
-# 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 .
-#
-# x-no-translate
-Templates/OfficeScripting=Office Scripting
-Templates/OfficeScripting/parcel.xml=Script Parcel Descriptor
-Services/MIMEResolver/org-netbeans-modules-office-mime-resolver.xml=Script Parcel Descriptor File
-Templates=Templates
-Templates/OfficeScripting/HelloWorld=Hello World Example Script
-
-Templates/Mount/org-openoffice-netbeans-modules-office-resources-AppStorage.settings=Office Application Scripts
-Templates/Mount/org-openoffice-netbeans-modules-office-resources-OpenOfficeDocFileSystem.settings=OpenOffice.org document
-
-UI/Services/IDEConfiguration/ServerAndExternalToolSettings/org-openoffice-netbeans-modules-office-options-OfficeSettings.instance=Office Settings
-
-Services/org-openoffice-netbeans-modules-office-resources-OfficeSettings.settings=Office Settings
-
-PROP_OfficeDirectory=Office Installation Directory
-
-HINT_OfficeDirectory=Path to directory where Office is installed
-
-Templates/OfficeScripting/Parcel=Parcel Recipe
-Templates/OfficeScripting/EmptyScript=Empty Script
-Templates/OfficeScripting/EmptyScript/Empty.java=Java
-Templates/OfficeScripting/EmptyScript/Empty.bsh=BeanShell
-
-Menu/Help/office-scripting.url=&Office Scripting Framework Site
diff --git a/scripting/java/org/openoffice/netbeans/modules/office/resources/EmptyParcel.html b/scripting/java/org/openoffice/netbeans/modules/office/resources/EmptyParcel.html
deleted file mode 100644
index ab350afcbc04..000000000000
--- a/scripting/java/org/openoffice/netbeans/modules/office/resources/EmptyParcel.html
+++ /dev/null
@@ -1,28 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
-<!--
- * 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 .
--->
-
-<HTML>
- <HEAD>
- <TITLE></TITLE>
- </HEAD>
- <BODY>
- <P>
-This allows you to create an Empty Office Script.
- </BODY>
-</HTML>
diff --git a/scripting/java/org/openoffice/netbeans/modules/office/resources/OfficeIcon.gif b/scripting/java/org/openoffice/netbeans/modules/office/resources/OfficeIcon.gif
deleted file mode 100644
index ec7507ef9e54..000000000000
--- a/scripting/java/org/openoffice/netbeans/modules/office/resources/OfficeIcon.gif
+++ /dev/null
Binary files differ
diff --git a/scripting/java/org/openoffice/netbeans/modules/office/resources/OfficeIcon32.gif b/scripting/java/org/openoffice/netbeans/modules/office/resources/OfficeIcon32.gif
deleted file mode 100644
index 94fdab1eba0c..000000000000
--- a/scripting/java/org/openoffice/netbeans/modules/office/resources/OfficeIcon32.gif
+++ /dev/null
Binary files differ
diff --git a/scripting/java/org/openoffice/netbeans/modules/office/resources/OfficeSettings.settings b/scripting/java/org/openoffice/netbeans/modules/office/resources/OfficeSettings.settings
deleted file mode 100644
index df98da11659b..000000000000
--- a/scripting/java/org/openoffice/netbeans/modules/office/resources/OfficeSettings.settings
+++ /dev/null
@@ -1,9 +0,0 @@
-<?xml version="1.0"?>
-<!DOCTYPE settings PUBLIC "-//NetBeans//DTD Session settings 1.0//EN" "http://www.netbeans.org/dtds/sessionsettings-1_0.dtd">
-<settings version="1.0">
- <module name="org.openoffice.netbeans.modules.office"/>
- <instanceof class="org.openide.util.SharedClassObject"/>
- <instanceof class="org.openide.util.SystemOption"/>
- <instanceof class="org.openoffice.netbeans.modules.office.options.OfficeSettings"/>
- <instance class="org.openoffice.netbeans.modules.office.options.OfficeSettings"/>
-</settings>
diff --git a/scripting/java/org/openoffice/netbeans/modules/office/resources/OpenOfficeDocFileSystem.html b/scripting/java/org/openoffice/netbeans/modules/office/resources/OpenOfficeDocFileSystem.html
deleted file mode 100644
index c5b1d34543a5..000000000000
--- a/scripting/java/org/openoffice/netbeans/modules/office/resources/OpenOfficeDocFileSystem.html
+++ /dev/null
@@ -1,28 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
-<!--
- * 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 .
--->
-
-<HTML>
- <HEAD>
- <TITLE></TITLE>
- </HEAD>
- <BODY>
- <P>
-This allows you to mount OpenOffice.org document.
- </BODY>
-</HTML>
diff --git a/scripting/java/org/openoffice/netbeans/modules/office/resources/OpenOfficeDocFileSystem.settings b/scripting/java/org/openoffice/netbeans/modules/office/resources/OpenOfficeDocFileSystem.settings
deleted file mode 100644
index 32a5bd490be1..000000000000
--- a/scripting/java/org/openoffice/netbeans/modules/office/resources/OpenOfficeDocFileSystem.settings
+++ /dev/null
@@ -1,7 +0,0 @@
-<?xml version="1.0"?>
-<!DOCTYPE settings PUBLIC "-//NetBeans//DTD Session settings 1.0//EN" "http://www.netbeans.org/dtds/sessionsettings-1_0.dtd">
-<settings version="1.0">
- <module name="org.openoffice.netbeans.modules.office/1"/>
- <instanceof class="org.openide.filesystems.FileSystem"/>
- <instance class="org.openoffice.netbeans.modules.office.filesystem.OpenOfficeDocFileSystem"/>
-</settings>
diff --git a/scripting/java/org/openoffice/netbeans/modules/office/resources/OpenOfficeDocFileSystemIcon.png b/scripting/java/org/openoffice/netbeans/modules/office/resources/OpenOfficeDocFileSystemIcon.png
deleted file mode 100644
index a441019346f9..000000000000
--- a/scripting/java/org/openoffice/netbeans/modules/office/resources/OpenOfficeDocFileSystemIcon.png
+++ /dev/null
Binary files differ
diff --git a/scripting/java/org/openoffice/netbeans/modules/office/resources/OpenOfficeDocFileSystemIcon32.png b/scripting/java/org/openoffice/netbeans/modules/office/resources/OpenOfficeDocFileSystemIcon32.png
deleted file mode 100644
index 1b2ee21e6d9c..000000000000
--- a/scripting/java/org/openoffice/netbeans/modules/office/resources/OpenOfficeDocFileSystemIcon32.png
+++ /dev/null
Binary files differ
diff --git a/scripting/java/org/openoffice/netbeans/modules/office/resources/ParcelIcon.gif b/scripting/java/org/openoffice/netbeans/modules/office/resources/ParcelIcon.gif
deleted file mode 100644
index a889c2614edf..000000000000
--- a/scripting/java/org/openoffice/netbeans/modules/office/resources/ParcelIcon.gif
+++ /dev/null
Binary files differ
diff --git a/scripting/java/org/openoffice/netbeans/modules/office/resources/ScriptParcel.html b/scripting/java/org/openoffice/netbeans/modules/office/resources/ScriptParcel.html
deleted file mode 100644
index fa0fe2517bad..000000000000
--- a/scripting/java/org/openoffice/netbeans/modules/office/resources/ScriptParcel.html
+++ /dev/null
@@ -1,28 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
-<!--
- * 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 .
--->
-
-<HTML>
- <HEAD>
- <TITLE></TITLE>
- </HEAD>
- <BODY>
- <P>
-This allows you to create a Hello World example Office Script.
- </BODY>
-</HTML>
diff --git a/scripting/java/org/openoffice/netbeans/modules/office/resources/ScriptParcelDescriptor.html b/scripting/java/org/openoffice/netbeans/modules/office/resources/ScriptParcelDescriptor.html
deleted file mode 100644
index 1945697a37f3..000000000000
--- a/scripting/java/org/openoffice/netbeans/modules/office/resources/ScriptParcelDescriptor.html
+++ /dev/null
@@ -1,28 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
-<!--
- * 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 .
--->
-
-<HTML>
- <HEAD>
- <TITLE></TITLE>
- </HEAD>
- <BODY>
- <P>
-This allows you to create a Office Script Parcel Descriptor File.
- </BODY>
-</HTML>
diff --git a/scripting/java/org/openoffice/netbeans/modules/office/resources/layer.xml b/scripting/java/org/openoffice/netbeans/modules/office/resources/layer.xml
deleted file mode 100644
index c95a879ec4c7..000000000000
--- a/scripting/java/org/openoffice/netbeans/modules/office/resources/layer.xml
+++ /dev/null
@@ -1,115 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE filesystem PUBLIC "-//NetBeans//DTD Filesystem 1.1//EN" "http://www.netbeans.org/dtds/filesystem-1_1.dtd">
-<!--
- * 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 .
--->
-<filesystem>
- <folder name="Templates">
- <attr name="SystemFileSystem.localizingBundle" stringvalue="org.openoffice.netbeans.modules.office.resources.Bundle"/>
-
- <folder name="OfficeScripting">
- <attr name="SystemFileSystem.localizingBundle" stringvalue="org.openoffice.netbeans.modules.office.resources.Bundle"/>
- <folder name="Parcel">
- <attr boolvalue="true" name="template"/>
- <attr name="SystemFileSystem.localizingBundle" stringvalue="org.openoffice.netbeans.modules.office.resources.Bundle"/>
- <attr name="SystemFileSystem.icon" urlvalue="nbresloc:/org/openoffice/netbeans/modules/office/resources/OfficeIcon.gif"/>
- <attr name="templateWizardURL" urlvalue="nbresloc:/org/openoffice/netbeans/modules/office/resources/EmptyParcel.html"/>
- <attr name="templateWizardIterator" newvalue="org.openoffice.netbeans.modules.office.wizard.ParcelContentsIterator"/>
- <folder name="Contents">
- <file name="parcel-descriptor.xml" url="templates/EmptyParcelDescriptor.xml_"/>
- <!-- file name="Empty.java" url="templates/Empty.java_"/ -->
- </folder>
- </folder>
- <folder name="EmptyScript">
- <attr name="SystemFileSystem.localizingBundle" stringvalue="org.openoffice.netbeans.modules.office.resources.Bundle"/>
- <file name="Empty.java" url="templates/Empty.java_">
- <attr name="template" boolvalue="true"/>
- <attr name="SystemFileSystem.localizingBundle" stringvalue="org.openoffice.netbeans.modules.office.resources.Bundle"/>
- <attr name="templateWizardIterator" newvalue="org.openoffice.netbeans.modules.office.wizard.JavaScriptIterator"/>
- </file>
- <file name="Empty.bsh" url="templates/Empty.bsh_">
- <attr name="template" boolvalue="true"/>
- <attr name="SystemFileSystem.localizingBundle" stringvalue="org.openoffice.netbeans.modules.office.resources.Bundle"/>
- </file>
- </folder>
- </folder>
- <attr boolvalue="true" name="Ant/OfficeScripting"/>
- <attr boolvalue="true" name="OfficeScripting/Other"/>
-
- <!-- OpenOfficeDoc FileSystem BEGIN: -->
- <!-- Uncomment to enable writable mounting of Office Documents
- <folder name="Mount">
- <attr name="org-netbeans-core-ExLocalFileSystem.settings/org-openoffice-netbeans-modules-office-resources-OpenOfficeDocFileSystem.settings"
- boolvalue="true"/>
- <attr name="org-openoffice-netbeans-modules-office-resources-OpenOfficeDocFileSystem.settings/VCS"
- boolvalue="true"/>
-
- <file name="org-openoffice-netbeans-modules-office-resources-OpenOfficeDocFileSystem.settings"
- url="OpenOfficeDocFileSystem.settings">
- <attr name="template"
- boolvalue="true"/>
- <attr name="SystemFileSystem.localizingBundle"
- stringvalue="org.openoffice.netbeans.modules.office.resources.Bundle"/>
- <attr name="SystemFileSystem.icon"
- urlvalue="nbresloc:/org/openoffice/netbeans/modules/office/resources/OpenOfficeDocFileSystemIcon.png"/>
- <attr name="templateWizardIterator"
- methodvalue="org.netbeans.core.ui.MountNode.iterator"/>
- <attr name="templateWizardURL"
- urlvalue="nbresloc:/org/openoffice/netbeans/modules/office/resources/OpenOfficeDocFileSystem.html"/>
- </file>
- </folder>
- -->
- <!-- OpenOfficeDoc FileSystem END: -->
- </folder>
-
- <folder name="Services">
- <folder name="MIMEResolver">
- <file name="org-netbeans-modules-office-mime-resolver.xml" url="mime-resolver.xml">
- <attr name="SystemFileSystem.localizingBundle" stringvalue="org.openoffice.netbeans.modules.office.resources.Bundle"/>
- <attr name="SystemFileSystem.icon" urlvalue="nbresloc:/org/openoffice/netbeans/modules/office/resources/OfficeIcon.gif"/>
- </file>
- </folder>
- <file name="org-openoffice-netbeans-modules-office-resources-OfficeSettings.settings" url="OfficeSettings.settings">
- <attr name="SystemFileSystem.localizingBundle" stringvalue="org.openoffice.netbeans.modules.office.resources.Bundle"/>
- <attr name="SystemFileSystem.icon" urlvalue="nbresloc:/org/openoffice/netbeans/modules/office/resources/OfficeIcon.gif"/>
- </file>
- </folder>
-
- <folder name="Menu">
- <folder name="Help">
- <attr name="submit-feedback-link.url/office-scripting.url" boolvalue="true"/>
- <file name="office-scripting.url" url="office-scripting.url">
- <attr name="SystemFileSystem.localizingBundle" stringvalue="org.openoffice.netbeans.modules.office.resources.Bundle"/>
- <attr name="SystemFileSystem.icon" urlvalue="nbresloc:/org/openoffice/netbeans/modules/office/resources/webLink.gif"/>
- </file>
- </folder>
- </folder>
-
- <folder name="UI">
- <folder name="Services">
- <folder name="IDEConfiguration">
- <folder name="ServerAndExternalToolSettings">
- <file name="org-openoffice-netbeans-modules-office-resources-OfficeSettings.shadow">
- <attr name="originalFile" stringvalue="Services/org-openoffice-netbeans-modules-office-resources-OfficeSettings.settings"/>
- </file>
- </folder>
- </folder>
- </folder>
- </folder>
-
- <attr boolvalue="true" name="Templates/Services"/>
-</filesystem>
diff --git a/scripting/java/org/openoffice/netbeans/modules/office/resources/mime-resolver.xml b/scripting/java/org/openoffice/netbeans/modules/office/resources/mime-resolver.xml
deleted file mode 100644
index 9e5bfe6be843..000000000000
--- a/scripting/java/org/openoffice/netbeans/modules/office/resources/mime-resolver.xml
+++ /dev/null
@@ -1,32 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" ?>
-<!DOCTYPE MIME-resolver PUBLIC "-//NetBeans//DTD MIME Resolver 1.0//EN" "http://www.netbeans.org/dtds/mime-resolver-1_0.dtd">
-<!--
- * 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 .
--->
-<MIME-resolver>
-
- <!-- Resolve according to root element: -->
- <file>
- <ext name="xml"/>
- <resolver mime="text/x-parcel+xml">
- <xml-rule>
- <element name="parcel"/>
- </xml-rule>
- </resolver>
- </file>
-
-</MIME-resolver>
diff --git a/scripting/java/org/openoffice/netbeans/modules/office/resources/office-scripting.url b/scripting/java/org/openoffice/netbeans/modules/office/resources/office-scripting.url
deleted file mode 100644
index f7be83c0eae4..000000000000
--- a/scripting/java/org/openoffice/netbeans/modules/office/resources/office-scripting.url
+++ /dev/null
@@ -1 +0,0 @@
-http://framework.openoffice.org/scripting/netbeans-devguide.html
diff --git a/scripting/java/org/openoffice/netbeans/modules/office/resources/templates/Empty.bsh_ b/scripting/java/org/openoffice/netbeans/modules/office/resources/templates/Empty.bsh_
deleted file mode 100644
index e8d79f1c46ef..000000000000
--- a/scripting/java/org/openoffice/netbeans/modules/office/resources/templates/Empty.bsh_
+++ /dev/null
@@ -1,42 +0,0 @@
-/*
- * 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 .
- */
-
-// If using XComponentContext need to uncomment import directive below:
-// import com.sun.star.uno.XComponentContext;
-
-// If using XDesktop need to uncomment import directive below:
-// import com.sun.star.frame.XDesktop;
-
-// If using XComponent need to uncomment import directive below:
-// import com.sun.star.frame.XModel;
-
-import drafts.com.sun.star.script.framework.runtime.XScriptContext;
-
-/* Use the XScriptContext variable "context" to access the document for
- which this script was invoked. This variable will be initialised
- automatically by the Scripting Framework when the script is invoked.
-
- Methods available are:
-
- context.getDocument() returns XModel
- context.getDesktop() returns XDesktop
- context.getComponentContext() returns XComponentContext
-*/
-
-// Uncomment to get the current document model
-// xmodel = context.getDocument();
diff --git a/scripting/java/org/openoffice/netbeans/modules/office/resources/templates/Empty.java_ b/scripting/java/org/openoffice/netbeans/modules/office/resources/templates/Empty.java_
deleted file mode 100644
index 33ebd132c3d6..000000000000
--- a/scripting/java/org/openoffice/netbeans/modules/office/resources/templates/Empty.java_
+++ /dev/null
@@ -1,45 +0,0 @@
-/*
- * 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 .
- */
-
-// If using XComponentContext need to uncomment import directive below:
-// import com.sun.star.uno.XComponentContext;
-
-// If using XDesktop need to uncomment import directive below:
-// import com.sun.star.frame.XDesktop;
-
-// If using XComponent need to uncomment import directive below:
-// import com.sun.star.frame.XModel;
-
-import drafts.com.sun.star.script.framework.runtime.XScriptContext;
-
-public class Empty {
-
- public void doMethod(XScriptContext xSc) {
-
- /* Methods available from XScriptContext:
- xSc.getDocument() returns XModel
- xSc.getDesktop() returns XDesktop
- xSc.getComponentContext() returns XComponentContext
- */
-
- // Uncomment to get the current document as a component
- // XComponent xcomponent = xSc.getDocument();
-
- }
-
-}
diff --git a/scripting/java/org/openoffice/netbeans/modules/office/resources/templates/EmptyParcelDescriptor.xml_ b/scripting/java/org/openoffice/netbeans/modules/office/resources/templates/EmptyParcelDescriptor.xml_
deleted file mode 100644
index c414df89a170..000000000000
--- a/scripting/java/org/openoffice/netbeans/modules/office/resources/templates/EmptyParcelDescriptor.xml_
+++ /dev/null
@@ -1,3 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<parcel language="Java" xmlns:parcel="scripting.dtd">
-</parcel>
diff --git a/scripting/java/org/openoffice/netbeans/modules/office/resources/templates/HelloWorld.java_ b/scripting/java/org/openoffice/netbeans/modules/office/resources/templates/HelloWorld.java_
deleted file mode 100644
index e9eba2ef4140..000000000000
--- a/scripting/java/org/openoffice/netbeans/modules/office/resources/templates/HelloWorld.java_
+++ /dev/null
@@ -1,59 +0,0 @@
-/*
- * 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 .
- */
-
-// If using XMultiServiceFactory need to uncomment import directive below:
-//import com.sun.star.lang.XMultiServiceFactory;
-
-// If using XDesktop need to uncomment import directive below:
-//import com.sun.star.frame.XDesktop;
-
-import com.sun.star.uno.UnoRuntime;
-import com.sun.star.lang.*;
-import com.sun.star.text.*;
-
-import drafts.com.sun.star.script.framework.runtime.XScriptContext;
-
-
-public class HelloWorld {
-
- public void printHello(XScriptContext xSc) {
-
- /* Methods available from XScriptContext:
- xSc.getDocument() returns XModel
- xSc.getDesktop() returns XDesktop
- xSc.getMultiComponentFactory() returns XMultiComponentFactory
- */
-
- // Getting the current document as a component
- XComponent xcomponent = xSc.getDocument();
-
- // Getting the text document object
- XTextDocument xtextdocument = (XTextDocument) UnoRuntime.queryInterface(
-XTextDocument.class, xcomponent);
-
- //Getting the text object
- XText oText = xtextdocument.getText();
-
- //Create a cursor object
- XTextCursor oCursor = oText.createTextCursor();
-
- // Print out Hello World
- oText.insertString( oCursor, "**** HELLO ****", false );
- }
-
-}
diff --git a/scripting/java/org/openoffice/netbeans/modules/office/resources/templates/ParcelDescriptor.xml_ b/scripting/java/org/openoffice/netbeans/modules/office/resources/templates/ParcelDescriptor.xml_
deleted file mode 100644
index 81ffce04e37d..000000000000
--- a/scripting/java/org/openoffice/netbeans/modules/office/resources/templates/ParcelDescriptor.xml_
+++ /dev/null
@@ -1,8 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<parcel>
- <script language="Java" deploymentdir="java/HelloWorld">
- <logicalname value="HelloWorld.printHello"/>
- <languagename value="HelloWorld.printHello" location="HelloWorld.class"/>
- </script>
-</parcel>
diff --git a/scripting/java/org/openoffice/netbeans/modules/office/resources/webLink.gif b/scripting/java/org/openoffice/netbeans/modules/office/resources/webLink.gif
deleted file mode 100644
index ae40f9af595f..000000000000
--- a/scripting/java/org/openoffice/netbeans/modules/office/resources/webLink.gif
+++ /dev/null
Binary files differ
diff --git a/scripting/java/org/openoffice/netbeans/modules/office/utils/FrameworkJarChecker.java b/scripting/java/org/openoffice/netbeans/modules/office/utils/FrameworkJarChecker.java
deleted file mode 100644
index 9c6c33900383..000000000000
--- a/scripting/java/org/openoffice/netbeans/modules/office/utils/FrameworkJarChecker.java
+++ /dev/null
@@ -1,128 +0,0 @@
-/*
- * 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 .
- */
-
-package org.openoffice.netbeans.modules.office.utils;
-
-import java.io.File;
-import java.io.IOException;
-import java.beans.PropertyVetoException;
-
-import org.openide.filesystems.Repository;
-import org.openide.filesystems.FileSystem;
-import org.openide.filesystems.JarFileSystem;
-
-import org.openoffice.idesupport.SVersionRCFile;
-import org.openoffice.netbeans.modules.office.options.OfficeSettings;
-
-public class FrameworkJarChecker {
-
- public static void mountDependencies() {
- String unoilPath = SVersionRCFile.getPathForUnoil(
- OfficeSettings.getDefault().getOfficeDirectory().getPath());
-
- if (unoilPath == null)
- return;
-
- File unoilFile = new File(unoilPath + File.separator + "unoil.jar");
- JarFileSystem jfs = new JarFileSystem();
-
- try {
- jfs.setJarFile(unoilFile);
- } catch (IOException ioe) {
- return;
- } catch (PropertyVetoException pve) {
- return;
- }
-
- FileSystem result;
-
- try {
- result =
- Repository.getDefault().findFileSystem(jfs.getSystemName());
- } catch (Exception exp) {
- result = null;
- } finally {
- jfs.removeNotify();
- }
-
- if (result == null) {
- JarFileSystem newjfs = new JarFileSystem();
-
- try {
- newjfs.setJarFile(unoilFile);
- } catch (IOException ioe) {
- return;
- } catch (PropertyVetoException pve) {
- return;
- }
-
- Repository.getDefault().addFileSystem(newjfs);
- newjfs.setHidden(true);
- }
- }
-
- public static void unmountDependencies() {
- String unoilPath = SVersionRCFile.getPathForUnoil(
- OfficeSettings.getDefault().getOfficeDirectory().getPath());
-
- if (unoilPath == null)
- return;
-
- File unoilFile = new File(unoilPath + File.separator + "unoil.jar");
- JarFileSystem jfs = new JarFileSystem();
-
- try {
- jfs.setJarFile(unoilFile);
- } catch (IOException ioe) {
- return;
- } catch (PropertyVetoException pve) {
- return;
- }
-
- FileSystem result;
-
- try {
- result =
- Repository.getDefault().findFileSystem(jfs.getSystemName());
-
- if (result != null)
- Repository.getDefault().removeFileSystem(result);
- } catch (Exception exp) {
- }
- }
-
- private static void warnBeforeMount() {
- OfficeSettings settings = OfficeSettings.getDefault();
-
- if (!settings.getWarnBeforeMount())
- return;
-
- String message = "The Office Scripting Framework support jar file " +
- "is not mounted, so Office scripts will not compile. NetBeans " +
- "is going to mount this jar file automatically.";
-
- String prompt = "Show this message in future.";
-
- NagDialog warning = NagDialog.createInformationDialog(
- message, prompt, true);
-
- if (!warning.getState()) {
- settings.setWarnBeforeMount(false);
- }
- }
-}
diff --git a/scripting/java/org/openoffice/netbeans/modules/office/utils/ManifestParser.java b/scripting/java/org/openoffice/netbeans/modules/office/utils/ManifestParser.java
deleted file mode 100644
index 67e6202c7789..000000000000
--- a/scripting/java/org/openoffice/netbeans/modules/office/utils/ManifestParser.java
+++ /dev/null
@@ -1,83 +0,0 @@
-/*
- * 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 .
- */
-
-package org.openoffice.netbeans.modules.office.utils;
-
-import java.io.InputStream;
-import java.io.OutputStream;
-import java.io.IOException;
-import java.io.File;
-
-import org.w3c.dom.Document;
-import org.xml.sax.InputSource;
-import org.xml.sax.SAXException;
-import org.xml.sax.SAXParseException;
-
-import org.openide.xml.XMLUtil;
-
-import com.sun.star.script.framework.container.XMLParser;
-import org.openoffice.netbeans.modules.office.options.OfficeSettings;
-import org.openoffice.idesupport.OfficeInstallation;
-
-public class ManifestParser implements XMLParser {
-
- private static ManifestParser parser = null;
-
- private ManifestParser() {
- }
-
- public static synchronized ManifestParser getManifestParser() {
- if (parser == null) {
- parser = new ManifestParser();
- }
-
- return parser;
- }
-
- public Document parse(InputStream inputStream) {
- InputSource is;
- Document result = null;
-
- try {
- OfficeInstallation oi = OfficeSettings.getDefault().getOfficeDirectory();
- String id = oi.getURL("share/dtd/officedocument/1_0/");
-
- is = new InputSource(inputStream);
- is.setSystemId(id);
-
- result = XMLUtil.parse(is, false, false, null, null);
- } catch (IOException ioe) {
- System.out.println("IO Error parsing stream.");
- return null;
- } catch (SAXParseException spe) {
- System.out.println("Sax Error parsing stream: " + spe.getMessage());
- System.out.println("\tPublicId: " + spe.getPublicId());
- System.out.println("\tSystemId: " + spe.getSystemId());
- return null;
- } catch (SAXException se) {
- System.out.println("Sax Error parsing stream: " + se.getMessage());
- return null;
- }
-
- return result;
- }
-
- public void write(Document doc, OutputStream out) throws IOException {
- XMLUtil.write(doc, out, "");
- }
-}
diff --git a/scripting/java/org/openoffice/netbeans/modules/office/utils/NagDialog.java b/scripting/java/org/openoffice/netbeans/modules/office/utils/NagDialog.java
deleted file mode 100644
index f6f9ee148e0e..000000000000
--- a/scripting/java/org/openoffice/netbeans/modules/office/utils/NagDialog.java
+++ /dev/null
@@ -1,115 +0,0 @@
-/*
- * 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 .
- */
-
-package org.openoffice.netbeans.modules.office.utils;
-
-import java.awt.BorderLayout;
-import java.awt.Dimension;
-
-import javax.swing.JPanel;
-import javax.swing.JOptionPane;
-import javax.swing.JCheckBox;
-import javax.swing.border.EmptyBorder;
-
-import org.openide.TopManager;
-import org.openide.NotifyDescriptor;
-
-public class NagDialog {
-
- private NotifyDescriptor descriptor;
- private JPanel panel;
- private JCheckBox checkbox;
-
- private NagDialog(String message, String prompt, boolean initialState,
- int type) {
- initUI(message, prompt, initialState, type);
- }
-
- public static NagDialog createInformationDialog(
- String message, String prompt, boolean initialState) {
- NagDialog result = new NagDialog(
- message, prompt, initialState, JOptionPane.INFORMATION_MESSAGE);
-
- result.setDescriptor(new NotifyDescriptor.Message(result.getPanel(),
- NotifyDescriptor.PLAIN_MESSAGE));
-
- return result;
- }
-
- public static NagDialog createConfirmationDialog(
- String message, String prompt, boolean initialState) {
- NagDialog result = new NagDialog(
- message, prompt, initialState, JOptionPane.QUESTION_MESSAGE);
-
- result.setDescriptor(new NotifyDescriptor.Confirmation(
- result.getPanel(), NotifyDescriptor.OK_CANCEL_OPTION,
- NotifyDescriptor.PLAIN_MESSAGE));
-
- return result;
- }
-
- public boolean show() {
- TopManager.getDefault().notify(descriptor);
-
- return (descriptor.getValue() == NotifyDescriptor.OK_OPTION);
- }
-
- public boolean getState() {
- return checkbox.isSelected();
- }
-
- private JPanel getPanel() {
- return this.panel;
- }
-
- private void setDescriptor(NotifyDescriptor descriptor) {
- this.descriptor = descriptor;
- }
-
- private void initUI(String message, String prompt, boolean initialState,
- int type) {
-
- this.panel = new JPanel();
- JOptionPane optionPane = new JOptionPane(message, type, 0, null,
- new Object[0], null) {
- public int getMaxCharactersPerLineCount() {
- return 100;
- }
- };
- optionPane.setUI(new javax.swing.plaf.basic.BasicOptionPaneUI() {
- public Dimension getMinimumOptionPaneSize() {
- if (minimumSize == null) {
- return new Dimension(MinimumWidth, 50);
- }
-
- return new Dimension(minimumSize.width, 50);
- }
- });
- optionPane.setWantsInput(false);
-
- JPanel checkPanel = new JPanel();
- checkbox = new JCheckBox(prompt, initialState);
- checkPanel.setLayout(new BorderLayout());
- checkPanel.setBorder(new EmptyBorder(0, 20, 0, 0));
- checkPanel.add(checkbox, BorderLayout.WEST);
-
- this.panel.setLayout(new BorderLayout());
- this.panel.add(optionPane, BorderLayout.CENTER);
- this.panel.add(checkPanel, BorderLayout.SOUTH);
- }
-}
diff --git a/scripting/java/org/openoffice/netbeans/modules/office/utils/OfficeModule.java b/scripting/java/org/openoffice/netbeans/modules/office/utils/OfficeModule.java
deleted file mode 100644
index a4d917e2552b..000000000000
--- a/scripting/java/org/openoffice/netbeans/modules/office/utils/OfficeModule.java
+++ /dev/null
@@ -1,60 +0,0 @@
-/*
- * 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 .
- */
-
-package org.openoffice.netbeans.modules.office.utils;
-
-import org.openide.TopManager;
-import org.openide.WizardDescriptor;
-import org.openide.NotifyDescriptor;
-import org.openide.modules.ModuleInstall;
-
-import com.sun.star.script.framework.container.XMLParserFactory;
-import org.openoffice.idesupport.OfficeInstallation;
-import org.openoffice.netbeans.modules.office.wizard.InstallationPathDescriptor;
-import org.openoffice.netbeans.modules.office.options.OfficeSettings;
-
-public class OfficeModule extends ModuleInstall {
-
- private static final long serialVersionUID = -8499324854301243852L;
-
- public void installed() {
- WizardDescriptor wiz = new InstallationPathDescriptor();
- TopManager.getDefault().createDialog(wiz).show();
-
- if (wiz.getValue() == NotifyDescriptor.OK_OPTION) {
- OfficeInstallation oi = (OfficeInstallation)
- wiz.getProperty(InstallationPathDescriptor.PROP_INSTALLPATH);
-
- OfficeSettings settings = OfficeSettings.getDefault();
- settings.setOfficeDirectory(oi);
- }
-
- FrameworkJarChecker.mountDependencies();
- XMLParserFactory.setParser(ManifestParser.getManifestParser());
- }
-
- public void restored() {
- FrameworkJarChecker.mountDependencies();
- XMLParserFactory.setParser(ManifestParser.getManifestParser());
- }
-
- public boolean closing() {
- FrameworkJarChecker.unmountDependencies();
- return true;
- }
-}
diff --git a/scripting/java/org/openoffice/netbeans/modules/office/utils/PackageRemover.java b/scripting/java/org/openoffice/netbeans/modules/office/utils/PackageRemover.java
deleted file mode 100644
index f79368f6f495..000000000000
--- a/scripting/java/org/openoffice/netbeans/modules/office/utils/PackageRemover.java
+++ /dev/null
@@ -1,98 +0,0 @@
-/*
- * 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 .
- */
-
-package org.openoffice.netbeans.modules.office.utils;
-
-import java.io.File;
-import java.io.FileReader;
-import java.io.FileWriter;
-import java.io.BufferedReader;
-import java.io.BufferedWriter;
-import java.io.IOException;
-
-import org.openoffice.idesupport.zip.ParcelZipper;
-
-public class PackageRemover {
- private PackageRemover() {
- }
-
- public static void removeDeclaration(File source) throws IOException {
- File tmp = new File(source.getAbsolutePath() + ".tmp");
-
- BufferedReader in = new BufferedReader(new FileReader(source));
- BufferedWriter out = new BufferedWriter(new FileWriter(tmp));
-
- try {
- String line;
-
- while ((line = in.readLine()) != null) {
- if (line.startsWith("package")) {
- String newDeclaration = evaluate(line);
-
- if (newDeclaration != null) {
- out.write(newDeclaration, 0, newDeclaration.length());
- out.newLine();
- }
- } else {
- out.write(line, 0, line.length());
- out.newLine();
- }
- }
- } finally {
- if (in != null) {
- in.close();
- }
-
- if (out != null) {
- out.close();
- }
- }
-
- if (!source.delete()) {
- tmp.delete();
- throw new IOException("Could not overwrite " + source);
- } else {
- tmp.renameTo(source);
- }
- }
-
- public static String evaluate(String line) {
-
- int idx = line.indexOf(ParcelZipper.CONTENTS_DIRNAME);
-
- if (idx == -1)
- return line;
-
- idx = idx + ParcelZipper.CONTENTS_DIRNAME.length();
-
- if (line.charAt(idx) == '.')
- return "package " + line.substring(idx + 1);;
-
- return null;
- }
-
- public static void main(String[] args) {
- File source = new File(args[0]);
-
- try {
- removeDeclaration(source);
- } catch (IOException ioe) {
- ioe.printStackTrace();
- }
- }
-}
diff --git a/scripting/java/org/openoffice/netbeans/modules/office/utils/ZipMounter.java b/scripting/java/org/openoffice/netbeans/modules/office/utils/ZipMounter.java
deleted file mode 100644
index 4163ea1ea99f..000000000000
--- a/scripting/java/org/openoffice/netbeans/modules/office/utils/ZipMounter.java
+++ /dev/null
@@ -1,81 +0,0 @@
-/*
- * 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 .
- */
-
-package org.openoffice.netbeans.modules.office.utils;
-
-import java.io.*;
-import java.util.zip.*;
-import java.beans.PropertyVetoException;
-
-import org.openide.filesystems.FileSystem;
-import org.openide.filesystems.Repository;
-
-import org.openoffice.netbeans.modules.office.filesystem.OpenOfficeDocFileSystem;
-
-public class ZipMounter {
- private static ZipMounter mounter = null;
-
- private ZipMounter() {
- }
-
- public static synchronized ZipMounter getZipMounter() {
- if (mounter == null)
- mounter = new ZipMounter();
-
- return mounter;
- }
-
- public void mountZipFile(File zipfile)
- throws IOException, PropertyVetoException {
- if (zipfile != null) {
- addDocumentToRepository(zipfile, true);
- }
- }
-
- private FileSystem addDocumentToRepository(File rootFile, boolean writeable)
- throws IOException, PropertyVetoException {
- Repository repo = Repository.getDefault();
- OpenOfficeDocFileSystem oofs;
- oofs = (OpenOfficeDocFileSystem)getMountedDocument(rootFile);
-
- if (oofs != null)
- repo.removeFileSystem(oofs);
-
- oofs = new OpenOfficeDocFileSystem();
- oofs.setDocument(rootFile);
- repo.addFileSystem(oofs);
- return oofs;
- }
-
- /** @return FileSystem which has given jar file as its root or
- * null if no such file system could be found in repository */
- private FileSystem getMountedDocument(File rootFile) {
- if (rootFile == null)
- return null;
-
- FileSystem oofs = null;
-
- try {
- oofs = Repository.getDefault().findFileSystem(
- OpenOfficeDocFileSystem.computeSystemName(rootFile));
- } catch (Exception exp) {
- }
-
- return oofs;
- }
-}
diff --git a/scripting/java/org/openoffice/netbeans/modules/office/wizard/Bundle.properties b/scripting/java/org/openoffice/netbeans/modules/office/wizard/Bundle.properties
deleted file mode 100644
index 7474954ee059..000000000000
--- a/scripting/java/org/openoffice/netbeans/modules/office/wizard/Bundle.properties
+++ /dev/null
@@ -1,44 +0,0 @@
-#
-# 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 .
-#
-# Window System API
-# x-no-translate
-
-# TopComponent
-LBL_component_name=<name of component>
-#LBL_mode_name=<name of mode>
-#LBL_workspace_name=<name of workspace>
-
-# WizardDescriptor
-# Dialog title:
-TITLE_wizard=Select Path to OpenOffice.org Installation
-
-# WizardDescriptor.Iterator
-# Label the sequence #. Appears at top of pane:
-# e.g. "Panel Name (1 of 3)"
-TITLE_x_of_y={0} of {1}
-# Provide list of steps to show in left pane:
-#LBL_step_1=Select First Thing
-#LBL_step_2=Configure Details
-
-# WizardDescriptor.Panel
-# Will appear in dialog title; see above
-TITLE_ParcelPropertiesVisualPanel=Parcel Recipe Properties
-TITLE_SelectPathVisualPanel=Path to OpenOffice.org
-
-# CallableSystemAction
-LBL_Action=Run Action
diff --git a/scripting/java/org/openoffice/netbeans/modules/office/wizard/Bundle_en_US.properties b/scripting/java/org/openoffice/netbeans/modules/office/wizard/Bundle_en_US.properties
deleted file mode 100644
index e69de29bb2d1..000000000000
--- a/scripting/java/org/openoffice/netbeans/modules/office/wizard/Bundle_en_US.properties
+++ /dev/null
diff --git a/scripting/java/org/openoffice/netbeans/modules/office/wizard/InstallationPathDescriptor.java b/scripting/java/org/openoffice/netbeans/modules/office/wizard/InstallationPathDescriptor.java
deleted file mode 100644
index f75873dade3f..000000000000
--- a/scripting/java/org/openoffice/netbeans/modules/office/wizard/InstallationPathDescriptor.java
+++ /dev/null
@@ -1,63 +0,0 @@
-/*
- * 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 .
- */
-
-package org.openoffice.netbeans.modules.office.wizard;
-
-import java.awt.Dimension;
-import java.awt.Toolkit;
-import java.net.URL;
-import java.net.MalformedURLException;
-
-import org.openide.TopManager;
-import org.openide.WizardDescriptor;
-import org.openide.util.NbBundle;
-
-/** A wizard descriptor.
- */
-public class InstallationPathDescriptor extends WizardDescriptor {
-
- private final InstallationPathIterator iterator;
- public static final String PROP_INSTALLPATH = "INSTALLPATH";
-
- /** Make a descriptor suited to use InstallationPathIterator.
- * Sets up various wizard properties to follow recommended
- * style guidelines.
- */
- public InstallationPathDescriptor() {
- this(new InstallationPathIterator());
- }
- private InstallationPathDescriptor(InstallationPathIterator iterator) {
- super(iterator);
- this.iterator = iterator;
- // Set title for the dialog:
- setTitle(NbBundle.getMessage(InstallationPathDescriptor.class, "TITLE_wizard"));
- // Make the left pane appear:
- putProperty("WizardPanel_autoWizardStyle", Boolean.TRUE); // NOI18N
- // Make the left pane show list of steps etc.:
- putProperty("WizardPanel_contentDisplayed", Boolean.TRUE); // NOI18N
- }
-
- // Called when user moves forward or backward etc.:
- protected void updateState() {
- super.updateState();
- putProperty("WizardPanel_contentData", iterator.getSteps()); // NOI18N
- putProperty("WizardPanel_contentSelectedIndex",
- Integer.valueOf(iterator.getIndex())); // NOI18N
- }
-
-}
diff --git a/scripting/java/org/openoffice/netbeans/modules/office/wizard/InstallationPathIterator.java b/scripting/java/org/openoffice/netbeans/modules/office/wizard/InstallationPathIterator.java
deleted file mode 100644
index fafd40165978..000000000000
--- a/scripting/java/org/openoffice/netbeans/modules/office/wizard/InstallationPathIterator.java
+++ /dev/null
@@ -1,150 +0,0 @@
-/*
- * 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 .
- */
-
-package org.openoffice.netbeans.modules.office.wizard;
-
-import java.io.IOException;
-import java.io.ObjectInputStream;
-import java.util.HashSet;
-import java.util.Iterator;
-import java.util.NoSuchElementException;
-import java.util.Set;
-import javax.swing.event.ChangeEvent;
-import javax.swing.event.ChangeListener;
-
-import org.openide.WizardDescriptor;
-import org.openide.util.NbBundle;
-
-/** A wizard iterator (sequence of panels).
- * Used to create a wizard. Create one or more
- * panels from template as needed too.
- */
-public class InstallationPathIterator implements WizardDescriptor.Iterator {
-
- // You should define what panels you want to use here:
-
- protected WizardDescriptor.Panel[] createPanels() {
- return new WizardDescriptor.Panel[] {
- new SelectPathPanel()
- };
- }
-
- // And the list of step names:
-
- protected String[] createSteps() {
- return new String[] {
- "Select OpenOffice.org Installation"
- };
- }
-
- // --- The rest probably does not need to be touched. ---
-
- // Keep track of the panels and selected panel:
-
- private transient int index = 0;
- // Also package-accessible to descriptor:
- protected final int getIndex() {
- return index;
- }
- private transient WizardDescriptor.Panel[] panels = null;
- protected final WizardDescriptor.Panel[] getPanels() {
- if (panels == null) {
- panels = createPanels();
- }
-
- return panels;
- }
-
- // Also the list of steps in the left pane:
-
- private transient String[] steps = null;
- // Also package-accessible to descriptor:
- protected final String[] getSteps() {
- if (steps == null) {
- steps = createSteps();
- }
-
- return steps;
- }
-
- // --- WizardDescriptor.Iterator METHODS: ---
- // Note that this is very similar to WizardDescriptor.Iterator, but with a
- // few more options for customization. If you e.g. want to make panels appear
- // or disappear dynamically, go ahead.
-
- public String name() {
- return NbBundle.getMessage(InstallationPathIterator.class, "TITLE_x_of_y",
- Integer.valueOf(index + 1), Integer.valueOf(getPanels().length));
- }
-
- public boolean hasNext() {
- return index < getPanels().length - 1;
- }
- public boolean hasPrevious() {
- return index > 0;
- }
- public void nextPanel() {
- if (!hasNext()) throw new NoSuchElementException();
-
- index++;
- }
- public void previousPanel() {
- if (!hasPrevious()) throw new NoSuchElementException();
-
- index--;
- }
- public WizardDescriptor.Panel current() {
- return getPanels()[index];
- }
-
- // If nothing unusual changes in the middle of the wizard, simply:
- public final void addChangeListener(ChangeListener l) {}
- public final void removeChangeListener(ChangeListener l) {}
- // If something changes dynamically (besides moving between panels),
- // e.g. the number of panels changes in response to user input, then
- // uncomment the following and call when needed:
- // fireChangeEvent();
- /*
- private transient Set listeners = new HashSet(1); // Set<ChangeListener>
- public final void addChangeListener(ChangeListener l) {
- synchronized (listeners) {
- listeners.add(l);
- }
- }
- public final void removeChangeListener(ChangeListener l) {
- synchronized (listeners) {
- listeners.remove(l);
- }
- }
- protected final void fireChangeEvent() {
- Iterator it;
- synchronized (listeners) {
- it = new HashSet(listeners).iterator();
- }
- ChangeEvent ev = new ChangeEvent(this);
- while (it.hasNext()) {
- ((ChangeListener)it.next()).stateChanged(ev);
- }
- }
- private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException {
- in.defaultReadObject();
- listeners = new HashSet(1);
- }
- */
-
-}
diff --git a/scripting/java/org/openoffice/netbeans/modules/office/wizard/JavaScriptIterator.java b/scripting/java/org/openoffice/netbeans/modules/office/wizard/JavaScriptIterator.java
deleted file mode 100644
index dd602ce1131d..000000000000
--- a/scripting/java/org/openoffice/netbeans/modules/office/wizard/JavaScriptIterator.java
+++ /dev/null
@@ -1,246 +0,0 @@
-/*
- * 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 .
- */
-
-package org.openoffice.netbeans.modules.office.wizard;
-
-import java.awt.Component;
-import java.io.IOException;
-import java.io.ObjectInputStream;
-import java.util.Collections;
-import java.util.HashSet;
-import java.util.Iterator;
-import java.util.NoSuchElementException;
-import java.util.Set;
-import javax.swing.JComponent;
-import javax.swing.event.ChangeEvent;
-import javax.swing.event.ChangeListener;
-
-import org.openide.ErrorManager;
-import org.openide.TopManager;
-import org.openide.NotifyDescriptor;
-import org.openide.WizardDescriptor;
-import org.openide.cookies.OpenCookie;
-import org.openide.cookies.SourceCookie;
-import org.openide.loaders.*;
-import org.openide.util.NbBundle;
-import org.openide.filesystems.*;
-
-import org.openoffice.idesupport.zip.ParcelZipper;
-import org.openoffice.netbeans.modules.office.loader.ParcelFolder;
-import org.openoffice.netbeans.modules.office.filesystem.OpenOfficeDocFileSystem;
-import org.openoffice.netbeans.modules.office.utils.PackageRemover;
-
-/** A template wizard iterator (sequence of panels).
- * Used to fill in the second and subsequent panels in the New wizard.
- * Associate this to a template inside a layer using the
- * Sequence of Panels extra property.
- * Create one or more panels from template as needed too.
- */
-public class JavaScriptIterator implements TemplateWizard.Iterator {
-
-
- // You should define what panels you want to use here:
-
- protected WizardDescriptor.Panel[] createPanels() {
- return new WizardDescriptor.Panel[] {
- // keep the default 2nd panel:
- wiz.targetChooser(),
- };
- }
-
- // And the list of step names:
-
- protected String[] createSteps() {
- return new String[] {
- null,
- };
- }
-
- private DataFolder checkTarget(DataFolder folder) {
- FileObject fo = folder.getPrimaryFile();
-
- try {
- FileSystem fs = fo.getFileSystem();
-
- if (fs instanceof OpenOfficeDocFileSystem && fo.isRoot()) {
- FileObject scripts =
- fo.getFileObject(OpenOfficeDocFileSystem.SCRIPTS_ROOT);
-
- if (scripts == null)
- scripts =
- fo.createFolder(OpenOfficeDocFileSystem.SCRIPTS_ROOT);
-
- FileObject javafolder = scripts.getFileObject("java");
-
- if (javafolder == null)
- javafolder = scripts.createFolder("java");
-
- DataFolder subfolder = new DataFolder(javafolder);
- return subfolder;
- }
- } catch (IOException ioe) {
- /* do nothing, we will just return the folder we were passed in */
- }
-
- return folder;
- }
-
- public Set instantiate(TemplateWizard wiz) throws IOException {
- String name = wiz.getTargetName();
- DataFolder targetFolder = wiz.getTargetFolder();
- targetFolder = checkTarget(targetFolder);
-
- DataObject template = wiz.getTemplate();
- DataObject result;
-
- if (name == null) {
- // Default name.
- result = template.createFromTemplate(targetFolder);
- } else {
- result = template.createFromTemplate(targetFolder, name);
- }
-
- FileObject tmp = result.getPrimaryFile();
-
- if (tmp.getExt().equals("java")) {
- try {
- PackageRemover.removeDeclaration(FileUtil.toFile(tmp));
-
- // IssueZilla 11986 - rename the FileObject
- // so the JavaNode is resynchronized
- tmp.rename(tmp.lock(), tmp.getName(), tmp.getExt());
- } catch (IOException ioe) {
- NotifyDescriptor d = new NotifyDescriptor.Message(
- "Error removing package declaration from file: " +
- tmp.getNameExt() +
- ". You should manually remove this declaration " +
- "before building the Parcel Recipe");
- TopManager.getDefault().notify(d);
- }
- }
-
- return Collections.singleton(result);
- }
-
- // --- The rest probably does not need to be touched. ---
-
- private transient int index;
- private transient WizardDescriptor.Panel[] panels;
- private transient TemplateWizard wiz;
-
- // You can keep a reference to the TemplateWizard which can
- // provide various kinds of useful information such as
- // the currently selected target name.
- // Also the panels will receive wiz as their "settings" object.
- public void initialize(TemplateWizard wiz) {
- this.wiz = wiz;
- index = 0;
- panels = createPanels();
- // Make sure list of steps is accurate.
- String[] steps = createSteps();
-
- for (int i = 0; i < panels.length; i++) {
- Component c = panels[i].getComponent();
-
- if (steps[i] == null) {
- // Default step name to component name of panel.
- // Mainly useful for getting the name of the target
- // chooser to appear in the list of steps.
- steps[i] = c.getName();
- }
-
- if (c instanceof JComponent) { // assume Swing components
- JComponent jc = (JComponent)c;
- // Step #.
- jc.putClientProperty("WizardPanel_contentSelectedIndex",
- Integer.valueOf(i)); // NOI18N
- // Step name (actually the whole list for reference).
- jc.putClientProperty("WizardPanel_contentData", steps); // NOI18N
- }
- }
- }
- public void uninitialize(TemplateWizard wiz) {
- this.wiz = null;
- panels = null;
- }
-
- // --- WizardDescriptor.Iterator METHODS: ---
- // Note that this is very similar to WizardDescriptor.Iterator, but with a
- // few more options for customization. If you e.g. want to make panels appear
- // or disappear dynamically, go ahead.
-
- public String name() {
- return "";
- }
-
- public boolean hasNext() {
- return index < panels.length - 1;
- }
- public boolean hasPrevious() {
- return index > 0;
- }
- public void nextPanel() {
- if (!hasNext()) throw new NoSuchElementException();
-
- index++;
- }
- public void previousPanel() {
- if (!hasPrevious()) throw new NoSuchElementException();
-
- index--;
- }
- public WizardDescriptor.Panel current() {
- return panels[index];
- }
-
- // If nothing unusual changes in the middle of the wizard, simply:
- public final void addChangeListener(ChangeListener l) {}
- public final void removeChangeListener(ChangeListener l) {}
- // If something changes dynamically (besides moving between panels),
- // e.g. the number of panels changes in response to user input, then
- // uncomment the following and call when needed:
- // fireChangeEvent();
- /*
- private transient Set listeners = new HashSet(1); // Set<ChangeListener>
- public final void addChangeListener(ChangeListener l) {
- synchronized(listeners) {
- listeners.add(l);
- }
- }
- public final void removeChangeListener(ChangeListener l) {
- synchronized(listeners) {
- listeners.remove(l);
- }
- }
- protected final void fireChangeEvent() {
- Iterator it;
- synchronized (listeners) {
- it = new HashSet(listeners).iterator();
- }
- ChangeEvent ev = new ChangeEvent(this);
- while (it.hasNext()) {
- ((ChangeListener)it.next()).stateChanged(ev);
- }
- }
- private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException {
- in.defaultReadObject();
- listeners = new HashSet(1);
- }
- */
-
-}
diff --git a/scripting/java/org/openoffice/netbeans/modules/office/wizard/ParcelContentsIterator.java b/scripting/java/org/openoffice/netbeans/modules/office/wizard/ParcelContentsIterator.java
deleted file mode 100644
index 4135724d2010..000000000000
--- a/scripting/java/org/openoffice/netbeans/modules/office/wizard/ParcelContentsIterator.java
+++ /dev/null
@@ -1,248 +0,0 @@
-/*
- * 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 .
- */
-
-package org.openoffice.netbeans.modules.office.wizard;
-
-import java.awt.Component;
-import java.io.File;
-import java.io.IOException;
-import java.io.ObjectInputStream;
-import java.util.Collections;
-import java.util.HashSet;
-import java.util.Iterator;
-import java.util.NoSuchElementException;
-import java.util.Set;
-import javax.swing.JComponent;
-import javax.swing.event.ChangeEvent;
-import javax.swing.event.ChangeListener;
-
-import org.openide.TopManager;
-import org.openide.NotifyDescriptor;
-import org.openide.WizardDescriptor;
-import org.openide.cookies.OpenCookie;
-import org.openide.cookies.SourceCookie;
-import org.openide.loaders.*;
-import org.openide.util.NbBundle;
-import org.openide.filesystems.*;
-
-import com.sun.star.script.framework.container.ParcelDescriptor;
-import org.openoffice.idesupport.zip.ParcelZipper;
-import org.openoffice.netbeans.modules.office.loader.ParcelFolder;
-import org.openoffice.netbeans.modules.office.loader.ParcelContentsFolder;
-import org.openoffice.netbeans.modules.office.filesystem.OpenOfficeDocFileSystem;
-
-/** A template wizard iterator (sequence of panels).
- * Used to fill in the second and subsequent panels in the New wizard.
- * Associate this to a template inside a layer using the
- * Sequence of Panels extra property.
- * Create one or more panels from template as needed too.
- */
-public class ParcelContentsIterator implements TemplateWizard.Iterator {
-
-
- // You should define what panels you want to use here:
-
- public static final String PROP_LANGUAGE =
- ParcelFolder.LANGUAGE_ATTRIBUTE;
-
- protected WizardDescriptor.Panel[] createPanels() {
- return new WizardDescriptor.Panel[] {
- new ParcelPropertiesPanel(),
- };
- }
-
- // And the list of step names:
-
- protected String[] createSteps() {
- return new String[] {
- // null,
- "Parcel Properties",
- };
- }
-
- private DataFolder checkTarget(DataFolder folder) {
- FileObject fo = folder.getPrimaryFile();
-
- try {
- FileSystem fs = fo.getFileSystem();
-
- if (fs instanceof OpenOfficeDocFileSystem && fo.isRoot()) {
- FileObject scripts =
- fo.getFileObject(OpenOfficeDocFileSystem.SCRIPTS_ROOT);
-
- if (scripts == null)
- scripts =
- fo.createFolder(OpenOfficeDocFileSystem.SCRIPTS_ROOT);
-
- FileObject javafolder = scripts.getFileObject("java");
-
- if (javafolder == null)
- javafolder = scripts.createFolder("java");
-
- DataFolder subfolder = new DataFolder(javafolder);
- return subfolder;
- }
- } catch (IOException ioe) {
- /* do nothing, we will just return the folder we were passed in */
- }
-
- return folder;
- }
-
- public Set instantiate(TemplateWizard wiz) throws IOException {
- String name = wiz.getTargetName();
- DataFolder targetFolder = wiz.getTargetFolder();
- targetFolder = checkTarget(targetFolder);
-
- String language = (String)wiz.getProperty(PROP_LANGUAGE);
-
- DataObject template = wiz.getTemplate();
- DataObject result;
-
- if (name == null) {
- // Default name.
- result = template.createFromTemplate(targetFolder);
- } else {
- result = template.createFromTemplate(targetFolder, name);
- }
-
- FileObject recipe = result.getPrimaryFile();
-
- FileObject contents =
- recipe.getFileObject(ParcelZipper.CONTENTS_DIRNAME);
-
- if (contents != null) {
- File f = FileUtil.toFile(contents);
- ParcelDescriptor pd = ParcelDescriptor.createParcelDescriptor(f);
- pd.setLanguage(language);
- pd.write();
-
- DataFolder parent = DataFolder.findFolder(contents);
- ParcelContentsFolder.createEmptyScript(parent, language);
- }
-
- return Collections.singleton(result);
- }
-
- // --- The rest probably does not need to be touched. ---
-
- private transient int index;
- private transient WizardDescriptor.Panel[] panels;
- private transient TemplateWizard wiz;
-
- // You can keep a reference to the TemplateWizard which can
- // provide various kinds of useful information such as
- // the currently selected target name.
- // Also the panels will receive wiz as their "settings" object.
- public void initialize(TemplateWizard wiz) {
- this.wiz = wiz;
- index = 0;
- panels = createPanels();
- // Make sure list of steps is accurate.
- String[] steps = createSteps();
-
- for (int i = 0; i < panels.length; i++) {
- Component c = panels[i].getComponent();
-
- if (steps[i] == null) {
- // Default step name to component name of panel.
- // Mainly useful for getting the name of the target
- // chooser to appear in the list of steps.
- steps[i] = c.getName();
- }
-
- if (c instanceof JComponent) { // assume Swing components
- JComponent jc = (JComponent)c;
- // Step #.
- jc.putClientProperty("WizardPanel_contentSelectedIndex",
- Integer.valueOf(i)); // NOI18N
- // Step name (actually the whole list for reference).
- jc.putClientProperty("WizardPanel_contentData", steps); // NOI18N
- }
- }
- }
- public void uninitialize(TemplateWizard wiz) {
- this.wiz = null;
- panels = null;
- }
-
- // --- WizardDescriptor.Iterator METHODS: ---
- // Note that this is very similar to WizardDescriptor.Iterator, but with a
- // few more options for customization. If you e.g. want to make panels appear
- // or disappear dynamically, go ahead.
-
- public String name() {
- return "";
- }
-
- public boolean hasNext() {
- return index < panels.length - 1;
- }
- public boolean hasPrevious() {
- return index > 0;
- }
- public void nextPanel() {
- if (!hasNext()) throw new NoSuchElementException();
-
- index++;
- }
- public void previousPanel() {
- if (!hasPrevious()) throw new NoSuchElementException();
-
- index--;
- }
- public WizardDescriptor.Panel current() {
- return panels[index];
- }
-
- // If nothing unusual changes in the middle of the wizard, simply:
- public final void addChangeListener(ChangeListener l) {}
- public final void removeChangeListener(ChangeListener l) {}
- // If something changes dynamically (besides moving between panels),
- // e.g. the number of panels changes in response to user input, then
- // uncomment the following and call when needed:
- // fireChangeEvent();
- /*
- private transient Set listeners = new HashSet(1); // Set<ChangeListener>
- public final void addChangeListener(ChangeListener l) {
- synchronized(listeners) {
- listeners.add(l);
- }
- }
- public final void removeChangeListener(ChangeListener l) {
- synchronized(listeners) {
- listeners.remove(l);
- }
- }
- protected final void fireChangeEvent() {
- Iterator it;
- synchronized (listeners) {
- it = new HashSet(listeners).iterator();
- }
- ChangeEvent ev = new ChangeEvent(this);
- while (it.hasNext()) {
- ((ChangeListener)it.next()).stateChanged(ev);
- }
- }
- private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException {
- in.defaultReadObject();
- listeners = new HashSet(1);
- }
- */
-
-}
diff --git a/scripting/java/org/openoffice/netbeans/modules/office/wizard/ParcelPropertiesPanel.java b/scripting/java/org/openoffice/netbeans/modules/office/wizard/ParcelPropertiesPanel.java
deleted file mode 100644
index aaf3abd5a186..000000000000
--- a/scripting/java/org/openoffice/netbeans/modules/office/wizard/ParcelPropertiesPanel.java
+++ /dev/null
@@ -1,124 +0,0 @@
-/*
- * 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 .
- */
-
-package org.openoffice.netbeans.modules.office.wizard;
-
-import java.awt.Component;
-import java.net.URL;
-import java.net.MalformedURLException;
-import java.util.HashSet;
-import java.util.Iterator;
-import java.util.Set;
-import javax.swing.event.ChangeEvent;
-import javax.swing.event.ChangeListener;
-
-import org.openide.WizardDescriptor;
-import org.openide.loaders.TemplateWizard;
-import org.openide.util.HelpCtx;
-import org.openide.util.NbBundle;
-
-/** A single panel descriptor for a wizard.
- * You probably want to make a wizard iterator to hold it.
- */
-public class ParcelPropertiesPanel implements WizardDescriptor.FinishPanel {
-
- /** The visual component that displays this panel.
- * If you need to access the component from this class,
- * just use getComponent().
- */
- private ParcelPropertiesVisualPanel component;
-
- // Get the visual component for the panel. In this template, the component
- // is kept separate. This can be more efficient: if the wizard is created
- // but never displayed, or not all panels are displayed, it is better to
- // create only those which really need to be visible.
- public Component getComponent() {
- if (component == null) {
- component = new ParcelPropertiesVisualPanel(this);
- }
-
- return component;
- }
-
- public HelpCtx getHelp() {
- // Show no Help button for this panel:
- return HelpCtx.DEFAULT_HELP;
- // If you have context help:
- // return new HelpCtx(ParcelPropertiesPanel.class);
- }
-
- public boolean isValid() {
- // If it is always OK to press Next or Finish, then:
- return true;
- // If it depends on some condition (form filled out...), then:
- // return someCondition();
- // and when this condition changes (last form field filled in...) then:
- // fireChangeEvent();
- // and uncomment the complicated stuff below.
- }
-
- public final void addChangeListener(ChangeListener l) {}
- public final void removeChangeListener(ChangeListener l) {}
- /*
- private final Set listeners = new HashSet(1); // Set<ChangeListener>
- public final void addChangeListener(ChangeListener l) {
- synchronized (listeners) {
- listeners.add(l);
- }
- }
- public final void removeChangeListener(ChangeListener l) {
- synchronized (listeners) {
- listeners.remove(l);
- }
- }
- protected final void fireChangeEvent() {
- Iterator it;
- synchronized (listeners) {
- it = new HashSet(listeners).iterator();
- }
- ChangeEvent ev = new ChangeEvent(this);
- while (it.hasNext()) {
- ((ChangeListener)it.next()).stateChanged(ev);
- }
- }
- */
-
- public void setName(String name) {
- this.name = name;
- }
-
- public void setLanguage(String language) {
- this.language = language;
- }
-
- private String language = "Java";
- private String name = null;
-
- // You can use a settings object to keep track of state.
- // Normally the settings object will be the WizardDescriptor,
- // so you can use WizardDescriptor.getProperty & putProperty
- // to store information entered by the user.
- public void readSettings(Object settings) {
- }
-
- public void storeSettings(Object settings) {
- TemplateWizard wiz = (TemplateWizard)settings;
- wiz.setTargetName(name);
- wiz.putProperty(ParcelContentsIterator.PROP_LANGUAGE, language);
- }
-}
diff --git a/scripting/java/org/openoffice/netbeans/modules/office/wizard/ParcelPropertiesVisualPanel.form b/scripting/java/org/openoffice/netbeans/modules/office/wizard/ParcelPropertiesVisualPanel.form
deleted file mode 100644
index 5c22ca6f2fe4..000000000000
--- a/scripting/java/org/openoffice/netbeans/modules/office/wizard/ParcelPropertiesVisualPanel.form
+++ /dev/null
@@ -1,90 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" ?>
-<!--
- * 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 .
--->
-<Form version="1.0" type="org.netbeans.modules.form.forminfo.JPanelFormInfo">
- <Properties>
- <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
- <Dimension value="[500, 300]"/>
- </Property>
- </Properties>
- <AuxValues>
- <AuxValue name="designerSize" type="java.awt.Dimension" value="-84,-19,0,5,115,114,0,18,106,97,118,97,46,97,119,116,46,68,105,109,101,110,115,105,111,110,65,-114,-39,-41,-84,95,68,20,2,0,2,73,0,6,104,101,105,103,104,116,73,0,5,119,105,100,116,104,120,112,0,0,1,75,0,0,1,-112"/>
- </AuxValues>
-
- <Layout class="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout"/>
- <SubComponents>
- <Component class="javax.swing.JLabel" name="jLabel1">
- <Properties>
- <Property name="text" type="java.lang.String" value="Parcel Recipe Name"/>
- </Properties>
- <Constraints>
- <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription">
- <GridBagConstraints gridX="0" gridY="0" gridWidth="1" gridHeight="1" fill="0" ipadX="0" ipadY="0" insetsTop="12" insetsLeft="12" insetsBottom="11" insetsRight="2" anchor="17" weightX="0.0" weightY="0.0"/>
- </Constraint>
- </Constraints>
- </Component>
- <Component class="javax.swing.JTextField" name="recipeName">
- <Events>
- <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="recipeNameActionPerformed"/>
- <EventHandler event="focusGained" listener="java.awt.event.FocusListener" parameters="java.awt.event.FocusEvent" handler="recipeNameFocusGained"/>
- <EventHandler event="focusLost" listener="java.awt.event.FocusListener" parameters="java.awt.event.FocusEvent" handler="recipeNameFocusLost"/>
- </Events>
- <Constraints>
- <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription">
- <GridBagConstraints gridX="1" gridY="0" gridWidth="0" gridHeight="1" fill="2" ipadX="0" ipadY="0" insetsTop="12" insetsLeft="0" insetsBottom="11" insetsRight="11" anchor="10" weightX="1.0" weightY="0.0"/>
- </Constraint>
- </Constraints>
- </Component>
- <Component class="javax.swing.JLabel" name="jLabel2">
- <Properties>
- <Property name="text" type="java.lang.String" value="Initial Script Language"/>
- </Properties>
- <Constraints>
- <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription">
- <GridBagConstraints gridX="0" gridY="1" gridWidth="1" gridHeight="1" fill="0" ipadX="0" ipadY="0" insetsTop="0" insetsLeft="12" insetsBottom="11" insetsRight="12" anchor="17" weightX="0.0" weightY="0.0"/>
- </Constraint>
- </Constraints>
- </Component>
- <Component class="javax.swing.JComboBox" name="languagesComboBox">
- <Events>
- <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="languagesComboBoxActionPerformed"/>
- </Events>
- <AuxValues>
- <AuxValue name="JavaCodeGenerator_InitCodePre" type="java.lang.String" value=""/>
- <AuxValue name="JavaCodeGenerator_CreateCodePre" type="java.lang.String" value=""/>
- <AuxValue name="JavaCodeGenerator_SerializeTo" type="java.lang.String" value=""/>
- <AuxValue name="JavaCodeGenerator_CreateCodePost" type="java.lang.String" value=""/>
- <AuxValue name="JavaCodeGenerator_CodeGeneration" type="java.lang.Integer" value="0"/>
- </AuxValues>
- <Constraints>
- <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription">
- <GridBagConstraints gridX="1" gridY="1" gridWidth="0" gridHeight="1" fill="2" ipadX="0" ipadY="0" insetsTop="0" insetsLeft="0" insetsBottom="11" insetsRight="11" anchor="17" weightX="0.0" weightY="0.0"/>
- </Constraint>
- </Constraints>
- </Component>
- <Container class="javax.swing.JPanel" name="jPanel1">
- <Constraints>
- <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription">
- <GridBagConstraints gridX="-1" gridY="-1" gridWidth="1" gridHeight="1" fill="3" ipadX="0" ipadY="0" insetsTop="0" insetsLeft="0" insetsBottom="0" insetsRight="0" anchor="10" weightX="0.0" weightY="1.0"/>
- </Constraint>
- </Constraints>
-
- <Layout class="org.netbeans.modules.form.compat2.layouts.DesignFlowLayout"/>
- </Container>
- </SubComponents>
-</Form>
diff --git a/scripting/java/org/openoffice/netbeans/modules/office/wizard/ParcelPropertiesVisualPanel.java b/scripting/java/org/openoffice/netbeans/modules/office/wizard/ParcelPropertiesVisualPanel.java
deleted file mode 100644
index bf10d713e4c7..000000000000
--- a/scripting/java/org/openoffice/netbeans/modules/office/wizard/ParcelPropertiesVisualPanel.java
+++ /dev/null
@@ -1,163 +0,0 @@
-/*
- * 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 .
- */
-
-package org.openoffice.netbeans.modules.office.wizard;
-
-import org.openide.util.NbBundle;
-
-/** A single panel for a wizard - the GUI portion.
- */
-public class ParcelPropertiesVisualPanel extends javax.swing.JPanel {
-
- /** The wizard panel descriptor associated with this GUI panel.
- * If you need to fire state changes or something similar, you can
- * use this handle to do so.
- */
- private final ParcelPropertiesPanel panel;
-
- /** Create the wizard panel and set up some basic properties. */
- public ParcelPropertiesVisualPanel(ParcelPropertiesPanel panel) {
- this.panel = panel;
- initComponents();
-
- languagesComboBox.addItem("Java");
- languagesComboBox.addItem("BeanShell");
-
- // Provide a name in the title bar.
- setName(NbBundle.getMessage(ParcelPropertiesVisualPanel.class,
- "TITLE_ParcelPropertiesVisualPanel"));
- }
-
- /** This method is called from within the constructor to
- * initialize the form.
- * WARNING: Do NOT modify this code. The content of this method is
- * always regenerated by the Form Editor.
- */
- private void initComponents() {//GEN-BEGIN:initComponents
- java.awt.GridBagConstraints gridBagConstraints;
-
- jLabel1 = new javax.swing.JLabel();
- recipeName = new javax.swing.JTextField();
- jLabel2 = new javax.swing.JLabel();
- languagesComboBox = new javax.swing.JComboBox();
- jPanel1 = new javax.swing.JPanel();
-
- setLayout(new java.awt.GridBagLayout());
-
- setPreferredSize(new java.awt.Dimension(500, 300));
- jLabel1.setText("Parcel Recipe Name");
- gridBagConstraints = new java.awt.GridBagConstraints();
- gridBagConstraints.gridx = 0;
- gridBagConstraints.gridy = 0;
- gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
- gridBagConstraints.insets = new java.awt.Insets(12, 12, 11, 2);
- add(jLabel1, gridBagConstraints);
-
- recipeName.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- recipeNameActionPerformed(evt);
- }
- });
-
- recipeName.addFocusListener(new java.awt.event.FocusAdapter() {
- public void focusGained(java.awt.event.FocusEvent evt) {
- recipeNameFocusGained(evt);
- }
- public void focusLost(java.awt.event.FocusEvent evt) {
- recipeNameFocusLost(evt);
- }
- });
-
- gridBagConstraints = new java.awt.GridBagConstraints();
- gridBagConstraints.gridx = 1;
- gridBagConstraints.gridy = 0;
- gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
- gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
- gridBagConstraints.weightx = 1.0;
- gridBagConstraints.insets = new java.awt.Insets(12, 0, 11, 11);
- add(recipeName, gridBagConstraints);
-
- jLabel2.setText("Initial Script Language");
- gridBagConstraints = new java.awt.GridBagConstraints();
- gridBagConstraints.gridx = 0;
- gridBagConstraints.gridy = 1;
- gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
- gridBagConstraints.insets = new java.awt.Insets(0, 12, 11, 12);
- add(jLabel2, gridBagConstraints);
-
- languagesComboBox.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- languagesComboBoxActionPerformed(evt);
- }
- });
-
- gridBagConstraints = new java.awt.GridBagConstraints();
- gridBagConstraints.gridx = 1;
- gridBagConstraints.gridy = 1;
- gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
- gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
- gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
- gridBagConstraints.insets = new java.awt.Insets(0, 0, 11, 11);
- add(languagesComboBox, gridBagConstraints);
-
- gridBagConstraints = new java.awt.GridBagConstraints();
- gridBagConstraints.fill = java.awt.GridBagConstraints.VERTICAL;
- gridBagConstraints.weighty = 1.0;
- add(jPanel1, gridBagConstraints);
-
- }//GEN-END:initComponents
-
- private void recipeNameFocusGained(java.awt.event.FocusEvent
- evt) {//GEN-FIRST:event_recipeNameFocusGained
- recipeName.selectAll();
- }//GEN-LAST:event_recipeNameFocusGained
-
- private void recipeNameFocusLost(java.awt.event.FocusEvent
- evt) {//GEN-FIRST:event_recipeNameFocusLost
- changeName();
- }//GEN-LAST:event_recipeNameFocusLost
-
- private void languagesComboBoxActionPerformed(java.awt.event.ActionEvent
- evt) {//GEN-FIRST:event_languagesComboBoxActionPerformed
- String language = (String)languagesComboBox.getSelectedItem();
- panel.setLanguage(language);
- }//GEN-LAST:event_languagesComboBoxActionPerformed
-
- private void recipeNameActionPerformed(java.awt.event.ActionEvent
- evt) {//GEN-FIRST:event_recipeNameActionPerformed
- changeName();
- }//GEN-LAST:event_recipeNameActionPerformed
-
- private void changeName() {
- String name = recipeName.getText().trim();
-
- if (name.length() == 0)
- name = null;
-
- panel.setName(name);
- }
-
- // Variables declaration - do not modify//GEN-BEGIN:variables
- private javax.swing.JTextField recipeName;
- private javax.swing.JLabel jLabel2;
- private javax.swing.JLabel jLabel1;
- private javax.swing.JPanel jPanel1;
- private javax.swing.JComboBox languagesComboBox;
- // End of variables declaration//GEN-END:variables
-
-}
diff --git a/scripting/java/org/openoffice/netbeans/modules/office/wizard/SelectPathPanel.java b/scripting/java/org/openoffice/netbeans/modules/office/wizard/SelectPathPanel.java
deleted file mode 100644
index dfa434d75a35..000000000000
--- a/scripting/java/org/openoffice/netbeans/modules/office/wizard/SelectPathPanel.java
+++ /dev/null
@@ -1,134 +0,0 @@
-/*
- * 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 .
- */
-
-package org.openoffice.netbeans.modules.office.wizard;
-
-import java.awt.Component;
-import java.util.HashSet;
-import java.util.Iterator;
-import java.util.Set;
-import javax.swing.event.ChangeEvent;
-import javax.swing.event.ChangeListener;
-
-import org.openide.WizardDescriptor;
-import org.openide.util.HelpCtx;
-import org.openide.util.NbBundle;
-
-import org.openoffice.netbeans.modules.office.options.OfficeSettings;
-import org.openoffice.idesupport.OfficeInstallation;
-import org.openoffice.idesupport.SVersionRCFile;
-
-/** A single panel descriptor for a wizard.
- * You probably want to make a wizard iterator to hold it.
- */
-public class SelectPathPanel implements
- WizardDescriptor.Panel { /* .FinishPanel */
-
- /** The visual component that displays this panel.
- * If you need to access the component from this class,
- * just use getComponent().
- */
- private SelectPathVisualPanel component;
- private OfficeInstallation office;
-
- /** Create the wizard panel descriptor. */
- public SelectPathPanel() {
- office = OfficeSettings.getDefault().getOfficeDirectory();
-
- if (office == null) {
- try {
- office = SVersionRCFile.createInstance().getDefaultVersion();
- } catch (java.io.IOException ioe) {}
- }
- }
-
- // Get the visual component for the panel. In this template, the component
- // is kept separate. This can be more efficient: if the wizard is created
- // but never displayed, or not all panels are displayed, it is better to
- // create only those which really need to be visible.
- public Component getComponent() {
- if (component == null) {
- component = new SelectPathVisualPanel(this);
- }
-
- return component;
- }
-
- public HelpCtx getHelp() {
- // Show no Help button for this panel:
- return HelpCtx.DEFAULT_HELP;
- // If you have context help:
- // return new HelpCtx(SelectPathPanel.class);
- }
-
- public boolean isValid() {
- // If it is always OK to press Next or Finish, then:
- return true;
- // If it depends on some condition (form filled out...), then:
- // return someCondition();
- // and when this condition changes (last form field filled in...) then:
- // fireChangeEvent();
- // and uncomment the complicated stuff below.
- }
-
- private final Set listeners = new HashSet(1); // Set<ChangeListener>
- public final void addChangeListener(ChangeListener l) {
- synchronized (listeners) {
- listeners.add(l);
- }
- }
- public final void removeChangeListener(ChangeListener l) {
- synchronized (listeners) {
- listeners.remove(l);
- }
- }
- protected final void fireChangeEvent() {
- Iterator it;
-
- synchronized (listeners) {
- it = new HashSet(listeners).iterator();
- }
-
- ChangeEvent ev = new ChangeEvent(this);
-
- while (it.hasNext()) {
- ((ChangeListener)it.next()).stateChanged(ev);
- }
- }
-
- public void setSelectedPath(OfficeInstallation oi) {
- this.office = oi;
- fireChangeEvent();
- }
-
- public OfficeInstallation getSelectedPath() {
- return office;
- }
-
- // You can use a settings object to keep track of state.
- // Normally the settings object will be the WizardDescriptor,
- // so you can use WizardDescriptor.getProperty & putProperty
- // to store information entered by the user.
- public void readSettings(Object settings) {
- }
-
- public void storeSettings(Object settings) {
- WizardDescriptor wiz = (WizardDescriptor)settings;
- wiz.putProperty(InstallationPathDescriptor.PROP_INSTALLPATH, office);
- }
-}
diff --git a/scripting/java/org/openoffice/netbeans/modules/office/wizard/SelectPathVisualPanel.form b/scripting/java/org/openoffice/netbeans/modules/office/wizard/SelectPathVisualPanel.form
deleted file mode 100644
index eb742089ed19..000000000000
--- a/scripting/java/org/openoffice/netbeans/modules/office/wizard/SelectPathVisualPanel.form
+++ /dev/null
@@ -1,98 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" ?>
-<!--
- * 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 .
--->
-<Form version="1.0" type="org.netbeans.modules.form.forminfo.JPanelFormInfo">
- <Properties>
- <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
- <Dimension value="[600, 300]"/>
- </Property>
- </Properties>
- <AuxValues>
- <AuxValue name="designerSize" type="java.awt.Dimension" value="-84,-19,0,5,115,114,0,18,106,97,118,97,46,97,119,116,46,68,105,109,101,110,115,105,111,110,65,-114,-39,-41,-84,95,68,20,2,0,2,73,0,6,104,101,105,103,104,116,73,0,5,119,105,100,116,104,120,112,0,0,1,27,0,0,2,1"/>
- </AuxValues>
-
- <Layout class="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout"/>
- <SubComponents>
- <Component class="javax.swing.JLabel" name="jLabel1">
- <Properties>
- <Property name="text" type="java.lang.String" value="Installations Detected"/>
- </Properties>
- <Constraints>
- <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription">
- <GridBagConstraints gridX="0" gridY="0" gridWidth="1" gridHeight="1" fill="0" ipadX="0" ipadY="0" insetsTop="12" insetsLeft="12" insetsBottom="11" insetsRight="2" anchor="17" weightX="0.0" weightY="0.0"/>
- </Constraint>
- </Constraints>
- </Component>
- <Component class="javax.swing.JTextField" name="installPath">
- <Properties>
- <Property name="editable" type="boolean" value="false"/>
- </Properties>
- <Constraints>
- <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription">
- <GridBagConstraints gridX="1" gridY="1" gridWidth="1" gridHeight="1" fill="2" ipadX="0" ipadY="0" insetsTop="12" insetsLeft="0" insetsBottom="11" insetsRight="11" anchor="10" weightX="1.0" weightY="0.0"/>
- </Constraint>
- </Constraints>
- </Component>
- <Component class="javax.swing.JLabel" name="jLabel2">
- <Properties>
- <Property name="text" type="java.lang.String" value="Installation Directory"/>
- </Properties>
- <Constraints>
- <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription">
- <GridBagConstraints gridX="0" gridY="1" gridWidth="1" gridHeight="1" fill="0" ipadX="0" ipadY="0" insetsTop="12" insetsLeft="12" insetsBottom="11" insetsRight="12" anchor="10" weightX="0.0" weightY="0.0"/>
- </Constraint>
- </Constraints>
- </Component>
- <Component class="javax.swing.JComboBox" name="installationsComboBox">
- <AuxValues>
- <AuxValue name="JavaCodeGenerator_InitCodePre" type="java.lang.String" value=""/>
- <AuxValue name="JavaCodeGenerator_CreateCodePre" type="java.lang.String" value=""/>
- <AuxValue name="JavaCodeGenerator_SerializeTo" type="java.lang.String" value=""/>
- <AuxValue name="JavaCodeGenerator_CreateCodePost" type="java.lang.String" value=""/>
- <AuxValue name="JavaCodeGenerator_CodeGeneration" type="java.lang.Integer" value="0"/>
- </AuxValues>
- <Constraints>
- <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription">
- <GridBagConstraints gridX="1" gridY="0" gridWidth="1" gridHeight="1" fill="2" ipadX="0" ipadY="0" insetsTop="11" insetsLeft="0" insetsBottom="11" insetsRight="11" anchor="17" weightX="0.0" weightY="0.0"/>
- </Constraint>
- </Constraints>
- </Component>
- <Container class="javax.swing.JPanel" name="jPanel1">
- <Constraints>
- <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription">
- <GridBagConstraints gridX="-1" gridY="2" gridWidth="1" gridHeight="1" fill="3" ipadX="0" ipadY="0" insetsTop="0" insetsLeft="0" insetsBottom="0" insetsRight="0" anchor="10" weightX="0.0" weightY="1.0"/>
- </Constraint>
- </Constraints>
-
- <Layout class="org.netbeans.modules.form.compat2.layouts.DesignFlowLayout"/>
- </Container>
- <Component class="javax.swing.JButton" name="browseButton">
- <Properties>
- <Property name="text" type="java.lang.String" value="Browse..."/>
- </Properties>
- <Events>
- <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="browseButtonActionPerformed"/>
- </Events>
- <Constraints>
- <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription">
- <GridBagConstraints gridX="2" gridY="1" gridWidth="0" gridHeight="1" fill="0" ipadX="0" ipadY="0" insetsTop="0" insetsLeft="0" insetsBottom="0" insetsRight="0" anchor="10" weightX="0.0" weightY="0.0"/>
- </Constraint>
- </Constraints>
- </Component>
- </SubComponents>
-</Form>
diff --git a/scripting/java/org/openoffice/netbeans/modules/office/wizard/SelectPathVisualPanel.java b/scripting/java/org/openoffice/netbeans/modules/office/wizard/SelectPathVisualPanel.java
deleted file mode 100644
index ca26a25bc150..000000000000
--- a/scripting/java/org/openoffice/netbeans/modules/office/wizard/SelectPathVisualPanel.java
+++ /dev/null
@@ -1,196 +0,0 @@
-/*
- * 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 .
- */
-
-package org.openoffice.netbeans.modules.office.wizard;
-
-import java.util.Hashtable;
-import java.util.Enumeration;
-import java.io.File;
-import java.io.IOException;
-import javax.swing.JFileChooser;
-
-import org.openide.util.NbBundle;
-import org.openoffice.idesupport.SVersionRCFile;
-import org.openoffice.idesupport.OfficeInstallation;
-import org.openoffice.netbeans.modules.office.options.OfficeSettings;
-
-/** A single panel for a wizard - the GUI portion.
- */
-public class SelectPathVisualPanel extends javax.swing.JPanel {
-
- /** The wizard panel descriptor associated with this GUI panel.
- * If you need to fire state changes or something similar, you can
- * use this handle to do so.
- */
- private final SelectPathPanel panel;
-
- /** Create the wizard panel and set up some basic properties. */
- public SelectPathVisualPanel(SelectPathPanel panel) {
- this.panel = panel;
- initComponents();
- OfficeInstallation orig = panel.getSelectedPath();
-
- try {
- Enumeration enumer = SVersionRCFile.createInstance().getVersions();
-
- while (enumer.hasMoreElements()) {
- OfficeInstallation oi = (OfficeInstallation)enumer.nextElement();
- installationsComboBox.addItem(oi);
- }
- } catch (IOException ioe) {
- installationsComboBox.addItem("<empty>");
- }
-
- if (orig != null) {
- installationsComboBox.setSelectedItem(orig);
- installPath.setText(orig.getPath());
- }
-
- installationsComboBox.addActionListener(
- new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- installationsComboBoxActionPerformed(evt);
- }
- }
- );
-
- // Provide a name in the title bar.
- setName(NbBundle.getMessage(SelectPathVisualPanel.class,
- "TITLE_SelectPathVisualPanel"));
- }
-
- private void installationsComboBoxActionPerformed(
- java.awt.event.ActionEvent evt) {
-
- OfficeInstallation oi =
- (OfficeInstallation)installationsComboBox.getSelectedItem();
-
- installPath.setText(oi.getPath());
- panel.setSelectedPath(oi);
- }
-
- /** This method is called from within the constructor to
- * initialize the form.
- * WARNING: Do NOT modify this code. The content of this method is
- * always regenerated by the Form Editor.
- */
- private void initComponents() {//GEN-BEGIN:initComponents
- java.awt.GridBagConstraints gridBagConstraints;
-
- jLabel1 = new javax.swing.JLabel();
- installPath = new javax.swing.JTextField();
- jLabel2 = new javax.swing.JLabel();
- installationsComboBox = new javax.swing.JComboBox();
- jPanel1 = new javax.swing.JPanel();
- browseButton = new javax.swing.JButton();
-
- setLayout(new java.awt.GridBagLayout());
-
- setPreferredSize(new java.awt.Dimension(600, 300));
- jLabel1.setText("Installations Detected");
- gridBagConstraints = new java.awt.GridBagConstraints();
- gridBagConstraints.gridx = 0;
- gridBagConstraints.gridy = 0;
- gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
- gridBagConstraints.insets = new java.awt.Insets(12, 12, 11, 2);
- add(jLabel1, gridBagConstraints);
-
- installPath.setEditable(false);
- gridBagConstraints = new java.awt.GridBagConstraints();
- gridBagConstraints.gridx = 1;
- gridBagConstraints.gridy = 1;
- gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
- gridBagConstraints.weightx = 1.0;
- gridBagConstraints.insets = new java.awt.Insets(12, 0, 11, 11);
- add(installPath, gridBagConstraints);
-
- jLabel2.setText("Installation Directory");
- gridBagConstraints = new java.awt.GridBagConstraints();
- gridBagConstraints.gridx = 0;
- gridBagConstraints.gridy = 1;
- gridBagConstraints.insets = new java.awt.Insets(12, 12, 11, 12);
- add(jLabel2, gridBagConstraints);
-
- gridBagConstraints = new java.awt.GridBagConstraints();
- gridBagConstraints.gridx = 1;
- gridBagConstraints.gridy = 0;
- gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
- gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
- gridBagConstraints.insets = new java.awt.Insets(11, 0, 11, 11);
- add(installationsComboBox, gridBagConstraints);
-
- gridBagConstraints = new java.awt.GridBagConstraints();
- gridBagConstraints.gridy = 2;
- gridBagConstraints.fill = java.awt.GridBagConstraints.VERTICAL;
- gridBagConstraints.weighty = 1.0;
- add(jPanel1, gridBagConstraints);
-
- browseButton.setText("Browse...");
- browseButton.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- browseButtonActionPerformed(evt);
- }
- });
-
- gridBagConstraints = new java.awt.GridBagConstraints();
- gridBagConstraints.gridx = 2;
- gridBagConstraints.gridy = 1;
- gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
- add(browseButton, gridBagConstraints);
-
- }//GEN-END:initComponents
-
- private void browseButtonActionPerformed(java.awt.event.ActionEvent
- evt) {//GEN-FIRST:event_browseButtonActionPerformed
- // Add your handling code here:
- File target = null;
-
- JFileChooser chooser = new JFileChooser();
- chooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
- int result = chooser.showDialog(null, null);
-
- if (result == JFileChooser.APPROVE_OPTION) {
- target = chooser.getSelectedFile();
-
- String path;
-
- try {
- path = target.getCanonicalPath();
- } catch (IOException ioe) {
- path = target.getAbsolutePath();
- }
-
- OfficeInstallation oi = new OfficeInstallation(path, path);
-
- if (oi.supportsFramework()) {
- installPath.setText(path);
- panel.setSelectedPath(oi);
- }
- }
-
- }//GEN-LAST:event_browseButtonActionPerformed
-
- // Variables declaration - do not modify//GEN-BEGIN:variables
- private javax.swing.JTextField installPath;
- private javax.swing.JButton browseButton;
- private javax.swing.JComboBox installationsComboBox;
- private javax.swing.JLabel jLabel2;
- private javax.swing.JLabel jLabel1;
- private javax.swing.JPanel jPanel1;
- // End of variables declaration//GEN-END:variables
-}
diff --git a/scripting/workben/bindings/EditDebug.xdl b/scripting/workben/bindings/EditDebug.xdl
deleted file mode 100644
index 5a69935f7950..000000000000
--- a/scripting/workben/bindings/EditDebug.xdl
+++ /dev/null
@@ -1,53 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE dlg:window PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "dialog.dtd">
-<!--
- * 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 .
--->
-<dlg:window xmlns:dlg="http://openoffice.org/2000/dialog" xmlns:script="http://openoffice.org/2000/script" dlg:id="EditDebugDialog" dlg:left="64" dlg:top="89" dlg:width="179" dlg:height="151" dlg:closeable="true" dlg:moveable="true" dlg:title="Edit/Debug Scripts">
- <dlg:bulletinboard>
- <dlg:combobox dlg:id="LocationCombo" dlg:tab-index="0" dlg:left="64" dlg:top="17" dlg:width="110" dlg:height="13" dlg:spin="true">
- <script:event script:event-name="on-itemstatechange" script:location="application" script:macro-name="ScriptBindingLibrary.ScriptBinding.LangLocComboListener" script:language="StarBasic"/>
- <script:event script:event-name="on-keydown" script:location="application" script:macro-name="ScriptBindingLibrary.ScriptBinding.fireLangLocComboListernerOnRet" script:language="StarBasic"/>
- </dlg:combobox>
- <dlg:combobox dlg:id="LanguageCombo" dlg:tab-index="1" dlg:left="64" dlg:top="33" dlg:width="110" dlg:height="13" dlg:spin="true">
- <script:event script:event-name="on-itemstatechange" script:location="application" script:macro-name="ScriptBindingLibrary.ScriptBinding.LangLocComboListener" script:language="StarBasic"/>
- <script:event script:event-name="on-keydown" script:location="application" script:macro-name="ScriptBindingLibrary.ScriptBinding.fireLangLocComboListernerOnRet" script:language="StarBasic"/>
- </dlg:combobox>
- <dlg:checkbox dlg:id="detail" dlg:tab-index="2" dlg:left="12" dlg:top="70" dlg:width="45" dlg:height="10" dlg:value="Detailed view" dlg:checked="false">
- <script:event script:event-name="on-itemstatechange" script:location="application" script:macro-name="ScriptBindingLibrary.ScriptBinding.LangLocComboListener" script:language="StarBasic"/>
- </dlg:checkbox>
- <dlg:menulist dlg:id="ScriptList" dlg:tab-index="3" dlg:left="64" dlg:top="50" dlg:width="110" dlg:height="44"/>
- <dlg:button dlg:id="OK" dlg:tab-index="5" dlg:left="58" dlg:top="131" dlg:width="36" dlg:height="14" dlg:value="OK">
- <script:event script:event-name="on-performaction" script:location="application" script:macro-name="ScriptBindingLibrary.ScriptBinding.DoEdit" script:language="StarBasic"/>
- </dlg:button>
- <dlg:button dlg:id="Cancel" dlg:tab-index="6" dlg:left="97" dlg:top="131" dlg:width="36" dlg:height="14" dlg:value="Cancel">
- <script:event script:event-name="on-performaction" script:location="application" script:macro-name="ScriptBindingLibrary.ScriptBinding.MenuCancelButton" script:language="StarBasic"/>
- </dlg:button>
- <dlg:button dlg:id="Help" dlg:tab-index="7" dlg:left="138" dlg:top="131" dlg:width="36" dlg:height="14" dlg:value="Help">
- <script:event script:event-name="on-performaction" script:location="application" script:macro-name="ScriptBindingLibrary.ScriptBinding.MenuHelpButton" script:language="StarBasic"/>
- </dlg:button>
- <dlg:fixedline dlg:id="FixedLine1" dlg:tab-index="8" dlg:left="42" dlg:top="6" dlg:width="131" dlg:height="7"/>
- <dlg:text dlg:id="Label1" dlg:tab-index="9" dlg:left="5" dlg:top="6" dlg:width="36" dlg:height="9" dlg:value="Select script"/>
- <dlg:text dlg:id="Label7" dlg:tab-index="10" dlg:left="12" dlg:top="18" dlg:width="29" dlg:height="11" dlg:value="Location"/>
- <dlg:text dlg:id="Label8" dlg:tab-index="11" dlg:left="12" dlg:top="31" dlg:width="35" dlg:height="9" dlg:value="Language"/>
- <dlg:text dlg:id="Label9" dlg:tab-index="12" dlg:left="12" dlg:top="53" dlg:width="24" dlg:height="14" dlg:value="Script"/>
- <dlg:fixedline dlg:id="FixedLine2" dlg:tab-index="13" dlg:left="7" dlg:top="120" dlg:width="167" dlg:height="7"/>
- <dlg:button dlg:id="Browse" dlg:tab-index="4" dlg:disabled="true" dlg:left="136" dlg:top="101" dlg:width="36" dlg:height="14" dlg:value="Browse...">
- <script:event script:event-name="on-performaction" script:location="application" script:macro-name="ScriptBindingLibrary.ScriptBinding.DoBrowseAndEdit" script:language="StarBasic"/>
- </dlg:button>
- </dlg:bulletinboard>
-</dlg:window> \ No newline at end of file
diff --git a/scripting/workben/bindings/EventsBinding.xdl b/scripting/workben/bindings/EventsBinding.xdl
deleted file mode 100644
index 7b4a1b4b5d38..000000000000
--- a/scripting/workben/bindings/EventsBinding.xdl
+++ /dev/null
@@ -1,78 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE dlg:window PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "dialog.dtd">
-<!--
- * 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 .
--->
-<dlg:window xmlns:dlg="http://openoffice.org/2000/dialog" xmlns:script="http://openoffice.org/2000/script" dlg:id="EventBindingDialog" dlg:left="64" dlg:top="99" dlg:width="179" dlg:height="209" dlg:closeable="true" dlg:moveable="true" dlg:title="Assign Script To Event">
- <dlg:styles>
- <dlg:style dlg:style-id="0" dlg:font-height="7"/>
- </dlg:styles>
- <dlg:bulletinboard>
- <dlg:combobox dlg:id="LocationCombo" dlg:tab-index="0" dlg:left="63" dlg:top="19" dlg:width="108" dlg:height="12" dlg:spin="true">
- <script:event script:event-name="on-itemstatechange" script:location="application" script:macro-name="ScriptBindingLibrary.ScriptBinding.LangLocComboListener" script:language="StarBasic"/>
- <script:event script:event-name="on-keydown" script:location="application" script:macro-name="ScriptBindingLibrary.ScriptBinding.fireLangLocComboListernerOnRet" script:language="StarBasic"/>
- </dlg:combobox>
- <dlg:combobox dlg:id="LanguageCombo" dlg:tab-index="1" dlg:left="63" dlg:top="31" dlg:width="108" dlg:height="12" dlg:spin="true">
- <script:event script:event-name="on-itemstatechange" script:location="application" script:macro-name="ScriptBindingLibrary.ScriptBinding.LangLocComboListener" script:language="StarBasic"/>
- <script:event script:event-name="on-keydown" script:location="application" script:macro-name="ScriptBindingLibrary.ScriptBinding.fireLangLocComboListernerOnRet" script:language="StarBasic"/>
- </dlg:combobox>
- <dlg:checkbox dlg:id="detail" dlg:tab-index="2" dlg:left="17" dlg:top="57" dlg:width="44" dlg:height="10" dlg:value="Detailed view" dlg:checked="false">
- <script:event script:event-name="on-itemstatechange" script:location="application" script:macro-name="ScriptBindingLibrary.ScriptBinding.LangLocComboListener" script:language="StarBasic"/>
- </dlg:checkbox>
- <dlg:menulist dlg:id="ScriptList" dlg:tab-index="3" dlg:left="63" dlg:top="48" dlg:width="108" dlg:height="44"/>
- <dlg:button dlg:id="Browse" dlg:tab-index="4" dlg:disabled="true" dlg:left="17" dlg:top="71" dlg:width="36" dlg:height="14" dlg:value="Browse...">
- <script:event script:event-name="on-performaction" script:location="application" script:macro-name="ScriptBindingLibrary.ScriptBinding.BrowseButton" script:language="StarBasic"/>
- </dlg:button>
- <dlg:radiogroup>
- <dlg:radio dlg:id="AllAppsOption" dlg:tab-index="5" dlg:left="12" dlg:top="107" dlg:width="51" dlg:height="10" dlg:value="All Applications">
- <script:event script:event-name="on-itemstatechange" script:location="application" script:macro-name="ScriptBindingLibrary.ScriptBinding.AppDocEventListener" script:language="StarBasic"/>
- </dlg:radio>
- <dlg:radio dlg:id="DocumentOption" dlg:tab-index="6" dlg:left="12" dlg:top="119" dlg:width="46" dlg:height="10" dlg:value="Document" dlg:checked="true">
- <script:event script:event-name="on-itemstatechange" script:location="application" script:macro-name="ScriptBindingLibrary.ScriptBinding.AppDocEventListener" script:language="StarBasic"/>
- </dlg:radio>
- </dlg:radiogroup>
- <dlg:menulist dlg:id="EventList" dlg:tab-index="7" dlg:left="64" dlg:top="109" dlg:width="108" dlg:height="64">
- <script:event script:event-name="on-itemstatechange" script:location="application" script:macro-name="ScriptBindingLibrary.ScriptBinding.EventListListener" script:language="StarBasic"/>
- </dlg:menulist>
- <dlg:button dlg:id="Delete" dlg:tab-index="8" dlg:left="17" dlg:top="131" dlg:width="36" dlg:height="13" dlg:value="Delete">
- <script:event script:event-name="on-performaction" script:location="application" script:macro-name="ScriptBindingLibrary.ScriptBinding.EventDeleteButton" script:language="StarBasic"/>
- </dlg:button>
- <dlg:button dlg:id="NewButton" dlg:tab-index="9" dlg:left="17" dlg:top="159" dlg:width="36" dlg:height="13" dlg:value="Assign">
- <script:event script:event-name="on-performaction" script:location="application" script:macro-name="ScriptBindingLibrary.ScriptBinding.EventNewButton" script:language="StarBasic"/>
- </dlg:button>
- <dlg:button dlg:id="OK" dlg:tab-index="10" dlg:left="57" dlg:top="192" dlg:width="36" dlg:height="13" dlg:value="OK">
- <script:event script:event-name="on-performaction" script:location="application" script:macro-name="ScriptBindingLibrary.ScriptBinding.EventOKButton" script:language="StarBasic"/>
- </dlg:button>
- <dlg:button dlg:id="Cancel" dlg:tab-index="11" dlg:left="96" dlg:top="192" dlg:width="36" dlg:height="13" dlg:value="Cancel">
- <script:event script:event-name="on-performaction" script:location="application" script:macro-name="ScriptBindingLibrary.ScriptBinding.MenuCancelButton" script:language="StarBasic"/>
- </dlg:button>
- <dlg:button dlg:id="Help" dlg:tab-index="12" dlg:left="136" dlg:top="192" dlg:width="36" dlg:height="13" dlg:value="Help">
- <script:event script:event-name="on-performaction" script:location="application" script:macro-name="ScriptBindingLibrary.ScriptBinding.MenuHelpButton" script:language="StarBasic"/>
- </dlg:button>
- <dlg:fixedline dlg:id="FixedLine2" dlg:tab-index="13" dlg:left="9" dlg:top="182" dlg:width="167" dlg:height="6"/>
- <dlg:fixedline dlg:id="FixedLine4" dlg:tab-index="14" dlg:left="76" dlg:top="99" dlg:width="98" dlg:height="5"/>
- <dlg:text dlg:id="Label4" dlg:tab-index="15" dlg:left="5" dlg:top="97" dlg:width="71" dlg:height="8" dlg:value="Choose Event to assign to"/>
- <dlg:fixedline dlg:id="FixedLine1" dlg:tab-index="16" dlg:left="42" dlg:top="7" dlg:width="132" dlg:height="6"/>
- <dlg:text dlg:id="Label1" dlg:tab-index="17" dlg:left="5" dlg:top="7" dlg:width="36" dlg:height="8" dlg:value="Select script"/>
- <dlg:text dlg:id="Label7" dlg:tab-index="18" dlg:left="12" dlg:top="17" dlg:width="28" dlg:height="7" dlg:value="Location"/>
- <dlg:text dlg:id="Label8" dlg:tab-index="19" dlg:left="12" dlg:top="32" dlg:width="35" dlg:height="9" dlg:value="Language"/>
- <dlg:text dlg:id="Label9" dlg:tab-index="20" dlg:left="12" dlg:top="49" dlg:width="23" dlg:height="8" dlg:value="Script"/>
- <dlg:text dlg:id="Label10" dlg:tab-index="21" dlg:left="103" dlg:top="-19" dlg:width="3" dlg:height="0" dlg:value="Label10"/>
- <dlg:text dlg:style-id="0" dlg:id="AddOn" dlg:tab-index="22" dlg:disabled="true" dlg:left="17" dlg:top="144" dlg:width="38" dlg:height="10" dlg:value="[Add-on&apos;s only]"/>
- <dlg:text dlg:id="fsonly" dlg:tab-index="23" dlg:disabled="true" dlg:left="13" dlg:top="86" dlg:width="45" dlg:height="8" dlg:value="[Filesystem only]"/>
- </dlg:bulletinboard>
-</dlg:window> \ No newline at end of file
diff --git a/scripting/workben/bindings/HelpBinding.xdl b/scripting/workben/bindings/HelpBinding.xdl
deleted file mode 100644
index f2357e781560..000000000000
--- a/scripting/workben/bindings/HelpBinding.xdl
+++ /dev/null
@@ -1,47 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE dlg:window PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "dialog.dtd">
-<!--
- * 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 .
--->
-<dlg:window xmlns:dlg="http://openoffice.org/2000/dialog" xmlns:script="http://openoffice.org/2000/script" dlg:id="HelpBinding" dlg:left="100" dlg:top="8" dlg:width="213" dlg:height="388" dlg:closeable="true" dlg:moveable="true" dlg:title="Office Help - Help about the Assign Script Dialogs">
- <dlg:styles>
- <dlg:style dlg:style-id="0" dlg:text-color="0xff"/>
- <dlg:style dlg:style-id="1" dlg:font-height="10"/>
- </dlg:styles>
- <dlg:bulletinboard>
- <dlg:text dlg:id="Label2" dlg:tab-index="0" dlg:left="14" dlg:top="6" dlg:width="179" dlg:height="12" dlg:value="Integrated Help For Scripting Framework is not currently available." dlg:multiline="true"/>
- <dlg:text dlg:id="Label1" dlg:tab-index="1" dlg:left="14" dlg:top="24" dlg:width="185" dlg:height="34" dlg:value="Assign Script Dialogs for Menus, Keys and Events allow you to bind a script written in a supported language (currently Java and BeanShell) to a menu item, key combo, Office event or document event." dlg:multiline="true"/>
- <dlg:text dlg:id="Label3" dlg:tab-index="2" dlg:left="14" dlg:top="66" dlg:width="185" dlg:height="26" dlg:value="The location combo box will be populated with User, Share or Document. The default value will be User which will display all scripts (with the selected language type) in the User area.&#x0a;" dlg:multiline="true"/>
- <dlg:titledbox dlg:id="FrameControl1" dlg:tab-index="3" dlg:left="9" dlg:top="20" dlg:width="196" dlg:height="346"/>
- <dlg:text dlg:id="Label4" dlg:tab-index="4" dlg:left="14" dlg:top="92" dlg:width="185" dlg:height="18" dlg:value="The language combo box is populated with the list of supported languages. The default language is set to Java." dlg:multiline="true"/>
- <dlg:button dlg:id="HelpOKButton" dlg:tab-index="5" dlg:left="167" dlg:top="371" dlg:width="36" dlg:height="13" dlg:value="OK">
- <script:event script:event-name="on-performaction" script:location="application" script:macro-name="ScriptBindingLibrary.ScriptBinding.HelpOKButton" script:language="StarBasic"/>
- </dlg:button>
- <dlg:text dlg:id="Label5" dlg:tab-index="6" dlg:left="14" dlg:top="144" dlg:width="185" dlg:height="34" dlg:value="In the Script combo box the script&apos;s display name will always be visible, if two or more scripts have the same display name (or if the Detailed View check box is selected) the script will be displayed as follows: display name [function name]" dlg:multiline="true"/>
- <dlg:text dlg:id="Label6" dlg:tab-index="7" dlg:left="14" dlg:top="342" dlg:width="185" dlg:height="10" dlg:value="For further information see the User Guide at:" dlg:multiline="true"/>
- <dlg:text dlg:style-id="0" dlg:id="Label7" dlg:tab-index="8" dlg:left="14" dlg:top="351" dlg:width="185" dlg:height="10" dlg:value="http://framework.openoffice.org/scripting/user-guide.html" dlg:multiline="true"/>
- <dlg:text dlg:style-id="1" dlg:id="Label8" dlg:tab-index="9" dlg:left="14" dlg:top="55" dlg:width="185" dlg:height="11" dlg:value="Information common to all dialogs" dlg:multiline="true"/>
- <dlg:text dlg:style-id="1" dlg:id="Label9" dlg:tab-index="10" dlg:left="14" dlg:top="198" dlg:width="185" dlg:height="18" dlg:value="Assign Script to Menu Dialog" dlg:multiline="true"/>
- <dlg:text dlg:style-id="1" dlg:id="Label10" dlg:tab-index="11" dlg:left="14" dlg:top="247" dlg:width="185" dlg:height="16" dlg:value="Assign Script to Key Dialog" dlg:multiline="true"/>
- <dlg:text dlg:style-id="1" dlg:id="Label11" dlg:tab-index="12" dlg:left="14" dlg:top="285" dlg:width="185" dlg:height="12" dlg:value="Assign Script to Event Dialog" dlg:multiline="true"/>
- <dlg:text dlg:id="Label12" dlg:tab-index="13" dlg:left="14" dlg:top="211" dlg:width="185" dlg:height="36" dlg:value="To assign, select the Top-Level menu and Sub-Menu under which you wish to add the new script menu. Enter the script menu name and click New. To delete a script menu, select the script menu and click Delete." dlg:multiline="true"/>
- <dlg:text dlg:id="Label13" dlg:tab-index="14" dlg:left="14" dlg:top="259" dlg:width="185" dlg:height="26" dlg:value="To assign, select the Key group and the Shortcut key, then click Assign. To delete, select the Shortcut to which the script is assigned and click Delete." dlg:multiline="true"/>
- <dlg:text dlg:id="Label14" dlg:tab-index="15" dlg:left="14" dlg:top="297" dlg:width="185" dlg:height="42" dlg:value="To assign scripts to an event, select the Event then click Assign. Scripts can be assigned to application wide events or to the current document by selecting the appropriate application or document radio button. To delete, select the Event to which the script is assigned and click Delete." dlg:multiline="true"/>
- <dlg:text dlg:id="Label16" dlg:tab-index="16" dlg:left="14" dlg:top="177" dlg:width="185" dlg:height="22" dlg:value="To assign a script, first you must select the script from the Script combo box, then follow the appropriate instructions below. " dlg:multiline="true"/>
- <dlg:text dlg:id="Label15" dlg:tab-index="17" dlg:left="14" dlg:top="110" dlg:width="185" dlg:height="34" dlg:value="When the location is set to &quot;filesystem&quot;, and the language is set to something other than &quot;Java&quot;, the &quot;Browse&quot; button is enabled. This allows open a filechooser and populate the Script combo box with scripts located on the filesystem." dlg:multiline="true"/>
- </dlg:bulletinboard>
-</dlg:window> \ No newline at end of file
diff --git a/scripting/workben/bindings/KeyBinding.xdl b/scripting/workben/bindings/KeyBinding.xdl
deleted file mode 100644
index 10aabc444eeb..000000000000
--- a/scripting/workben/bindings/KeyBinding.xdl
+++ /dev/null
@@ -1,76 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE dlg:window PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "dialog.dtd">
-<!--
- * 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 .
--->
-<dlg:window xmlns:dlg="http://openoffice.org/2000/dialog" xmlns:script="http://openoffice.org/2000/script" dlg:id="MenuBindingDialog" dlg:left="64" dlg:top="89" dlg:width="179" dlg:height="217" dlg:closeable="true" dlg:moveable="true" dlg:title="Assign Script To Key">
- <dlg:styles>
- <dlg:style dlg:style-id="0" dlg:font-height="7"/>
- </dlg:styles>
- <dlg:bulletinboard>
- <dlg:combobox dlg:id="LocationCombo" dlg:tab-index="0" dlg:left="64" dlg:top="18" dlg:width="108" dlg:height="12" dlg:spin="true">
- <script:event script:event-name="on-itemstatechange" script:location="application" script:macro-name="ScriptBindingLibrary.ScriptBinding.LangLocComboListener" script:language="StarBasic"/>
- <script:event script:event-name="on-keydown" script:location="application" script:macro-name="ScriptBindingLibrary.ScriptBinding.fireLangLocComboListernerOnRet" script:language="StarBasic"/>
- </dlg:combobox>
- <dlg:combobox dlg:id="LanguageCombo" dlg:tab-index="1" dlg:left="64" dlg:top="34" dlg:width="108" dlg:height="12" dlg:spin="true">
- <script:event script:event-name="on-itemstatechange" script:location="application" script:macro-name="ScriptBindingLibrary.ScriptBinding.LangLocComboListener" script:language="StarBasic"/>
- <script:event script:event-name="on-keydown" script:location="application" script:macro-name="ScriptBindingLibrary.ScriptBinding.fireLangLocComboListernerOnRet" script:language="StarBasic"/>
- </dlg:combobox>
- <dlg:checkbox dlg:id="detail" dlg:tab-index="2" dlg:left="17" dlg:top="57" dlg:width="44" dlg:height="10" dlg:value="Detailed view" dlg:checked="false">
- <script:event script:event-name="on-itemstatechange" script:location="application" script:macro-name="ScriptBindingLibrary.ScriptBinding.LangLocComboListener" script:language="StarBasic"/>
- </dlg:checkbox>
- <dlg:menulist dlg:id="ScriptList" dlg:tab-index="3" dlg:left="63" dlg:top="49" dlg:width="108" dlg:height="44"/>
- <dlg:button dlg:id="Browse" dlg:tab-index="4" dlg:disabled="true" dlg:left="17" dlg:top="71" dlg:width="36" dlg:height="14" dlg:value="Browse...">
- <script:event script:event-name="on-performaction" script:location="application" script:macro-name="ScriptBindingLibrary.ScriptBinding.BrowseButton" script:language="StarBasic"/>
- </dlg:button>
- <dlg:combobox dlg:id="KeyCombo" dlg:tab-index="5" dlg:left="63" dlg:top="110" dlg:width="108" dlg:height="12" dlg:spin="true">
- <script:event script:event-name="on-itemstatechange" script:location="application" script:macro-name="ScriptBindingLibrary.ScriptBinding.KeyComboListener" script:language="StarBasic"/>
- <script:event script:event-name="on-keydown" script:location="application" script:macro-name="ScriptBindingLibrary.ScriptBinding.fireKeyComboListernerOnRet" script:language="StarBasic"/>
- </dlg:combobox>
- <dlg:menulist dlg:id="KeyList" dlg:tab-index="6" dlg:left="63" dlg:top="125" dlg:width="108" dlg:height="59">
- <script:event script:event-name="on-itemstatechange" script:location="application" script:macro-name="ScriptBindingLibrary.ScriptBinding.KeyListListener" script:language="StarBasic"/>
- </dlg:menulist>
- <dlg:button dlg:id="Delete" dlg:tab-index="7" dlg:left="17" dlg:top="141" dlg:width="38" dlg:height="13" dlg:value="Delete">
- <script:event script:event-name="on-performaction" script:location="application" script:macro-name="ScriptBindingLibrary.ScriptBinding.KeyDeleteButton" script:language="StarBasic"/>
- </dlg:button>
- <dlg:button dlg:id="NewButton" dlg:tab-index="8" dlg:left="17" dlg:top="171" dlg:width="38" dlg:height="13" dlg:value="Assign">
- <script:event script:event-name="on-performaction" script:location="application" script:macro-name="ScriptBindingLibrary.ScriptBinding.KeyNewButton" script:language="StarBasic"/>
- </dlg:button>
- <dlg:button dlg:id="OK" dlg:tab-index="9" dlg:left="57" dlg:top="200" dlg:width="36" dlg:height="13" dlg:value="OK">
- <script:event script:event-name="on-performaction" script:location="application" script:macro-name="ScriptBindingLibrary.ScriptBinding.MenuOKButton" script:language="StarBasic"/>
- </dlg:button>
- <dlg:button dlg:id="Cancel" dlg:tab-index="10" dlg:left="96" dlg:top="200" dlg:width="36" dlg:height="13" dlg:value="Cancel">
- <script:event script:event-name="on-performaction" script:location="application" script:macro-name="ScriptBindingLibrary.ScriptBinding.MenuCancelButton" script:language="StarBasic"/>
- </dlg:button>
- <dlg:button dlg:id="Help" dlg:tab-index="11" dlg:left="136" dlg:top="200" dlg:width="36" dlg:height="13" dlg:value="Help">
- <script:event script:event-name="on-performaction" script:location="application" script:macro-name="ScriptBindingLibrary.ScriptBinding.MenuHelpButton" script:language="StarBasic"/>
- </dlg:button>
- <dlg:fixedline dlg:id="FixedLine2" dlg:tab-index="12" dlg:left="9" dlg:top="190" dlg:width="167" dlg:height="6"/>
- <dlg:fixedline dlg:id="FixedLine4" dlg:tab-index="13" dlg:left="94" dlg:top="99" dlg:width="81" dlg:height="5"/>
- <dlg:text dlg:id="Label4" dlg:tab-index="14" dlg:left="5" dlg:top="97" dlg:width="90" dlg:height="8" dlg:value="Choose shortcut key to assign to"/>
- <dlg:text dlg:id="Label5" dlg:tab-index="15" dlg:left="12" dlg:top="112" dlg:width="40" dlg:height="10" dlg:value="Key Group"/>
- <dlg:text dlg:id="Label6" dlg:tab-index="16" dlg:left="12" dlg:top="127" dlg:width="40" dlg:height="10" dlg:value="Shortcut Key"/>
- <dlg:fixedline dlg:id="FixedLine1" dlg:tab-index="17" dlg:left="43" dlg:top="7" dlg:width="132" dlg:height="6"/>
- <dlg:text dlg:id="Label1" dlg:tab-index="18" dlg:left="5" dlg:top="7" dlg:width="36" dlg:height="8" dlg:value="Select script"/>
- <dlg:text dlg:id="Label7" dlg:tab-index="19" dlg:left="12" dlg:top="17" dlg:width="28" dlg:height="7" dlg:value="Location"/>
- <dlg:text dlg:id="Label8" dlg:tab-index="20" dlg:left="12" dlg:top="32" dlg:width="35" dlg:height="9" dlg:value="Language"/>
- <dlg:text dlg:id="Label9" dlg:tab-index="21" dlg:left="12" dlg:top="49" dlg:width="23" dlg:height="8" dlg:value="Script"/>
- <dlg:text dlg:id="Label10" dlg:tab-index="22" dlg:left="103" dlg:top="-9" dlg:width="3" dlg:height="0" dlg:value="Label10"/>
- <dlg:text dlg:style-id="0" dlg:id="AddOn" dlg:tab-index="23" dlg:disabled="true" dlg:left="17" dlg:top="154" dlg:width="38" dlg:height="10" dlg:value="[Add-on&apos;s only]"/>
- <dlg:text dlg:id="fsonly" dlg:tab-index="24" dlg:disabled="true" dlg:left="13" dlg:top="86" dlg:width="45" dlg:height="8" dlg:value="[Filesystem only]"/>
- </dlg:bulletinboard>
-</dlg:window> \ No newline at end of file
diff --git a/scripting/workben/bindings/MacroEditor.xdl b/scripting/workben/bindings/MacroEditor.xdl
deleted file mode 100644
index 11285df66582..000000000000
--- a/scripting/workben/bindings/MacroEditor.xdl
+++ /dev/null
@@ -1,27 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE dlg:window PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "dialog.dtd">
-<!--
- * 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 .
--->
-<dlg:window xmlns:dlg="http://openoffice.org/2000/dialog" xmlns:script="http://openoffice.org/2000/script" dlg:id="MacroEditor" dlg:left="105" dlg:top="117" dlg:width="240" dlg:height="320" dlg:closeable="true" dlg:moveable="true" dlg:title="Python Macro Editor">
- <dlg:bulletinboard>
- <dlg:button dlg:id="RunButton" dlg:tab-index="0" dlg:left="57" dlg:top="300" dlg:width="40" dlg:height="14" dlg:value="Run"/>
- <dlg:button dlg:id="SaveButton" dlg:tab-index="1" dlg:left="100" dlg:top="300" dlg:width="40" dlg:height="14" dlg:value="Save"/>
- <dlg:button dlg:id="CloseButton" dlg:tab-index="2" dlg:left="143" dlg:top="300" dlg:width="40" dlg:height="14" dlg:value="Close" dlg:button-type="cancel"/>
- <dlg:textfield dlg:id="EditorTextField" dlg:tab-index="3" dlg:left="6" dlg:top="6" dlg:width="228" dlg:height="288" dlg:hscroll="true" dlg:vscroll="true" dlg:multiline="true"/>
- </dlg:bulletinboard>
-</dlg:window>
diff --git a/scripting/workben/bindings/MenuBinding.xdl b/scripting/workben/bindings/MenuBinding.xdl
deleted file mode 100644
index f68969e2eda1..000000000000
--- a/scripting/workben/bindings/MenuBinding.xdl
+++ /dev/null
@@ -1,82 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE dlg:window PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "dialog.dtd">
-<!--
- * 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 .
--->
-<dlg:window xmlns:dlg="http://openoffice.org/2000/dialog" xmlns:script="http://openoffice.org/2000/script" dlg:id="MenuBindingDialog" dlg:left="64" dlg:top="89" dlg:width="179" dlg:height="236" dlg:closeable="true" dlg:moveable="true" dlg:title="Assign Script To Menu">
- <dlg:styles>
- <dlg:style dlg:style-id="0" dlg:font-height="7"/>
- </dlg:styles>
- <dlg:bulletinboard>
- <dlg:combobox dlg:id="LocationCombo" dlg:tab-index="0" dlg:left="63" dlg:top="17" dlg:width="108" dlg:height="13" dlg:spin="true">
- <script:event script:event-name="on-itemstatechange" script:location="application" script:macro-name="ScriptBindingLibrary.ScriptBinding.LangLocComboListener" script:language="StarBasic"/>
- <script:event script:event-name="on-keydown" script:location="application" script:macro-name="ScriptBindingLibrary.ScriptBinding.fireLangLocComboListernerOnRet" script:language="StarBasic"/>
- </dlg:combobox>
- <dlg:combobox dlg:id="LanguageCombo" dlg:tab-index="1" dlg:left="63" dlg:top="32" dlg:width="108" dlg:height="13" dlg:spin="true">
- <script:event script:event-name="on-itemstatechange" script:location="application" script:macro-name="ScriptBindingLibrary.ScriptBinding.LangLocComboListener" script:language="StarBasic"/>
- <script:event script:event-name="on-keydown" script:location="application" script:macro-name="ScriptBindingLibrary.ScriptBinding.fireLangLocComboListernerOnRet" script:language="StarBasic"/>
- </dlg:combobox>
- <dlg:checkbox dlg:id="detail" dlg:tab-index="2" dlg:left="17" dlg:top="57" dlg:width="44" dlg:height="10" dlg:value="Detailed view" dlg:checked="false">
- <script:event script:event-name="on-itemstatechange" script:location="application" script:macro-name="ScriptBindingLibrary.ScriptBinding.LangLocComboListener" script:language="StarBasic"/>
- </dlg:checkbox>
- <dlg:menulist dlg:id="ScriptList" dlg:tab-index="3" dlg:left="63" dlg:top="49" dlg:width="108" dlg:height="44"/>
- <dlg:button dlg:id="Browse" dlg:tab-index="4" dlg:disabled="true" dlg:left="17" dlg:top="71" dlg:width="36" dlg:height="14" dlg:value="Browse...">
- <script:event script:event-name="on-performaction" script:location="application" script:macro-name="ScriptBindingLibrary.ScriptBinding.BrowseButton" script:language="StarBasic"/>
- </dlg:button>
- <dlg:combobox dlg:id="MenuCombo" dlg:tab-index="5" dlg:left="63" dlg:top="109" dlg:width="108" dlg:height="13" dlg:spin="true">
- <script:event script:event-name="on-itemstatechange" script:location="application" script:macro-name="ScriptBindingLibrary.ScriptBinding.MenuComboListener" script:language="StarBasic"/>
- <script:event script:event-name="on-keydown" script:location="application" script:macro-name="ScriptBindingLibrary.ScriptBinding.fireMenuComboListernerOnRet" script:language="StarBasic"/>
- </dlg:combobox>
- <dlg:menulist dlg:id="SubMenuList" dlg:tab-index="6" dlg:left="63" dlg:top="125" dlg:width="108" dlg:height="44">
- <script:event script:event-name="on-itemstatechange" script:location="application" script:macro-name="ScriptBindingLibrary.ScriptBinding.SubMenuListListener" script:language="StarBasic"/>
- </dlg:menulist>
- <dlg:button dlg:id="Delete" dlg:tab-index="7" dlg:left="17" dlg:top="142" dlg:width="36" dlg:height="14" dlg:value="Delete">
- <script:event script:event-name="on-performaction" script:location="application" script:macro-name="ScriptBindingLibrary.ScriptBinding.MenuDeleteButton" script:language="StarBasic"/>
- </dlg:button>
- <dlg:button dlg:id="NewButton" dlg:tab-index="8" dlg:left="17" dlg:top="186" dlg:width="36" dlg:height="14" dlg:value="New">
- <script:event script:event-name="on-performaction" script:location="application" script:macro-name="ScriptBindingLibrary.ScriptBinding.MenuNewButton" script:language="StarBasic"/>
- </dlg:button>
- <dlg:textfield dlg:id="MenuLabelBox" dlg:tab-index="9" dlg:left="63" dlg:top="187" dlg:width="108" dlg:height="13">
- <script:event script:event-name="on-blur" script:location="application" script:macro-name="ScriptBindingLibrary.ScriptBinding.MenuLabelBoxListener" script:language="StarBasic"/>
- <script:event script:event-name="on-keydown" script:location="application" script:macro-name="ScriptBindingLibrary.ScriptBinding.MenuLabelBoxListener" script:language="StarBasic"/>
- </dlg:textfield>
- <dlg:button dlg:id="OK" dlg:tab-index="10" dlg:left="57" dlg:top="216" dlg:width="36" dlg:height="14" dlg:value="OK">
- <script:event script:event-name="on-performaction" script:location="application" script:macro-name="ScriptBindingLibrary.ScriptBinding.MenuOKButton" script:language="StarBasic"/>
- </dlg:button>
- <dlg:button dlg:id="Cancel" dlg:tab-index="11" dlg:left="96" dlg:top="216" dlg:width="36" dlg:height="14" dlg:value="Cancel">
- <script:event script:event-name="on-performaction" script:location="application" script:macro-name="ScriptBindingLibrary.ScriptBinding.MenuCancelButton" script:language="StarBasic"/>
- </dlg:button>
- <dlg:button dlg:id="Help" dlg:tab-index="12" dlg:left="136" dlg:top="216" dlg:width="36" dlg:height="14" dlg:value="Help">
- <script:event script:event-name="on-performaction" script:location="application" script:macro-name="ScriptBindingLibrary.ScriptBinding.MenuHelpButton" script:language="StarBasic"/>
- </dlg:button>
- <dlg:fixedline dlg:id="FixedLine2" dlg:tab-index="13" dlg:left="8" dlg:top="206" dlg:width="167" dlg:height="7"/>
- <dlg:fixedline dlg:id="FixedLine3" dlg:tab-index="14" dlg:left="73" dlg:top="174" dlg:width="102" dlg:height="6"/>
- <dlg:text dlg:id="Label2" dlg:tab-index="15" dlg:left="5" dlg:top="172" dlg:width="73" dlg:height="9" dlg:value="Assign script to new menu"/>
- <dlg:fixedline dlg:id="FixedLine4" dlg:tab-index="16" dlg:left="75" dlg:top="99" dlg:width="100" dlg:height="6"/>
- <dlg:text dlg:id="Label4" dlg:tab-index="17" dlg:left="5" dlg:top="97" dlg:width="75" dlg:height="8" dlg:value="Choose menu to insert after"/>
- <dlg:text dlg:id="Label5" dlg:tab-index="18" dlg:left="12" dlg:top="111" dlg:width="40" dlg:height="11" dlg:value="Toplevel Menu"/>
- <dlg:text dlg:id="Label6" dlg:tab-index="19" dlg:left="12" dlg:top="127" dlg:width="40" dlg:height="11" dlg:value="Sub Menu"/>
- <dlg:fixedline dlg:id="FixedLine1" dlg:tab-index="20" dlg:left="42" dlg:top="6" dlg:width="132" dlg:height="7"/>
- <dlg:text dlg:id="Label1" dlg:tab-index="21" dlg:left="5" dlg:top="6" dlg:width="36" dlg:height="9" dlg:value="Select script"/>
- <dlg:text dlg:id="Label7" dlg:tab-index="22" dlg:left="12" dlg:top="17" dlg:width="28" dlg:height="7" dlg:value="Location"/>
- <dlg:text dlg:id="Label8" dlg:tab-index="23" dlg:left="12" dlg:top="32" dlg:width="35" dlg:height="9" dlg:value="Language"/>
- <dlg:text dlg:id="Label9" dlg:tab-index="24" dlg:left="12" dlg:top="49" dlg:width="23" dlg:height="8" dlg:value="Script"/>
- <dlg:text dlg:style-id="0" dlg:id="AddOn" dlg:tab-index="25" dlg:disabled="true" dlg:left="17" dlg:top="156" dlg:width="38" dlg:height="11" dlg:value="[Add-on&apos;s only]"/>
- <dlg:text dlg:id="Label10" dlg:tab-index="27" dlg:left="9" dlg:top="89" dlg:width="0" dlg:height="0" dlg:value="Label10"/>
- <dlg:text dlg:id="fsonly" dlg:tab-index="26" dlg:disabled="true" dlg:left="13" dlg:top="86" dlg:width="45" dlg:height="8" dlg:value="[Filesystem only]"/>
- </dlg:bulletinboard>
-</dlg:window> \ No newline at end of file
diff --git a/scripting/workben/bindings/ScriptBinding.xba b/scripting/workben/bindings/ScriptBinding.xba
deleted file mode 100644
index f79ef2e5aef4..000000000000
--- a/scripting/workben/bindings/ScriptBinding.xba
+++ /dev/null
@@ -1,2110 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE script:module PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "module.dtd">
-<!--
- * 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 .
--->
-<script:module xmlns:script="http://openoffice.org/2000/script" script:name="ScriptBinding" script:language="StarBasic">REM ***** BASIC *****
-
-REM ----- Global Variables -----
-
-&apos;bindingDialog can refer to either KeyBinding or MenuBinding dialog
-private languages() as String
-private extensions() as Object
-private locations() as String
-private filesysScripts() as String
-private filesysCount as integer
-private bindingDialog as object
-private helpDialog as object
-&apos;Couldn&apos;t get redim to work, so scriptDisplayList is and array of arrays
-&apos;where the one and only array in scriptDisplayList is an array
-&apos;of com.sun.star.beans.PropertyValue, where Name = [logicalName][FunctionName]
-&apos;and value is ScriptStorage object
-private scriptDisplayList(0)
-private testArray() as String
-&apos;Array to store lines from the xml file
-private xmlFile() as string
-&apos;Name of the xml file [writer/calc][menubar/keybindings].xml
-private xmlFileName as string
-&apos;Number of lines in the xml file
-private numberOfLines as integer
-
-&apos;Parallel arrays to store all top-level menu names and line positions
-private menuItems() as string
-private menuItemLinePosition() as integer
-&apos;Counter for the number of top-level menus
-private menuCount as integer
-
-&apos;Parallel arrays to store all sub-menu names and line positions for a particular top-level menu
-private subMenuItems() as string
-private subMenuItemLinePosition() as integer
-&apos;Counter for the number of sub-menus
-private subMenuCount as integer
-
-&apos;Parallel arrays to store all script names and line positions
-private scriptNames() as string
-private scriptLinePosition() as integer
-&apos;Counter for the number of scripts
-private scriptCount as integer
-
-&apos;Array to store all combinations of key bindings
-private allKeyBindings() as string
-
-&apos;Array of Arrays
-&apos;KeyBindArrayOfArrays(0) contains array of &quot;SHIFT + CONTROL + F Keys&quot; data
-&apos;Similarly
-&apos;KeyBindArrayOfArrays(1) contains SHIFT + CONTROL + digits
-&apos;KeyBindArrayOfArrays(2) contains SHIFT + CONTROL + letters
-&apos;KeyBindArrayOfArrays(3) contains CONTROL + F keys
-&apos;KeyBindArrayOfArrays(4) contains CONTROL + digits
-&apos;KeyBindArrayOfArrays(5) contains CONTROL + letters
-&apos;KeyBindArrayOfArrays(6) contains SHIFT + F keys
-private KeyBindArrayOfArrays(6)
-
-&apos;Each PropertyValue represents a key, Name member contains the script (if a binding exists)
-&apos; the Value contains and integer
-&apos; 0 means no script bound
-&apos; 1 script is bound to an office function
-&apos; &gt;1 line number of entry in xmlfile array
-private keyAllocationMap(6,25) as new com.sun.star.beans.PropertyValue
-&apos;array to store key group descriptions
-private AllKeyGroupsArray(6) as String
-
-
-&apos;Array of props to store all event bindings for the Applications
-private allEventTypesApp( 14 ) as new com.sun.star.beans.PropertyValue
-&apos;Array of props to store all event bindings for the Document
-private allEventTypesDoc( 14 ) as new com.sun.star.beans.PropertyValue
-&apos;Array of props to store all event types (Name) and textual description (Value)
-private allEventTypes( 14 ) as new com.sun.star.beans.PropertyValue
-
-
-private dialogName as String
-REM ------ Storage Refresh Function ------
-
-
-sub RefreshUserScripts()
-&apos; TDB - change Menu bindings to allow user to refresh all, user, share or document script
- RefreshAppScripts( &quot;USER&quot; )
-end sub
-
-sub RefreshAllScripts()
- RefreshAppScripts( &quot;USER&quot; )
- RefreshAppScripts( &quot;SHARE&quot; )
- RefreshDocumentScripts
-end sub
-
-sub RefreshAppScripts( appName as String )
- On Error Goto ErrorHandler
- smgr = getProcessServiceManager()
- context = smgr.getPropertyValue( &quot;DefaultContext&quot; )
- scriptstoragemgr = context.getValueByName( &quot;/singletons/drafts.com.sun.star.script.framework.storage.theScriptStorageManager&quot; )
-
- scriptstoragemgr.refreshScriptStorage( appName )
-
- Exit sub
-
- ErrorHandler:
- reset
- MsgBox (&quot;Error: Unable to refresh Java (scripts)&quot; + chr$(10) + chr$(10)+ &quot;Detail: &quot; &amp; error$ + chr$(10) + chr$(10)+ &quot;Action: Please restart Office&quot;,0,&quot;Error&quot; )
-
-end sub
-
-sub RefreshDocumentScripts()
- On Error Goto ErrorHandler
- smgr = getProcessServiceManager()
- context = smgr.getPropertyValue( &quot;DefaultContext&quot; )
- scriptstoragemgr = context.getValueByName( &quot;/singletons/drafts.com.sun.star.script.framework.storage.theScriptStorageManager&quot; )
-
- oDocURL = ThisComponent.GetCurrentController.getModel.getURL
-
- On Error Goto ErrorHandlerDoc
- scriptstoragemgr.refreshScriptStorage( oDocURL )
-
- Exit sub
-
- ErrorHandlerDoc:
- reset
- &apos; Ignore document script errors as it will happen when refreshing an unsaved doc
- Exit sub
-
- ErrorHandler:
- reset
- MsgBox (&quot;Error: Unable to refresh Java (scripts)&quot; + chr$(10) + chr$(10)+ &quot;Detail: &quot; &amp; error$ + chr$(10) + chr$(10)+ &quot;Action: Please restart Office&quot;,0,&quot;Error&quot; )
-
-end sub
-
-
-REM ----- Launch Functions -----
-
-Sub createAndPopulateKeyArrays()
- &apos;Create SHIFT + CONTROL + F keys array
- &apos;Dim keyGroupProp as new com.sun.star.beans.PropertyValue
-
- Dim SCFKey( 11 )
- for FKey = 1 to 12
- SCFKey( FKey - 1 ) = &quot;SHIFT + CONTROL + F&quot; + FKey
- next FKey
-
- KeyBindArrayOfArrays(0) = SCFKey()
-
- &apos;Create SHIFT + CONTROL + digits
- Dim SCDKey( 9 )
- for Digit = 0 to 9
- SCDKey( Digit ) = &quot;SHIFT + CONTROL + &quot; + Digit
- next Digit
- KeyBindArrayOfArrays(1) = SCDKey()
-
- &apos;Create SHIFT + CONTROL + letters
-
- Dim SCLKey( 25 )
- for Alpha = 65 to 90
- SCLKey( Alpha - 65 ) = &quot;SHIFT + CONTROL + &quot; + chr$( Alpha )
- next Alpha
- KeyBindArrayOfArrays(2) = SCLKey()
-
- &apos;Create CONTROL + F keys
- Dim CFKey( 11 )
- for FKey = 1 to 12
- CFKey( Fkey - 1 ) = &quot;CONTROL + F&quot; + FKey
- next FKey
- KeyBindArrayOfArrays(3) = CFKey()
-
- &apos;Create CONTROL + digits
- Dim CDKey( 9 )
- for Digit = 0 to 9
- CDKey( Digit ) = &quot;CONTROL + &quot; + Digit
- next Digit
- KeyBindArrayOfArrays(4) = CDKey()
-
- &apos;Create CONTROL + letters
- Dim CLKey( 25 )
- for Alpha = 65 to 90
- CLKey( Alpha - 65 ) = &quot;CONTROL + &quot; + chr$( Alpha )
- next Alpha
- KeyBindArrayOfArrays(5) = CLKey()
-
- &apos;Create SHIFT + F Keys
- Dim SFKey( 11 )
- for FKey = 1 to 12
- SFKey( Fkey - 1 ) = &quot;SHIFT + F&quot; + FKey
- next FKey
- KeyBindArrayOfArrays(6) = SFKey()
-
-End Sub
-
-Sub updateMapWithDisabledKeys()
- &apos;disable CONTROL + F1 &amp;
- keyAllocationMap( 3, 0 ).Value = 1
- keyAllocationMap( 3, 0 ).Name = &quot;&quot;
- &apos;disable CONTROL + F4 &amp;
- keyAllocationMap( 3, 3 ).Value = 1
- keyAllocationMap( 3, 3 ).Name = &quot;&quot;
- &apos;disable CONTROL + F6
- keyAllocationMap( 3, 5 ).Value = 1
- keyAllocationMap( 3, 5 ).Name = &quot;&quot;
-
-
- &apos;disable SHIFT + F1 &amp;
- keyAllocationMap( 6, 0 ).Value = 1
- keyAllocationMap( 6, 0 ).Name = &quot;&quot;
- &apos;disable SHIFT + F2 &amp;
- keyAllocationMap( 6, 1 ).Value = 1
- keyAllocationMap( 6, 1 ).Name = &quot;&quot;
- &apos;disable SHIFT + F6 &amp;
- keyAllocationMap( 6, 5 ).Value = 1
- keyAllocationMap( 6, 5 ).Name = &quot;&quot;
-
-End Sub
-
-Sub initialiseFileExtensions()
- ReDim extensions(ubound(languages())+1) as Object
- oConfigProvider = CreateUnoService( &quot;com.sun.star.configuration.ConfigurationProvider&quot; )
- Dim configArgs(1) as new com.sun.star.beans.PropertyValue
- configargs(0).Name = &quot;nodepath&quot;
- configArgs(0).Value = &quot;org.openoffice.Office.Scripting/ScriptRuntimes&quot;
- configargs(1).Name = &quot;lazywrite&quot;
- configArgs(1).Value = false
- oConfigAccess = oConfigProvider.createInstanceWithArguments(&quot;com.sun.star.configuration.ConfigurationAccess&quot;, configArgs())
- for index = 0 to ubound(languages())
- if(languages(index) &lt;&gt; &quot;Java&quot;) then
- xPropSet = oConfigAccess.getByName(languages(index))
- extns() = xPropSet.getPropertyValue(&quot;SupportedFileExtensions&quot;)
- extensions(index) = extns()
- endif
- next index
-end sub
-
-Sub ExecuteEditDebug()
-
- locations = Array ( &quot;User&quot;, &quot;Share&quot;, &quot;Document&quot;, &quot;Filesystem&quot; )
- languages = Array ( &quot;BeanShell&quot;, &quot;JavaScript&quot; )
- dialogName = &quot;EditDebug&quot;
- initialiseFileExtensions()
- bindingDialog = LoadDialog( &quot;ScriptBindingLibrary&quot;, &quot;EditDebug&quot; )
-
- PopulateLanguageCombo()
- PopulateLocationCombo()
- PopulateScriptList( languages(0), locations(0) )
-
- bindingDialog.execute()
-End Sub
-
-Sub ExecuteKeyBinding()
- dialogName = &quot;Key&quot;
- createAndPopulateKeyArrays()
- updateMapWithDisabledKeys()
- xmlFileName = GetDocumentType( &quot;Key&quot; )
-
- if not (ReadXMLToArray( &quot;Key&quot; )) then
- Exit Sub
- endif
-
- bindingDialog = LoadDialog( &quot;ScriptBindingLibrary&quot;, &quot;KeyBinding&quot; )
- PopulateKeyBindingList(0)
- initialiseNavigationComboArrays()
- PopulateLanguageCombo()
- PopulateLocationCombo()
- PopulateScriptList( languages(0), locations(0) )
- PopulateTopLevelKeyBindingList()
- bindingDialog.execute()
-end Sub
-
-
-Sub initialiseNavigationComboArrays()
- locations = Array ( &quot;User&quot;, &quot;Share&quot;, &quot;Document&quot;, &quot;Filesystem&quot; )
- ReDim languages(0) as String
- ReDim extensions(0) as Object
- languages(0) = &quot;Java&quot;
- REM extensions(0) = &quot;&quot;
-
- &apos; Setup languages array for all supported languages
- oServiceManager = GetProcessServiceManager()
- svrArray = oServiceManager.getAvailableServiceNames
-
- langCount = 1
- for index = 0 to ubound(svrArray)
- iPos = inStr(svrArray(index), &quot;ScriptProviderFor&quot;)
-
- if (iPos &gt; 0) then
- lang = Mid(svrArray(index), iPos + Len(&quot;ScriptProviderFor&quot;)
-
- if not (lang = &quot;Java&quot;) then
- &apos;Add to language vector
- ReDim Preserve languages(langCount) as String
- languages(langCount) = lang
- langCount = langCount + 1
- endif
- endif
- next index
- initialiseFileExtensions()
-End Sub
-
-
-Sub ExecuteEventBinding
- dialogName = &quot;Event&quot;
- createAllEventTypes()
- createAllEventBindings()
-
- &apos;Populate application event bindings array (from config xml file)
- if not (ReadXMLToArray( &quot;Event&quot; )) then
- Exit Sub
- endif
- &apos;Populate document event bindings array (using Office API calls)
- ReadEventsFromDoc()
-
- bindingDialog = LoadDialog( &quot;ScriptBindingLibrary&quot;, &quot;EventsBinding&quot; )
- initialiseNavigationComboArrays()
- PopulateLanguageCombo()
- PopulateLocationCombo()
- PopulateScriptList( languages(0), locations(0) )
- populateEventList( 0 )
- EventListListener()
- bindingDialog.execute()
-End Sub
-
-Sub ExecuteMenuBinding()
- dialogName = &quot;Menu&quot;
- xmlFileName = GetDocumentType( &quot;Menu&quot; )
- if not (ReadXMLToArray( &quot;Menu&quot; )) then
- Exit Sub
- endif
-
- bindingDialog = LoadDialog( &quot;ScriptBindingLibrary&quot;, &quot;MenuBinding&quot; )
- initialiseNavigationComboArrays()
- PopulateLanguageCombo()
- PopulateLocationCombo()
- PopulateScriptList( languages(0), locations(0) )
- PopulateMenuCombo()
- PopulateSubMenuList( 1 )
-
- subMenuList = bindingDialog.getControl(&quot;SubMenuList&quot;)
-
- subMenuList.selectItemPos( 0, true )
-
- bindingDialog.execute()
-end Sub
-
-
-REM ----- Initialising functions -----
-
-
-function LoadDialog( libName as string, dialogName as string ) as object
- dim library as object
- dim libDialog as object
- dim runtimeDialog as object
- libContainer = DialogLibraries
- libContainer.LoadLibrary( libName )
- library = libContainer.getByName( libname )
- libDialog = library.getByName( dialogName )
- runtimeDialog = CreateUnoDialog( libDialog )
- LoadDialog() = runtimeDialog
-
-end function
-
-
-function GetDocumentType( bindingType as string ) as string
- document = StarDesktop.ActiveFrame.Controller.Model
- Dim errornumber As Integer
- errornumber = 111
- Error errornumber
- if document.SupportsService(&quot;com.sun.star.sheet.SpreadsheetDocument&quot;) then
- if bindingType = &quot;Key&quot; then
- GetDocumentType() = &quot;calckeybinding.xml&quot;
- else
- if bindingType = &quot;Menu&quot; then
- GetDocumentType() = &quot;calcmenubar.xml&quot;
- end if
- end if
- elseif document.SupportsService(&quot;com.sun.star.text.TextDocument&quot;) then
- if bindingType = &quot;Key&quot; then
- GetDocumentType() = &quot;writerkeybinding.xml&quot;
- else
- if bindingType = &quot;Menu&quot; then
- GetDocumentType() = &quot;writermenubar.xml&quot;
- end if
- end if
- elseif document.SupportsService(&quot;com.sun.star.presentation.PresentationDocument&quot;) then
- if bindingType = &quot;Key&quot; then
- GetDocumentType() = &quot;impresskeybinding.xml&quot;
- else
- if bindingType = &quot;Menu&quot; then
- GetDocumentType() = &quot;impressmenubar.xml&quot;
- end if
- end if
- elseif document.SupportsService(&quot;com.sun.star.presentation.PresentationDocument&quot;) then
- if bindingType = &quot;Key&quot; then
- GetDocumentType() = &quot;impresskeybinding.xml&quot;
- else
- if bindingType = &quot;Menu&quot; then
- GetDocumentType() = &quot;impressmenubar.xml&quot;
- end if
- end if
- elseif document.SupportsService(&quot;com.sun.star.drawing.DrawingDocument&quot;) then
- if bindingType = &quot;Key&quot; then
- GetDocumentType() = &quot;drawkeybinding.xml&quot;
- else
- if bindingType = &quot;Menu&quot; then
- GetDocumentType() = &quot;drawmenubar.xml&quot;
- end if
- end if
- else
- MsgBox (&quot;Error: Couldn&apos;t determine configuration file type&quot; + chr$(10) + chr$(10) + &quot;Action: Please reinstall Scripting Framework&quot;,0,&quot;Error&quot; )
- end if
-end function
-
-function lastIndexOf( targetStr as String, substr as String ) as Integer
- copyStr = targetStr
- while instr(copyStr, substr) &gt; 0
- pos = instr(copyStr, substr)
- tpos = tpos + pos
- copyStr = mid(copyStr, pos+1, len(copyStr)-pos )
- wend
- lastIndexOf() = tpos
-end function
-
-function getScriptURI( selectedScript as String ) as String
- combo = bindingDialog.getControl( &quot;LocationCombo&quot; )
- location = combo.text
- if ( location = &quot;User&quot; ) then
- location = &quot;user&quot;
- elseif ( location = &quot;Share&quot; ) then
- location = &quot;share&quot;
- elseif ( location = &quot;Filesystem&quot; ) then
- location = &quot;filesystem&quot;
- else
- location = &quot;document&quot;
- end if
-
-
-
- if ( location = &quot;filesystem&quot; ) then
- REM need to build URI here - dcf
- combo = bindingDialog.getControl( &quot;LanguageCombo&quot; )
- language = combo.text
- url = selectedscript
- pos = lastIndexOf( url, &quot;/&quot; )
- locationPath = mid( url, 1, pos)
- url = mid( url, pos+1, len( url ) - pos )
- functionName = url
- pos = lastIndexOf( url, &quot;.&quot; )
- logicalName = mid( url, 1, pos - 1 )
- getScriptURI() = &quot;script://&quot; + logicalName + &quot;?language=&quot; _
- + language + &quot;&amp;amp;function=&quot; + functionName _
- + &quot;&amp;amp;location=filesystem:&quot; + locationPath
- else
- Dim scriptInfo as Object
- scripts() = scriptDisplayList(0)
- for n = LBOUND( scripts() ) to UBOUND( scripts() )
-
- if ( scripts( n ).Name = selectedScript ) then
- scriptInfo = scripts( n ).Value
- exit for
- end if
- next n
- getScriptURI() = &quot;script://&quot; + scriptInfo.getLogicalName + &quot;?language=&quot; _
- + scriptInfo.getLanguage() + &quot;&amp;amp;function=&quot; + _
- scriptInfo.getFunctionName() + &quot;&amp;amp;location=&quot; + location
- end if
-
-end function
-
-function GetOfficePath() as string
- REM Error check and prompt user to manually input Office Path
- settings = CreateUnoService( &quot;com.sun.star.frame.Settings&quot; )
- path = settings.getByName( &quot;PathSettings&quot; )
- unformattedOfficePath = path.getPropertyValue( &quot;UserPath&quot; )
-
- dim officePath as string
- const removeFromEnd = &quot;/user&quot;
- const removeFromEndWindows = &quot;\user&quot;
-
- REM If Solaris or Linux
- if not ( instr( unformattedOfficePath, removeFromEnd ) = 0 ) then
- endPosition = instr( unformattedOfficePath, removeFromEnd )
- officePath = mid( unformattedOfficePath, 1, endPosition )
- REM If Windows
- else if not ( instr( unformattedOfficePath, removeFromEndWindows ) = 0 ) then
- endPosition = instr( unformattedOfficePath, removeFromEndWindows )
- officePath = mid( unformattedOfficePath, 1, endPosition )
- while instr( officePath, &quot;\&quot; ) &gt; 0
- backSlash = instr( officePath, &quot;\&quot; )
- startPath = mid( officePath, 1, backSlash - 1 )
- endPath = mid( officePath, backslash + 1, len( officePath ) - backSlash )
- officePath = startPath + &quot;/&quot; + endPath
- wend
- else
- MsgBox (&quot;Error: Office path not found&quot; + chr$(10) + chr$(10) + &quot;Action: Please reinstall Scripting Framework&quot;,0,&quot;Error&quot; )
- REM Prompt user
- end if
- end if
-
- GetOfficePath() = officePath
-end function
-
-
-
-REM ----- File I/O functions -----
-
-
-function ReadXMLToArray( bindingType as string ) as boolean
- On Error Goto ErrorHandler
- if ( bindingType = &quot;Event&quot; ) then
- xmlfilename = &quot;eventbindings.xml&quot;
- endif
-
- simplefileaccess = CreateUnoService( &quot;com.sun.star.ucb.SimpleFileAccess&quot; )
- filestream = simplefileaccess.openFileRead( &quot;file://&quot; + GetOfficePath() + &quot;user/config/soffice.cfg/&quot; + xmlFileName )
-
- textin = CreateUnoService( &quot;com.sun.star.io.TextInputStream&quot; )
- textin.setInputStream( filestream )
-
- redim xmlFile( 400 ) as String
- redim menuItems( 30 ) as String
- redim menuItemLinePosition( 30 ) as Integer
- redim scriptNames( 120 ) as string
- redim scriptLinePosition( 120) as integer
-
- lineCount = 1
- menuCount = 1
- scriptCount = 1
-
- do while not textin.isEOF()
- xmlline = textin.readLine()
- xmlFile( lineCount ) = xmlline
-
- const menuItemWhiteSpace = 2
- const menuXMLTag = &quot;&lt;menu:menu&quot;
-
- if bindingType = &quot;Menu&quot; then
- evaluateForMenu( xmlline, lineCount )
- elseif bindingType = &quot;Key&quot; then
- processKeyXMLLine( lineCount, xmlline )
- elseif bindingType = &quot;Event&quot; then
- evaluateForEvent( xmlline, lineCount )
- else
- MsgBox (&quot;Error: Couldn&apos;t determine file type&quot; + chr$(10) + chr$(10) + &quot;Action: Please reinstall Scripting Framework&quot;,0,&quot;Error&quot; )
- end if
- lineCount = lineCount + 1
- loop
-
- &apos;Set global variable numberOfLines (lineCount is one too many at end of the loop)
- numberOfLines = lineCount - 1
- &apos;Set global variable menuCount (it is one too many at end of the loop)
- menuCount = menuCount - 1
-
- filestream.closeInput()
- ReadXMLToArray( ) = true
- Exit function
-
- ErrorHandler:
- reset
- MsgBox (&quot;Error: Unable to read Star Office configuration file - &quot; + xmlFileName + chr$(10) + chr$(10) + &quot;Action: Please reinstall Scripting Framework&quot;,0,&quot;Error&quot; )
- ReadXMLToArray( ) = false
-end function
-
-
-
-sub evaluateForMenu( xmlline as string, lineCount as integer )
- const menuItemWhiteSpace = 2
- const menuXMLTag = &quot;&lt;menu:menu&quot;
- &apos;If the xml line is a top-level menu
- if instr( xmlline, menuXMLTag ) = menuItemWhiteSpace then
- menuLabel = ExtractLabelFromXMLLine( xmlline )
- menuItems( menuCount ) = menuLabel
- menuItemLinePosition( menuCount ) = lineCount
- menuCount = menuCount + 1
- end if
-end sub
-
-sub evaluateForEvent( xmlline as string, lineCount as integer )
- dim eventName as String
- &apos;if the xml line identifies a script or SB macro
- dim scriptName as string
- dim lineNumber as integer
- if instr( xmlline, &quot;event:language=&quot; + chr$(34) + &quot;Script&quot; ) &gt; 0 then
- eventName = ExtractEventNameFromXMLLine( xmlline )
- scriptName = ExtractEventScriptFromXMLLine( xmlline )
- lineNumber = lineCount
- elseif instr( xmlline, &quot;event:language=&quot; + chr$(34) + &quot;StarBasic&quot; ) &gt; 0 then
- eventName = ExtractEventNameFromXMLLine( xmlline )
- scriptName = &quot;Allocated to Office function&quot;
- lineNumber = 1
- end if
-
- &apos;Need to sequence to find the corresponding index for the event type
- for n = 0 to ubound( allEventTypesApp() )
- if ( eventName = allEventTypes( n ).Name ) then
- allEventTypesApp( n ).Name = scriptName
- allEventTypesApp( n ).Value = lineNumber
- end if
- next n
-end sub
-
-
-function isOKscriptProps( props() as Object, eventName as string ) as Boolean
- On Error Goto ErrorHandler
- props = ThisComponent.getEvents().getByName( eventName )
- test = ubound( props() )
- isOKscriptProps() = true
- exit function
-
- ErrorHandler:
- isOKscriptProps() = false
-end function
-
-sub ReadEventsFromDoc()
- On Error Goto ErrorHandler
-
- eventSupplier = ThisComponent
- for n = 0 to ubound( allEventTypes() )
- Dim scriptProps() as Object
- if (isOKscriptProps( scriptProps(), allEventTypes( n ).Name) ) then
- if ( ubound( scriptProps ) &gt; 0 ) then
- if ( scriptProps(0).Value = &quot;Script&quot; ) then
- &apos;Script binding
- allEventTypesDoc(n).Name = scriptProps(1).Value
- allEventTypesDoc(n).value = 2
- elseif( scriptProps(0).Value = &quot;StarBasic&quot; ) then
- &apos;StarBasic macro
- allEventTypesDoc(n).Name = &quot;Allocated to Office function&quot;
- allEventTypesDoc(n).value = 1
- end if
- end if
- end if
- next n
-
- exit sub
-
- &apos; eventProps is undefined if there are no event bindings in the doc
- ErrorHandler:
- reset
-end sub
-
-
-sub WriteEventsToDoc()
- On Error Goto ErrorHandler
-
- eventSupplier = ThisComponent
- for n = 0 to ubound( allEventTypes() )
- scriptName = allEventTypesDoc( n ).Name
- eventName = allEventTypes( n ).Name
- if( allEventTypesDoc( n ).Value &gt; 1 ) then &apos;script
- &apos;add to doc
- AddEventToDocViaAPI( scriptName, eventName )
- elseif( allEventTypesDoc( n ).Value = 0 ) then &apos;blank (this will &quot;remove&quot; already blank entries)
- &apos;remove from doc
- RemoveEventFromDocViaAPI( eventName )
- endif
- &apos;Otherwise it is a StarBasic binding - leave alone
- next n
- &apos;Mark document as modified ( should happen automatically as a result of calling the API )
- ThisComponent.CurrentController.getModel().setModified( True )
- exit sub
-
- ErrorHandler:
- reset
- msgbox( &quot;Error calling UNO API for writing event bindings to the document&quot; )
-end sub
-
-
-sub RemoveEventFromDocViaAPI( event as string )
- dim document as object
- dim dispatcher as object
- dim parser as object
- dim url as new com.sun.star.util.URL
-
- document = ThisComponent.CurrentController.Frame
- parser = createUnoService(&quot;com.sun.star.util.URLTransformer&quot;)
- dim args(0) as new com.sun.star.beans.PropertyValue
- args(0).Name = &quot;&quot;
- args(0).Value = event
-
- url.Complete = &quot;script://_$ScriptFrmwrkHelper.removeEvent?&quot; _
- + &quot;language=Java&amp;function=ScriptFrmwrkHelper.removeEvent&quot; _
- + &quot;&amp;location=share&quot;
-
- parser.parseStrict(url)
- disp = document.queryDispatch(url,&quot;&quot;,0)
- disp.dispatch(url,args())
-end sub
-
-
-sub AddEventToDocViaAPI( scriptName as string, eventName as string )
- dim properties( 1 ) as new com.sun.star.beans.PropertyValue
- properties( 0 ).Name = &quot;EventType&quot;
- properties( 0 ).Value = &quot;Script&quot;
- properties( 1 ).Name = &quot;Script&quot;
- properties( 1 ).Value = scriptName
-
- eventSupplier = ThisComponent
- nameReplace = eventSupplier.getEvents()
- nameReplace.replaceByName( eventName, properties() )
-end sub
-
-
-&apos; returns 0 for Fkey
-&apos; 1 for digit
-&apos; 2 for letter
-
-function getKeyTypeOffset( key as String ) as integer
- length = Len( key )
- if ( length &gt; 1 ) then
- getKeyTypeOffset() = 0
-
- elseif ( key &gt;= &quot;0&quot; AND key &lt;= &quot;9&quot; ) then
- getKeyTypeOffset() = 1
- else
- getKeyTypeOffset() = 2
- end if
-end function
-
-function getKeyGroupIndex( key as String, offset as Integer ) as Integer
- &apos; Keys we are interested in are A - Z, F2 - F12, 0 - 9 anything else should
- &apos; ensure -1 is returned
- cutKey = mid( key,2 )
-
- if ( cutKey &lt;&gt; &quot;&quot; ) then
- acode = asc ( mid( cutKey,1,1) )
- if ( acode &gt; 57 ) then
- getKeyGroupIndex() = -1
- exit function
- end if
- end if
-
- select case offset
- case 0:
- num = cint( cutKey )
- getKeyGroupIndex() = num - 1
- exit function
- case 1:
- num = asc( key ) - 48
- getKeyGroupIndex() = num
- exit function
- case 2:
- num = asc( key ) - 65
- getKeyGroupIndex() = num
- exit function
- end select
- getKeyGroupIndex() = -1
-end function
-
-Sub processKeyXMLLine( lineCount as Integer, xmlline as String )
-
- if instr( xmlline, &quot;&lt;accel:item&quot; ) &gt; 0 then
- shift = false
- control = false
- if instr( xmlline, &quot;accel:shift=&quot;+chr$(34)+&quot;true&quot;+chr$(34) ) &gt; 0 then
- shift = true
- end if
- if instr( xmlFile( lineCount ), &quot;accel:mod1=&quot;+chr$(34)+&quot;true&quot;+chr$(34) ) &gt; 0 then
- control = true
- end if
- offsetIntoArrayOfArrays = -1 &apos;default unknown
- if ( control AND shift ) then
- offsetIntoArrayOfArrays = 0
- elseif ( control ) then
- offsetIntoArrayOfArrays = 3
- elseif ( shift ) then
- offsetIntoArrayOfArrays = 6
- endif
- &apos; Calculate which of the 7 key group arrays we need to point to
- key = ExtractKeyCodeFromXMLLine( xmlline )
- keyTypeOffset = getKeyTypeOffset( key )
- offsetIntoArrayOfArrays = offsetIntoArrayOfArrays + keyTypeOffset
-
- &apos; Calculate from the key the offset into key group array we need to point to
- KeyGroupIndex = getKeyGroupIndex( key, keyTypeOffset )
- if ( offsetIntoArrayOfArrays = -1 ) then
- &apos;Unknown key group, no processing necessary
- Exit Sub
- end if
- if ( KeyGroupIndex &gt; -1 ) then
-
- &apos; Determine if a script framework binding is present or not
- if instr( xmlline, &quot;script://&quot; ) &gt; 0 then
- &apos; its one of ours so update its details
- scriptName = ExtractScriptIdFromXMLLine( xmlline )
-
- keyAllocationMap( offsetIntoArrayOfArrays, KeyGroupIndex ).Value = lineCount
- keyAllocationMap( offsetIntoArrayOfArrays, KeyGroupIndex ).Name = scriptName
- else
- keyAllocationMap( offsetIntoArrayOfArrays, KeyGroupIndex ).Value = 1
- keyAllocationMap( offsetIntoArrayOfArrays, KeyGroupIndex ).Name = &quot;&quot;
-
- end if
- end if
- end if
-End Sub
-
-Sub WriteXMLFromArray()
- On Error Goto ErrorHandler
- cfgFile = GetOfficePath() + &quot;user/config/soffice.cfg/&quot; + xmlFileName
- updateCfgFile( cfgFile )
- &apos;if ( false ) then&apos; config stuff not in build yet
- if ( true ) then
- updateConfig( xmlFileName )
- else
- msgbox (&quot;Office must be restarted before your changes will take effect.&quot;+ chr$(10)+&quot;Also close the Office QuickStarter (Windows and Linux)&quot;, 48, &quot;Assign Script (Java) To Menu&quot; )
- endif
- Exit Sub
-
- ErrorHandler:
- reset
- MsgBox (&quot;Error: Unable to write to Star Office configuration file&quot; + chr$(10) + &quot;/&quot; + GetOfficePath() + &quot;user/config/soffice.cfg/&quot; +xmlFileName + chr$(10) + chr$(10) + &quot;Action: Please make sure you have write access to this file&quot;,0,&quot;Error&quot; )
-end Sub
-
-
-Sub UpdateCfgFile ( fileName as String )
- dim ScriptProvider as Object
- dim Script as Object
- dim args(1)
- dim displayDialogFlag as boolean
- displayDialogFlag = false
- args(0) = ThisComponent
- args(1) = displayDialogFlag
-
- ScriptProvider = createUnoService(&quot;drafts.com.sun.star.script.framework.provider.MasterScriptProvider&quot;)
- ScriptProvider.initialize( args() )
- Script = ScriptProvider.getScript(&quot;script://_$ScriptFrmwrkHelper.updateCfgFile?&quot; _
- + &quot;language=Java&amp;function=ScriptFrmwrkHelper.updateCfgFile&amp;location=share&quot;)
- Dim inArgs(2)
- Dim outArgs()
- Dim outIndex()
- dim localNumLines as integer
-
- inArgs(0) = xmlFile()
- inArgs(1) = fileName
- inArgs(2) = numberOfLines
- Script.invoke( inArgs(), outIndex(), outArgs() )
-End Sub
-
-sub UpdateConfig( a$ )
- dim document as object
- dim dispatcher as object
- dim parser as object
- dim disp as object
- dim url as new com.sun.star.util.URL
- document = ThisComponent.CurrentController.Frame
- parser = createUnoService(&quot;com.sun.star.util.URLTransformer&quot;)
- dim args1(0) as new com.sun.star.beans.PropertyValue
- args1(0).Name = &quot;StreamName&quot;
- args1(0).Value = a$
- url.Complete = &quot;.uno:UpdateConfiguration&quot;
- parser.parseStrict(url)
- disp = document.queryDispatch(url,&quot;&quot;,0)
- disp.dispatch(url,args1())
-
-End Sub
-
-
-sub AddNewEventBinding( scriptName as string, eventPosition as integer, isApp as boolean )
- event = allEventTypes( eventPosition ).Name
- &apos;dim scriptProp as new com.sun.star.beans.PropertyValue
- if isApp then
- &apos;scriptProp.Name = scriptName
- &apos;scriptProp.Value = numberOfLines
- allEventTypesApp( eventPosition ).Name = scriptName
- allEventTypesApp( eventPosition ).Value = numberOfLines
-
- newline = &quot; &lt;event:event event:name=&quot; + chr$(34) + event + chr$(34)
- newline = newline + &quot; event:language=&quot; + chr$(34) + &quot;Script&quot; + chr$(34) + &quot; xlink:href=&quot; + chr$(34)
- newline = newline + scriptName + chr$(34) + &quot; xlink:type=&quot; + chr$(34) + &quot;simple&quot; + chr$(34) + &quot;/&gt;&quot;
- xmlFile( numberOfLines ) = newline
- xmlFile( numberOfLines + 1 ) = &quot;&lt;/event:events&gt;&quot;
- numberOfLines = numberOfLines + 1
- else
- &apos;scriptProp.Name = scriptName
- &apos;scriptProp.Value = 2
- allEventTypesDoc( eventPosition ).Name = scriptName
- allEventTypesDoc( eventPosition ).Value = 2
- end if
-end sub
-
-REM ----- Array update functions -----
-
-
-sub AddNewMenuBinding( newScript as string, newMenuLabel as string, newLinePosition as integer )
- dim newXmlFile( 400 ) as string
- dim newLineInserted as boolean
- dim lineCounter as integer
- lineCounter = 1
-
- do while lineCounter &lt;= numberOfLines
- if not newLineInserted then
- REM If the line number is the position at which to insert the new line
- if lineCounter = newLinePosition then
- if( instr( xmlFile( lineCounter ), &quot;&lt;menu:menupopup&gt;&quot; ) &gt; 0 ) then
- indent = GetMenuWhiteSpace( xmlFile( newLinePosition + 1 ) )
- newXmlFile( lineCounter ) = xmlFile( lineCounter )
- newXmlFile( lineCounter + 1 ) = ( indent + &quot;&lt;menu:menuitem menu:id=&quot;+chr$(34) + newScript + chr$(34)+&quot; menu:helpid=&quot;+chr$(34)+&quot;1929&quot;+chr$(34)+&quot; menu:label=&quot;+chr$(34)+ newMenuLabel + chr$(34)+&quot;/&gt;&quot; )
- else
- indent = GetMenuWhiteSpace( xmlFile( newLinePosition - 1 ) )
- newXmlFile( lineCounter ) = ( indent + &quot;&lt;menu:menuitem menu:id=&quot;+chr$(34) + newScript + chr$(34)+&quot; menu:helpid=&quot;+chr$(34)+&quot;1929&quot;+chr$(34)+&quot; menu:label=&quot;+chr$(34)+ newMenuLabel + chr$(34)+&quot;/&gt;&quot; )
- newXmlFile( lineCounter + 1 ) = xmlFile( lineCounter )
- end if
- REM added -1 for debug --&gt;
- &apos; indent = GetMenuWhiteSpace( xmlFile( newLinePosition ) )
- &apos; newXmlFile( lineCounter ) = ( indent + &quot;&lt;menu:menuitem menu:id=&quot;+chr$(34)+&quot;script://&quot; + newScript + chr$(34)+&quot; menu:helpid=&quot;+chr$(34)+&quot;1929&quot;+chr$(34)+&quot; menu:label=&quot;+chr$(34)+ newMenuLabel + chr$(34)+&quot;/&gt;&quot; )
- &apos; newXmlFile( lineCounter + 1 ) = xmlFile( lineCounter )
- newLineInserted = true
- else
- newXmlFile( lineCounter ) = xmlFile( lineCounter )
- end if
- else
- REM if the new line has been inserted the read from one position behind
- newXmlFile( lineCounter + 1 ) = xmlFile( lineCounter )
- end if
- lineCounter = lineCounter + 1
- loop
-
- numberOfLines = numberOfLines + 1
-
- REM read the new file into the global array
- for n = 1 to numberOfLines
- xmlFile( n ) = newXmlFile( n )
- next n
-
-end sub
-
-
-sub AddNewKeyBinding( scriptName as string, shift as boolean, control as boolean, key as string )
-
- dim keyCombo as string
- newLine = &quot; &lt;accel:item accel:code=&quot;+chr$(34)+&quot;KEY_&quot; + key +chr$(34)
- if shift then
- keyCombo = &quot;SHIFT + &quot;
- newLine = newLine + &quot; accel:shift=&quot;+chr$(34)+&quot;true&quot;+chr$(34)
- end if
- if control then
- keyCombo = keyCombo + &quot;CONTROL + &quot;
- newLine = newLine + &quot; accel:mod1=&quot;+chr$(34)+&quot;true&quot;+chr$(34)
- end if
- keyCombo = keyCombo + key
- newLine = newLine + &quot; xlink:href=&quot;+chr$(34)+ scriptName +chr$(34) +&quot;/&gt;&quot;
-
- if ( control AND shift ) then
- offsetIntoArrayOfArrays = 0
- elseif ( control ) then
- offsetIntoArrayOfArrays = 3
- elseif ( shift ) then
- offsetIntoArrayOfArrays = 6
- endif
-
- keyTypeOffset = getKeyTypeOffset( key )
- offsetIntoArrayOfArrays = offsetIntoArrayOfArrays + keyTypeOffset
- &apos; Calculate from the key the offset into key group array we need to point to
- KeyGroupIndex = getKeyGroupIndex( key, keyTypeOffset )
-
- &apos; if key is already allocated to a script then just reallocate
- if ( keyAllocationMap( offsetIntoArrayOfArrays, KeyGroupIndex ).Value &gt; 1 ) then
-
- keyAllocationMap( offsetIntoArrayOfArrays, KeyGroupIndex ).Name = scriptName
- &apos;replace line in xml file
- xmlFile( keyAllocationMap( offsetIntoArrayOfArrays, KeyGroupIndex ).Value ) = newLine
- else
- &apos; this is a new binding, create a new line in xml file
- for n = 1 to numberOfLines
- if n = numberOfLines then
- xmlFile( n ) = newLine
- xmlFile( n + 1 ) = &quot;&lt;/accel:acceleratorlist&gt;&quot;
- exit for
- else
- xmlFile( n ) = xmlFile( n )
- end if
- next n
-
- keyAllocationMap( offsetIntoArrayOfArrays, KeyGroupIndex ).Value = n
- keyAllocationMap( offsetIntoArrayOfArrays, KeyGroupIndex ).Name = scriptName
- numberOfLines = numberOfLines + 1
- endif
-
-end sub
-
-
-Sub RemoveBinding( lineToRemove as Integer )
- xmlFile( lineToRemove ) = &quot;&quot;
-end Sub
-
-REM Adds or removes the starting xml line positions for each top-level menu after the menu with the added script
-sub UpdateTopLevelMenus( topLevelMenuPosition as integer, addLine as boolean )
- for n = topLevelMenuPosition to 8
- if addLine then
- menuItemLinePosition( n ) = menuItemLinePosition( n ) + 1
-
- end if
- next n
-end sub
-
-
-REM Remove scriptNames and scriptLinePosition entries
-sub RemoveScriptNameAndPosition( keyComboPosition )
- dim updatedScriptNames( 120 ) as string
- dim updatedScriptLinePosition( 120 ) as integer
- dim removedScript as boolean
- removedScript = false
-
- for n = 1 to scriptCount
- if not removedScript then
- if not( n = keyComboPosition ) then
- updatedScriptNames( n ) = scriptNames( n )
- else
- removedScript = true
- end if
- else
- updatedScriptNames( n - 1 ) = scriptNames( n )
- end if
- next n
- scriptCount = scriptCount - 1
-
- for n = 1 to scriptCount
- scriptNames( n ) = updatedScriptNames( n )
- next n
-end sub
-
-
-
-REM ----- Populating Dialog Controls -----
-
-Sub PopulateLanguageCombo()
- langCombo = bindingDialog.getControl( &quot;LanguageCombo&quot; )
- langCombo.removeItems( 0, langCombo.getItemCount() )
- for n = LBOUND( languages() ) to UBOUND ( languages() )
- langCombo.addItem( languages( n ), n )
- next n
- langCombo.setDropDownLineCount( n )
- langCombo.text = langCombo.getItem( 0 )
-End Sub
-
-Sub PopulateLocationCombo()
- dim ScriptProvider as Object
- dim args(1)
- dim displayDialogFlag as boolean
- displayDialogFlag = false
- args(0) = ThisComponent
- args(1) = displayDialogFlag
-
- ScriptProvider = createUnoService(&quot;drafts.com.sun.star.script.framework.provider.MasterScriptProvider&quot;)
- ScriptProvider.initialize( args() )
-
- locCombo = bindingDialog.getControl( &quot;LocationCombo&quot; )
- locCombo.removeItems( 0, locCombo.getItemCount() )
- for n = LBOUND( locations() ) to UBOUND ( locations() )
- locCombo.addItem( locations( n ), n )
- next n
- locCombo.setDropDownLineCount( n )
- locCombo.text = locCombo.getItem( 0 )
-End Sub
-
-sub PopulateScriptList( lang as String, loc as String )
- Dim detailedView as boolean
- detailedView = bindingDialog.Model.detail.state
- scriptList = bindingDialog.getControl( &quot;ScriptList&quot; )
- scriptList.removeItems( 0, scriptList.getItemCount() )
-
- smgr = getProcessServiceManager()
- context = smgr.getPropertyValue( &quot;DefaultContext&quot; )
- scriptstoragemgr = context.getValueByName( &quot;/singletons/drafts.com.sun.star.script.framework.storage.theScriptStorageManager&quot; )
- scriptLocationURI = &quot;USER&quot;
- if ( loc = &quot;Share&quot; ) then
- scriptLocationURI = &quot;SHARE&quot;
- elseif ( loc = &quot;Document&quot; )then
- document = StarDesktop.ActiveFrame.Controller.Model
- scriptLocationURI = document.getURL()
- elseif ( loc = &quot;Filesystem&quot; ) then
- REM populate the list from the filesysScripts list
- if(lang = &quot;Java&quot; ) then
- exit sub
- endif
- length = UBOUND( filesysScripts() )
- if(length = -1) then
- exit sub
- endif
- for langIndex = lbound(languages()) to ubound(languages())
- if ( lang = languages(langIndex)) then
- extns = extensions(langIndex)
- exit for
- endif
- next langIndex
- dim locnDisplayList( length ) as new com.sun.star.beans.PropertyValue
- for index = lbound(filesysScripts()) to ubound(filesysScripts())
- scriptextn = filesysScripts( index )
- pos = lastIndexOf( scriptextn, &quot;.&quot; )
- scriptextn = mid( scriptextn, pos + 1, len( scriptextn ) - pos )
-
- for extnsIndex = lbound(extns()) to ubound(extns())
- extn = extns(extnsIndex)
- if ( scriptextn = extn ) then
- if ( detailedView ) then
- locnDisplayList( index ).Name = filesysScripts( index )
- locnDisplayList( index ).Value = filesysScripts( index )
- else
- REM replace name with simplified view
- locnDisplayList( index ).Name = filesysScripts( index )
- locnDisplayList( index ).Value = filesysScripts( index )
- end if
- scriptList.addItem( locnDisplayList( index ).Name, index )
- exit for
- end if
- next extnsIndex
- next index
- ScriptDisplayList(0) = locnDisplayList()
- scriptList.selectItemPos( 0, true )
-
- REM !!!!At this point we exit the sub!!!!
- exit sub
-
- endif
-
- scriptStorageID = scriptstoragemgr.getScriptStorageID( scriptLocationURI )
- dim resultList() as Object
- if ( scriptStorageID &gt; -1 ) then
- storage = scriptstoragemgr.getScriptStorage( scriptStorageID )
- implementations() = storage.getAllImplementations()
- length = UBOUND( implementations() )
- reservedScriptTag = &quot;_$&quot;
- if ( length &gt; -1 ) then
- dim tempDisplayList( length ) as new com.sun.star.beans.PropertyValue
- for n = LBOUND( implementations() ) to UBOUND( implementations() )
- logicalName = implementations( n ).getLogicalName()
- firstTwoChars = LEFT( logicalName, 2 )
- &apos;Only display scripts whose logicalnames don&apos;t begin with &quot;_$&quot;
- if ( firstTwoChars &lt;&gt; reservedScriptTag ) then
- if ( lang = implementations( n ).getLanguage() ) then
- if ( detailedView ) then
- tempDisplayList( n ).Name = logicalName _
- + &quot; [&quot; + implementations( n ).getFunctionName() + &quot;]&quot;
- tempDisplayList( n ).Value = implementations( n )
- else
- tempDisplayList( n ).Name = logicalName
- tempDisplayList( n ).Value = implementations( n )
- endif
- scriptList.addItem( tempDisplayList( n ).Name, n )
- endif
- endif
- next n
- resultList = tempDisplayList()
- endif
- ScriptDisplayList(0) = resultList()
- endif
- scriptList.selectItemPos( 0, true )
-
-end sub
-
-sub PopulateMenuCombo()
- menuComboBox = bindingDialog.getControl( &quot;MenuCombo&quot; )
- menuComboBox.removeItems( 0, menuComboBox.getItemCount() )
- for n = 1 to menuCount
- menuComboBox.addItem( menuItems( n ), n - 1 )
- next n
- menuComboBox.setDropDownLineCount( 8 )
- menuComboBox.text = menuComboBox.getItem( 0 )
-end sub
-
-
-sub PopulateSubMenuList( menuItemPosition as integer )
- redim subMenuItems( 100 ) as string
- redim subMenuItemLinePosition( 100 ) as integer
- dim lineNumber as integer
- const menuItemWhiteSpace = 4
- const menuXMLTag = &quot;&lt;menu:menu&quot;
- subMenuCount = 1
-
- REM xmlStartLine and xmlEndLine refer to the first and last lines
- &apos; menuItemPosition of a top-level menu ( 1=File to 8=Help ) add one line
- xmlStartLine = menuItemLinePosition( menuItemPosition ) + 1
-
- REM If last menu item is chosen
- if menuItemPosition = menuCount then
- xmlEndLine = numberOfLines
- else
- REM Other wise get the line before the next top-level menu begins
- xmlEndLine = menuItemLinePosition( menuItemPosition + 1 ) - 1
- end if
-
- for lineNumber = xmlStartLine to xmlEndLine
- REM Insert all sub-menus and sub-popupmenus
- if not( instr( xmlFile( lineNumber ), menuXMLTag ) = 0 ) and instr( xmlFile( lineNumber ), &quot;menupopup&quot;) = 0 then
- subMenuIndent = GetMenuWhiteSpace( xmlFile( lineNumber ) )
- if subMenuIndent = &quot; &quot; then
- subMenuIndent = &quot;&quot;
- else
- subMenuIndent = subMenuIndent + subMenuIndent
- end if
- if not( instr( xmlFile( lineNumber ), &quot;menuseparator&quot; ) = 0 ) then
- subMenuItems( subMenuCount ) = subMenuIndent + &quot;----------------&quot;
- else
- subMenuName = ExtractLabelFromXMLLine( xmlFile( lineNumber ) )
- REM Add script Name if there is one bound to menu item
- if instr( xmlFile( lineNumber ), &quot;script://&quot; ) &gt; 0 then
- script = ExtractScriptIdFromXMLLine( xmlFile( lineNumber ) )
- subMenuItems( subMenuCount ) = ( subMenuIndent + subMenuName + &quot; [&quot; + script + &quot;]&quot; )
- else
- subMenuItems( subMenuCount ) = subMenuIndent + subMenuName
- end if
- end if
- subMenuItemLinePosition( subMenuCount ) = lineNumber
- subMenuCount = subMenuCount + 1
- end if
- next lineNumber
-
- subMenuList = bindingDialog.getControl( &quot;SubMenuList&quot; )
-
- currentPosition = subMenuList.getSelectedItemPos()
-
- subMenuList.removeItems( 0, subMenuList.getItemCount() )
- &apos;If there are no sub-menus i.e. a dynamically generated menu like Format
- &apos;if subMenuCount = 1 then
- if menuItems( menuItemPosition ) = &quot;Format&quot; then
- subMenuList.addItem( &quot;Unable to Assign Scripts to this menu&quot;, 0 )
- else
- for n = 1 to subMenuCount - 1
- subMenuList.addItem( subMenuItems( n ), n - 1 )
- next n
- end if
-
- subMenuList.selectItemPos( currentPosition, true )
-
- SubMenuListListener()
- MenuLabelBoxListener()
-end sub
-
-
-
-sub PopulateTopLevelKeyBindingList()
-
- allKeyGroupsArray(0) = &quot;SHIFT + CONTROL + F keys&quot;
- allKeyGroupsArray(1) = &quot;SHIFT + CONTROL + digits&quot; &apos; CURRENTLY DISABLED
- allKeyGroupsArray(2) = &quot;SHIFT + CONTROL + letters&quot;
- allKeyGroupsArray(3) = &quot;CONTROL + F keys&quot;
- allKeyGroupsArray(4) = &quot;CONTROL + digits&quot;
- allKeyGroupsArray(5) = &quot;CONTROL + letters&quot;
- allKeyGroupsArray(6) = &quot;SHIFT + F keys&quot;
-
- keyCombo = bindingDialog.getControl( &quot;KeyCombo&quot; )
- keyCombo.removeItems( 0, keyCombo.getItemCount() )
- pos = 0
- for n = LBOUND( allKeyGroupsArray() ) to UBOUND( allKeyGroupsArray() )
- &apos; SHIFT + CONTROL + digits group is disabled at the moment, so skip
- &apos; it
- if ( n &lt;&gt; 1 ) then
- keyCombo.addItem( allKeyGroupsArray( n ), pos )
- pos = pos +1
- endif
- next n
- keyCombo.text = keyCombo.getItem( 0 )
-end sub
-
-sub PopulateKeyBindingList( keyGroupIndex as Integer )
- keyList = bindingDialog.getControl( &quot;KeyList&quot; )
- selectedPos = keyList.getSelectedItemPos()
- keyList.removeItems( 0, keyList.getItemCount() )
-
- ShortCutKeyArray() = KeyBindArrayOfArrays( keyGroupIndex )
-
- Dim keyProp as new com.sun.star.beans.PropertyValue
- for n = lbound( ShortCutKeyArray() ) to ubound( ShortCutKeyArray() )
- keyName = ShortCutKeyArray( n )
- if ( keyAllocationMap( keyGroupIndex, n ).Value = 1 ) then
- keyName = keyName + &quot; [Allocated to Office function]&quot;
-
- elseif ( keyAllocationMap( keyGroupIndex, n ).Value &gt; 1 ) then
- keyName = keyName + &quot; &quot; + keyAllocationMap( keyGroupIndex, n ).Name
- endif
- keyList.addItem( keyName, n )
- next n
-
- if ( selectedPos &lt;&gt; -1 )then
- keyList.selectItemPos( selectedPos, true )
- else
- keyList.selectItemPos( 0, true )
- end if
- KeyListListener()
-end sub
-
-sub populateEventList( focusPosition as integer )
- allApps = bindingDialog.getControl( &quot;AllAppsOption&quot; )
- eventList = bindingDialog.getControl( &quot;EventList&quot; )
- eventList.removeItems( 0, eventList.getItemCount() )
-
- dim isApp as boolean
- if allApps.state = true then &apos; Application event
- isApp = true
- else
- isApp = false
- end if
-
- &apos; use allEventTypes() to fill list box
- &apos; for each element compare with allEventTypesApp
- dim scriptName as string
- dim lineNumber as integer
- for n = 0 to ubound( allEventTypes() )
- &apos; If the line number is 1 then SB macro
- &apos; more than 1 it is the line number of the script
- if isApp and n &gt; 12 then
- exit for
- endif
- if isApp then
- lineNumber = allEventTypesApp( n ).Value
- scriptName = allEventTypesApp( n ).Name
- else
- lineNumber = allEventTypesDoc( n ).Value
- scriptName = allEventTypesDoc( n ).Name
- end if
- stringToAdd = &quot;&quot;
- if ( lineNumber &gt;= 1 ) then
- stringToAdd = &quot; [&quot; + scriptName + &quot;]&quot;
- end if
- eventList.addItem( allEventTypes( n ).Value + &quot; &quot; + stringToAdd, n )
- next n
-
- eventList.selectItemPos( focusPosition, true )
-end sub
-
-
-
-sub CreateAllKeyBindings()
- reDim allKeyBindings( 105 ) as string
- keyBindingPosition = 1
-
- for FKey = 2 to 12
- allKeyBindings( keyBindingPosition ) = &quot;SHIFT + CONTROL + F&quot; + FKey
- keyBindingPosition = keyBindingPosition + 1
- next FKey
- for Digit = 0 to 9
- allKeyBindings( keyBindingPosition ) = &quot;SHIFT + CONTROL + &quot; + Digit
- keyBindingPosition = keyBindingPosition + 1
- next Digit
- for Alpha = 65 to 90
- allKeyBindings( keyBindingPosition ) = &quot;SHIFT + CONTROL + &quot; + chr$( Alpha )
- keyBindingPosition = keyBindingPosition + 1
- next Alpha
-
- for FKey = 2 to 12
- allKeyBindings( keyBindingPosition ) = &quot;CONTROL + F&quot; + FKey
- keyBindingPosition = keyBindingPosition + 1
- next FKey
- for Digit = 0 to 9
- allKeyBindings( keyBindingPosition ) = &quot;CONTROL + &quot; + Digit
- keyBindingPosition = keyBindingPosition + 1
- next Digit
- for Alpha = 65 to 90
- allKeyBindings( keyBindingPosition ) = &quot;CONTROL + &quot; + chr$( Alpha )
- keyBindingPosition = keyBindingPosition + 1
- next Alpha
-
- for FKey = 2 to 12
- allKeyBindings( keyBindingPosition ) = &quot;SHIFT + F&quot; + FKey
- keyBindingPosition = keyBindingPosition + 1
- next FKey
-end sub
-
-
-sub createAllEventTypes()
- allEventTypes( 0 ).Name = &quot;OnStartApp&quot;
- allEventTypes( 0 ).Value = &quot;Start Application&quot;
- allEventTypes( 1 ).Name = &quot;OnCloseApp&quot;
- allEventTypes( 1 ).Value = &quot;Close Application&quot;
- allEventTypes( 2 ).Name = &quot;OnNew&quot;
- allEventTypes( 2 ).Value = &quot;Create Document&quot;
- allEventTypes( 3 ).Name = &quot;OnLoad&quot;
- allEventTypes( 3 ).Value = &quot;Open Document&quot;
- allEventTypes( 4 ).Name = &quot;OnSaveAs&quot;
- allEventTypes( 4 ).Value = &quot;Save Document As&quot;
- allEventTypes( 5 ).Name = &quot;OnSaveAsDone&quot;
- allEventTypes( 5 ).Value = &quot;Document has been saved as&quot;
- allEventTypes( 6 ).Name = &quot;OnSave&quot;
- allEventTypes( 6 ).Value = &quot;Save Document&quot;
- allEventTypes( 7 ).Name = &quot;OnSaveDone&quot;
- allEventTypes( 7 ).Value = &quot;Document has been saved&quot;
- allEventTypes( 8 ).Name = &quot;OnPrepareUnload&quot;
- allEventTypes( 8 ).Value = &quot;Close Document&quot;
- allEventTypes( 9 ).Name = &quot;OnUnload&quot;
- allEventTypes( 9 ).Value = &quot;Close Document&quot;
- allEventTypes( 10 ).Name = &quot;OnFocus&quot;
- allEventTypes( 10 ).Value = &quot;Activate document&quot;
- allEventTypes( 11 ).Name = &quot;OnUnfocus&quot;
- allEventTypes( 11 ).Value = &quot;DeActivate document&quot;
- allEventTypes( 12 ).Name = &quot;OnPrint&quot;
- allEventTypes( 12 ).Value = &quot;Print Document&quot;
- REM The following are document-only events
- allEventTypes( 13 ).Name = &quot;OnMailMerge&quot;
- allEventTypes( 13 ).Value = &quot;Print form letters&quot;
- allEventTypes( 14 ).Name = &quot;OnPageCountChange&quot;
- allEventTypes( 14 ).Value = &quot;Changing the page count&quot;
-end sub
-
-
-sub createAllEventBindings()
- &apos;dim props as new com.sun.star.beans.PropertyValue
- &apos;props.Name = &quot;&quot; &apos;Name = script name
- &apos;props.Value = 0 &apos;Value = 0 for empty, 1 for macro, linenumber for script
-
- &apos; Creates all types of event bindings for both Application and Document
- &apos; Initially both arrays have no bindings allocated to the events
- &apos; The value for Doc is only Script/macro name (no need for line number)
- for n = 0 to ubound( allEventTypes() )
- allEventTypesApp( n ).Name = &quot;&quot;
- allEventTypesApp( n ).Value = 0
- allEventTypesDoc( n ).Name = &quot;&quot;
- allEventTypesDoc( n ).Value = 0
- next n
-end sub
-
-
-REM ----- Text Handling Functions -----
-
-
-function ExtractLabelFromXMLLine( XMLLine as string ) as string
- labelStart = instr( XMLLine, &quot;label=&quot;+chr$(34)) + 7
- labelEnd = instr( XMLLine, chr$(34)+&quot;&gt;&quot; )
- if labelEnd = 0 then
- labelEnd = instr( XMLLine, chr$(34)+&quot;/&gt;&quot; )
- end if
- labelLength = labelEnd - labelStart
-
- menuLabelUnformatted = mid( XMLLine, labelStart, labelLength )
- tildePosition = instr( menuLabelUnformatted, &quot;~&quot; )
- select case tildePosition
- case 0
- menuLabel = menuLabelUnformatted
- case 1
- menuLabel = right( menuLabelUnformatted, labelLength - 1 )
- case else
- menuLabelLeft = left( menuLabelUnformatted, tildePosition - 1 )
- menuLabelRight = right( menuLabelUnformatted, labelLength - tildePosition )
- menuLabel = menuLabelLeft + menuLabelRight
- end select
-
- ExtractLabelFromXMLLine() = menuLabel
-end function
-
-
-function ExtractScriptIdFromXMLLine( XMLLine as string ) as string
- idStart = instr( XMLLine, &quot;script://&quot;) + 9
- if instr( XMLLine, chr$(34)+&quot; menu:helpid=&quot; ) = 0 then
- idEnd = instr( XMLLIne, &quot;?location=&quot; )
- else
- idEnd = instr( XMLLine, &quot;&quot;+chr$(34)+&quot; menu:helpid=&quot; )
- end if
- idLength = idEnd - idStart
- scriptId = mid( XMLLine, idStart, idLength )
-
- ExtractScriptIdFromXMLLine() = scriptId
-end function
-
-function ExtractEventScriptFromXMLLine( xmlline as string )
- if instr( xmlline, &quot;script://&quot; ) &gt; 0 then
- idStart = instr( xmlline, &quot;script://&quot;) + 9
- idEnd = instr( xmlline, chr$(34)+&quot; xlink:type=&quot; )
- idLength = idEnd - idStart
- scriptId = mid( xmlline, idStart, idLength )
- end if
- ExtractEventScriptFromXMLLine() = scriptId
-end function
-
-
-function ExtractEventNameFromXMLLine( xmlline as string )
- idStart = instr( xmlline, &quot;event:name=&quot; + chr$(34) ) + 12
- idEnd = instr( xmlline, chr$(34)+&quot; event:language&quot; )
- idLength = idEnd - idStart
- event = mid( xmlline, idStart, idLength )
-
- ExtractEventNameFromXMLLine() = event
-end function
-
-function ExtractKeyCodeFromXMLLine( XMLLine as string ) as string
- keyStart = instr( XMLLine, &quot;code=&quot;+chr$(34)+&quot;KEY_&quot;) + 10
- keyCode = mid( XMLLine, keyStart, ( len( XMLLine ) - keyStart ) )
- keyEnd = instr( keyCode, chr$(34) )
- keyCode = mid( keyCode, 1, keyEnd - 1 )
-
- ExtractKeyCodeFromXMLLine() = keyCode
-end function
-
-
-function GetMenuWhiteSpace( MenuXMLLine as string ) as string
- whiteSpace = &quot;&quot;
- numberOfSpaces = instr( MenuXMLLine, &quot;&lt;&quot; ) - 1
- for i = 1 to numberOfSpaces
- whiteSpace = whiteSpace + &quot; &quot;
- next i
-
- GetMenuWhiteSpace() = whiteSpace
-end function
-
-function IsAllocatedMenuItem( script as string ) as boolean
- foundMenuItem = false
- Allocated = false
- count = 0
- do
- count = count + 1
- if strcomp( script, subMenuItems( count ) ) = 0 then
- foundMenuItem = true
- end if
- loop while not( foundMenuItem ) and count &lt; subMenuCount
-
- linePosition = subMenuItemLinePosition( count )
-
- if not( instr( xmlFile( linePosition ), &quot;script://&quot; ) = 0 ) then
- Allocated = true
- end if
-
- isAllocatedMenuItem() = Allocated
-end Function
-
-
-function HasShiftKey( keyCombo ) as boolean
- if instr( keyCombo, &quot;SHIFT&quot; ) = 0 then
- hasShift = false
- else
- hasShift = true
- end if
-
- HasShiftKey = hasShift
-end function
-
-
-function HasControlKey( keyCombo ) as boolean
- if instr( keyCombo, &quot;CONTROL&quot; ) = 0 then
- hasControl = false
- else
- hasControl = true
- end if
-
- HasControlKey = hasControl
-end function
-
-
-function ExtractKeyFromCombo( keyString as string ) as string
- while not( instr( keyString, &quot;+&quot; ) = 0 )
- removeTo = instr( keyString, &quot;+ &quot; ) + 2
- keyString = mid( keyString, removeTo, ( len( keyString ) - removeTo ) + 1 )
- wend
- ExtractKeyFromCombo() = keyString
-end function
-
-
-
-REM ------ Event Handling Functions (Listeners) ------
-
-
-sub KeyListListener()
- keyShortCutList = bindingDialog.getControl( &quot;KeyList&quot; )
- selectedShortCut = keyShortCutList.getSelectedItem()
- combo = bindingDialog.getControl( &quot;KeyCombo&quot; )
-
- menuScriptList = bindingDialog.getControl( &quot;ScriptList&quot; )
- selectedScript = menuScriptList.getSelectedItem()
-
- keyGroup = combo.text
- dim keyGroupIndex as Integer
- dim selectedKeyIndex as Integer
- for n = lbound ( allKeyGroupsArray() ) to ubound ( allKeyGroupsArray() )
- if ( allKeyGroupsArray( n ) = keyGroup )then
- keyGroupIndex = n
- exit for
- end if
- next n
- selectedKeyIndex = keyShortCutList.getSelectedItemPos()
-
- if keyAllocationMap( keyGroupIndex, selectedKeyIndex ).Value &gt; 1 then
- bindingDialog.Model.Delete.enabled = true
- bindingDialog.Model.AddOn.enabled = true
- if selectedScript &lt;&gt; &quot;&quot; then
- bindingDialog.Model.NewButton.enabled = true
- endif
-
- else
-
- if keyAllocationMap( keyGroupIndex, selectedKeyIndex ).Value = 1 then
- bindingDialog.Model.Delete.enabled = false
- bindingDialog.Model.AddOn.enabled = false
- bindingDialog.Model.NewButton.enabled = false
- else
- bindingDialog.Model.Delete.enabled = false
- bindingDialog.Model.AddOn.enabled = false
- if selectedScript &lt;&gt; &quot;&quot; then
- bindingDialog.Model.NewButton.enabled = true
- end if
- end if
- end if
-end sub
-
-
-sub SubMenuListListener()
- scriptList = bindingDialog.getControl( &quot;ScriptList&quot; )
- subMenuList = bindingDialog.getControl( &quot;SubMenuList&quot; )
- selectedMenuItem = subMenuList.getSelectedItem()
- if IsAllocatedMenuItem( selectedMenuItem ) then
- bindingDialog.Model.Delete.enabled = true
- bindingDialog.Model.AddOn.enabled = true
- else
- bindingDialog.Model.Delete.enabled = false
- bindingDialog.Model.AddOn.enabled = false
- end if
-end sub
-
-REM a keypress listener that in turn fires the MenuCL on a return key even only
-sub fireMenuComboListernerOnRet( eventobj as object )
- if (eventobj.KeyCode = 1280 ) then
- MenuComboListener()
- endif
-end sub
-
-&apos;Populates the SubMenuList with the appropriate menu items from the Top-level menu selected from the combo box
-sub MenuComboListener()
- combo = bindingDialog.getControl( &quot;MenuCombo&quot; )
- newToplevelMenu = combo.text
- counter = 0
- do
- counter = counter + 1
- loop while not( newToplevelMenu = menuItems( counter ) )
-
- PopulateSubMenuList( counter )
-end sub
-
-REM a keypress listener that in turn fires the LLCL on a return key even only
-sub fireLangLocComboListernerOnRet( eventobj as object )
- if (eventobj.KeyCode = 1280 ) then
- LangLocComboListener()
- endif
-end sub
-
-sub LangLocComboListener()
-
- combo = bindingDialog.getControl( &quot;LanguageCombo&quot; )
- language = combo.text
- combo = bindingDialog.getControl( &quot;LocationCombo&quot; )
- location = combo.text
-
- PopulateScriptList( language,location )
-
- &apos;Enable/disable Assign button
- scriptList = bindingDialog.getControl( &quot;ScriptList&quot; )
- if not (dialogName = &quot;EditDebug&quot;) then
- if scriptList.getSelectedItem() = &quot;&quot; then
- bindingDialog.Model.NewButton.enabled = false
- end if
- end if
-
- if ( location = &quot;Filesystem&quot; ) and ( language &lt;&gt; &quot;Java&quot; ) then
- bindingDialog.Model.Browse.enabled = true
- if not (dialogName = &quot;EditDebug&quot;) then
- bindingDialog.Model.fsonly.enabled = true
- end if
- else
- bindingDialog.Model.Browse.enabled = false
- if not (dialogName = &quot;EditDebug&quot;) then
- bindingDialog.Model.fsonly.enabled = false
- end if
- endif
-
- &apos; extra dialog dependent processing
- if dialogName = &quot;Menu&quot; then
- &apos; will set New button to false if no text in LabelBox
- MenuLabelBoxListener()
- elseif dialogName = &quot;Key&quot; then
- &apos; will set Assigne button to false if appropriate
- KeyListListener()
- elseif dialogName = &quot;Event&quot; then
- EventListListener()
- end if
-
-end sub
-
-REM a keypress listener that in turn fires the KeyCL on a return key even only
-sub fireKeyComboListernerOnRet( eventobj as object )
- if (eventobj.KeyCode = 1280 ) then
- KeyComboListener()
- endif
-end sub
-
-&apos;Populates the KeyList with the appropriate key combos from the Top-level key group selected from the combo box
-sub KeyComboListener()
- combo = bindingDialog.getControl( &quot;KeyCombo&quot; )
- keyGroup = combo.text
- for n = lbound ( allKeyGroupsArray() ) to ubound ( allKeyGroupsArray() )
- if ( allKeyGroupsArray( n ) = keyGroup )then
- keyGroupIndex = n
- exit for
- end if
- next n
- PopulateKeyBindingList( keyGroupIndex )
-end sub
-
-
-sub MenuLabelBoxListener()
- menuScriptList = bindingDialog.getControl( &quot;ScriptList&quot; )
- selectedScript = menuScriptList.getSelectedItem()
- &apos;if the SubMenuList is from a dynamically created menu (e.g. Format)
- &apos;or if the Menu Label text box is empty
- subMenuList = bindingDialog.getControl( &quot;SubMenuList&quot; )
- firstItem = subMenuList.getItem( 0 )
- if bindingDialog.Model.MenuLabelBox.text = &quot;&quot; OR firstItem = &quot;Unable to Assign Scripts to this menu&quot; OR selectedScript = &quot;&quot; then
- bindingDialog.Model.NewButton.enabled = false
- else
- bindingDialog.Model.NewButton.enabled = true
- end if
-end sub
-
-sub AppDocEventListener()
- populateEventList( 0 )
- EventListListener()
-end sub
-
-
-sub EventListListener()
- on error goto ErrorHandler
-
- eventList = bindingDialog.getControl( &quot;EventList&quot; )
- eventPos = eventList.getSelectedItemPos()
-
- allApps = bindingDialog.getControl( &quot;AllAppsOption&quot; )
-
- menuScriptList = bindingDialog.getControl( &quot;ScriptList&quot; )
- selectedScript = menuScriptList.getSelectedItem()
-
- dim binding as integer
- if allApps.state = true then
- binding = allEventTypesApp( eventPos ).Value
- else
- binding = allEventTypesDoc( eventPos ).Value
- endif
-
- if ( binding &gt; 1 ) then
- bindingDialog.Model.Delete.enabled = true
- else
- bindingDialog.Model.Delete.enabled = false
- end if
-
- if ( binding = 1 ) then
- &apos; staroffice binding, can&apos;t assign
- bindingDialog.Model.NewButton.enabled = false
- elseif ( selectedScript &lt;&gt; &quot;&quot; ) then
- bindingDialog.Model.NewButton.enabled = true
- end if
- exit sub
-
- ErrorHandler:
- reset
- bindingDialog.Model.Delete.enabled = false
-
-end sub
-
-
-REM ------ Event Handling Functions (Buttons) ------
-
-function getFilePicker() as Object
- REM file dialog
- oFilePicker = CreateUnoService( &quot;com.sun.star.ui.dialogs.FilePicker&quot; )
-
- combo = bindingDialog.getControl( &quot;LanguageCombo&quot; )
- language = combo.text
- currentFilter = &quot;&quot;
-
- for langIndex = 0 to ubound(languages())
- if( languages(langIndex) &lt;&gt; &quot;Java&quot; ) then
- filterName = languages(langIndex) + &quot; (&quot;
- filterVal=&quot;&quot;
- extns = extensions(langIndex)
- for extnIndex = lbound(extns()) to ubound(extns())
- filterName = filterName + &quot;*.&quot; + extns(extnIndex) + &quot;,&quot;
- filterVal = filterVal + &quot;*.&quot; + extns(extnIndex) + &quot;,&quot;
- next extnIndex
- filterName = left(filterName, len(filterName) -1) + &quot;)&quot;
- filterVal = left(filterVal, len(filterVal) -1)
- if(instr(filterName,language) = 1 ) then
- currentFilter = filterName
- end if
- oFilePicker.AppendFilter(filterName, filterVal)
- end if
- next langIndex
- if(len(currentFilter) &gt; 0 ) then
- oFilePicker.SetCurrentFilter( currentFilter )
- end if
-
- If sFileURL = &quot;&quot; Then
- oSettings = CreateUnoService( &quot;com.sun.star.frame.Settings&quot; )
- oPathSettings = oSettings.getByName( &quot;PathSettings&quot; )
- sFileURL = oPathSettings.getPropertyValue( &quot;Work&quot; )
- End If
-
- REM set display directory
- oSimpleFileAccess = CreateUnoService( &quot;com.sun.star.ucb.SimpleFileAccess&quot; )
-
- If oSimpleFileAccess.exists( sFileURL ) And oSimpleFileAccess.isFolder( sFileURL ) Then
- oFilePicker.setDisplayDirectory( sFileURL )
- End If
- getFilePicker() = oFilePicker
-end function
-
-Sub DoBrowseAndEdit()
- Dim oFilePicker As Object, oSimpleFileAccess As Object
- Dim oSettings As Object, oPathSettings As Object
- Dim sFileURL As String
- Dim sFiles As Variant
-
- oFilePicker = getFilePicker()
- REM execute file dialog
- If oFilePicker.execute() Then
- sFiles = oFilePicker.getFiles()
-
- sFileURL = sFiles(0)
- oSimpleFileAccess = CreateUnoService( &quot;com.sun.star.ucb.SimpleFileAccess&quot; )
- If oSimpleFileAccess.exists( sFileURL ) Then
- for langIndex = 0 to ubound(languages())
- If (instr(oFilePicker.GetCurrentFilter, languages(langIndex)) = 1 ) then
- RunDebugger(languages(langIndex), sFileURL, &quot;&quot;)
- End If
- next langIndex
- End If
- bindingDialog.endExecute()
- End If
-End Sub
-
-Sub RunDebugger(lang as String, uri as String, filename as String)
- dim document as object
- dim dispatcher as object
- dim parser as object
- dim url as new com.sun.star.util.URL
-
- document = ThisComponent.CurrentController.Frame
- parser = createUnoService(&quot;com.sun.star.util.URLTransformer&quot;)
- dim args(2) as new com.sun.star.beans.PropertyValue
- args(0).Name = &quot;language&quot;
- args(0).Value = lang
- args(1).Name = &quot;uri&quot;
- args(1).Value = uri
- args(2).Name = &quot;filename&quot;
- args(2).Value = filename
-
- url.Complete = &quot;script://_$DebugRunner.Debug?&quot; _
- + &quot;language=Java&amp;function=DebugRunner.go&quot; _
- + &quot;&amp;location=share&quot;
-
- parser.parseStrict(url)
- disp = document.queryDispatch(url,&quot;&quot;,0)
- disp.dispatch(url, args())
-End Sub
-
-sub DoEdit()
- Dim scriptInfo as Object
-
- menuScriptList = bindingDialog.getControl( &quot;ScriptList&quot; )
- selectedScript = menuScriptList.getSelectedItem()
-
- if not (selectedScript = &quot;&quot;) then
- scripts() = scriptDisplayList(0)
- for n = LBOUND( scripts() ) to UBOUND( scripts() )
- if ( scripts( n ).Name = selectedScript ) then
- scriptInfo = scripts( n ).Value
- exit for
- end if
- next n
-
- RunDebugger(scriptInfo.getLanguage, scriptInfo.getParcelURI, scriptInfo.getFunctionName)
- bindingDialog.endExecute()
- end if
-end sub
-
-sub MenuOKButton()
- WriteXMLFromArray()
- bindingDialog.endExecute()
-end sub
-
-
-sub MenuCancelButton()
- bindingDialog.endExecute()
-end sub
-
-
-sub MenuHelpButton()
- helpDialog = LoadDialog( &quot;ScriptBindingLibrary&quot;, &quot;HelpBinding&quot; )
- helpDialog.execute()
-end sub
-
-
-sub MenuDeleteButton()
- subMenuList = bindingDialog.getControl( &quot;SubMenuList&quot; )
- linePos = subMenuItemLinePosition( subMenuList.getSelectedItemPos() + 1 )
-
- RemoveBinding( linePos )
-
- REM Update the top-level menu&apos;s line positions
- combo = bindingDialog.getControl( &quot;MenuCombo&quot; )
- newToplevelMenu = combo.text
- counter = 0
- do
- counter = counter + 1
- loop while not( newToplevelMenu = menuItems( counter ) )
- UpdateTopLevelMenus( counter + 1, false )
-
- MenuComboListener()
-
- subMenuList.selectItemPos( subMenuList.getSelectedItemPos(), true )
-end sub
-
-
-sub MenuNewButton()
- menuScriptList = bindingDialog.getControl( &quot;ScriptList&quot; )
- selectedScript = menuScriptList.getSelectedItem()
- scriptURI = getScriptURI( selectedScript )
- newMenuLabel = bindingDialog.Model.MenuLabelBox.text
-
- subMenuList = bindingDialog.getControl( &quot;SubMenuList&quot; )
-
- REM Update the top-level menu&apos;s line positions
- combo = bindingDialog.getControl( &quot;MenuCombo&quot; )
- newToplevelMenu = combo.text
- counter = 0
- do
- counter = counter + 1
- loop while not( newToplevelMenu = menuItems( counter ) )
- UpdateTopLevelMenus( counter + 1, true )
-
- REM New line position is one ahead of the selected sub menu item
- linePos = subMenuItemLinePosition( subMenuList.getSelectedItemPos() + 1 ) + 1
-
- AddNewMenuBinding( scriptURI, newMenuLabel, linePos )
-
- MenuComboListener()
- subMenuList.selectItemPos( subMenuList.getSelectedItemPos() + 1, true )
- SubMenuListListener()
-end sub
-
-sub BrowseButton()
- Dim oFilePicker As Object, oSimpleFileAccess As Object
- Dim oSettings As Object, oPathSettings As Object
- Dim sFileURL As String
- Dim sFiles As Variant
-
- oFilePicker = getFilePicker()
-
- REM execute file dialog
- If oFilePicker.execute() Then
- sFiles = oFilePicker.getFiles()
- sFileURL = sFiles(0)
- oSimpleFileAccess = CreateUnoService( &quot;com.sun.star.ucb.SimpleFileAccess&quot; )
- If oSimpleFileAccess.exists( sFileURL ) Then
- REM add sFileURL to the list
- ReDim preserve filesysScripts(filesysCount) as String
- filesysScripts( filesysCount ) = sFileURL
- filesysCount=filesysCount+1
- &apos; if user changed filter in file picker then populate
- &apos; language with language associated with that in file picker
- sFilter = oFilePicker.getCurrentFilter()
- langCombo = bindingDialog.getControl( &quot;LanguageCombo&quot; )
- dim items() as String
- items() = langCombo.getItems()
- for index = lbound(items()) to ubound(items())
- iPos = inStr(sFilter,&quot; &quot;)
- Dim theLanguage as String
- if( iPos &gt; 0 ) then
- theLanguage = Left( sFilter, iPos - 1)
- if ( theLanguage = items( index ) ) then
- langCombo.text = items( index )
- exit for
- end if
- end if
- next index
- End If
- End If
- LangLocComboListener()
-End Sub
-
-sub KeyOKButton()
- WriteXMLFromArray()
- bindingDialog.endExecute()
-end sub
-
-
-sub KeyCancelButton()
- bindingDialog.endExecute()
-end sub
-
-
-sub KeyHelpButton()
- helpDialog = LoadDialog( &quot;ScriptBindingLibrary&quot;, &quot;HelpBinding&quot; )
- helpDialog.execute()
-end sub
-
-
-sub KeyNewButton()
- combo = bindingDialog.getControl( &quot;KeyCombo&quot; )
- keyGroup = combo.text
- for n = lbound ( allKeyGroupsArray() ) to ubound ( allKeyGroupsArray() )
- if ( allKeyGroupsArray( n ) = keyGroup )then
- keyGroupIndex = n
- exit for
- end if
- next n
- menuScriptList = bindingDialog.getControl( &quot;ScriptList&quot; )
- script = menuScriptList.getSelectedItem()
- scriptURI = getScriptURI( script )
-
- keyList = bindingDialog.getControl( &quot;KeyList&quot; )
- keyIndex = keyList.getSelectedItemPos()
- ShortCutKeyArray() = KeyBindArrayOfArrays( keyGroupIndex )
- keyText = ShortCutKeyArray( keyIndex )
-
- AddNewKeyBinding( scriptURI, HasShiftKey( keyText ), HasControlKey( keyText ), ExtractKeyFromCombo( keyText ) )
-
- KeyComboListener()
-end sub
-
-
-sub KeyDeleteButton()
-
- keyShortCutList = bindingDialog.getControl( &quot;KeyList&quot; )
- selectedShortCut = keyShortCutList.getSelectedItem()
- combo = bindingDialog.getControl( &quot;KeyCombo&quot; )
-
- keyGroup = combo.text
- dim keyGroupIndex as Integer
- dim selectedKeyIndex as Integer
- for n = lbound ( allKeyGroupsArray() ) to ubound ( allKeyGroupsArray() )
- if ( allKeyGroupsArray( n ) = keyGroup )then
- keyGroupIndex = n
- exit for
- end if
- next n
- selectedKeyIndex = keyShortCutList.getSelectedItemPos()
- linePosition = keyAllocationMap( keyGroupIndex, selectedKeyIndex ).Value
- keyAllocationMap( keyGroupIndex, selectedKeyIndex ).Value = 0
- keyAllocationMap( keyGroupIndex, selectedKeyIndex ).Name = &quot;&quot;
- RemoveBinding( linePosition )
- KeyComboListener()
-end sub
-
-
-sub EventNewButton()
- eventScriptList = bindingDialog.getControl( &quot;ScriptList&quot; )
- selectedScript = eventScriptList.getSelectedItem()
- scriptURI = getScriptURI( selectedScript )
- eventList = bindingDialog.getControl( &quot;EventList&quot; )
- eventPosition = eventList.getSelectedItemPos()
-
- allApps = bindingDialog.getControl( &quot;AllAppsOption&quot; )
- dim isApp as boolean
- if allApps.state = true then &apos;Application
- isApp = true
- else &apos;Document
- isApp = false
- end if
- AddNewEventBinding( scriptURI, eventPosition, isApp )
-
- populateEventList( eventPosition )
- EventListListener()
-end sub
-
-
-sub EventDeleteButton()
- eventList = bindingDialog.getControl( &quot;EventList&quot; )
- REM Check that combo is a script
- eventPosition = eventList.getSelectedItemPos()
-
- allApps = bindingDialog.getControl( &quot;AllAppsOption&quot; )
- if allApps.state = true then &apos;Application
- linePosition = allEventTypesApp( eventPosition ).Value
- &apos;dim eventProp as new com.sun.star.beans.PropertyValue
- &apos;eventProp.Name = &quot;&quot;
- &apos;eventProp.Value = 0
- allEventTypesApp( eventPosition ).Name = &quot;&quot;
- allEventTypesApp( eventPosition ).Value = 0
- RemoveBinding( linePosition )
- else &apos;Document
- &apos;DeleteEvent( allEventTypes( eventPosition ) )
- allEventTypesDoc( eventPosition ).Name = &quot;&quot;
- allEventTypesDoc( eventPosition ).Value = 0
- end if
-
- PopulateEventList( eventPosition )
- EventListListener()
-end sub
-
-
-sub EventOKButton
- WriteEventsToDoc()
- WriteXMLFromArray()
- bindingDialog.endExecute()
-end sub
-
-
-sub HelpOKButton()
- helpDialog.endExecute()
-end sub
-</script:module>
diff --git a/scripting/workben/bindings/calckeybinding.xml b/scripting/workben/bindings/calckeybinding.xml
deleted file mode 100644
index 665b0a926447..000000000000
--- a/scripting/workben/bindings/calckeybinding.xml
+++ /dev/null
@@ -1,111 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE accel:acceleratorlist PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "accelerator.dtd">
-<!--
- * 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 .
--->
-<accel:acceleratorlist xmlns:accel="http://openoffice.org/2001/accel" xmlns:xlink="http://www.w3.org/1999/xlink">
- <accel:item accel:code="KEY_END" accel:shift="true" accel:mod1="true" xlink:href="slot:26532"/>
- <accel:item accel:code="KEY_HOME" accel:shift="true" accel:mod1="true" xlink:href="slot:26531"/>
- <accel:item accel:code="KEY_RIGHT" accel:shift="true" accel:mod1="true" xlink:href="slot:26542"/>
- <accel:item accel:code="KEY_LEFT" accel:shift="true" accel:mod1="true" xlink:href="slot:26541"/>
- <accel:item accel:code="KEY_UP" accel:shift="true" accel:mod1="true" xlink:href="slot:26539"/>
- <accel:item accel:code="KEY_DOWN" accel:shift="true" accel:mod1="true" xlink:href="slot:26540"/>
- <accel:item accel:code="KEY_F9" accel:shift="true" accel:mod1="true" xlink:href="slot:26318"/>
- <accel:item accel:code="KEY_F5" accel:shift="true" accel:mod1="true" xlink:href="slot:26645"/>
- <accel:item accel:code="KEY_F2" accel:shift="true" accel:mod1="true" xlink:href="slot:26089"/>
- <accel:item accel:code="KEY_T" accel:shift="true" accel:mod1="true" xlink:href="slot:26645"/>
- <accel:item accel:code="KEY_R" accel:shift="true" accel:mod1="true" xlink:href="slot:26012"/>
- <accel:item accel:code="KEY_P" accel:shift="true" accel:mod1="true" xlink:href="slot:10294"/>
- <accel:item accel:code="KEY_F" accel:shift="true" accel:mod1="true" xlink:href="slot:26612"/>
- <accel:item accel:code="KEY_B" accel:shift="true" accel:mod1="true" xlink:href="slot:10295"/>
- <accel:item accel:code="KEY_6" accel:shift="true" accel:mod1="true" xlink:href="slot:26052"/>
- <accel:item accel:code="KEY_5" accel:shift="true" accel:mod1="true" xlink:href="slot:26046"/>
- <accel:item accel:code="KEY_4" accel:shift="true" accel:mod1="true" xlink:href="slot:26045"/>
- <accel:item accel:code="KEY_3" accel:shift="true" accel:mod1="true" xlink:href="slot:26053"/>
- <accel:item accel:code="KEY_2" accel:shift="true" accel:mod1="true" xlink:href="slot:26055"/>
- <accel:item accel:code="KEY_1" accel:shift="true" accel:mod1="true" xlink:href="slot:26054"/>
- <accel:item accel:code="KEY_DIVIDE" accel:mod1="true" xlink:href="slot:26560"/>
- <accel:item accel:code="KEY_MULTIPLY" accel:mod1="true" xlink:href="slot:26551"/>
- <accel:item accel:code="KEY_BACKSPACE" accel:mod1="true" xlink:href="slot:26550"/>
- <accel:item accel:code="KEY_SPACE" accel:mod1="true" xlink:href="slot:26547"/>
- <accel:item accel:code="KEY_PAGEDOWN" accel:mod1="true" xlink:href="slot:26543"/>
- <accel:item accel:code="KEY_PAGEUP" accel:mod1="true" xlink:href="slot:26544"/>
- <accel:item accel:code="KEY_END" accel:mod1="true" xlink:href="slot:5741"/>
- <accel:item accel:code="KEY_HOME" accel:mod1="true" xlink:href="slot:5742"/>
- <accel:item accel:code="KEY_RIGHT" accel:mod1="true" xlink:href="slot:26538"/>
- <accel:item accel:code="KEY_LEFT" accel:mod1="true" xlink:href="slot:26537"/>
- <accel:item accel:code="KEY_UP" accel:mod1="true" xlink:href="slot:26535"/>
- <accel:item accel:code="KEY_DOWN" accel:mod1="true" xlink:href="slot:26536"/>
- <accel:item accel:code="KEY_F12" accel:mod1="true" xlink:href="slot:26332"/>
- <accel:item accel:code="KEY_F11" accel:mod1="true" xlink:href="slot:5573"/>
- <accel:item accel:code="KEY_F8" accel:mod1="true" xlink:href="slot:26245"/>
- <accel:item accel:code="KEY_F7" accel:mod1="true" xlink:href="slot:10245"/>
- <accel:item accel:code="KEY_F3" accel:mod1="true" xlink:href="slot:26271"/>
- <accel:item accel:code="KEY_F2" accel:mod1="true" xlink:href="slot:26152"/>
- <accel:item accel:code="KEY_Z" accel:mod1="true" xlink:href="slot:5701"/>
- <accel:item accel:code="KEY_Y" accel:mod1="true" xlink:href="slot:5700"/>
- <accel:item accel:code="KEY_U" accel:mod1="true" xlink:href="slot:10014"/>
- <accel:item accel:code="KEY_R" accel:mod1="true" xlink:href="slot:26372"/>
- <accel:item accel:code="KEY_L" accel:mod1="true" xlink:href="slot:26371"/>
- <accel:item accel:code="KEY_J" accel:mod1="true" xlink:href="slot:26374"/>
- <accel:item accel:code="KEY_I" accel:mod1="true" xlink:href="slot:10008"/>
- <accel:item accel:code="KEY_E" accel:mod1="true" xlink:href="slot:26373"/>
- <accel:item accel:code="KEY_D" accel:mod1="true" xlink:href="slot:26610"/>
- <accel:item accel:code="KEY_B" accel:mod1="true" xlink:href="slot:10009"/>
- <accel:item accel:code="KEY_5" accel:mod1="true" xlink:href="slot:10035"/>
- <accel:item accel:code="KEY_2" accel:mod1="true" xlink:href="slot:10036"/>
- <accel:item accel:code="KEY_1" accel:mod1="true" xlink:href="slot:10034"/>
- <accel:item accel:code="KEY_BACKSPACE" accel:shift="true" xlink:href="slot:26549"/>
- <accel:item accel:code="KEY_SPACE" accel:shift="true" xlink:href="slot:26548"/>
- <accel:item accel:code="KEY_PAGEDOWN" accel:shift="true" xlink:href="slot:26525"/>
- <accel:item accel:code="KEY_PAGEUP" accel:shift="true" xlink:href="slot:26526"/>
- <accel:item accel:code="KEY_END" accel:shift="true" xlink:href="slot:26534"/>
- <accel:item accel:code="KEY_HOME" accel:shift="true" xlink:href="slot:26533"/>
- <accel:item accel:code="KEY_RIGHT" accel:shift="true" xlink:href="slot:26524"/>
- <accel:item accel:code="KEY_LEFT" accel:shift="true" xlink:href="slot:26523"/>
- <accel:item accel:code="KEY_UP" accel:shift="true" xlink:href="slot:26522"/>
- <accel:item accel:code="KEY_DOWN" accel:shift="true" xlink:href="slot:26521"/>
- <accel:item accel:code="KEY_F11" accel:shift="true" xlink:href="slot:5538"/>
- <accel:item accel:code="KEY_F8" accel:shift="true" xlink:href="slot:26122"/>
- <accel:item accel:code="KEY_F7" accel:shift="true" xlink:href="slot:26456"/>
- <accel:item accel:code="KEY_F5" accel:shift="true" xlink:href="slot:26458"/>
- <accel:item accel:code="KEY_F4" accel:shift="true" xlink:href="slot:26609"/>
- <accel:item accel:code="KEY_REPEAT" xlink:href="slot:5702"/>
- <accel:item accel:code="KEY_UNDO" xlink:href="slot:5701"/>
- <accel:item accel:code="KEY_INSERT" xlink:href="slot:26265"/>
- <accel:item accel:code="KEY_BACKSPACE" xlink:href="slot:26553"/>
- <accel:item accel:code="KEY_ESCAPE" xlink:href="slot:26557"/>
- <accel:item accel:code="KEY_PAGEDOWN" xlink:href="slot:5735"/>
- <accel:item accel:code="KEY_PAGEUP" xlink:href="slot:5736"/>
- <accel:item accel:code="KEY_END" xlink:href="slot:5746"/>
- <accel:item accel:code="KEY_HOME" xlink:href="slot:5745"/>
- <accel:item accel:code="KEY_RIGHT" xlink:href="slot:5734"/>
- <accel:item accel:code="KEY_LEFT" xlink:href="slot:5733"/>
- <accel:item accel:code="KEY_UP" xlink:href="slot:5732"/>
- <accel:item accel:code="KEY_DOWN" xlink:href="slot:5731"/>
- <accel:item accel:code="KEY_F12" xlink:href="slot:26331"/>
- <accel:item accel:code="KEY_F11" xlink:href="slot:5539"/>
- <accel:item accel:code="KEY_F9" xlink:href="slot:26304"/>
- <accel:item accel:code="KEY_F8" xlink:href="slot:26123"/>
- <accel:item accel:code="KEY_F7" xlink:href="slot:10243"/>
- <accel:item accel:code="KEY_F5" xlink:href="slot:10366"/>
- <accel:item accel:code="KEY_F4" xlink:href="slot:6660"/>
- <accel:item accel:code="KEY_F2" xlink:href="slot:26552"/>
- <accel:item accel:code="KEY_BACKSPACE" accel:mod2="true" xlink:href="slot:5701"/>
- <accel:item accel:code="KEY_TAB" xlink:href="slot:26545"/>
- <accel:item accel:code="KEY_TAB" accel:shift="true" xlink:href="slot:26546"/>
-</accel:acceleratorlist> \ No newline at end of file
diff --git a/scripting/workben/bindings/calcmenubar.xml b/scripting/workben/bindings/calcmenubar.xml
deleted file mode 100644
index e305e5300545..000000000000
--- a/scripting/workben/bindings/calcmenubar.xml
+++ /dev/null
@@ -1,334 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE menu:menubar PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "menubar.dtd">
-<!--
- * 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 .
- -->
-<menu:menubar xmlns:menu="http://openoffice.org/2001/menu" menu:id="menubar">
- <menu:menu menu:id="slot:5510" menu:label="~File">
- <menu:menupopup>
- <menu:menuitem menu:id="slot:5537" menu:helpid="5537" menu:label="~New"/>
- <menu:menuitem menu:id="slot:5501" menu:helpid="5501" menu:label="~Open..."/>
- <menu:menuitem menu:id="slot:6381" menu:helpid="6381" menu:label="A~utoPilot"/>
- <menu:menuseparator/>
- <menu:menuitem menu:id="slot:5503" menu:helpid="5503" menu:label="~Close"/>
- <menu:menuitem menu:id="slot:5505" menu:helpid="5505" menu:label="~Save"/>
- <menu:menuitem menu:id="slot:5502" menu:helpid="5502" menu:label="Save ~As..."/>
- <menu:menuitem menu:id="slot:5309" menu:helpid="5309" menu:label="Sa~ve All"/>
- <menu:menuitem menu:id="slot:5508" menu:helpid="5508" menu:label="Reload"/>
- <menu:menuitem menu:id="slot:6583" menu:helpid="6583" menu:label="Versions..."/>
- <menu:menuseparator/>
- <menu:menuitem menu:id="slot:5829" menu:helpid="5829" menu:label="Expor~t..."/>
- <menu:menuitem menu:id="slot:6673" menu:helpid="6673" menu:label="Expor~t as PDF..."/>
- <menu:menu menu:id="slot:36" menu:label="Sen~d">
- <menu:menupopup>
- <menu:menuitem menu:id="slot:5331" menu:helpid="5331" menu:label="Document as ~E-mail..."/>
- <menu:menuitem menu:id="slot:6672" menu:helpid="6672" menu:label="Document as P~DF Attachment..."/>
- </menu:menupopup>
- </menu:menu>
- <menu:menuseparator/>
- <menu:menuitem menu:id="slot:5535" menu:helpid="5535" menu:label="Propert~ies..."/>
- <menu:menu menu:id="slot:39" menu:label="~Templates">
- <menu:menupopup>
- <menu:menuitem menu:id="slot:5540" menu:helpid="5540" menu:label="~Organize..."/>
- <menu:menuitem menu:id="slot:6655" menu:helpid="6655" menu:label="~Address Book Source..."/>
- <menu:menuitem menu:id="slot:5538" menu:helpid="5538" menu:label="~Save..."/>
- <menu:menuitem menu:id="slot:5594" menu:helpid="5594" menu:label="~Edit..."/>
- </menu:menupopup>
- </menu:menu>
- <menu:menuseparator/>
- <menu:menuitem menu:id="slot:5325" menu:helpid="5325" menu:label="Pa~ge Preview"/>
- <menu:menuitem menu:id="slot:5504" menu:helpid="5504" menu:label="~Print..."/>
- <menu:menuitem menu:id="slot:5302" menu:helpid="5302" menu:label="P~rinter Settings..."/>
- <menu:menuseparator/>
- <menu:menuitem menu:id="slot:5300" menu:helpid="5300" menu:label="E~xit"/>
- </menu:menupopup>
- </menu:menu>
- <menu:menu menu:id="slot:2" menu:label="~Edit">
- <menu:menupopup>
- <menu:menuitem menu:id="slot:5701" menu:helpid="5701" menu:label="Can&apos;t Undo"/>
- <menu:menuitem menu:id="slot:5700" menu:helpid="5700" menu:label="Can&apos;t Restore"/>
- <menu:menuitem menu:id="slot:5702" menu:helpid="5702" menu:label="~Repeat"/>
- <menu:menuseparator/>
- <menu:menuitem menu:id="slot:5710" menu:helpid="5710" menu:label="Cu~t"/>
- <menu:menuitem menu:id="slot:5711" menu:helpid="5711" menu:label="~Copy"/>
- <menu:menuitem menu:id="slot:5712" menu:helpid="5712" menu:label="~Paste"/>
- <menu:menuitem menu:id="slot:26220" menu:helpid="26220" menu:label="Paste ~Special..."/>
- <menu:menuitem menu:id="slot:5723" menu:helpid="5723" menu:label="Select ~All"/>
- <menu:menuseparator/>
- <menu:menu menu:id="slot:37" menu:label="Chan~ges">
- <menu:menupopup>
- <menu:menuitem menu:id="slot:26238" menu:helpid="26238" menu:label="~Record"/>
- <menu:menuitem menu:id="slot:26084" menu:helpid="26084" menu:label="~Protect Records..."/>
- <menu:menuitem menu:id="slot:26239" menu:helpid="26239" menu:label="Sho~w..."/>
- <menu:menuseparator/>
- <menu:menuitem menu:id="slot:26258" menu:helpid="26258" menu:label="~Accept or Reject..."/>
- <menu:menuitem menu:id="slot:26259" menu:helpid="26259" menu:label="~Comments..."/>
- <menu:menuseparator/>
- <menu:menuitem menu:id="slot:6587" menu:helpid="6587" menu:label="~Merge Document..."/>
- </menu:menupopup>
- </menu:menu>
- <menu:menuitem menu:id="slot:6586" menu:helpid="6586" menu:label="Co~mpare Document..."/>
- <menu:menuitem menu:id="slot:5961" menu:helpid="5961" menu:label="~Find &amp; Replace..."/>
- <menu:menuitem menu:id="slot:10366" menu:helpid="10366" menu:label="~Navigator"/>
- <menu:menuitem menu:id="slot:26235" menu:helpid="26235" menu:label="~Headers &amp; Footers..."/>
- <menu:menuseparator/>
- <menu:menu menu:id="slot:3" menu:label="Fill">
- <menu:menupopup>
- <menu:menuitem menu:id="slot:26224" menu:helpid="26224" menu:label="~Down"/>
- <menu:menuitem menu:id="slot:26225" menu:helpid="26225" menu:label="~Right"/>
- <menu:menuitem menu:id="slot:26226" menu:helpid="26226" menu:label="~Up"/>
- <menu:menuitem menu:id="slot:26227" menu:helpid="26227" menu:label="~Left"/>
- <menu:menuitem menu:id="slot:26228" menu:helpid="26228" menu:label="~Sheet..."/>
- <menu:menuitem menu:id="slot:26229" menu:helpid="26229" menu:label="S~eries..."/>
- </menu:menupopup>
- </menu:menu>
- <menu:menuitem menu:id="slot:5713" menu:helpid="5713" menu:label="Delete C~ontents..."/>
- <menu:menuitem menu:id="slot:26222" menu:helpid="26222" menu:label="Delete C~ells..."/>
- <menu:menu menu:id="slot:38" menu:label="Shee~t">
- <menu:menupopup>
- <menu:menuitem menu:id="slot:26348" menu:helpid="26348" menu:label="~Move/Copy..."/>
- <menu:menuitem menu:id="slot:26090" menu:helpid="26090" menu:label="~Select..."/>
- <menu:menuitem menu:id="slot:26223" menu:helpid="26223" menu:label="~Delete..."/>
- </menu:menupopup>
- </menu:menu>
- <menu:menu menu:id="slot:4" menu:label="Delete Manual Break">
- <menu:menupopup>
- <menu:menuitem menu:id="slot:26263" menu:helpid="26263" menu:label="~Row Break"/>
- <menu:menuitem menu:id="slot:26264" menu:helpid="26264" menu:label="~Column Break"/>
- </menu:menupopup>
- </menu:menu>
- <menu:menuseparator/>
- <menu:menuitem menu:id="slot:26060" menu:helpid="26060" menu:label="Lin~ks..."/>
- <menu:menuitem menu:id="slot:6314" menu:helpid="6314" menu:label="P~lug-in"/>
- <menu:menuitem menu:id="slot:10371" menu:helpid="10371" menu:label="ImageMap"/>
- <menu:menuitem menu:id="slot:5575" menu:helpid="5575" menu:label="~Object"/>
- </menu:menupopup>
- </menu:menu>
- <menu:menu menu:id="slot:5" menu:label="~View">
- <menu:menupopup>
- <menu:menuitem menu:id="slot:10000" menu:helpid="10000" menu:label="~Zoom..."/>
- <menu:menuseparator/>
- <menu:menuitem menu:id="slot:6660" menu:helpid="6660" menu:label="~Data Sources"/>
- <menu:menuseparator/>
- <menu:menu menu:id="slot:29" menu:label="~Toolbars">
- <menu:menupopup>
- <menu:menuitem menu:id="slot:5910" menu:helpid="5910" menu:label="~Function Bar"/>
- <menu:menuitem menu:id="slot:5905" menu:helpid="5905" menu:label="~Object Bar"/>
- <menu:menuitem menu:id="slot:5909" menu:helpid="5909" menu:label="Main ~Toolbar"/>
- <menu:menuitem menu:id="slot:26241" menu:helpid="26241" menu:label="For~mula Bar"/>
- <menu:menuseparator/>
- <menu:menuitem menu:id="slot:5908" menu:helpid="5908" menu:label="Customi~ze..."/>
- </menu:menupopup>
- </menu:menu>
- <menu:menuitem menu:id="slot:5920" menu:helpid="5920" menu:label="~Status Bar"/>
- <menu:menuitem menu:id="slot:6680" menu:helpid="6680" menu:label="~Input Method Status"/>
- <menu:menuseparator/>
- <menu:menuitem menu:id="slot:26242" menu:helpid="26242" menu:label="C~olumn &amp; Row Headers"/>
- <menu:menuitem menu:id="slot:26245" menu:helpid="26245" menu:label="~Value Highlighting"/>
- <menu:menuitem menu:id="slot:26247" menu:helpid="26247" menu:label="~Page Break Preview"/>
- <menu:menuseparator/>
- <menu:menuitem menu:id="slot:5627" menu:helpid="5627" menu:label="F~ull Screen"/>
- </menu:menupopup>
- </menu:menu>
- <menu:menu menu:id="slot:6" menu:label="~Insert">
- <menu:menupopup>
- <menu:menu menu:id="slot:7" menu:label="~Manual Break">
- <menu:menupopup>
- <menu:menuitem menu:id="slot:26261" menu:helpid="26261" menu:label="~Row Break"/>
- <menu:menuitem menu:id="slot:26262" menu:helpid="26262" menu:label="~Column Break"/>
- </menu:menupopup>
- </menu:menu>
- <menu:menuitem menu:id="slot:26266" menu:helpid="26266" menu:label="~Cells..."/>
- <menu:menuitem menu:id="slot:26267" menu:helpid="26267" menu:label="~Rows"/>
- <menu:menuitem menu:id="slot:26268" menu:helpid="26268" menu:label="Co~lumns"/>
- <menu:menuitem menu:id="slot:26269" menu:helpid="26269" menu:label="~Sheet..."/>
- <menu:menuitem menu:id="slot:26085" menu:helpid="26085" menu:label="E~xternal Data..."/>
- <menu:menuitem menu:id="slot:10503" menu:helpid="10503" menu:label="S~pecial Character..."/>
- <menu:menuitem menu:id="slot:5678" menu:helpid="5678" menu:label="~Hyperlink"/>
- <menu:menuseparator/>
- <menu:menuitem menu:id="slot:26152" menu:helpid="26152" menu:label="~Function..."/>
- <menu:menuitem menu:id="slot:26248" menu:helpid="26248" menu:label="F~unction List"/>
- <menu:menuseparator/>
- <menu:menu menu:id="slot:8" menu:label="~Names">
- <menu:menupopup>
- <menu:menuitem menu:id="slot:26271" menu:helpid="26271" menu:label="~Define..."/>
- <menu:menuitem menu:id="slot:26272" menu:helpid="26272" menu:label="~Insert..."/>
- <menu:menuitem menu:id="slot:26273" menu:helpid="26273" menu:label="~Create..."/>
- <menu:menuitem menu:id="slot:26629" menu:helpid="26629" menu:label="~Labels..."/>
- </menu:menupopup>
- </menu:menu>
- <menu:menuitem menu:id="slot:26276" menu:helpid="26276" menu:label="Not~e"/>
- <menu:menuseparator/>
- <menu:menu menu:id="slot:30" menu:label="~Graphics">
- <menu:menupopup>
- <menu:menuitem menu:id="slot:10241" menu:helpid="10241" menu:label="From ~File..."/>
- </menu:menupopup>
- </menu:menu>
- <menu:menu menu:id="slot:1" menu:label="~Object">
- <menu:menupopup>
- <menu:menuitem menu:id="slot:5561" menu:helpid="5561" menu:label="~OLE Object..."/>
- <menu:menuitem menu:id="slot:5672" menu:helpid="5672" menu:label="~Plug-in..."/>
- <menu:menuitem menu:id="slot:5676" menu:helpid="5676" menu:label="~Sound..."/>
- <menu:menuitem menu:id="slot:5677" menu:helpid="5677" menu:label="~Video..."/>
- <menu:menuitem menu:id="slot:5673" menu:helpid="5673" menu:label="~Applet..."/>
- <menu:menuitem menu:id="slot:26063" menu:helpid="26063" menu:label="~Formula..."/>
- </menu:menupopup>
- </menu:menu>
- <menu:menuitem menu:id="slot:26155" menu:helpid="26155" menu:label="Ch~art..."/>
- <menu:menuitem menu:id="slot:5563" menu:helpid="5563" menu:label="Float~ing Frame"/>
- </menu:menupopup>
- </menu:menu>
- <menu:menu menu:id="slot:5780" menu:label="F~ormat">
- <menu:menupopup/>
- </menu:menu>
- <menu:menu menu:id="slot:6677" menu:label="~Tools">
- <menu:menupopup>
- <menu:menu menu:id="slot:31" menu:label="~Spellcheck">
- <menu:menupopup>
- <menu:menuitem menu:id="slot:10243" menu:helpid="10243" menu:label="~Check..."/>
- <menu:menuitem menu:id="slot:12021" menu:helpid="12021" menu:label="~AutoSpellcheck"/>
- </menu:menupopup>
- </menu:menu>
- <menu:menuitem menu:id="slot:10245" menu:helpid="10245" menu:label="~Thesaurus..."/>
- <menu:menuitem menu:id="slot:26087" menu:helpid="26087" menu:label="~Hyphenation..."/>
- <menu:menu menu:id="slot:15" menu:label="~Detective">
- <menu:menupopup>
- <menu:menuitem menu:id="slot:26456" menu:helpid="26456" menu:label="Trace ~Precedents"/>
- <menu:menuitem menu:id="slot:26457" menu:helpid="26457" menu:label="~Remove Precedents"/>
- <menu:menuitem menu:id="slot:26458" menu:helpid="26458" menu:label="~Trace Dependents"/>
- <menu:menuitem menu:id="slot:26459" menu:helpid="26459" menu:label="Remove ~Dependents"/>
- <menu:menuitem menu:id="slot:26461" menu:helpid="26461" menu:label="Remove ~All Traces"/>
- <menu:menuseparator/>
- <menu:menuitem menu:id="slot:26460" menu:helpid="26460" menu:label="Trace ~Error"/>
- <menu:menuitem menu:id="slot:26469" menu:helpid="26469" menu:label="~Mark Invalid Data"/>
- <menu:menuitem menu:id="slot:26470" menu:helpid="26470" menu:label="Refresh Tra~ces"/>
- <menu:menuitem menu:id="slot:26471" menu:helpid="26471" menu:label="A~utoRefresh"/>
- <menu:menuitem menu:id="slot:26462" menu:helpid="26462" menu:label="~Fill Mode"/>
- </menu:menupopup>
- </menu:menu>
- <menu:menuseparator/>
- <menu:menuitem menu:id="slot:10424" menu:helpid="10424" menu:label="~AutoCorrect..."/>
- <menu:menuseparator/>
- <menu:menuitem menu:id="slot:26153" menu:helpid="26153" menu:label="~Goal Seek..."/>
- <menu:menuitem menu:id="slot:26312" menu:helpid="26312" menu:label="Sc~enarios..."/>
- <menu:menuseparator/>
- <menu:menu menu:id="slot:16" menu:label="~Protect Document">
- <menu:menupopup>
- <menu:menuitem menu:id="slot:26306" menu:helpid="26306" menu:label="~Sheet..."/>
- <menu:menuitem menu:id="slot:26307" menu:helpid="26307" menu:label="~Document..."/>
- </menu:menupopup>
- </menu:menu>
- <menu:menuseparator/>
- <menu:menu menu:id="slot:32" menu:label="Cell Co~ntents">
- <menu:menupopup>
- <menu:menuitem menu:id="slot:26304" menu:helpid="26304" menu:label="~Recalculate"/>
- <menu:menuitem menu:id="slot:26303" menu:helpid="26303" menu:label="Auto~Calculate"/>
- <menu:menuseparator/>
- <menu:menuitem menu:id="slot:26319" menu:helpid="26319" menu:label="~AutoInput"/>
- </menu:menupopup>
- </menu:menu>
- <menu:menuseparator/>
- <menu:menuitem menu:id="slot:5960" menu:helpid="5960" menu:label="~Gallery"/>
- <menu:menuseparator/>
- <menu:menuitem menu:id="slot:10882" menu:helpid="10882" menu:label="~Data Sources..."/>
- <menu:menuseparator/>
- <menu:menu menu:id="slot:1" menu:label="~Macros">
- <menu:menupopup>
- <menu:menuitem menu:id="slot:6669" menu:helpid="6669" menu:label="Record Macro"/>
- <menu:menuitem menu:id="slot:5959" menu:helpid="5959" menu:label="~Macro..."/>
- </menu:menupopup>
- </menu:menu>
- <menu:menuitem menu:id="slot:10958" menu:helpid="10958" menu:label="~XML Filter Settings..."/>
- <menu:menuitem menu:id="slot:5904" menu:helpid="5904" menu:label="~Configure..."/>
- <menu:menu menu:id="slot:4" menu:label="Scripting Add-ons">
- <menu:menupopup>
- <menu:menuitem menu:id="macro:///ScriptBindingLibrary.ScriptBinding.ExecuteMenuBinding()" menu:label="Assign Script to ~Menu..."/>
- <menu:menuitem menu:id="macro:///ScriptBindingLibrary.ScriptBinding.ExecuteKeyBinding" menu:label="Assign Script to ~Key..."/>
- <menu:menuitem menu:id="macro:///ScriptBindingLibrary.ScriptBinding.ExecuteEventBinding()" menu:label="Assign Script to ~Event..."/>
- <menu:menuitem menu:id="macro:///ScriptBindingLibrary.ScriptBinding.ExecuteEditDebug" menu:label="Edit/De~bug Scripts..."/>
- <menu:menuitem menu:id="macro:///ScriptBindingLibrary.ScriptBinding.RefreshAllScripts()" menu:label="~Refresh All Scripts"/>
- </menu:menupopup>
- </menu:menu>
- <menu:menuitem menu:id="slot:31630" menu:helpid="31630" menu:label="~Options..."/>
- </menu:menupopup>
- </menu:menu>
- <menu:menu menu:id="slot:10" menu:label="~Data">
- <menu:menupopup>
- <menu:menuitem menu:id="slot:26320" menu:helpid="26320" menu:label="~Define Range..."/>
- <menu:menuitem menu:id="slot:26321" menu:helpid="26321" menu:label="Select ~Range..."/>
- <menu:menuseparator/>
- <menu:menuitem menu:id="slot:26322" menu:helpid="26322" menu:label="~Sort..."/>
- <menu:menu menu:id="slot:11" menu:label="~Filter">
- <menu:menupopup>
- <menu:menuitem menu:id="slot:26325" menu:helpid="26325" menu:label="Auto~Filter"/>
- <menu:menuitem menu:id="slot:26323" menu:helpid="26323" menu:label="~Standard Filter..."/>
- <menu:menuitem menu:id="slot:26324" menu:helpid="26324" menu:label="~Advanced Filter..."/>
- <menu:menuseparator/>
- <menu:menuitem menu:id="slot:26326" menu:helpid="26326" menu:label="~Reset Filter"/>
- <menu:menuitem menu:id="slot:26341" menu:helpid="26341" menu:label="~Hide AutoFilter"/>
- </menu:menupopup>
- </menu:menu>
- <menu:menuitem menu:id="slot:26328" menu:helpid="26328" menu:label="Sub~totals..."/>
- <menu:menuitem menu:id="slot:26625" menu:helpid="26625" menu:label="~Validity..."/>
- <menu:menuseparator/>
- <menu:menuitem menu:id="slot:26154" menu:helpid="26154" menu:label="~Multiple Operations..."/>
- <menu:menuitem menu:id="slot:26150" menu:helpid="26150" menu:label="~Consolidate..."/>
- <menu:menu menu:id="slot:12" menu:label="~Outline">
- <menu:menupopup>
- <menu:menuitem menu:id="slot:26329" menu:helpid="26329" menu:label="~Hide Details"/>
- <menu:menuitem menu:id="slot:26330" menu:helpid="26330" menu:label="~Show Details"/>
- <menu:menuitem menu:id="slot:26331" menu:helpid="26331" menu:label="~Group..."/>
- <menu:menuitem menu:id="slot:26332" menu:helpid="26332" menu:label="~Ungroup..."/>
- <menu:menuseparator/>
- <menu:menuitem menu:id="slot:26333" menu:helpid="26333" menu:label="~AutoOutline"/>
- <menu:menuitem menu:id="slot:10234" menu:helpid="10234" menu:label="~Remove"/>
- </menu:menupopup>
- </menu:menu>
- <menu:menu menu:id="slot:13" menu:label="Data~Pilot">
- <menu:menupopup>
- <menu:menuitem menu:id="slot:26151" menu:helpid="26151" menu:label="~Start..."/>
- <menu:menuitem menu:id="slot:26314" menu:helpid="26314" menu:label="~Refresh"/>
- <menu:menuitem menu:id="slot:26315" menu:helpid="26315" menu:label="~Delete"/>
- </menu:menupopup>
- </menu:menu>
- <menu:menuseparator/>
- <menu:menuitem menu:id="slot:26643" menu:helpid="26643" menu:label="R~efresh Range"/>
- </menu:menupopup>
- </menu:menu>
- <menu:menu menu:id="slot:5610" menu:label="~Window">
- <menu:menupopup>
- <menu:menuitem menu:id="slot:5620" menu:helpid="5620" menu:label="~New Window"/>
- <menu:menuitem menu:id="slot:5621" menu:helpid="5621" menu:label="Close Window"/>
- <menu:menuseparator/>
- <menu:menuitem menu:id="slot:26069" menu:helpid="26069" menu:label="~Split"/>
- <menu:menuitem menu:id="slot:26070" menu:helpid="26070" menu:label="~Freeze"/>
- </menu:menupopup>
- </menu:menu>
- <menu:menu menu:id="slot:5410" menu:label="~Help">
- <menu:menupopup>
- <menu:menuitem menu:id="slot:5401" menu:helpid="5401" menu:label="~Contents"/>
- <menu:menuseparator/>
- <menu:menuitem menu:id="slot:5962" menu:helpid="5962" menu:label="Help ~Agent"/>
- <menu:menuitem menu:id="slot:5404" menu:helpid="5404" menu:label="~Tips"/>
- <menu:menuitem menu:id="slot:5403" menu:helpid="5403" menu:label="~Extended Tips"/>
- <menu:menuseparator/>
- <menu:menuitem menu:id="slot:6683" menu:helpid="6683" menu:label="~Support"/>
- <menu:menuseparator/>
- <menu:menuitem menu:id="slot:5301" menu:helpid="5301" menu:label="A~bout OpenOffice.org..."/>
- </menu:menupopup>
- </menu:menu>
-</menu:menubar>
diff --git a/scripting/workben/bindings/drawkeybinding.xml b/scripting/workben/bindings/drawkeybinding.xml
deleted file mode 100644
index 034110583e25..000000000000
--- a/scripting/workben/bindings/drawkeybinding.xml
+++ /dev/null
@@ -1,75 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE accel:acceleratorlist PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "accelerator.dtd">
-<!--
- * 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 .
--->
-<accel:acceleratorlist xmlns:accel="http://openoffice.org/2001/accel" xmlns:xlink="http://www.w3.org/1999/xlink">
- <accel:item accel:code="KEY_F8" accel:shift="true" accel:mod1="true" xlink:href="slot:10367"/>
- <accel:item accel:code="KEY_P" accel:shift="true" accel:mod1="true" xlink:href="slot:10294"/>
- <accel:item accel:code="KEY_N" accel:shift="true" accel:mod1="true" xlink:href="slot:5500"/>
- <accel:item accel:code="KEY_K" accel:shift="true" accel:mod1="true" xlink:href="slot:27026"/>
- <accel:item accel:code="KEY_G" accel:shift="true" accel:mod1="true" xlink:href="slot:10454"/>
- <accel:item accel:code="KEY_B" accel:shift="true" accel:mod1="true" xlink:href="slot:10295"/>
- <accel:item accel:code="KEY_SUBTRACT" accel:mod1="true" xlink:href="slot:27032"/>
- <accel:item accel:code="KEY_ADD" accel:mod1="true" xlink:href="slot:27031"/>
- <accel:item accel:code="KEY_INSERT" accel:mod1="true" xlink:href="slot:5711"/>
- <accel:item accel:code="KEY_F11" accel:mod1="true" xlink:href="slot:5573"/>
- <accel:item accel:code="KEY_F7" accel:mod1="true" xlink:href="slot:10245"/>
- <accel:item accel:code="KEY_F3" accel:mod1="true" xlink:href="slot:27097"/>
- <accel:item accel:code="KEY_Z" accel:mod1="true" xlink:href="slot:5701"/>
- <accel:item accel:code="KEY_Y" accel:mod1="true" xlink:href="slot:5700"/>
- <accel:item accel:code="KEY_X" accel:mod1="true" xlink:href="slot:5710"/>
- <accel:item accel:code="KEY_V" accel:mod1="true" xlink:href="slot:5712"/>
- <accel:item accel:code="KEY_U" accel:mod1="true" xlink:href="slot:10014"/>
- <accel:item accel:code="KEY_S" accel:mod1="true" xlink:href="slot:5505"/>
- <accel:item accel:code="KEY_R" accel:mod1="true" xlink:href="slot:10029"/>
- <accel:item accel:code="KEY_Q" accel:mod1="true" xlink:href="slot:5300"/>
- <accel:item accel:code="KEY_P" accel:mod1="true" xlink:href="slot:5504"/>
- <accel:item accel:code="KEY_O" accel:mod1="true" xlink:href="slot:5501"/>
- <accel:item accel:code="KEY_L" accel:mod1="true" xlink:href="slot:10028"/>
- <accel:item accel:code="KEY_J" accel:mod1="true" xlink:href="slot:10031"/>
- <accel:item accel:code="KEY_I" accel:mod1="true" xlink:href="slot:10008"/>
- <accel:item accel:code="KEY_E" accel:mod1="true" xlink:href="slot:10030"/>
- <accel:item accel:code="KEY_C" accel:mod1="true" xlink:href="slot:5711"/>
- <accel:item accel:code="KEY_B" accel:mod1="true" xlink:href="slot:10009"/>
- <accel:item accel:code="KEY_5" accel:mod1="true" xlink:href="slot:10035"/>
- <accel:item accel:code="KEY_2" accel:mod1="true" xlink:href="slot:10036"/>
- <accel:item accel:code="KEY_1" accel:mod1="true" xlink:href="slot:10034"/>
- <accel:item accel:code="KEY_DELETE" accel:shift="true" xlink:href="slot:5710"/>
- <accel:item accel:code="KEY_INSERT" accel:shift="true" xlink:href="slot:5712"/>
- <accel:item accel:code="KEY_F3" accel:shift="true" xlink:href="slot:27004"/>
- <accel:item accel:code="KEY_REPEAT" xlink:href="slot:5702"/>
- <accel:item accel:code="KEY_UNDO" xlink:href="slot:5701"/>
- <accel:item accel:code="KEY_PASTE" xlink:href="slot:5712"/>
- <accel:item accel:code="KEY_COPY" xlink:href="slot:5711"/>
- <accel:item accel:code="KEY_CUT" xlink:href="slot:5710"/>
- <accel:item accel:code="KEY_OPEN" xlink:href="slot:5501"/>
- <accel:item accel:code="KEY_DELETE" xlink:href="slot:5713"/>
- <accel:item accel:code="KEY_F11" xlink:href="slot:5539"/>
- <accel:item accel:code="KEY_F8" xlink:href="slot:10126"/>
- <accel:item accel:code="KEY_F7" xlink:href="slot:10243"/>
- <accel:item accel:code="KEY_F5" xlink:href="slot:10366"/>
- <accel:item accel:code="KEY_F4" xlink:href="slot:10087"/>
- <accel:item accel:code="KEY_F3" xlink:href="slot:27096"/>
- <accel:item accel:code="KEY_F2" xlink:href="slot:10006"/>
- <accel:item accel:code="KEY_BACKSPACE" accel:mod2="true" xlink:href="slot:5701"/>
- <accel:item accel:code="KEY_ADD" accel:shift="true" accel:mod1="true" xlink:href="slot:10286"/>
- <accel:item accel:code="KEY_SUBTRACT" accel:shift="true" accel:mod1="true" xlink:href="slot:10287"/>
- <accel:item accel:code="KEY_G" accel:shift="true" accel:mod1="true" accel:mod2="true" xlink:href="slot:10455"/>
- <accel:item accel:code="KEY_9" accel:shift="true" accel:mod1="true" accel:mod2="true" xlink:href="slot:10703"/>
- <accel:item accel:code="KEY_K" accel:shift="true" accel:mod1="true" accel:mod2="true" xlink:href="slot:27082"/>
-</accel:acceleratorlist> \ No newline at end of file
diff --git a/scripting/workben/bindings/drawmenubar.xml b/scripting/workben/bindings/drawmenubar.xml
deleted file mode 100644
index 4f0d1e9d0d93..000000000000
--- a/scripting/workben/bindings/drawmenubar.xml
+++ /dev/null
@@ -1,369 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE menu:menubar PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "menubar.dtd">
-<!--
- * 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 .
- -->
-<menu:menubar xmlns:menu="http://openoffice.org/2001/menu" menu:id="menubar">
- <menu:menu menu:id="slot:5510" menu:label="~File">
- <menu:menupopup>
- <menu:menuitem menu:id="slot:5537" menu:helpid="5537" menu:label="~New"/>
- <menu:menuitem menu:id="slot:5501" menu:helpid="5501" menu:label="~Open..."/>
- <menu:menuitem menu:id="slot:6381" menu:helpid="6381" menu:label="A~utoPilot"/>
- <menu:menuseparator/>
- <menu:menuitem menu:id="slot:5503" menu:helpid="5503" menu:label="~Close"/>
- <menu:menuitem menu:id="slot:5505" menu:helpid="5505" menu:label="~Save"/>
- <menu:menuitem menu:id="slot:5502" menu:helpid="5502" menu:label="Save ~As..."/>
- <menu:menuitem menu:id="slot:5309" menu:helpid="5309" menu:label="Sa~ve All"/>
- <menu:menuitem menu:id="slot:5508" menu:helpid="5508" menu:label="Reload"/>
- <menu:menuitem menu:id="slot:6583" menu:helpid="6583" menu:label="Versions..."/>
- <menu:menuseparator/>
- <menu:menuitem menu:id="slot:5829" menu:helpid="5829" menu:label="~Export..."/>
- <menu:menuitem menu:id="slot:6673" menu:helpid="6673" menu:label="Export as PDF..."/>
- <menu:menu menu:id="slot:98" menu:label="Sen~d">
- <menu:menupopup>
- <menu:menuitem menu:id="slot:5331" menu:helpid="5331" menu:label="Document as ~E-mail..."/>
- <menu:menuitem menu:id="slot:6672" menu:helpid="6672" menu:label="Document as P~DF Attachment..."/>
- </menu:menupopup>
- </menu:menu>
- <menu:menuseparator/>
- <menu:menuitem menu:id="slot:5535" menu:helpid="5535" menu:label="Propert~ies..."/>
- <menu:menu menu:id="slot:103" menu:label="~Templates">
- <menu:menupopup>
- <menu:menuitem menu:id="slot:5540" menu:helpid="5540" menu:label="~Organize..."/>
- <menu:menuitem menu:id="slot:6655" menu:helpid="6655" menu:label="~Address Book Source..."/>
- <menu:menuitem menu:id="slot:5538" menu:helpid="5538" menu:label="~Save..."/>
- <menu:menuitem menu:id="slot:5594" menu:helpid="5594" menu:label="~Edit..."/>
- </menu:menupopup>
- </menu:menu>
- <menu:menuseparator/>
- <menu:menuitem menu:id="slot:5504" menu:helpid="5504" menu:label="~Print..."/>
- <menu:menuitem menu:id="slot:5302" menu:helpid="5302" menu:label="P~rinter Settings..."/>
- <menu:menuseparator/>
- <menu:menuitem menu:id="slot:5300" menu:helpid="5300" menu:label="E~xit"/>
- </menu:menupopup>
- </menu:menu>
- <menu:menu menu:id="slot:20" menu:label="~Edit">
- <menu:menupopup>
- <menu:menuitem menu:id="slot:5701" menu:helpid="5701" menu:label="Can&apos;t Undo"/>
- <menu:menuitem menu:id="slot:5700" menu:helpid="5700" menu:label="Can&apos;t Restore"/>
- <menu:menuseparator/>
- <menu:menuitem menu:id="slot:5710" menu:helpid="5710" menu:label="Cu~t"/>
- <menu:menuitem menu:id="slot:5711" menu:helpid="5711" menu:label="~Copy"/>
- <menu:menuitem menu:id="slot:5712" menu:helpid="5712" menu:label="~Paste"/>
- <menu:menuitem menu:id="slot:27003" menu:helpid="27003" menu:label="Paste ~Special..."/>
- <menu:menuitem menu:id="slot:5723" menu:helpid="5723" menu:label="Select ~All"/>
- <menu:menuseparator/>
- <menu:menuitem menu:id="slot:5961" menu:helpid="5961" menu:label="~Find &amp; Replace..."/>
- <menu:menuitem menu:id="slot:10366" menu:helpid="10366" menu:label="Na~vigator"/>
- <menu:menuseparator/>
- <menu:menuitem menu:id="slot:27004" menu:helpid="27004" menu:label="Duplicat~e..."/>
- <menu:menuseparator/>
- <menu:menuitem menu:id="slot:10126" menu:helpid="10126" menu:label="Poi~nts"/>
- <menu:menuitem menu:id="slot:27301" menu:helpid="27301" menu:label="~Glue Points"/>
- <menu:menuseparator/>
- <menu:menuitem menu:id="slot:27319" menu:helpid="27319" menu:label="Cross-fading..."/>
- <menu:menuitem menu:id="slot:27362" menu:helpid="27362" menu:label="F~ields..."/>
- <menu:menuitem menu:id="slot:27080" menu:helpid="27080" menu:label="D~elete Slide..."/>
- <menu:menuseparator/>
- <menu:menu menu:id="slot:340" menu:label="La~yer">
- <menu:menupopup>
- <menu:menuitem menu:id="slot:27043" menu:helpid="27043" menu:label="~Insert"/>
- <menu:menuitem menu:id="slot:27048" menu:helpid="27048" menu:label="~Modify"/>
- <menu:menuitem menu:id="slot:27081" menu:helpid="27081" menu:label="Delete"/>
- <menu:menuitem menu:id="slot:27269" menu:helpid="27269" menu:label="~Rename"/>
- </menu:menupopup>
- </menu:menu>
- <menu:menuseparator/>
- <menu:menuitem menu:id="slot:27005" menu:helpid="27005" menu:label="Lin~ks..."/>
- <menu:menuitem menu:id="slot:6314" menu:helpid="6314" menu:label="P~lug-in"/>
- <menu:menuitem menu:id="slot:10371" menu:helpid="10371" menu:label="ImageMap"/>
- <menu:menuitem menu:id="slot:5575" menu:helpid="5575" menu:label="~Object"/>
- <menu:menuitem menu:id="slot:27382" menu:helpid="27382" menu:label="H~yperlink..."/>
- </menu:menupopup>
- </menu:menu>
- <menu:menu menu:id="slot:23" menu:label="~View">
- <menu:menupopup>
- <menu:menuitem menu:id="slot:10000" menu:helpid="10000" menu:label="~Zoom..."/>
- <menu:menuseparator/>
- <menu:menu menu:id="slot:92" menu:label="~Toolbars">
- <menu:menupopup>
- <menu:menuitem menu:id="slot:5910" menu:helpid="5910" menu:label="~Function Bar"/>
- <menu:menuitem menu:id="slot:5905" menu:helpid="5905" menu:label="~Object Bar"/>
- <menu:menuitem menu:id="slot:5909" menu:helpid="5909" menu:label="Main ~Toolbar"/>
- <menu:menuitem menu:id="slot:5911" menu:helpid="5911" menu:label="Optio~n Bar"/>
- <menu:menuitem menu:id="slot:10417" menu:helpid="10417" menu:label="~Color Bar"/>
- <menu:menuseparator/>
- <menu:menuitem menu:id="slot:5908" menu:helpid="5908" menu:label="Customi~ze..."/>
- </menu:menupopup>
- </menu:menu>
- <menu:menuitem menu:id="slot:27040" menu:helpid="27040" menu:label="~Rulers"/>
- <menu:menuitem menu:id="slot:5920" menu:helpid="5920" menu:label="~Status Bar"/>
- <menu:menuitem menu:id="slot:6680" menu:helpid="6680" menu:label="~Input Method Status"/>
- <menu:menuseparator/>
- <menu:menu menu:id="slot:100" menu:label="~Display Quality">
- <menu:menupopup>
- <menu:menuitem menu:id="slot:27366" menu:helpid="27366" menu:label="~Color"/>
- <menu:menuitem menu:id="slot:27367" menu:helpid="27367" menu:label="~Grayscale"/>
- <menu:menuitem menu:id="slot:27368" menu:helpid="27368" menu:label="~Black and White"/>
- <menu:menuitem menu:id="slot:27400" menu:helpid="27400" menu:label="~High Contrast"/>
- </menu:menupopup>
- </menu:menu>
- <menu:menuitem menu:id="slot:27327" menu:helpid="27327" menu:label="~Preview"/>
- <menu:menu menu:id="slot:101" menu:label="Pre~view Mode">
- <menu:menupopup>
- <menu:menuitem menu:id="slot:27369" menu:helpid="27369" menu:label="~Color"/>
- <menu:menuitem menu:id="slot:27370" menu:helpid="27370" menu:label="~Grayscale"/>
- <menu:menuitem menu:id="slot:27371" menu:helpid="27371" menu:label="~Black and White"/>
- <menu:menuitem menu:id="slot:27401" menu:helpid="27401" menu:label="~High Contrast"/>
- </menu:menupopup>
- </menu:menu>
- <menu:menuseparator/>
- <menu:menuitem menu:id="slot:27049" menu:helpid="27049" menu:label="S~lide"/>
- <menu:menuitem menu:id="slot:27050" menu:helpid="27050" menu:label="La~yer"/>
- <menu:menuseparator/>
- <menu:menu menu:id="slot:338" menu:label="~Grid">
- <menu:menupopup>
- <menu:menuitem menu:id="slot:27322" menu:helpid="27322" menu:label="~Display Grid"/>
- <menu:menuitem menu:id="slot:27154" menu:helpid="27154" menu:label="Snap to Grid"/>
- <menu:menuitem menu:id="slot:27323" menu:helpid="27323" menu:label="Grid to ~Front"/>
- </menu:menupopup>
- </menu:menu>
- <menu:menuseparator/>
- <menu:menu menu:id="slot:339" menu:label="~Snap Lines">
- <menu:menupopup>
- <menu:menuitem menu:id="slot:27324" menu:helpid="27324" menu:label="~Display Snap Lines"/>
- <menu:menuitem menu:id="slot:27152" menu:helpid="27152" menu:label="~Snap to Snap Lines"/>
- <menu:menuitem menu:id="slot:27325" menu:helpid="27325" menu:label="Snap Lines to ~Front"/>
- </menu:menupopup>
- </menu:menu>
- <menu:menuseparator/>
- <menu:menuitem menu:id="slot:5627" menu:helpid="5627" menu:label="F~ull Screen"/>
- </menu:menupopup>
- </menu:menu>
- <menu:menu menu:id="slot:21" menu:label="~Insert">
- <menu:menupopup>
- <menu:menuitem menu:id="slot:27014" menu:helpid="27014" menu:label="Slid~e"/>
- <menu:menuitem menu:id="slot:27342" menu:helpid="27342" menu:label="D~uplicate Slide"/>
- <menu:menuitem menu:id="slot:27043" menu:helpid="27043" menu:label="~Layer..."/>
- <menu:menuitem menu:id="slot:27038" menu:helpid="27038" menu:label="~Insert Snap Point/Line..."/>
- <menu:menu menu:id="slot:99" menu:label="Fiel~ds">
- <menu:menupopup>
- <menu:menuitem menu:id="slot:27358" menu:helpid="27358" menu:label="~Date (fixed)"/>
- <menu:menuitem menu:id="slot:27357" menu:helpid="27357" menu:label="Dat~e (variable)"/>
- <menu:menuitem menu:id="slot:27360" menu:helpid="27360" menu:label="~Time (fixed)"/>
- <menu:menuitem menu:id="slot:27359" menu:helpid="27359" menu:label="T~ime (variable)"/>
- <menu:menuseparator/>
- <menu:menuitem menu:id="slot:27364" menu:helpid="27364" menu:label="~Author"/>
- <menu:menuitem menu:id="slot:27361" menu:helpid="27361" menu:label="~Page Number"/>
- <menu:menuitem menu:id="slot:27363" menu:helpid="27363" menu:label="~File Name"/>
- </menu:menupopup>
- </menu:menu>
- <menu:menuitem menu:id="slot:27019" menu:helpid="27019" menu:label="S~pecial Character..."/>
- <menu:menuitem menu:id="slot:5678" menu:helpid="5678" menu:label="~Hyperlink"/>
- <menu:menuseparator/>
- <menu:menu menu:id="slot:1" menu:label="Scan">
- <menu:menupopup>
- <menu:menuitem menu:id="slot:10331" menu:helpid="10331" menu:label="~Select Source..."/>
- <menu:menuitem menu:id="slot:10332" menu:helpid="10332" menu:label="~Request..."/>
- </menu:menupopup>
- </menu:menu>
- <menu:menuseparator/>
- <menu:menuitem menu:id="slot:10217" menu:helpid="10217" menu:label="Sp~readsheet"/>
- <menu:menuitem menu:id="slot:10241" menu:helpid="10241" menu:label="~Graphics..."/>
- <menu:menu menu:id="slot:2" menu:label="~Object">
- <menu:menupopup>
- <menu:menuitem menu:id="slot:5561" menu:helpid="5561" menu:label="~OLE Object..."/>
- <menu:menuitem menu:id="slot:5672" menu:helpid="5672" menu:label="~Plug-in..."/>
- <menu:menuitem menu:id="slot:5676" menu:helpid="5676" menu:label="~Sound..."/>
- <menu:menuitem menu:id="slot:5677" menu:helpid="5677" menu:label="~Video..."/>
- <menu:menuitem menu:id="slot:5673" menu:helpid="5673" menu:label="~Applet..."/>
- <menu:menuitem menu:id="slot:27106" menu:helpid="27106" menu:label="~Formula..."/>
- </menu:menupopup>
- </menu:menu>
- <menu:menuitem menu:id="slot:10140" menu:helpid="10140" menu:label="Chart"/>
- <menu:menuitem menu:id="slot:5563" menu:helpid="5563" menu:label="Float~ing Frame..."/>
- <menu:menuseparator/>
- <menu:menuitem menu:id="slot:27015" menu:helpid="27015" menu:label="~File..."/>
- </menu:menupopup>
- </menu:menu>
- <menu:menu menu:id="slot:22" menu:label="F~ormat">
- <menu:menupopup>
- <menu:menuitem menu:id="slot:10456" menu:helpid="10456" menu:label="~Default"/>
- <menu:menuseparator/>
- <menu:menuitem menu:id="slot:10143" menu:helpid="10143" menu:label="L~ine..."/>
- <menu:menuitem menu:id="slot:10142" menu:helpid="10142" menu:label="A~rea..."/>
- <menu:menuitem menu:id="slot:27281" menu:helpid="27281" menu:label="Te~xt..."/>
- <menu:menuitem menu:id="slot:10087" menu:helpid="10087" menu:label="Position and Si~ze..."/>
- <menu:menuitem menu:id="slot:10613" menu:helpid="10613" menu:label="Con~trol..."/>
- <menu:menuitem menu:id="slot:10614" menu:helpid="10614" menu:label="For~m..."/>
- <menu:menuitem menu:id="slot:27320" menu:helpid="27320" menu:label="Dimen~sions..."/>
- <menu:menuitem menu:id="slot:27338" menu:helpid="27338" menu:label="~Connector..."/>
- <menu:menuseparator/>
- <menu:menuitem menu:id="slot:10296" menu:helpid="10296" menu:label="C~haracter..."/>
- <menu:menuitem menu:id="slot:10156" menu:helpid="10156" menu:label="~Bullets and Numbering..."/>
- <menu:menu menu:id="slot:1" menu:label="~Change Case">
- <menu:menupopup>
- <menu:menuitem menu:id="slot:10912" menu:helpid="10912" menu:label="~Uppercase"/>
- <menu:menuitem menu:id="slot:10913" menu:helpid="10913" menu:label="~Lowercase"/>
- <menu:menuitem menu:id="slot:10914" menu:helpid="10914" menu:label="H~alf-width"/>
- <menu:menuitem menu:id="slot:10915" menu:helpid="10915" menu:label="Full-width"/>
- <menu:menuitem menu:id="slot:10916" menu:helpid="10916" menu:label="~Hiragana"/>
- <menu:menuitem menu:id="slot:10917" menu:helpid="10917" menu:label="~Katakana"/>
- </menu:menupopup>
- </menu:menu>
- <menu:menuitem menu:id="slot:10297" menu:helpid="10297" menu:label="P~aragraph..."/>
- <menu:menuitem menu:id="slot:27002" menu:helpid="27002" menu:label="~Page..."/>
- <menu:menuseparator/>
- <menu:menuitem menu:id="slot:27048" menu:helpid="27048" menu:label="~Layer..."/>
- <menu:menuseparator/>
- <menu:menu menu:id="slot:95" menu:label="Styl~es">
- <menu:menupopup>
- <menu:menuitem menu:id="slot:5573" menu:helpid="5573" menu:label="~Catalog..."/>
- <menu:menuitem menu:id="slot:27064" menu:helpid="27064" menu:label="~Slide Design..."/>
- </menu:menupopup>
- </menu:menu>
- <menu:menuitem menu:id="slot:5539" menu:helpid="5539" menu:label="St~ylist"/>
- <menu:menuseparator/>
- <menu:menuitem menu:id="slot:10256" menu:helpid="10256" menu:label="F~ontwork"/>
- <menu:menuitem menu:id="slot:10644" menu:helpid="10644" menu:label="~3D Effects"/>
- </menu:menupopup>
- </menu:menu>
- <menu:menu menu:id="slot:6677" menu:label="~Tools">
- <menu:menupopup>
- <menu:menu menu:id="slot:94" menu:label="~Spellcheck">
- <menu:menupopup>
- <menu:menuitem menu:id="slot:10243" menu:helpid="10243" menu:label="~Check..."/>
- <menu:menuitem menu:id="slot:12021" menu:helpid="12021" menu:label="~AutoSpellcheck"/>
- </menu:menupopup>
- </menu:menu>
- <menu:menuitem menu:id="slot:10245" menu:helpid="10245" menu:label="~Thesaurus..."/>
- <menu:menuitem menu:id="slot:27340" menu:helpid="27340" menu:label="~Hyphenation"/>
- <menu:menuseparator/>
- <menu:menuitem menu:id="slot:10424" menu:helpid="10424" menu:label="~AutoCorrect..."/>
- <menu:menuseparator/>
- <menu:menuitem menu:id="slot:5960" menu:helpid="5960" menu:label="~Gallery"/>
- <menu:menuitem menu:id="slot:10350" menu:helpid="10350" menu:label="~Eyedropper"/>
- <menu:menuseparator/>
- <menu:menu menu:id="slot:1" menu:label="~Macros">
- <menu:menupopup>
- <menu:menuitem menu:id="slot:6669" menu:helpid="6669" menu:label="Record Macro"/>
- <menu:menuitem menu:id="slot:5959" menu:helpid="5959" menu:label="~Macro..."/>
- </menu:menupopup>
- </menu:menu>
- <menu:menuitem menu:id="slot:10958" menu:helpid="10958" menu:label="~XML Filter Settings..."/>
- <menu:menuitem menu:id="slot:5904" menu:helpid="5904" menu:label="~Configure..."/>
- <menu:menu menu:id="slot:4" menu:label="Scripting Add-ons">
- <menu:menupopup>
- <menu:menuitem menu:id="macro:///ScriptBindingLibrary.ScriptBinding.ExecuteMenuBinding()" menu:label="Assign Script to ~Menu..."/>
- <menu:menuitem menu:id="macro:///ScriptBindingLibrary.ScriptBinding.ExecuteKeyBinding" menu:label="Assign Script to ~Key..."/>
- <menu:menuitem menu:id="macro:///ScriptBindingLibrary.ScriptBinding.ExecuteEventBinding()" menu:label="Assign Script to ~Event..."/>
- <menu:menuitem menu:id="macro:///ScriptBindingLibrary.ScriptBinding.ExecuteEditDebug" menu:label="Edit/De~bug Scripts..."/>
- <menu:menuitem menu:id="macro:///ScriptBindingLibrary.ScriptBinding.RefreshAllScripts()" menu:label="~Refresh All Scripts"/>
- </menu:menupopup>
- </menu:menu>
- <menu:menuitem menu:id="slot:31630" menu:helpid="31630" menu:label="~Options..."/>
- </menu:menupopup>
- </menu:menu>
- <menu:menu menu:id="slot:24" menu:label="~Modify">
- <menu:menupopup>
- <menu:menuitem menu:id="slot:10129" menu:helpid="10129" menu:label="~Rotate"/>
- <menu:menu menu:id="slot:1" menu:label="~Flip">
- <menu:menupopup>
- <menu:menuitem menu:id="slot:27034" menu:helpid="27034" menu:label="~Vertically"/>
- <menu:menuitem menu:id="slot:27035" menu:helpid="27035" menu:label="~Horizontally"/>
- </menu:menupopup>
- </menu:menu>
- <menu:menu menu:id="slot:2" menu:label="~Convert">
- <menu:menupopup>
- <menu:menuitem menu:id="slot:27036" menu:helpid="27036" menu:label="To ~Curve"/>
- <menu:menuitem menu:id="slot:27037" menu:helpid="27037" menu:label="To ~Polygon"/>
- <menu:menuitem menu:id="slot:27381" menu:helpid="27381" menu:label="To C~ontour"/>
- <menu:menuitem menu:id="slot:10648" menu:helpid="10648" menu:label="To 3~D"/>
- <menu:menuitem menu:id="slot:10649" menu:helpid="10649" menu:label="To 3D ~Rotation Object"/>
- <menu:menuitem menu:id="slot:27378" menu:helpid="27378" menu:label="To ~Bitmap"/>
- <menu:menuitem menu:id="slot:27379" menu:helpid="27379" menu:label="To ~Metafile"/>
- </menu:menupopup>
- </menu:menu>
- <menu:menuseparator/>
- <menu:menu menu:id="slot:96" menu:label="~Arrange">
- <menu:menupopup>
- <menu:menuitem menu:id="slot:10286" menu:helpid="10286" menu:label="~Bring to Front"/>
- <menu:menuitem menu:id="slot:27031" menu:helpid="27031" menu:label="Bring ~Forward"/>
- <menu:menuitem menu:id="slot:27032" menu:helpid="27032" menu:label="Send Back~ward"/>
- <menu:menuitem menu:id="slot:10287" menu:helpid="10287" menu:label="~Send to Back"/>
- <menu:menuseparator/>
- <menu:menuitem menu:id="slot:27326" menu:helpid="27326" menu:label="In Front of ~Object"/>
- <menu:menuitem menu:id="slot:27116" menu:helpid="27116" menu:label="Be~hind Object"/>
- <menu:menuseparator/>
- <menu:menuitem menu:id="slot:27117" menu:helpid="27117" menu:label="~Reverse"/>
- </menu:menupopup>
- </menu:menu>
- <menu:menu menu:id="slot:3" menu:label="A~lignment">
- <menu:menupopup>
- <menu:menuitem menu:id="slot:10131" menu:helpid="10131" menu:label="~Left"/>
- <menu:menuitem menu:id="slot:10132" menu:helpid="10132" menu:label="~Centered"/>
- <menu:menuitem menu:id="slot:10133" menu:helpid="10133" menu:label="~Right"/>
- <menu:menuseparator/>
- <menu:menuitem menu:id="slot:10134" menu:helpid="10134" menu:label="~Top"/>
- <menu:menuitem menu:id="slot:10135" menu:helpid="10135" menu:label="C~enter"/>
- <menu:menuitem menu:id="slot:10136" menu:helpid="10136" menu:label="~Bottom"/>
- </menu:menupopup>
- </menu:menu>
- <menu:menuitem menu:id="slot:5683" menu:helpid="5683" menu:label="~Distribution..."/>
- <menu:menuseparator/>
- <menu:menuitem menu:id="slot:27027" menu:helpid="27027" menu:label="~Name Object..."/>
- <menu:menuseparator/>
- <menu:menuitem menu:id="slot:10454" menu:helpid="10454" menu:label="~Group"/>
- <menu:menuitem menu:id="slot:10455" menu:helpid="10455" menu:label="~Ungroup"/>
- <menu:menuitem menu:id="slot:27096" menu:helpid="27096" menu:label="~Enter Group"/>
- <menu:menuitem menu:id="slot:27097" menu:helpid="27097" menu:label="E~xit Group"/>
- <menu:menuseparator/>
- <menu:menuitem menu:id="slot:27026" menu:helpid="27026" menu:label="Comb~ine"/>
- <menu:menuitem menu:id="slot:27082" menu:helpid="27082" menu:label="~Split"/>
- <menu:menu menu:id="slot:4" menu:label="~Shapes">
- <menu:menupopup>
- <menu:menuitem menu:id="slot:5679" menu:helpid="5679" menu:label="~Merge"/>
- <menu:menuitem menu:id="slot:5680" menu:helpid="5680" menu:label="~Subtract"/>
- <menu:menuitem menu:id="slot:5681" menu:helpid="5681" menu:label="I~ntersect"/>
- </menu:menupopup>
- </menu:menu>
- <menu:menuseparator/>
- <menu:menuitem menu:id="slot:27093" menu:helpid="27093" menu:label="C~onnect"/>
- <menu:menuitem menu:id="slot:27094" menu:helpid="27094" menu:label="~Break"/>
- </menu:menupopup>
- </menu:menu>
- <menu:menu menu:id="slot:5610" menu:label="~Window">
- <menu:menupopup>
- <menu:menuitem menu:id="slot:5620" menu:helpid="5620" menu:label="~New Window"/>
- <menu:menuitem menu:id="slot:5621" menu:helpid="5621" menu:label="Close Window"/>
- <menu:menuseparator/>
- </menu:menupopup>
- </menu:menu>
- <menu:menu menu:id="slot:5410" menu:label="~Help">
- <menu:menupopup>
- <menu:menuitem menu:id="slot:5401" menu:helpid="5401" menu:label="~Contents"/>
- <menu:menuseparator/>
- <menu:menuitem menu:id="slot:5962" menu:helpid="5962" menu:label="Help ~Agent"/>
- <menu:menuitem menu:id="slot:5404" menu:helpid="5404" menu:label="~Tips"/>
- <menu:menuitem menu:id="slot:5403" menu:helpid="5403" menu:label="~Extended Tips"/>
- <menu:menuseparator/>
- <menu:menuitem menu:id="slot:6683" menu:helpid="6683" menu:label="~Support"/>
- <menu:menuseparator/>
- <menu:menuitem menu:id="slot:5301" menu:helpid="5301" menu:label="A~bout OpenOffice.org..."/>
- </menu:menupopup>
- </menu:menu>
-</menu:menubar>
diff --git a/scripting/workben/bindings/eventbindings.xml b/scripting/workben/bindings/eventbindings.xml
deleted file mode 100644
index 96ce4eece869..000000000000
--- a/scripting/workben/bindings/eventbindings.xml
+++ /dev/null
@@ -1,21 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE event:events PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "event.dtd">
-<!--
- * 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 .
--->
-<event:events xmlns:event="http://openoffice.org/2001/event" xmlns:xlink="http://www.w3.org/1999/xlink">
-</event:events>
diff --git a/scripting/workben/bindings/impresskeybinding.xml b/scripting/workben/bindings/impresskeybinding.xml
deleted file mode 100644
index 0b88c1545820..000000000000
--- a/scripting/workben/bindings/impresskeybinding.xml
+++ /dev/null
@@ -1,79 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE accel:acceleratorlist PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "accelerator.dtd">
-<!--
- * 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 .
--->
-<accel:acceleratorlist xmlns:accel="http://openoffice.org/2001/accel" xmlns:xlink="http://www.w3.org/1999/xlink">
- <accel:item accel:code="KEY_F8" accel:shift="true" accel:mod1="true" xlink:href="slot:10367"/>
- <accel:item accel:code="KEY_P" accel:shift="true" accel:mod1="true" xlink:href="slot:10294"/>
- <accel:item accel:code="KEY_N" accel:shift="true" accel:mod1="true" xlink:href="slot:5500"/>
- <accel:item accel:code="KEY_K" accel:shift="true" accel:mod1="true" xlink:href="slot:27026"/>
- <accel:item accel:code="KEY_G" accel:shift="true" accel:mod1="true" xlink:href="slot:10454"/>
- <accel:item accel:code="KEY_B" accel:shift="true" accel:mod1="true" xlink:href="slot:10295"/>
- <accel:item accel:code="KEY_SUBTRACT" accel:mod1="true" xlink:href="slot:27032"/>
- <accel:item accel:code="KEY_ADD" accel:mod1="true" xlink:href="slot:27031"/>
- <accel:item accel:code="KEY_INSERT" accel:mod1="true" xlink:href="slot:5711"/>
- <accel:item accel:code="KEY_F12" accel:mod1="true" xlink:href="slot:27009"/>
- <accel:item accel:code="KEY_F11" accel:mod1="true" xlink:href="slot:5573"/>
- <accel:item accel:code="KEY_F7" accel:mod1="true" xlink:href="slot:10245"/>
- <accel:item accel:code="KEY_F3" accel:mod1="true" xlink:href="slot:27097"/>
- <accel:item accel:code="KEY_F2" accel:mod1="true" xlink:href="slot:10157"/>
- <accel:item accel:code="KEY_Z" accel:mod1="true" xlink:href="slot:5701"/>
- <accel:item accel:code="KEY_Y" accel:mod1="true" xlink:href="slot:5700"/>
- <accel:item accel:code="KEY_X" accel:mod1="true" xlink:href="slot:5710"/>
- <accel:item accel:code="KEY_V" accel:mod1="true" xlink:href="slot:5712"/>
- <accel:item accel:code="KEY_U" accel:mod1="true" xlink:href="slot:10014"/>
- <accel:item accel:code="KEY_S" accel:mod1="true" xlink:href="slot:5505"/>
- <accel:item accel:code="KEY_R" accel:mod1="true" xlink:href="slot:10029"/>
- <accel:item accel:code="KEY_Q" accel:mod1="true" xlink:href="slot:5300"/>
- <accel:item accel:code="KEY_P" accel:mod1="true" xlink:href="slot:5504"/>
- <accel:item accel:code="KEY_O" accel:mod1="true" xlink:href="slot:5501"/>
- <accel:item accel:code="KEY_L" accel:mod1="true" xlink:href="slot:10028"/>
- <accel:item accel:code="KEY_J" accel:mod1="true" xlink:href="slot:10031"/>
- <accel:item accel:code="KEY_I" accel:mod1="true" xlink:href="slot:10008"/>
- <accel:item accel:code="KEY_E" accel:mod1="true" xlink:href="slot:10030"/>
- <accel:item accel:code="KEY_C" accel:mod1="true" xlink:href="slot:5711"/>
- <accel:item accel:code="KEY_B" accel:mod1="true" xlink:href="slot:10009"/>
- <accel:item accel:code="KEY_5" accel:mod1="true" xlink:href="slot:10035"/>
- <accel:item accel:code="KEY_2" accel:mod1="true" xlink:href="slot:10036"/>
- <accel:item accel:code="KEY_1" accel:mod1="true" xlink:href="slot:10034"/>
- <accel:item accel:code="KEY_DELETE" accel:shift="true" xlink:href="slot:5710"/>
- <accel:item accel:code="KEY_INSERT" accel:shift="true" xlink:href="slot:5712"/>
- <accel:item accel:code="KEY_F3" accel:shift="true" xlink:href="slot:27004"/>
- <accel:item accel:code="KEY_REPEAT" xlink:href="slot:5702"/>
- <accel:item accel:code="KEY_UNDO" xlink:href="slot:5701"/>
- <accel:item accel:code="KEY_PASTE" xlink:href="slot:5712"/>
- <accel:item accel:code="KEY_COPY" xlink:href="slot:5711"/>
- <accel:item accel:code="KEY_CUT" xlink:href="slot:5710"/>
- <accel:item accel:code="KEY_OPEN" xlink:href="slot:5501"/>
- <accel:item accel:code="KEY_DELETE" xlink:href="slot:5713"/>
- <accel:item accel:code="KEY_F12" xlink:href="slot:27010"/>
- <accel:item accel:code="KEY_F11" xlink:href="slot:5539"/>
- <accel:item accel:code="KEY_F9" xlink:href="slot:10157"/>
- <accel:item accel:code="KEY_F8" xlink:href="slot:10126"/>
- <accel:item accel:code="KEY_F7" xlink:href="slot:10243"/>
- <accel:item accel:code="KEY_F5" xlink:href="slot:10366"/>
- <accel:item accel:code="KEY_F4" xlink:href="slot:10087"/>
- <accel:item accel:code="KEY_F3" xlink:href="slot:27096"/>
- <accel:item accel:code="KEY_F2" xlink:href="slot:10006"/>
- <accel:item accel:code="KEY_BACKSPACE" accel:mod2="true" xlink:href="slot:5701"/>
- <accel:item accel:code="KEY_ADD" accel:shift="true" accel:mod1="true" xlink:href="slot:10286"/>
- <accel:item accel:code="KEY_SUBTRACT" accel:shift="true" accel:mod1="true" xlink:href="slot:10287"/>
- <accel:item accel:code="KEY_G" accel:shift="true" accel:mod1="true" accel:mod2="true" xlink:href="slot:10455"/>
- <accel:item accel:code="KEY_9" accel:shift="true" accel:mod1="true" accel:mod2="true" xlink:href="slot:10703"/>
- <accel:item accel:code="KEY_K" accel:shift="true" accel:mod1="true" accel:mod2="true" xlink:href="slot:27082"/>
-</accel:acceleratorlist> \ No newline at end of file
diff --git a/scripting/workben/bindings/impressmenubar.xml b/scripting/workben/bindings/impressmenubar.xml
deleted file mode 100644
index c0b3a4683853..000000000000
--- a/scripting/workben/bindings/impressmenubar.xml
+++ /dev/null
@@ -1,344 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE menu:menubar PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "menubar.dtd">
-<!--
- * 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 .
- -->
-<menu:menubar xmlns:menu="http://openoffice.org/2001/menu" menu:id="menubar">
- <menu:menu menu:id="slot:5510" menu:label="~File">
- <menu:menupopup>
- <menu:menuitem menu:id="slot:5537" menu:helpid="5537" menu:label="~New"/>
- <menu:menuitem menu:id="slot:5501" menu:helpid="5501" menu:label="~Open..."/>
- <menu:menuitem menu:id="slot:6381" menu:helpid="6381" menu:label="A~utoPilot"/>
- <menu:menuseparator/>
- <menu:menuitem menu:id="slot:5503" menu:helpid="5503" menu:label="~Close"/>
- <menu:menuitem menu:id="slot:5505" menu:helpid="5505" menu:label="~Save"/>
- <menu:menuitem menu:id="slot:5502" menu:helpid="5502" menu:label="Save ~As..."/>
- <menu:menuitem menu:id="slot:5309" menu:helpid="5309" menu:label="Sa~ve All"/>
- <menu:menuitem menu:id="slot:5508" menu:helpid="5508" menu:label="Reload"/>
- <menu:menuitem menu:id="slot:6583" menu:helpid="6583" menu:label="Versions..."/>
- <menu:menuseparator/>
- <menu:menuitem menu:id="slot:5829" menu:helpid="5829" menu:label="~Export..."/>
- <menu:menuitem menu:id="slot:6673" menu:helpid="6673" menu:label="Export as PDF..."/>
- <menu:menu menu:id="slot:98" menu:label="Sen~d">
- <menu:menupopup>
- <menu:menuitem menu:id="slot:5331" menu:helpid="5331" menu:label="Document as ~E-mail..."/>
- <menu:menuitem menu:id="slot:6672" menu:helpid="6672" menu:label="Document as P~DF Attachment..."/>
- </menu:menupopup>
- </menu:menu>
- <menu:menuseparator/>
- <menu:menuitem menu:id="slot:5535" menu:helpid="5535" menu:label="Propert~ies..."/>
- <menu:menu menu:id="slot:103" menu:label="~Templates">
- <menu:menupopup>
- <menu:menuitem menu:id="slot:5540" menu:helpid="5540" menu:label="~Organize..."/>
- <menu:menuitem menu:id="slot:6655" menu:helpid="6655" menu:label="~Address Book Source..."/>
- <menu:menuitem menu:id="slot:5538" menu:helpid="5538" menu:label="~Save..."/>
- <menu:menuitem menu:id="slot:5594" menu:helpid="5594" menu:label="~Edit..."/>
- </menu:menupopup>
- </menu:menu>
- <menu:menuseparator/>
- <menu:menuitem menu:id="slot:5504" menu:helpid="5504" menu:label="~Print..."/>
- <menu:menuitem menu:id="slot:5302" menu:helpid="5302" menu:label="P~rinter Settings..."/>
- <menu:menuseparator/>
- <menu:menuitem menu:id="slot:5300" menu:helpid="5300" menu:label="E~xit"/>
- </menu:menupopup>
- </menu:menu>
- <menu:menu menu:id="slot:20" menu:label="~Edit">
- <menu:menupopup>
- <menu:menuitem menu:id="slot:5701" menu:helpid="5701" menu:label="Can&apos;t Undo"/>
- <menu:menuitem menu:id="slot:5700" menu:helpid="5700" menu:label="Can&apos;t Restore"/>
- <menu:menuseparator/>
- <menu:menuitem menu:id="slot:5710" menu:helpid="5710" menu:label="Cu~t"/>
- <menu:menuitem menu:id="slot:5711" menu:helpid="5711" menu:label="~Copy"/>
- <menu:menuitem menu:id="slot:5712" menu:helpid="5712" menu:label="~Paste"/>
- <menu:menuitem menu:id="slot:27003" menu:helpid="27003" menu:label="Paste ~Special..."/>
- <menu:menuitem menu:id="slot:5723" menu:helpid="5723" menu:label="Select ~All"/>
- <menu:menuseparator/>
- <menu:menuitem menu:id="slot:5961" menu:helpid="5961" menu:label="~Find &amp; Replace..."/>
- <menu:menuitem menu:id="slot:10366" menu:helpid="10366" menu:label="Na~vigator"/>
- <menu:menuseparator/>
- <menu:menuitem menu:id="slot:27004" menu:helpid="27004" menu:label="Duplicat~e..."/>
- <menu:menuseparator/>
- <menu:menuitem menu:id="slot:10126" menu:helpid="10126" menu:label="Poi~nts"/>
- <menu:menuitem menu:id="slot:27301" menu:helpid="27301" menu:label="~Glue Points"/>
- <menu:menuseparator/>
- <menu:menuitem menu:id="slot:27362" menu:helpid="27362" menu:label="F~ields..."/>
- <menu:menuitem menu:id="slot:27080" menu:helpid="27080" menu:label="D~elete Slide..."/>
- <menu:menuseparator/>
- <menu:menu menu:id="slot:340" menu:label="La~yer">
- <menu:menupopup>
- <menu:menuitem menu:id="slot:27043" menu:helpid="27043" menu:label="~Insert"/>
- <menu:menuitem menu:id="slot:27048" menu:helpid="27048" menu:label="~Modify"/>
- <menu:menuitem menu:id="slot:27081" menu:helpid="27081" menu:label="Delete"/>
- <menu:menuitem menu:id="slot:27269" menu:helpid="27269" menu:label="~Rename"/>
- </menu:menupopup>
- </menu:menu>
- <menu:menuseparator/>
- <menu:menuitem menu:id="slot:27005" menu:helpid="27005" menu:label="Lin~ks..."/>
- <menu:menuitem menu:id="slot:6314" menu:helpid="6314" menu:label="P~lug-in"/>
- <menu:menuitem menu:id="slot:10371" menu:helpid="10371" menu:label="ImageMap"/>
- <menu:menuitem menu:id="slot:5575" menu:helpid="5575" menu:label="~Object"/>
- <menu:menuitem menu:id="slot:27382" menu:helpid="27382" menu:label="H~yperlink..."/>
- </menu:menupopup>
- </menu:menu>
- <menu:menu menu:id="slot:23" menu:label="~View">
- <menu:menupopup>
- <menu:menuitem menu:id="slot:10000" menu:helpid="10000" menu:label="~Zoom..."/>
- <menu:menuseparator/>
- <menu:menu menu:id="slot:92" menu:label="~Toolbars">
- <menu:menupopup>
- <menu:menuitem menu:id="slot:5910" menu:helpid="5910" menu:label="~Function Bar"/>
- <menu:menuitem menu:id="slot:5905" menu:helpid="5905" menu:label="~Object Bar"/>
- <menu:menuitem menu:id="slot:5909" menu:helpid="5909" menu:label="Main ~Toolbar"/>
- <menu:menuitem menu:id="slot:5911" menu:helpid="5911" menu:label="Optio~n Bar"/>
- <menu:menuitem menu:id="slot:5928" menu:helpid="5928" menu:label="~Presentation"/>
- <menu:menuitem menu:id="slot:10417" menu:helpid="10417" menu:label="~Color Bar"/>
- <menu:menuseparator/>
- <menu:menuitem menu:id="slot:5908" menu:helpid="5908" menu:label="Customi~ze..."/>
- </menu:menupopup>
- </menu:menu>
- <menu:menuitem menu:id="slot:27040" menu:helpid="27040" menu:label="~Rulers"/>
- <menu:menuitem menu:id="slot:5920" menu:helpid="5920" menu:label="~Status Bar"/>
- <menu:menuitem menu:id="slot:6680" menu:helpid="6680" menu:label="~Input Method Status"/>
- <menu:menuseparator/>
- <menu:menu menu:id="slot:91" menu:label="Wor~kspace">
- <menu:menupopup>
- <menu:menuitem menu:id="slot:27009" menu:helpid="27009" menu:label="~Drawing View"/>
- <menu:menuitem menu:id="slot:27010" menu:helpid="27010" menu:label="~Outline View"/>
- <menu:menuitem menu:id="slot:27011" menu:helpid="27011" menu:label="~Slides View"/>
- <menu:menuitem menu:id="slot:27069" menu:helpid="27069" menu:label="~Notes View"/>
- <menu:menuitem menu:id="slot:27070" menu:helpid="27070" menu:label="~Handout View"/>
- </menu:menupopup>
- </menu:menu>
- <menu:menu menu:id="slot:100" menu:label="~Display Quality">
- <menu:menupopup>
- <menu:menuitem menu:id="slot:27366" menu:helpid="27366" menu:label="~Color"/>
- <menu:menuitem menu:id="slot:27367" menu:helpid="27367" menu:label="~Grayscale"/>
- <menu:menuitem menu:id="slot:27368" menu:helpid="27368" menu:label="~Black and White"/>
- <menu:menuitem menu:id="slot:27400" menu:helpid="27400" menu:label="~High Contrast"/>
- </menu:menupopup>
- </menu:menu>
- <menu:menuseparator/>
- <menu:menuitem menu:id="slot:27327" menu:helpid="27327" menu:label="~Preview"/>
- <menu:menu menu:id="slot:101" menu:label="Pre~view Mode">
- <menu:menupopup>
- <menu:menuitem menu:id="slot:27369" menu:helpid="27369" menu:label="~Color"/>
- <menu:menuitem menu:id="slot:27370" menu:helpid="27370" menu:label="~Grayscale"/>
- <menu:menuitem menu:id="slot:27371" menu:helpid="27371" menu:label="~Black and White"/>
- <menu:menuitem menu:id="slot:27401" menu:helpid="27401" menu:label="~High Contrast"/>
- </menu:menupopup>
- </menu:menu>
- <menu:menuseparator/>
- <menu:menuitem menu:id="slot:27049" menu:helpid="27049" menu:label="S~lide"/>
- <menu:menu menu:id="slot:97" menu:label="~Master">
- <menu:menupopup>
- <menu:menuitem menu:id="slot:27348" menu:helpid="27348" menu:label="~Drawing"/>
- <menu:menuitem menu:id="slot:27351" menu:helpid="27351" menu:label="~Title"/>
- <menu:menuitem menu:id="slot:27350" menu:helpid="27350" menu:label="~Notes"/>
- <menu:menuitem menu:id="slot:27349" menu:helpid="27349" menu:label="~Handout"/>
- </menu:menupopup>
- </menu:menu>
- <menu:menuitem menu:id="slot:27050" menu:helpid="27050" menu:label="La~yer"/>
- <menu:menuseparator/>
- <menu:menu menu:id="slot:338" menu:label="~Grid">
- <menu:menupopup>
- <menu:menuitem menu:id="slot:27322" menu:helpid="27322" menu:label="~Display Grid"/>
- <menu:menuitem menu:id="slot:27154" menu:helpid="27154" menu:label="Snap to Grid"/>
- <menu:menuitem menu:id="slot:27323" menu:helpid="27323" menu:label="Grid to ~Front"/>
- </menu:menupopup>
- </menu:menu>
- <menu:menuseparator/>
- <menu:menu menu:id="slot:339" menu:label="~Snap Lines">
- <menu:menupopup>
- <menu:menuitem menu:id="slot:27324" menu:helpid="27324" menu:label="~Display Snap Lines"/>
- <menu:menuitem menu:id="slot:27152" menu:helpid="27152" menu:label="~Snap to Snap Lines"/>
- <menu:menuitem menu:id="slot:27325" menu:helpid="27325" menu:label="Snap Lines to ~Front"/>
- </menu:menupopup>
- </menu:menu>
- <menu:menuseparator/>
- <menu:menuitem menu:id="slot:5627" menu:helpid="5627" menu:label="F~ull Screen"/>
- </menu:menupopup>
- </menu:menu>
- <menu:menu menu:id="slot:21" menu:label="~Insert">
- <menu:menupopup>
- <menu:menuitem menu:id="slot:27014" menu:helpid="27014" menu:label="Slid~e..."/>
- <menu:menuitem menu:id="slot:27342" menu:helpid="27342" menu:label="D~uplicate Slide"/>
- <menu:menuitem menu:id="slot:27343" menu:helpid="27343" menu:label="E~xpand Slide"/>
- <menu:menuitem menu:id="slot:27344" menu:helpid="27344" menu:label="Su~mmary Slide"/>
- <menu:menu menu:id="slot:99" menu:label="Fiel~ds">
- <menu:menupopup>
- <menu:menuitem menu:id="slot:27358" menu:helpid="27358" menu:label="~Date (fixed)"/>
- <menu:menuitem menu:id="slot:27357" menu:helpid="27357" menu:label="Dat~e (variable)"/>
- <menu:menuitem menu:id="slot:27360" menu:helpid="27360" menu:label="~Time (fixed)"/>
- <menu:menuitem menu:id="slot:27359" menu:helpid="27359" menu:label="T~ime (variable)"/>
- <menu:menuseparator/>
- <menu:menuitem menu:id="slot:27364" menu:helpid="27364" menu:label="~Author"/>
- <menu:menuitem menu:id="slot:27361" menu:helpid="27361" menu:label="~Page Number"/>
- <menu:menuitem menu:id="slot:27465" menu:helpid="27465" menu:label="~Page Title"/>
- <menu:menuitem menu:id="slot:27363" menu:helpid="27363" menu:label="~File Name"/>
- </menu:menupopup>
- </menu:menu>
- <menu:menuitem menu:id="slot:27019" menu:helpid="27019" menu:label="S~pecial Character..."/>
- <menu:menuitem menu:id="slot:5678" menu:helpid="5678" menu:label="~Hyperlink"/>
- <menu:menuseparator/>
- <menu:menu menu:id="slot:1" menu:label="Scan">
- <menu:menupopup>
- <menu:menuitem menu:id="slot:10331" menu:helpid="10331" menu:label="~Select Source..."/>
- <menu:menuitem menu:id="slot:10332" menu:helpid="10332" menu:label="~Request..."/>
- </menu:menupopup>
- </menu:menu>
- <menu:menuseparator/>
- <menu:menuitem menu:id="slot:10217" menu:helpid="10217" menu:label="Sp~readsheet"/>
- <menu:menuitem menu:id="slot:10241" menu:helpid="10241" menu:label="~Graphics..."/>
- <menu:menu menu:id="slot:2" menu:label="~Object">
- <menu:menupopup>
- <menu:menuitem menu:id="slot:5561" menu:helpid="5561" menu:label="~OLE Object..."/>
- <menu:menuitem menu:id="slot:5672" menu:helpid="5672" menu:label="~Plug-in..."/>
- <menu:menuitem menu:id="slot:5676" menu:helpid="5676" menu:label="~Sound..."/>
- <menu:menuitem menu:id="slot:5677" menu:helpid="5677" menu:label="~Video..."/>
- <menu:menuitem menu:id="slot:5673" menu:helpid="5673" menu:label="~Applet..."/>
- <menu:menuitem menu:id="slot:27106" menu:helpid="27106" menu:label="~Formula..."/>
- </menu:menupopup>
- </menu:menu>
- <menu:menuitem menu:id="slot:10140" menu:helpid="10140" menu:label="Chart"/>
- <menu:menuitem menu:id="slot:5563" menu:helpid="5563" menu:label="Float~ing Frame..."/>
- <menu:menuseparator/>
- <menu:menuitem menu:id="slot:27015" menu:helpid="27015" menu:label="~File..."/>
- </menu:menupopup>
- </menu:menu>
- <menu:menu menu:id="slot:22" menu:label="F~ormat">
- <menu:menupopup>
- <menu:menuitem menu:id="slot:10456" menu:helpid="10456" menu:label="~Default"/>
- <menu:menuseparator/>
- <menu:menuitem menu:id="slot:10143" menu:helpid="10143" menu:label="L~ine..."/>
- <menu:menuitem menu:id="slot:10142" menu:helpid="10142" menu:label="A~rea..."/>
- <menu:menuitem menu:id="slot:27281" menu:helpid="27281" menu:label="Te~xt..."/>
- <menu:menuitem menu:id="slot:10087" menu:helpid="10087" menu:label="Position and Si~ze..."/>
- <menu:menuitem menu:id="slot:10613" menu:helpid="10613" menu:label="Con~trol..."/>
- <menu:menuitem menu:id="slot:10614" menu:helpid="10614" menu:label="For~m..."/>
- <menu:menuitem menu:id="slot:27320" menu:helpid="27320" menu:label="Dimen~sions..."/>
- <menu:menuitem menu:id="slot:27338" menu:helpid="27338" menu:label="~Connector..."/>
- <menu:menuseparator/>
- <menu:menuitem menu:id="slot:10296" menu:helpid="10296" menu:label="C~haracter..."/>
- <menu:menuitem menu:id="slot:10156" menu:helpid="10156" menu:label="~Bullets and Numbering..."/>
- <menu:menu menu:id="slot:1" menu:label="~Change Case">
- <menu:menupopup>
- <menu:menuitem menu:id="slot:10912" menu:helpid="10912" menu:label="~Uppercase"/>
- <menu:menuitem menu:id="slot:10913" menu:helpid="10913" menu:label="~Lowercase"/>
- <menu:menuitem menu:id="slot:10914" menu:helpid="10914" menu:label="H~alf-width"/>
- <menu:menuitem menu:id="slot:10915" menu:helpid="10915" menu:label="Full-width"/>
- <menu:menuitem menu:id="slot:10916" menu:helpid="10916" menu:label="~Hiragana"/>
- <menu:menuitem menu:id="slot:10917" menu:helpid="10917" menu:label="~Katakana"/>
- </menu:menupopup>
- </menu:menu>
- <menu:menuitem menu:id="slot:10297" menu:helpid="10297" menu:label="P~aragraph..."/>
- <menu:menuitem menu:id="slot:27002" menu:helpid="27002" menu:label="~Page..."/>
- <menu:menuseparator/>
- <menu:menuitem menu:id="slot:27046" menu:helpid="27046" menu:label="Modify ~Layout..."/>
- <menu:menuseparator/>
- <menu:menu menu:id="slot:95" menu:label="Styl~es">
- <menu:menupopup>
- <menu:menuitem menu:id="slot:5573" menu:helpid="5573" menu:label="~Catalog..."/>
- <menu:menuitem menu:id="slot:27064" menu:helpid="27064" menu:label="~Slide Design..."/>
- </menu:menupopup>
- </menu:menu>
- <menu:menuitem menu:id="slot:5539" menu:helpid="5539" menu:label="St~ylist"/>
- <menu:menuseparator/>
- <menu:menuitem menu:id="slot:10256" menu:helpid="10256" menu:label="F~ontwork"/>
- <menu:menuitem menu:id="slot:10644" menu:helpid="10644" menu:label="~3D Effects"/>
- <menu:menu menu:id="slot:102" menu:label="~Group">
- <menu:menupopup>
- <menu:menuitem menu:id="slot:10454" menu:helpid="10454" menu:label="~Group"/>
- <menu:menuitem menu:id="slot:10455" menu:helpid="10455" menu:label="~Ungroup"/>
- <menu:menuitem menu:id="slot:27096" menu:helpid="27096" menu:label="~Enter Group"/>
- <menu:menuitem menu:id="slot:27097" menu:helpid="27097" menu:label="E~xit group"/>
- </menu:menupopup>
- </menu:menu>
- </menu:menupopup>
- </menu:menu>
- <menu:menu menu:id="slot:6677" menu:label="~Tools">
- <menu:menupopup>
- <menu:menu menu:id="slot:94" menu:label="~Spellcheck">
- <menu:menupopup>
- <menu:menuitem menu:id="slot:10243" menu:helpid="10243" menu:label="~Check..."/>
- <menu:menuitem menu:id="slot:12021" menu:helpid="12021" menu:label="~AutoSpellcheck"/>
- </menu:menupopup>
- </menu:menu>
- <menu:menuitem menu:id="slot:10245" menu:helpid="10245" menu:label="~Thesaurus..."/>
- <menu:menuitem menu:id="slot:27340" menu:helpid="27340" menu:label="~Hyphenation"/>
- <menu:menuseparator/>
- <menu:menuitem menu:id="slot:10424" menu:helpid="10424" menu:label="~AutoCorrect..."/>
- <menu:menuseparator/>
- <menu:menuitem menu:id="slot:5960" menu:helpid="5960" menu:label="~Gallery"/>
- <menu:menuitem menu:id="slot:10350" menu:helpid="10350" menu:label="~Eyedropper"/>
- <menu:menuseparator/>
- <menu:menu menu:id="slot:1" menu:label="~Macros">
- <menu:menupopup>
- <menu:menuitem menu:id="slot:6669" menu:helpid="6669" menu:label="Record Macro"/>
- <menu:menuitem menu:id="slot:5959" menu:helpid="5959" menu:label="~Macro..."/>
- </menu:menupopup>
- </menu:menu>
- <menu:menuitem menu:id="slot:10958" menu:helpid="10958" menu:label="~XML Filter Settings..."/>
- <menu:menuitem menu:id="slot:5904" menu:helpid="5904" menu:label="~Configure..."/>
- <menu:menu menu:id="slot:4" menu:label="Scripting Add-ons">
- <menu:menupopup>
- <menu:menuitem menu:id="macro:///ScriptBindingLibrary.ScriptBinding.ExecuteMenuBinding()" menu:label="Assign Script to ~Menu..."/>
- <menu:menuitem menu:id="macro:///ScriptBindingLibrary.ScriptBinding.ExecuteKeyBinding" menu:label="Assign Script to ~Key..."/>
- <menu:menuitem menu:id="macro:///ScriptBindingLibrary.ScriptBinding.ExecuteEventBinding()" menu:label="Assign Script to ~Event..."/>
- <menu:menuitem menu:id="macro:///ScriptBindingLibrary.ScriptBinding.ExecuteEditDebug" menu:label="Edit/De~bug Scripts..."/>
- <menu:menuitem menu:id="macro:///ScriptBindingLibrary.ScriptBinding.RefreshAllScripts()" menu:label="~Refresh All Scripts"/>
- </menu:menupopup>
- </menu:menu>
- <menu:menuitem menu:id="slot:31630" menu:helpid="31630" menu:label="~Options..."/>
- </menu:menupopup>
- </menu:menu>
- <menu:menu menu:id="slot:26" menu:label="~Slide Show">
- <menu:menupopup>
- <menu:menuitem menu:id="slot:10157" menu:helpid="10157" menu:label="Slide Sho~w"/>
- <menu:menuitem menu:id="slot:10159" menu:helpid="10159" menu:label="~Rehearse Timings"/>
- <menu:menuseparator/>
- <menu:menuitem menu:id="slot:27339" menu:helpid="27339" menu:label="~Slide Show Settings..."/>
- <menu:menuitem menu:id="slot:27365" menu:helpid="27365" menu:label="~Custom Slide Show..."/>
- <menu:menuseparator/>
- <menu:menuitem menu:id="slot:27334" menu:helpid="27334" menu:label="Slide ~Transition"/>
- <menu:menuitem menu:id="slot:10161" menu:helpid="10161" menu:label="~Show/Hide Slide"/>
- <menu:menuseparator/>
- <menu:menuitem menu:id="slot:27062" menu:helpid="27062" menu:label="~Animation"/>
- <menu:menuitem menu:id="slot:27328" menu:helpid="27328" menu:label="~Effects"/>
- <menu:menuitem menu:id="slot:27063" menu:helpid="27063" menu:label="~Interaction..."/>
- </menu:menupopup>
- </menu:menu>
- <menu:menu menu:id="slot:5610" menu:label="~Window">
- <menu:menupopup>
- <menu:menuitem menu:id="slot:5620" menu:helpid="5620" menu:label="~New Window"/>
- <menu:menuitem menu:id="slot:5621" menu:helpid="5621" menu:label="Close Window"/>
- <menu:menuseparator/>
- </menu:menupopup>
- </menu:menu>
- <menu:menu menu:id="slot:5410" menu:label="~Help">
- <menu:menupopup>
- <menu:menuitem menu:id="slot:5401" menu:helpid="5401" menu:label="~Contents"/>
- <menu:menuseparator/>
- <menu:menuitem menu:id="slot:5962" menu:helpid="5962" menu:label="Help ~Agent"/>
- <menu:menuitem menu:id="slot:5404" menu:helpid="5404" menu:label="~Tips"/>
- <menu:menuitem menu:id="slot:5403" menu:helpid="5403" menu:label="~Extended Tips"/>
- <menu:menuseparator/>
- <menu:menuitem menu:id="slot:6683" menu:helpid="6683" menu:label="~Support"/>
- <menu:menuseparator/>
- <menu:menuitem menu:id="slot:5301" menu:helpid="5301" menu:label="A~bout OpenOffice.org..."/>
- </menu:menupopup>
- </menu:menu>
-</menu:menubar>
diff --git a/scripting/workben/bindings/manifest.xml b/scripting/workben/bindings/manifest.xml
deleted file mode 100644
index 18138467ea07..000000000000
--- a/scripting/workben/bindings/manifest.xml
+++ /dev/null
@@ -1,31 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE manifest:manifest PUBLIC "-//OpenOffice.org//DTD Manifest 1.0//EN" "Manifest.dtd">
-<!--
- * 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 .
--->
-<manifest:manifest xmlns:manifest="http://openoffice.org/2001/manifest">
- <manifest:file-entry manifest:media-type="" manifest:full-path="/"/>
- <manifest:file-entry manifest:media-type="" manifest:full-path="writermenubar.xml"/>
- <manifest:file-entry manifest:media-type="" manifest:full-path="writerkeybinding.xml"/>
- <manifest:file-entry manifest:media-type="" manifest:full-path="calcmenubar.xml"/>
- <manifest:file-entry manifest:media-type="" manifest:full-path="calckeybinding.xml"/>
- <manifest:file-entry manifest:media-type="" manifest:full-path="impressmenubar.xml"/>
- <manifest:file-entry manifest:media-type="" manifest:full-path="impresskeybinding.xml"/>
- <manifest:file-entry manifest:media-type="" manifest:full-path="drawmenubar.xml"/>
- <manifest:file-entry manifest:media-type="" manifest:full-path="drawkeybinding.xml"/>
- <manifest:file-entry manifest:media-type="" manifest:full-path="eventbindings.xml"/>
-</manifest:manifest> \ No newline at end of file
diff --git a/scripting/workben/bindings/writerkeybinding.xml b/scripting/workben/bindings/writerkeybinding.xml
deleted file mode 100644
index ee7996976f12..000000000000
--- a/scripting/workben/bindings/writerkeybinding.xml
+++ /dev/null
@@ -1,118 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE accel:acceleratorlist PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "accelerator.dtd">
-<!--
- * 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 .
--->
-<accel:acceleratorlist xmlns:accel="http://openoffice.org/2001/accel" xmlns:xlink="http://www.w3.org/1999/xlink">
- <accel:item accel:code="KEY_DELETE" accel:shift="true" accel:mod1="true" xlink:href="slot:20927"/>
- <accel:item accel:code="KEY_BACKSPACE" accel:shift="true" accel:mod1="true" xlink:href="slot:20928"/>
- <accel:item accel:code="KEY_RETURN" accel:shift="true" accel:mod1="true" xlink:href="slot:20305"/>
- <accel:item accel:code="KEY_PAGEDOWN" accel:shift="true" accel:mod1="true" xlink:href="slot:20963"/>
- <accel:item accel:code="KEY_END" accel:shift="true" accel:mod1="true" xlink:href="slot:20808"/>
- <accel:item accel:code="KEY_HOME" accel:shift="true" accel:mod1="true" xlink:href="slot:20807"/>
- <accel:item accel:code="KEY_RIGHT" accel:shift="true" accel:mod1="true" xlink:href="slot:20821"/>
- <accel:item accel:code="KEY_LEFT" accel:shift="true" accel:mod1="true" xlink:href="slot:20822"/>
- <accel:item accel:code="KEY_UP" accel:shift="true" accel:mod1="true" xlink:href="slot:20947"/>
- <accel:item accel:code="KEY_DOWN" accel:shift="true" accel:mod1="true" xlink:href="slot:20948"/>
- <accel:item accel:code="KEY_F12" accel:shift="true" accel:mod1="true" xlink:href="slot:20137"/>
- <accel:item accel:code="KEY_F11" accel:shift="true" accel:mod1="true" xlink:href="slot:5556"/>
- <accel:item accel:code="KEY_F9" accel:shift="true" accel:mod1="true" xlink:href="slot:20143"/>
- <accel:item accel:code="KEY_F5" accel:shift="true" accel:mod1="true" xlink:href="slot:20659"/>
- <accel:item accel:code="KEY_T" accel:shift="true" accel:mod1="true" xlink:href="slot:20559"/>
- <accel:item accel:code="KEY_R" accel:shift="true" accel:mod1="true" xlink:href="slot:20201"/>
- <accel:item accel:code="KEY_P" accel:shift="true" accel:mod1="true" xlink:href="slot:20411"/>
- <accel:item accel:code="KEY_I" accel:shift="true" accel:mod1="true" xlink:href="slot:20989"/>
- <accel:item accel:code="KEY_F" accel:shift="true" accel:mod1="true" xlink:href="slot:20150"/>
- <accel:item accel:code="KEY_D" accel:shift="true" accel:mod1="true" xlink:href="slot:10951"/>
- <accel:item accel:code="KEY_B" accel:shift="true" accel:mod1="true" xlink:href="slot:20412"/>
- <accel:item accel:code="KEY_A" accel:shift="true" accel:mod1="true" xlink:href="slot:10950"/>
- <accel:item accel:code="KEY_MULTIPLY" accel:mod1="true" xlink:href="slot:20127"/>
- <accel:item accel:code="KEY_SUBTRACT" accel:mod1="true" xlink:href="slot:20343"/>
- <accel:item accel:code="KEY_ADD" accel:mod1="true" xlink:href="slot:20615"/>
- <accel:item accel:code="KEY_DELETE" accel:mod1="true" xlink:href="slot:20929"/>
- <accel:item accel:code="KEY_BACKSPACE" accel:mod1="true" xlink:href="slot:20930"/>
- <accel:item accel:code="KEY_SPACE" accel:mod1="true" xlink:href="slot:20344"/>
- <accel:item accel:code="KEY_RETURN" accel:mod1="true" xlink:href="slot:20323"/>
- <accel:item accel:code="KEY_PAGEDOWN" accel:mod1="true" xlink:href="slot:20961"/>
- <accel:item accel:code="KEY_PAGEUP" accel:mod1="true" xlink:href="slot:20960"/>
- <accel:item accel:code="KEY_END" accel:mod1="true" xlink:href="slot:20908"/>
- <accel:item accel:code="KEY_HOME" accel:mod1="true" xlink:href="slot:20907"/>
- <accel:item accel:code="KEY_RIGHT" accel:mod1="true" xlink:href="slot:20921"/>
- <accel:item accel:code="KEY_LEFT" accel:mod1="true" xlink:href="slot:20922"/>
- <accel:item accel:code="KEY_F12" accel:mod1="true" xlink:href="slot:20330"/>
- <accel:item accel:code="KEY_F11" accel:mod1="true" xlink:href="slot:5573"/>
- <accel:item accel:code="KEY_F10" accel:mod1="true" xlink:href="slot:20224"/>
- <accel:item accel:code="KEY_F9" accel:mod1="true" xlink:href="slot:20226"/>
- <accel:item accel:code="KEY_F8" accel:mod1="true" xlink:href="slot:20225"/>
- <accel:item accel:code="KEY_F7" accel:mod1="true" xlink:href="slot:20603"/>
- <accel:item accel:code="KEY_F3" accel:mod1="true" xlink:href="slot:20620"/>
- <accel:item accel:code="KEY_F2" accel:mod1="true" xlink:href="slot:20308"/>
- <accel:item accel:code="KEY_Z" accel:mod1="true" xlink:href="slot:5701"/>
- <accel:item accel:code="KEY_Y" accel:mod1="true" xlink:href="slot:5700"/>
- <accel:item accel:code="KEY_U" accel:mod1="true" xlink:href="slot:10014"/>
- <accel:item accel:code="KEY_R" accel:mod1="true" xlink:href="slot:10029"/>
- <accel:item accel:code="KEY_L" accel:mod1="true" xlink:href="slot:10028"/>
- <accel:item accel:code="KEY_J" accel:mod1="true" xlink:href="slot:10031"/>
- <accel:item accel:code="KEY_I" accel:mod1="true" xlink:href="slot:10008"/>
- <accel:item accel:code="KEY_E" accel:mod1="true" xlink:href="slot:10030"/>
- <accel:item accel:code="KEY_D" accel:mod1="true" xlink:href="slot:20405"/>
- <accel:item accel:code="KEY_B" accel:mod1="true" xlink:href="slot:10009"/>
- <accel:item accel:code="KEY_5" accel:mod1="true" xlink:href="slot:10035"/>
- <accel:item accel:code="KEY_2" accel:mod1="true" xlink:href="slot:10036"/>
- <accel:item accel:code="KEY_1" accel:mod1="true" xlink:href="slot:10034"/>
- <accel:item accel:code="KEY_BACKSPACE" accel:shift="true" xlink:href="slot:20942"/>
- <accel:item accel:code="KEY_RETURN" accel:shift="true" xlink:href="slot:20318"/>
- <accel:item accel:code="KEY_PAGEDOWN" accel:shift="true" xlink:href="slot:20830"/>
- <accel:item accel:code="KEY_PAGEUP" accel:shift="true" xlink:href="slot:20829"/>
- <accel:item accel:code="KEY_END" accel:shift="true" xlink:href="slot:20806"/>
- <accel:item accel:code="KEY_HOME" accel:shift="true" xlink:href="slot:20805"/>
- <accel:item accel:code="KEY_RIGHT" accel:shift="true" xlink:href="slot:20802"/>
- <accel:item accel:code="KEY_LEFT" accel:shift="true" xlink:href="slot:20801"/>
- <accel:item accel:code="KEY_UP" accel:shift="true" xlink:href="slot:20803"/>
- <accel:item accel:code="KEY_DOWN" accel:shift="true" xlink:href="slot:20804"/>
- <accel:item accel:code="KEY_F12" accel:shift="true" xlink:href="slot:20138"/>
- <accel:item accel:code="KEY_F11" accel:shift="true" xlink:href="slot:5555"/>
- <accel:item accel:code="KEY_F9" accel:shift="true" xlink:href="slot:20129"/>
- <accel:item accel:code="KEY_F8" accel:shift="true" xlink:href="slot:20939"/>
- <accel:item accel:code="KEY_F5" accel:shift="true" xlink:href="slot:20958"/>
- <accel:item accel:code="KEY_REPEAT" xlink:href="slot:5702"/>
- <accel:item accel:code="KEY_UNDO" xlink:href="slot:5701"/>
- <accel:item accel:code="KEY_INSERT" xlink:href="slot:10221"/>
- <accel:item accel:code="KEY_BACKSPACE" xlink:href="slot:20926"/>
- <accel:item accel:code="KEY_ESCAPE" xlink:href="slot:20941"/>
- <accel:item accel:code="KEY_RETURN" xlink:href="slot:20303"/>
- <accel:item accel:code="KEY_PAGEDOWN" xlink:href="slot:20938"/>
- <accel:item accel:code="KEY_PAGEUP" xlink:href="slot:20937"/>
- <accel:item accel:code="KEY_END" xlink:href="slot:20906"/>
- <accel:item accel:code="KEY_HOME" xlink:href="slot:20905"/>
- <accel:item accel:code="KEY_RIGHT" xlink:href="slot:20902"/>
- <accel:item accel:code="KEY_LEFT" xlink:href="slot:20901"/>
- <accel:item accel:code="KEY_UP" xlink:href="slot:20903"/>
- <accel:item accel:code="KEY_DOWN" xlink:href="slot:20904"/>
- <accel:item accel:code="KEY_F12" xlink:href="slot:20144"/>
- <accel:item accel:code="KEY_F11" xlink:href="slot:5539"/>
- <accel:item accel:code="KEY_F9" xlink:href="slot:20126"/>
- <accel:item accel:code="KEY_F8" xlink:href="slot:20940"/>
- <accel:item accel:code="KEY_F7" xlink:href="slot:20622"/>
- <accel:item accel:code="KEY_F5" xlink:href="slot:10366"/>
- <accel:item accel:code="KEY_F3" xlink:href="slot:20628"/>
- <accel:item accel:code="KEY_F2" xlink:href="slot:20128"/>
- <accel:item accel:code="KEY_BACKSPACE" accel:mod2="true" xlink:href="slot:5701"/>
- <accel:item accel:code="KEY_UP" accel:mod1="true" accel:mod2="true" xlink:href="slot:20134"/>
- <accel:item accel:code="KEY_DOWN" accel:mod1="true" accel:mod2="true" xlink:href="slot:20135"/>
- <accel:item accel:code="KEY_SUBTRACT" accel:shift="true" accel:mod1="true" xlink:href="slot:20385"/>
-</accel:acceleratorlist> \ No newline at end of file
diff --git a/scripting/workben/bindings/writermenubar.xml b/scripting/workben/bindings/writermenubar.xml
deleted file mode 100644
index ef813de6bfc2..000000000000
--- a/scripting/workben/bindings/writermenubar.xml
+++ /dev/null
@@ -1,298 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE menu:menubar PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "menubar.dtd">
-<!--
- * 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 .
- -->
-<menu:menubar xmlns:menu="http://openoffice.org/2001/menu" menu:id="menubar">
- <menu:menu menu:id="slot:5510" menu:label="~File">
- <menu:menupopup>
- <menu:menuitem menu:id="slot:5537" menu:helpid="5537" menu:label="~New"/>
- <menu:menuitem menu:id="slot:5501" menu:helpid="5501" menu:label="~Open..."/>
- <menu:menuitem menu:id="slot:6381" menu:helpid="6381" menu:label="A~utoPilot"/>
- <menu:menuseparator/>
- <menu:menuitem menu:id="slot:5503" menu:helpid="5503" menu:label="~Close"/>
- <menu:menuitem menu:id="slot:5505" menu:helpid="5505" menu:label="~Save"/>
- <menu:menuitem menu:id="slot:5502" menu:helpid="5502" menu:label="Save ~As..."/>
- <menu:menuitem menu:id="slot:5309" menu:helpid="5309" menu:label="Sa~ve All"/>
- <menu:menuitem menu:id="slot:5508" menu:helpid="5508" menu:label="Re~load"/>
- <menu:menuseparator/>
- <menu:menuitem menu:id="slot:6583" menu:helpid="6583" menu:label="V~ersions..."/>
- <menu:menuseparator/>
- <menu:menuitem menu:id="slot:5829" menu:helpid="5829" menu:label="Expor~t..."/>
- <menu:menuitem menu:id="slot:6673" menu:helpid="6673" menu:label="Expor~t as PDF..."/>
- <menu:menu menu:id="slot:1" menu:label="Sen~d">
- <menu:menupopup>
- <menu:menuitem menu:id="slot:5331" menu:helpid="5331" menu:label="Document as ~E-mail..."/>
- <menu:menuitem menu:id="slot:6672" menu:helpid="6672" menu:label="Document as P~DF Attachment..."/>
- <menu:menuseparator/>
- <menu:menuitem menu:id="slot:20004" menu:helpid="20004" menu:label="Create Master ~Document"/>
- <menu:menuitem menu:id="slot:20040" menu:helpid="20040" menu:label="Create ~HTML Document"/>
- <menu:menuseparator/>
- <menu:menuitem menu:id="slot:20036" menu:helpid="20036" menu:label="Outline to ~Presentation"/>
- <menu:menuitem menu:id="slot:20037" menu:helpid="20037" menu:label="Outline to ~Clipboard"/>
- <menu:menuseparator/>
- <menu:menuitem menu:id="slot:21612" menu:helpid="21612" menu:label="Create A~utoAbstract..."/>
- <menu:menuitem menu:id="slot:21613" menu:helpid="21613" menu:label="AutoAbst~ract to Presentation..."/>
- </menu:menupopup>
- </menu:menu>
- <menu:menuseparator/>
- <menu:menuitem menu:id="slot:5535" menu:helpid="5535" menu:label="Propert~ies..."/>
- <menu:menu menu:id="slot:2" menu:label="~Templates">
- <menu:menupopup>
- <menu:menuitem menu:id="slot:5540" menu:helpid="5540" menu:label="~Organize..."/>
- <menu:menuitem menu:id="slot:6655" menu:helpid="6655" menu:label="~Address Book Source..."/>
- <menu:menuitem menu:id="slot:5538" menu:helpid="5538" menu:label="~Save..."/>
- <menu:menuitem menu:id="slot:5594" menu:helpid="5594" menu:label="~Edit..."/>
- </menu:menupopup>
- </menu:menu>
- <menu:menuseparator/>
- <menu:menuitem menu:id="slot:5325" menu:helpid="5325" menu:label="Pa~ge Preview"/>
- <menu:menuitem menu:id="slot:5504" menu:helpid="5504" menu:label="~Print..."/>
- <menu:menuitem menu:id="slot:5302" menu:helpid="5302" menu:label="P~rinter Settings..."/>
- <menu:menuseparator/>
- <menu:menuitem menu:id="slot:5300" menu:helpid="5300" menu:label="E~xit"/>
- </menu:menupopup>
- </menu:menu>
- <menu:menu menu:id="slot:1" menu:label="~Edit">
- <menu:menupopup>
- <menu:menuitem menu:id="slot:5701" menu:helpid="5701" menu:label="Can&apos;t ~Undo"/>
- <menu:menuitem menu:id="slot:5700" menu:helpid="5700" menu:label="~Can&apos;t Restore"/>
- <menu:menuitem menu:id="slot:5702" menu:helpid="5702" menu:label="~Repeat"/>
- <menu:menuseparator/>
- <menu:menuitem menu:id="slot:5710" menu:helpid="5710" menu:label="Cu~t"/>
- <menu:menuitem menu:id="slot:5711" menu:helpid="5711" menu:label="~Copy"/>
- <menu:menuitem menu:id="slot:5712" menu:helpid="5712" menu:label="~Paste"/>
- <menu:menuitem menu:id="slot:20114" menu:helpid="20114" menu:label="Paste ~Special..."/>
- <menu:menuitem menu:id="slot:20989" menu:helpid="20989" menu:label="~Select Text"/>
- <menu:menuitem menu:id="slot:5723" menu:helpid="5723" menu:label="Select ~All"/>
- <menu:menuseparator/>
- <menu:menu menu:id="slot:1" menu:label="Chan~ges">
- <menu:menupopup>
- <menu:menuitem menu:id="slot:21825" menu:helpid="21825" menu:label="~Record"/>
- <menu:menuitem menu:id="slot:21823" menu:helpid="21823" menu:label="~Protect Records..."/>
- <menu:menuitem menu:id="slot:21826" menu:helpid="21826" menu:label="~Show"/>
- <menu:menuseparator/>
- <menu:menuitem menu:id="slot:21829" menu:helpid="21829" menu:label="~Accept or Reject..."/>
- <menu:menuitem menu:id="slot:21827" menu:helpid="21827" menu:label="~Comment..."/>
- <menu:menuitem menu:id="slot:21841" menu:helpid="21841" menu:label="~Next Change"/>
- <menu:menuitem menu:id="slot:21842" menu:helpid="21842" menu:label="Pr~evious Change"/>
- <menu:menuseparator/>
- <menu:menuitem menu:id="slot:6587" menu:helpid="6587" menu:label="~Merge Document..."/>
- </menu:menupopup>
- </menu:menu>
- <menu:menuitem menu:id="slot:6586" menu:helpid="6586" menu:label="Compar~e Document..."/>
- <menu:menuitem menu:id="slot:5961" menu:helpid="5961" menu:label="~Find &amp; Replace..."/>
- <menu:menuitem menu:id="slot:10366" menu:helpid="10366" menu:label="~Navigator"/>
- <menu:menuitem menu:id="slot:20620" menu:helpid="20620" menu:label="AutoTe~xt..."/>
- <menu:menuseparator/>
- <menu:menuitem menu:id="slot:20309" menu:helpid="20309" menu:label="Exc~hange Database..."/>
- <menu:menuitem menu:id="slot:20104" menu:helpid="20104" menu:label="F~ields..."/>
- <menu:menuitem menu:id="slot:20162" menu:helpid="20162" menu:label="Footnote~..."/>
- <menu:menuitem menu:id="slot:20123" menu:helpid="20123" menu:label="Index Entr~y..."/>
- <menu:menuitem menu:id="slot:21833" menu:helpid="21833" menu:label="~Bibliography Entry..."/>
- <menu:menuitem menu:id="slot:21835" menu:helpid="21835" menu:label="H~yperlink"/>
- <menu:menuseparator/>
- <menu:menuitem menu:id="slot:20109" menu:helpid="20109" menu:label="Lin~ks..."/>
- <menu:menuitem menu:id="slot:6314" menu:helpid="6314" menu:label="P~lug-in"/>
- <menu:menuitem menu:id="slot:10371" menu:helpid="10371" menu:label="I~mageMap"/>
- <menu:menuitem menu:id="slot:5575" menu:helpid="5575" menu:label="~Object"/>
- </menu:menupopup>
- </menu:menu>
- <menu:menu menu:id="slot:2" menu:label="~View">
- <menu:menupopup>
- <menu:menuitem menu:id="slot:10000" menu:helpid="10000" menu:label="~Zoom..."/>
- <menu:menuseparator/>
- <menu:menuitem menu:id="slot:6660" menu:helpid="6660" menu:label="~Data Sources"/>
- <menu:menuseparator/>
- <menu:menu menu:id="slot:1" menu:label="~Toolbars">
- <menu:menupopup>
- <menu:menuitem menu:id="slot:5910" menu:helpid="5910" menu:label="~Function Bar"/>
- <menu:menuitem menu:id="slot:5905" menu:helpid="5905" menu:label="~Object Bar"/>
- <menu:menuitem menu:id="slot:5909" menu:helpid="5909" menu:label="Main ~Toolbar"/>
- <menu:menuitem menu:id="slot:20128" menu:helpid="20128" menu:label="Fo~rmula Bar"/>
- <menu:menuseparator/>
- <menu:menuitem menu:id="slot:5908" menu:helpid="5908" menu:label="Customi~ze..."/>
- </menu:menupopup>
- </menu:menu>
- <menu:menuitem menu:id="slot:20211" menu:helpid="20211" menu:label="~Ruler"/>
- <menu:menuitem menu:id="slot:5920" menu:helpid="5920" menu:label="~Status Bar"/>
- <menu:menuitem menu:id="slot:6680" menu:helpid="6680" menu:label="~Input Method Status"/>
- <menu:menuseparator/>
- <menu:menuitem menu:id="slot:20214" menu:helpid="20214" menu:label="Te~xt Boundaries"/>
- <menu:menuitem menu:id="slot:20225" menu:helpid="20225" menu:label="Fie~ld Shadings"/>
- <menu:menuitem menu:id="slot:20226" menu:helpid="20226" menu:label="~Fields"/>
- <menu:menuitem menu:id="slot:20224" menu:helpid="20224" menu:label="~Non-printing Characters"/>
- <menu:menuitem menu:id="slot:20242" menu:helpid="20242" menu:label="~Hidden Paragraphs"/>
- <menu:menuseparator/>
- <menu:menuitem menu:id="slot:6313" menu:helpid="6313" menu:label="~Online Layout"/>
- <menu:menuitem menu:id="slot:5627" menu:helpid="5627" menu:label="F~ull Screen"/>
- </menu:menupopup>
- </menu:menu>
- <menu:menu menu:id="slot:3" menu:label="~Insert">
- <menu:menupopup>
- <menu:menuitem menu:id="slot:20304" menu:helpid="20304" menu:label="Manual ~Break..."/>
- <menu:menu menu:id="slot:1" menu:label="Fiel~ds">
- <menu:menupopup>
- <menu:menuitem menu:id="slot:20392" menu:helpid="20392" menu:label="~Date"/>
- <menu:menuitem menu:id="slot:20393" menu:helpid="20393" menu:label="~Time"/>
- <menu:menuitem menu:id="slot:20394" menu:helpid="20394" menu:label="~Page Number"/>
- <menu:menuitem menu:id="slot:20395" menu:helpid="20395" menu:label="Page ~Count"/>
- <menu:menuitem menu:id="slot:20396" menu:helpid="20396" menu:label="~Subject"/>
- <menu:menuitem menu:id="slot:20397" menu:helpid="20397" menu:label="~Title"/>
- <menu:menuitem menu:id="slot:20398" menu:helpid="20398" menu:label="~Author"/>
- <menu:menuseparator/>
- <menu:menuitem menu:id="slot:20308" menu:helpid="20308" menu:label="~Other..."/>
- </menu:menupopup>
- </menu:menu>
- <menu:menuitem menu:id="slot:20328" menu:helpid="20328" menu:label="S~pecial Character..."/>
- <menu:menuseparator/>
- <menu:menuitem menu:id="slot:20345" menu:helpid="20345" menu:label="~Section..."/>
- <menu:menuitem menu:id="slot:5678" menu:helpid="5678" menu:label="~Hyperlink"/>
- <menu:menuseparator/>
- <menu:menuitem menu:id="slot:21413" menu:helpid="21413" menu:label="He~ader"/>
- <menu:menuitem menu:id="slot:21414" menu:helpid="21414" menu:label="Foote~r"/>
- <menu:menuitem menu:id="slot:20312" menu:helpid="20312" menu:label="Footnote~..."/>
- <menu:menuitem menu:id="slot:20310" menu:helpid="20310" menu:label="Captio~n..."/>
- <menu:menuitem menu:id="slot:20302" menu:helpid="20302" menu:label="Bookmar~k..."/>
- <menu:menuitem menu:id="slot:20313" menu:helpid="20313" menu:label="~Cross-reference..."/>
- <menu:menuitem menu:id="slot:20329" menu:helpid="20329" menu:label="Not~e..."/>
- <menu:menuitem menu:id="slot:21410" menu:helpid="21410" menu:label="S~cript..."/>
- <menu:menu menu:id="slot:2" menu:label="Inde~xes and Tables">
- <menu:menupopup>
- <menu:menuitem menu:id="slot:20335" menu:helpid="20335" menu:label="~Entry..."/>
- <menu:menuitem menu:id="slot:21420" menu:helpid="21420" menu:label="~Indexes and Tables..."/>
- <menu:menuitem menu:id="slot:21421" menu:helpid="21421" menu:label="~Bibliography Entry..."/>
- </menu:menupopup>
- </menu:menu>
- <menu:menuseparator/>
- <menu:menuitem menu:id="slot:21050" menu:helpid="21050" menu:label="En~velope..."/>
- <menu:menuseparator/>
- <menu:menuitem menu:id="slot:20334" menu:helpid="20334" menu:label="Fra~me..."/>
- <menu:menuitem menu:id="slot:20330" menu:helpid="20330" menu:label="~Table..."/>
- <menu:menuitem menu:id="slot:21411" menu:helpid="21411" menu:label="Hori~zontal Ruler..."/>
- <menu:menu menu:id="slot:3" menu:label="~Graphics">
- <menu:menupopup>
- <menu:menuitem menu:id="slot:10241" menu:helpid="10241" menu:label="From ~File..."/>
- <menu:menu menu:id="slot:1" menu:label="Scan">
- <menu:menupopup>
- <menu:menuitem menu:id="slot:10331" menu:helpid="10331" menu:label="~Select Source..."/>
- <menu:menuitem menu:id="slot:10332" menu:helpid="10332" menu:label="~Request..."/>
- </menu:menupopup>
- </menu:menu>
- </menu:menupopup>
- </menu:menu>
- <menu:menu menu:id="slot:4" menu:label="~Object">
- <menu:menupopup>
- <menu:menuitem menu:id="slot:5561" menu:helpid="5561" menu:label="~OLE Object..."/>
- <menu:menuitem menu:id="slot:5672" menu:helpid="5672" menu:label="~Plug-in..."/>
- <menu:menuitem menu:id="slot:5676" menu:helpid="5676" menu:label="~Sound..."/>
- <menu:menuitem menu:id="slot:5677" menu:helpid="5677" menu:label="~Video..."/>
- <menu:menuitem menu:id="slot:5673" menu:helpid="5673" menu:label="~Applet..."/>
- <menu:menuitem menu:id="slot:20369" menu:helpid="20369" menu:label="~Formula"/>
- <menu:menuitem menu:id="slot:10140" menu:helpid="10140" menu:label="~Chart..."/>
- </menu:menupopup>
- </menu:menu>
- <menu:menuitem menu:id="slot:5563" menu:helpid="5563" menu:label="Float~ing Frame"/>
- <menu:menuseparator/>
- <menu:menuitem menu:id="slot:5532" menu:helpid="5532" menu:label="~File..."/>
- </menu:menupopup>
- </menu:menu>
- <menu:menu menu:id="slot:5780" menu:label="F~ormat">
- <menu:menupopup/>
- </menu:menu>
- <menu:menu menu:id="slot:6677" menu:label="~Tools">
- <menu:menupopup>
- <menu:menu menu:id="slot:1" menu:label="~Spellcheck">
- <menu:menupopup>
- <menu:menuitem menu:id="slot:20622" menu:helpid="20622" menu:label="~Check..."/>
- <menu:menuitem menu:id="slot:12021" menu:helpid="12021" menu:label="~AutoSpellcheck"/>
- </menu:menupopup>
- </menu:menu>
- <menu:menuitem menu:id="slot:10959" menu:helpid="10959" menu:label="Hangul/Han~ja Conversion"/>
- <menu:menuitem menu:id="slot:20603" menu:helpid="20603" menu:label="~Thesaurus..."/>
- <menu:menuitem menu:id="slot:20605" menu:helpid="20605" menu:label="~Hyphenation..."/>
- <menu:menuseparator/>
- <menu:menuitem menu:id="slot:10424" menu:helpid="10424" menu:label="~AutoCorrect/AutoFormat..."/>
- <menu:menuseparator/>
- <menu:menuitem menu:id="slot:20612" menu:helpid="20612" menu:label="Outline ~Numbering..."/>
- <menu:menuitem menu:id="slot:20602" menu:helpid="20602" menu:label="~Line Numbering..."/>
- <menu:menuitem menu:id="slot:20468" menu:helpid="20468" menu:label="~Footnotes..."/>
- <menu:menuseparator/>
- <menu:menuitem menu:id="slot:5960" menu:helpid="5960" menu:label="~Gallery"/>
- <menu:menuseparator/>
- <menu:menuitem menu:id="slot:10880" menu:helpid="10880" menu:label="~Bibliography Database"/>
- <menu:menuitem menu:id="slot:10882" menu:helpid="10882" menu:label="~Data Sources..."/>
- <menu:menuseparator/>
- <menu:menuitem menu:id="slot:20364" menu:helpid="20364" menu:label="~Mail Merge..."/>
- <menu:menuseparator/>
- <menu:menuitem menu:id="slot:20500" menu:helpid="20500" menu:label="Te~xt &lt;-&gt; Table..."/>
- <menu:menuitem menu:id="slot:20614" menu:helpid="20614" menu:label="So~rt..."/>
- <menu:menuitem menu:id="slot:20615" menu:helpid="20615" menu:label="Calculat~e"/>
- <menu:menu menu:id="slot:2" menu:label="~Update">
- <menu:menupopup>
- <menu:menuitem menu:id="slot:21828" menu:helpid="21828" menu:label="~Update All"/>
- <menu:menuseparator/>
- <menu:menuitem menu:id="slot:20126" menu:helpid="20126" menu:label="~Fields"/>
- <menu:menuitem menu:id="slot:21824" menu:helpid="21824" menu:label="~Links"/>
- <menu:menuitem menu:id="slot:21834" menu:helpid="21834" menu:label="All ~Charts"/>
- <menu:menuitem menu:id="slot:20654" menu:helpid="20654" menu:label="Current ~Index"/>
- <menu:menuitem menu:id="slot:20653" menu:helpid="20653" menu:label="~All Indexes and Tables"/>
- <menu:menuitem menu:id="slot:20161" menu:helpid="20161" menu:label="Page Formatting"/>
- </menu:menupopup>
- </menu:menu>
- <menu:menuseparator/>
- <menu:menu menu:id="slot:3" menu:label="~Macros">
- <menu:menupopup>
- <menu:menuitem menu:id="slot:6669" menu:helpid="6669" menu:label="Record Macro"/>
- <menu:menuitem menu:id="slot:5959" menu:helpid="5959" menu:label="~Macro..."/>
- </menu:menupopup>
- </menu:menu>
- <menu:menuitem menu:id="slot:10958" menu:helpid="10958" menu:label="~XML Filter Settings..."/>
- <menu:menuitem menu:id="slot:5904" menu:helpid="5904" menu:label="~Configure..."/>
- <menu:menu menu:id="slot:4" menu:label="Scripting Add-ons">
- <menu:menupopup>
- <menu:menuitem menu:id="macro:///ScriptBindingLibrary.ScriptBinding.ExecuteMenuBinding()" menu:label="Assign Script to ~Menu..."/>
- <menu:menuitem menu:id="macro:///ScriptBindingLibrary.ScriptBinding.ExecuteKeyBinding" menu:label="Assign Script to ~Key..."/>
- <menu:menuitem menu:id="macro:///ScriptBindingLibrary.ScriptBinding.ExecuteEventBinding()" menu:label="Assign Script to ~Event..."/>
- <menu:menuitem menu:id="macro:///ScriptBindingLibrary.ScriptBinding.ExecuteEditDebug" menu:label="Edit/De~bug Scripts..."/>
- <menu:menuitem menu:id="macro:///ScriptBindingLibrary.ScriptBinding.RefreshAllScripts()" menu:label="~Refresh All Scripts"/>
- </menu:menupopup>
- </menu:menu>
- <menu:menuitem menu:id="slot:31630" menu:helpid="31630" menu:label="~Options..."/>
- </menu:menupopup>
- </menu:menu>
- <menu:menu menu:id="slot:5610" menu:label="~Window">
- <menu:menupopup>
- <menu:menuitem menu:id="slot:5620" menu:helpid="5620" menu:label="~New Window"/>
- <menu:menuitem menu:id="slot:5621" menu:helpid="5621" menu:label="~Close Window"/>
- <menu:menuseparator/>
- </menu:menupopup>
- </menu:menu>
- <menu:menu menu:id="slot:5410" menu:label="~Help">
- <menu:menupopup>
- <menu:menuitem menu:id="slot:5401" menu:helpid="5401" menu:label="~Contents"/>
- <menu:menuseparator/>
- <menu:menuitem menu:id="slot:5962" menu:helpid="5962" menu:label="Help ~Agent"/>
- <menu:menuitem menu:id="slot:5404" menu:helpid="5404" menu:label="~Tips"/>
- <menu:menuitem menu:id="slot:5403" menu:helpid="5403" menu:label="~Extended Tips"/>
- <menu:menuseparator/>
- <menu:menuitem menu:id="slot:6683" menu:helpid="6683" menu:label="~Support"/>
- <menu:menuseparator/>
- <menu:menuitem menu:id="slot:5301" menu:helpid="5301" menu:label="A~bout OpenOffice.org..."/>
- </menu:menupopup>
- </menu:menu>
-</menu:menubar>
diff --git a/scripting/workben/build.xml b/scripting/workben/build.xml
deleted file mode 100644
index 87f2c2f0839e..000000000000
--- a/scripting/workben/build.xml
+++ /dev/null
@@ -1,387 +0,0 @@
-<!--
- * 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 .
--->
-<project name="Scripting Framework Installer" default="jar" basedir=".">
-
- <!-- =================== Environmental Properties ======================= -->
-
- <property name="prj" value=".."/>
- <property file="${prj}/java/build.env"/>
- <property name="optimize" value="on"/>
- <property name="debug" value="on"/>
- <property name="installerclasses" value="${out}/class/sframeworkinstall"/>
- <property name="jardir" value="${out}/class"/>
- <property name="bindir" value="${out}/bin"/>
- <property name="sfversion" value="0.3"/>
- <property name="installerjarname" value="SFrameworkInstall.jar"/>
- <property environment="env"/>
-
- <!-- ==================== classpath setting ============================ -->
- <path id="idlclasspath">
- <pathelement location="${solar.jar}/unoil.jar"/>
- <!-- <pathelement location="${prj}/../unoil/${inpath}/class/unoil.jar"/> -->
- <pathelement location="${solar.jar}/jurt.jar"/>
- <pathelement location="${solar.jar}/juh.jar"/>
- <pathelement location="${solar.jar}/java_uno.jar"/>
- <pathelement location="${solar.jar}/ridl.jar"/>
- </path>
- <path id="scriptexampleclasspath">
- <pathelement location="${solar.jar}/unoil.jar"/>
- <!-- pathelement location="${prj}/../unoil/${inpath}/class/unoil.jar"/ -->
- <pathelement location="${solar.jar}/jurt.jar"/>
- <pathelement location="${solar.jar}/juh.jar"/>
- <pathelement location="${solar.jar}/java_uno.jar"/>
- <pathelement location="${solar.jar}/ridl.jar"/>
- <pathelement location="${out}/class/ScriptRuntimeForJava.jar"/>
- </path>
-
- <path id="debuggerclasspath">
- <pathelement location="${out}/class/ScriptRuntimeForJava.jar"/>
- <pathelement location="${solar.jar}/ridl.jar"/>
- <pathelement location="${solar.jar}/unoil.jar"/>
- <pathelement location="${out}/class/jsruntime/skip_registration/js.jar"/>
- <pathelement location="${install.dir}/bsh-1.2b7.jar"/>
- </path>
- <!-- ===================== Set up build conditionals ========================= -->
- <target name="product.test">
- <condition property="noproext">
- <equals arg1="$${env.PROEXT}" arg2="${env.PROEXT}"/>
- </condition>
- </target>
- <target name="nonproduct.set" if="noproext">
- <echo message="non-product build"/>
- <property name="proext" value=""/>
- </target>
- <target name="product.set" unless="noproext">
- <echo message="product build"/>
- <property name="proext" value="${env.PROEXT}"/>
- </target>
- <target name="build.conditions" depends="product.test,nonproduct.set,product.set">
- <condition property="win9.build">
- <available file="${prj}/wntmsci9${proext}"/>
- </condition>
- <condition property="win8.build">
- <available file="${prj}/wntmsci8${proext}"/>
- </condition>
- <condition property="win7.build">
- <available file="${prj}/wntmsci7${proext}"/>
- </condition>
- <condition property="linx86.build">
- <available file="${prj}/unxlngi5${proext}"/>
- </condition>
- <condition property="solsparc.build">
- <available file="${prj}/unxsols4${proext}"/>
- </condition>
- <!-- <condition property="openoffice.build">
- </condition> -->
- </target>
- <!-- ===================== Build the examples ========================= -->
- <target name="buildexamples">
-
- <mkdir dir="${out}/class/examples/java/debugger"/>
- <javac srcdir="${prj}/examples/java/debugger"
- destdir="${out}/class/examples/java/debugger"
- includes="*.java"
- classpathref="debuggerclasspath"
- debug="${debug}" optimize="${optimize}" deprecation="on"/>
-
- <copy todir="${out}/class/examples/java/debugger">
- <fileset dir="${prj}/examples/java/debugger">
- <include name="**/*.java"/>
- <include name="*.xml"/>
- </fileset>
- </copy>
-
- <jar jarfile="${out}/class/examples/java/debugger/debugger.jar"
- basedir="${out}/class/examples/java/debugger" includes="*.class">
- <manifest>
- <attribute name="Built-By" value="Sun Microsystems"/>
- <attribute name="ScriptFramework-Version" value="${sfversion}"/>
- </manifest>
- </jar>
-
- <delete>
- <fileset dir="${out}/class/examples/java/debugger" includes="*.class"/>
- </delete>
-
- <mkdir dir="${out}/class/examples/java/Highlight"/>
- <javac srcdir="${prj}/examples/java/" destdir="${out}/class/examples/java/Highlight/"
- includes="**/Highlight*.java" classpathref="idlclasspath"
- debug="${debug}" optimize="${optimize}" deprecation="on"/>
- <copy todir="${out}/class/examples/java/Highlight/">
- <fileset dir="${prj}/examples/java/">
- <include name="**/Highlight*.java"/>
- </fileset>
- </copy>
- <copy file="${prj}/examples/java/HighlightTextParcel.xml" tofile="${out}/class/examples/java/Highlight/parcel-descriptor.xml"/>
- <jar jarfile="${out}/class/examples/java/Highlight/Highlight.jar"
- basedir="${out}/class/examples/java/Highlight"
- includes="**/*.java,**/*.class,**/*.xml"
- excludes="${out}/class/examples/java/Highlight/Highlight.jar">
- <manifest>
- <attribute name="Built-By" value="Sun Microsystems"/>
- <attribute name="ScriptFramework-Version" value="${sfversion}"/>
- </manifest>
- </jar>
- <mkdir dir="${out}/class/examples/java/MemoryUsage"/>
- <javac srcdir="${prj}/examples/java/" destdir="${out}/class/examples/java/MemoryUsage/"
- includes="**/MemoryUsage.java" classpathref="idlclasspath"
- debug="${debug}" optimize="${optimize}" deprecation="on"/>
- <copy file="${prj}/examples/java/MemoryUsage.java" todir="${out}/class/examples/java/MemoryUsage/"/>
- <copy file="${prj}/examples/java/MemoryUsageParcel.xml" tofile="${out}/class/examples/java/MemoryUsage/parcel-descriptor.xml"/>
- <copy file="${prj}/examples/java/MemoryUsage.java" todir="${out}/class/examples/java/MemoryUsage/"/>
- <copy file="${prj}/examples/java/ExampleSpreadSheet.sxc" todir="${out}/class/examples/java/MemoryUsage/"/>
-
- <mkdir dir="${out}/class/examples/java/ScriptFrmwrkHelper"/>
- <javac srcdir="${prj}/examples/java/" destdir="${out}/class/examples/java/ScriptFrmwrkHelper/"
- includes="**/ScriptFrmwrkHelper.java" classpathref="scriptexampleclasspath"
- debug="${debug}" optimize="${optimize}" deprecation="on"/>
- <copy todir="${out}/class/examples/java/ScriptFrmwrkHelper/">
- <fileset dir="${prj}/examples/java/">
- <include name="**/ScriptFrmwrkHelper.java"/>
- </fileset>
- </copy>
- <copy file="${prj}/examples/java/ScriptFrameWkHelperParcel.xml" tofile="${out}/class/examples/java/ScriptFrmwrkHelper/parcel-descriptor.xml"/>
- <jar jarfile="${out}/class/examples/java/ScriptFrmwrkHelper/ScriptFrmwrkHelper.jar"
- basedir="${out}/class/examples/java/ScriptFrmwrkHelper"
- includes="**/*.java,**/*.class,**/*.xml"
- excludes="${out}/class/examples/java/ScriptFrmwrkHelper/ScriptFrmwrkHelper.jar">
- <manifest>
- <attribute name="Built-By" value="Sun Microsystems"/>
- <attribute name="ScriptFramework-Version" value="${sfversion}"/>
- </manifest>
- </jar>
- <mkdir dir="${out}/class/examples/beanshell"/>
- <copy todir="${out}/class/examples/beanshell">
- <fileset dir="${prj}/examples/beanshell" includes="**"/>
- </copy>
- <mkdir dir="${out}/class/examples/javascript"/>
- <copy todir="${out}/class/examples/javascript">
- <fileset dir="${prj}/examples/javascript" includes="**"/>
- </copy>
- </target>
-
- <!-- ===================== Build UNO package ========================= -->
- <target name="buildunopackage_win9" depends="build.conditions" if="win9.build">
- <mkdir dir="${out}/class/sframeworkinstall/sframework"/>
- <mkdir dir="${out}/class/sframework"/>
- <copy file="${solar.bin}/ScriptFramework.rdb"
- todir="${out}/class/sframework/"/>
- <copy file="${out}/class/ScriptRuntimeForJava.jar"
- todir="${out}/class/sframework/"/>
- <copy file="${out}/class/ScriptFramework.jar"
- todir="${out}/class/sframework/"/>
- <mkdir dir="${out}/class/sframework/windows.plt"/>
- <copy todir="${out}/class/sframework/windows.plt">
- <fileset dir="${prj}/wntmsci9${proext}/bin/">
- <include name="**/*.dll"/>
- </fileset>
- </copy>
- <mkdir dir="${out}/class/sframework/skip_registration"/>
- <copy file="${solar.jar}/unoil.jar"
- todir="${out}/class/sframework/skip_registration"/>
- </target>
- <target name="buildunopackage_win8" depends="build.conditions" if="win8.build">
- <mkdir dir="${out}/class/sframeworkinstall/sframework"/>
- <mkdir dir="${out}/class/sframework"/>
- <copy file="${solar.bin}/ScriptFramework.rdb"
- todir="${out}/class/sframework/"/>
- <copy file="${out}/class/ScriptRuntimeForJava.jar"
- todir="${out}/class/sframework/"/>
- <copy file="${out}/class/ScriptFramework.jar"
- todir="${out}/class/sframework/"/>
- <mkdir dir="${out}/class/sframework/windows.plt"/>
- <copy todir="${out}/class/sframework/windows.plt">
- <fileset dir="${prj}/wntmsci8${proext}/bin/">
- <include name="**/*.dll"/>
- </fileset>
- </copy>
- <mkdir dir="${out}/class/sframework/skip_registration"/>
- <copy file="${solar.jar}/unoil.jar"
- todir="${out}/class/sframework/skip_registration"/>
- </target>
-<!-- <target name="buildunopackage_win7" depends="build.conditions" if="win7.build">
- <mkdir dir="${out}/class/sframeworkinstall/sframework"/>
- <mkdir dir="${out}/class/sframework"/>
- <copy file="${solar.bin}/ScriptFramework.rdb"
- todir="${out}/class/sframework/"/>
- <copy file="${out}/class/ScriptRuntimeForJava.jar"
- todir="${out}/class/sframework/"/>
- <copy file="${out}/class/ScriptFramework.jar"
- todir="${out}/class/sframework/"/>
- <mkdir dir="${out}/class/sframework/windows.plt"/>
- <copy todir="${out}/class/sframework/windows.plt">
- <fileset dir="${prj}/wntmsci7${proext}/bin/">
- <include name="**/*.dll"/>
- </fileset>
- </copy>
- <mkdir dir="${out}/class/sframework/skip_registration"/>
- <copy file="${solar.jar}/unoil.jar"
- todir="${out}/class/sframework/skip_registration"/>
- </target> -->
- <target name="buildunopackage_linux" depends="build.conditions" if="linx86.build">
- <mkdir dir="${out}/class/sframeworkinstall/sframework"/>
- <mkdir dir="${out}/class/sframework"/>
- <copy file="${solar.bin}/ScriptFramework.rdb"
- todir="${out}/class/sframework/"/>
- <copy file="${out}/class/ScriptRuntimeForJava.jar"
- todir="${out}/class/sframework/"/>
- <copy file="${out}/class/ScriptFramework.jar"
- todir="${out}/class/sframework/"/>
- <mkdir dir="${out}/class/sframework/linux_x86.plt"/>
- <copy todir="${out}/class/sframework/linux_x86.plt">
- <fileset dir="${prj}/unxlngi5${proext}/lib/">
- <include name="**/lib*.so"/>
- </fileset>
- </copy>
- <mkdir dir="${out}/class/sframework/skip_registration"/>
- <copy file="${solar.jar}/unoil.jar"
- todir="${out}/class/sframework/skip_registration"/>
- </target>
- <target name="buildunopackage_solaris" depends="build.conditions" if="solsparc.build">
- <mkdir dir="${out}/class/sframeworkinstall/sframework"/>
- <mkdir dir="${out}/class/sframework"/>
- <copy file="${solar.bin}/ScriptFramework.rdb"
- todir="${out}/class/sframework/"/>
- <copy file="${out}/class/ScriptRuntimeForJava.jar"
- todir="${out}/class/sframework/"/>
- <copy file="${out}/class/ScriptFramework.jar"
- todir="${out}/class/sframework/"/>
- <mkdir dir="${out}/class/sframework/solaris_sparc.plt"/>
- <copy todir="${out}/class/sframework/solaris_sparc.plt">
- <fileset dir="${prj}/unxsols4${proext}/lib/">
- <include name="**/lib*.so"/>
- </fileset>
- </copy>
- <mkdir dir="${out}/class/sframework/skip_registration"/>
- <copy file="${solar.jar}/unoil.jar"
- todir="${out}/class/sframework/skip_registration"/>
- </target>
- <target name="buildunopackage" depends="buildunopackage_win8,buildunopackage_linux,buildunopackage_solaris">
- <!-- <target name="buildunopackage" depends="buildunopackage_win9,buildunopackage_win7,buildunopackage_linux,buildunopackage_solaris"> -->
- <copy file="installer/ProtocolHandler.xcu"
- todir="${out}/class/sframework/"/>
- <zip zipfile="${out}/class/sframeworkinstall/sframework/ooscriptframe.zip"
- basedir="${out}/class/sframework">
- </zip>
- </target>
-
- <!-- ================== Build JavaScript UNO package ===================== -->
- <target name="buildjsuno">
- <mkdir dir="${out}/class/sframeworkinstall/sframework"/>
-
- <mkdir dir="${out}/class/jsruntime"/>
- <mkdir dir="${out}/class/jsruntime/skip_registration"/>
- <mkdir dir="${out}/class/jsruntimetmp"/>
-
- <copy file="${out}/class/ScriptRuntimeForJavaScript.jar"
- todir="${out}/class/jsruntime/"/>
- <copy file="installer/Scripting.JavaScript.xcu"
- tofile="${out}/class/jsruntime/Scripting.xcu"/>
-
- <unzip src="${install.dir}/js.jar"
- dest="${out}/class/jsruntimetmp"/>
-
- <javac srcdir="${prj}/examples/java/debugger"
- destdir="${out}/class/jsruntimetmp"
- includes="rhino/Main.java" classpathref="debuggerclasspath"
- debug="${debug}" optimize="${optimize}" deprecation="on"/>
-
- <zip destfile="${out}/class/jsruntime/skip_registration/js.jar"
- basedir="${out}/class/jsruntimetmp" includes="**"/>
-
- <zip zipfile="${out}/class/sframeworkinstall/sframework/jsruntime.zip"
- basedir="${out}/class/jsruntime">
- </zip>
- </target>
-
- <!-- =================== Build BeanShell UNO package ===================== -->
- <target name="buildbshuno">
- <mkdir dir="${out}/class/bshruntime"/>
- <copy file="${out}/class/ScriptRuntimeForBeanShell.jar"
- todir="${out}/class/bshruntime/"/>
- <copy file="installer/Scripting.BeanShell.xcu"
- tofile="${out}/class/bshruntime/Scripting.xcu"/>
- <mkdir dir="${out}/class/bshruntime/skip_registration"/>
- <copy file="${install.dir}/bsh-1.2b7.jar"
- todir="${out}/class/bshruntime/skip_registration"/>
- <zip zipfile="${out}/class/sframeworkinstall/sframework/bshruntime.zip"
- basedir="${out}/class/bshruntime">
- </zip>
- </target>
-
- <!-- ========= Package schema, scripts, dialogs & examples =========== -->
- <target name="packagedialogsandexamples" depends="buildexamples">
- <mkdir dir="${out}/class/sframeworkinstall/schema"/>
- <copy file="installer/Scripting.xcs"
- todir="${out}/class/sframeworkinstall/schema/"/>
- <mkdir dir="${out}/class/sframeworkinstall/bindingdialog"/>
- <copy todir="${out}/class/sframeworkinstall/bindingdialog">
- <fileset dir="bindings/">
- <include name="**/*.x*"/>
- </fileset>
- </copy>
- <mkdir dir="${out}/class/sframeworkinstall/examples"/>
- <copy todir="${out}/class/sframeworkinstall/examples">
- <fileset dir="${out}/class/examples/"/>
- </copy>
- </target>
-
- <!-- ===================== Package IDEs ================================== -->
- <target name="packageide">
- <mkdir dir="${out}/class/sframeworkinstall/ide"/>
- <copy todir="${out}/class/sframeworkinstall/ide">
- <fileset dir="${out}/class/">
- <include name="idesupport.jar"/>
- <include name="office.jar"/>
- </fileset>
- </copy>
- </target>
-
- <!-- ======================== Compile Classes ========================== -->
- <target name="compileinstaller">
- <mkdir dir="${installerclasses}"/>
- <javac srcdir="installer/" destdir="${installerclasses}"
- includes="**/*.java" classpathref="idlclasspath"
- debug="${debug}" optimize="${optimize}" deprecation="on"/>
- <copy file="installer/sidebar.jpg" todir="${out}/class/sframeworkinstall/installer"/>
- </target>
-
- <!-- ===================== jar ========================= -->
- <target name="jar" depends="buildunopackage,buildbshuno,buildjsuno,compileinstaller,packagedialogsandexamples,packageide">
- <jar jarfile="${jardir}/${installerjarname}"
- basedir="${installerclasses}">
- <manifest>
- <attribute name="Built-By" value="Sun Microsystems"/>
- <attribute name="ScriptFramework-Version" value="${sfversion}"/>
- <attribute name="Main-Class" value="installer.InstallWizard"/>
- </manifest>
- </jar>
- </target>
-
- <!-- ====================== Clean Generated Files ===================== -->
- <target name="clean">
- <delete dir="${scriptingclasses}"/>
- <delete dir="${storageclasses}"/>
- <delete dir="${jardir}/${scriptingjarname}"/>
- </target>
-
- <!-- ========================= All In One Build ======================= -->
- <target name="all" depends="clean,jar"/>
-
-
-</project>
diff --git a/scripting/workben/data/ExampleSpreadSheetLatest.sxc b/scripting/workben/data/ExampleSpreadSheetLatest.sxc
deleted file mode 100644
index 7be6c0d4be05..000000000000
--- a/scripting/workben/data/ExampleSpreadSheetLatest.sxc
+++ /dev/null
Binary files differ
diff --git a/scripting/workben/data/doc_with_beanshell_scripts.sxw b/scripting/workben/data/doc_with_beanshell_scripts.sxw
deleted file mode 100644
index f0066610d577..000000000000
--- a/scripting/workben/data/doc_with_beanshell_scripts.sxw
+++ /dev/null
Binary files differ
diff --git a/scripting/workben/data/doc_with_one_script.sxw b/scripting/workben/data/doc_with_one_script.sxw
deleted file mode 100644
index 7445f4afca47..000000000000
--- a/scripting/workben/data/doc_with_one_script.sxw
+++ /dev/null
Binary files differ
diff --git a/scripting/workben/data/doc_with_two_scripts.sxw b/scripting/workben/data/doc_with_two_scripts.sxw
deleted file mode 100644
index 23a12ac9f86a..000000000000
--- a/scripting/workben/data/doc_with_two_scripts.sxw
+++ /dev/null
Binary files differ
diff --git a/scripting/workben/data/objdsc/drafts.com.sun.star.script.framework.protocolhandler.Dispatch.csv b/scripting/workben/data/objdsc/drafts.com.sun.star.script.framework.protocolhandler.Dispatch.csv
deleted file mode 100644
index 614260db95c3..000000000000
--- a/scripting/workben/data/objdsc/drafts.com.sun.star.script.framework.protocolhandler.Dispatch.csv
+++ /dev/null
@@ -1,5 +0,0 @@
-"Dispatch";"drafts::com::sun::star::frame::XDispatchProvider";"queryDispatch()"
-"Dispatch";"drafts::com::sun::star::frame::XDispatchProvider";"queryDispatches()"
-"Dispatch";"drafts::com::sun::star::frame::XDispatch";"dispatch()"
-"Dispatch";"drafts::com::sun::star::frame::XDispatch";"addStatusListener()"
-"Dispatch";"drafts::com::sun::star::frame::XDispatch";"removeStatusListener()"
diff --git a/scripting/workben/data/objdsc/drafts.com.sun.star.script.framework.provider.Function.csv b/scripting/workben/data/objdsc/drafts.com.sun.star.script.framework.provider.Function.csv
deleted file mode 100644
index 87327525908a..000000000000
--- a/scripting/workben/data/objdsc/drafts.com.sun.star.script.framework.provider.Function.csv
+++ /dev/null
@@ -1 +0,0 @@
-"Function";"drafts::com::sun::star::script::framework::provider::XFunction";"invoke()"
diff --git a/scripting/workben/data/objdsc/drafts.com.sun.star.script.framework.provider.FunctionProvider.csv b/scripting/workben/data/objdsc/drafts.com.sun.star.script.framework.provider.FunctionProvider.csv
deleted file mode 100644
index 0f1c41772cfb..000000000000
--- a/scripting/workben/data/objdsc/drafts.com.sun.star.script.framework.provider.FunctionProvider.csv
+++ /dev/null
@@ -1 +0,0 @@
-"FunctionProvider";"drafts::com::sun::star::script::framework::provider::XFunctionProvider";"getFunction()"
diff --git a/scripting/workben/data/objdsc/drafts.com.sun.star.script.framework.runtime.ScriptRuntimeManager.csv b/scripting/workben/data/objdsc/drafts.com.sun.star.script.framework.runtime.ScriptRuntimeManager.csv
deleted file mode 100644
index 0bff1a1a89b7..000000000000
--- a/scripting/workben/data/objdsc/drafts.com.sun.star.script.framework.runtime.ScriptRuntimeManager.csv
+++ /dev/null
@@ -1,2 +0,0 @@
-"ScriptRuntimeManager";"drafts::com::sun::star::script::framework::runtime::XScriptNameResolver";"resolve()"
-"ScriptRuntimeManager";"drafts::com::sun::star::script::framework::runtime::XScriptInvocation";"invoke()"
diff --git a/scripting/workben/data/objdsc/drafts.com.sun.star.script.framework.storage.ScriptInfo.csv b/scripting/workben/data/objdsc/drafts.com.sun.star.script.framework.storage.ScriptInfo.csv
deleted file mode 100644
index 79e8c91e19c1..000000000000
--- a/scripting/workben/data/objdsc/drafts.com.sun.star.script.framework.storage.ScriptInfo.csv
+++ /dev/null
@@ -1,8 +0,0 @@
-"ScriptInfo";"drafts::com::sun::star::script::framework::storage::XScriptInfo";"getLogicalName()"
-"ScriptInfo";"drafts::com::sun::star::script::framework::storage::XScriptInfo";"getParcelURI()"
-"ScriptInfo";"drafts::com::sun::star::script::framework::storage::XScriptInfo";"getLanguage()"
-"ScriptInfo";"drafts::com::sun::star::script::framework::storage::XScriptInfo";"getFunctionName()"
-"ScriptInfo";"drafts::com::sun::star::script::framework::storage::XScriptInfo";"getLanguageProperties()"
-"ScriptInfo";"drafts::com::sun::star::script::framework::storage::XScriptInfo";"getFileSetNames()"
-"ScriptInfo";"drafts::com::sun::star::script::framework::storage::XScriptInfo";"getFilesInFileSet()"
-"ScriptInfo";"drafts::com::sun::star::script::framework::storage::XScriptInfo";"getDescription()"
diff --git a/scripting/workben/data/objdsc/drafts.com.sun.star.script.framework.storage.ScriptStorage.csv b/scripting/workben/data/objdsc/drafts.com.sun.star.script.framework.storage.ScriptStorage.csv
deleted file mode 100644
index 69628462fedb..000000000000
--- a/scripting/workben/data/objdsc/drafts.com.sun.star.script.framework.storage.ScriptStorage.csv
+++ /dev/null
@@ -1,4 +0,0 @@
-"ScriptStorage";"drafts::com::sun::star::script::framework::storage::XScriptInfoAccess";"getScriptLogicalNames()"
-"ScriptStorage";"drafts::com::sun::star::script::framework::storage::XScriptInfoAccess";"getImplementations()"
-"ScriptStorage";"drafts::com::sun::star::script::framework::storage::XScriptInfoAccess";"getAllImplementations()"
-"ScriptStorage";"drafts::com::sun::star::script::framework::storage::XScriptStorageRefresh";"refresh()"
diff --git a/scripting/workben/data/objdsc/drafts.com.sun.star.script.framework.storage.ScriptStorageManager.csv b/scripting/workben/data/objdsc/drafts.com.sun.star.script.framework.storage.ScriptStorageManager.csv
deleted file mode 100644
index 6e255c869f67..000000000000
--- a/scripting/workben/data/objdsc/drafts.com.sun.star.script.framework.storage.ScriptStorageManager.csv
+++ /dev/null
@@ -1,6 +0,0 @@
-"ScriptStorageManager";"drafts::com::sun::star::script::framework::storage::XScriptStorageManager";"createScriptStorage()"
-"ScriptStorageManager";"drafts::com::sun::star::script::framework::storage::XScriptStorageManager";"createScriptStorageWithURI()"
-"ScriptStorageManager";"drafts::com::sun::star::script::framework::storage::XScriptStorageManager";"getScriptStorage()"
-"ScriptStorageManager";"drafts::com::sun::star::script::framework::storage::XScriptStorageManager";"refreshScriptStorage()"
-"ScriptStorageManager";"drafts::com::sun::star::script::framework::security::XScriptSecurity";"checkPermission()"
-"ScriptStorageManager";"::com::sun::star::lang::XEventListener";"disposing()"
diff --git a/scripting/workben/data/script_in_class_file.sxw b/scripting/workben/data/script_in_class_file.sxw
deleted file mode 100644
index ddb44c14d2d3..000000000000
--- a/scripting/workben/data/script_in_class_file.sxw
+++ /dev/null
Binary files differ
diff --git a/scripting/workben/data/script_in_jar_file.sxw b/scripting/workben/data/script_in_jar_file.sxw
deleted file mode 100644
index 93b10494d266..000000000000
--- a/scripting/workben/data/script_in_jar_file.sxw
+++ /dev/null
Binary files differ
diff --git a/scripting/workben/data/share_scripts.zip b/scripting/workben/data/share_scripts.zip
deleted file mode 100644
index 7c7fec622930..000000000000
--- a/scripting/workben/data/share_scripts.zip
+++ /dev/null
Binary files differ
diff --git a/scripting/workben/data/testdata/Function.csv b/scripting/workben/data/testdata/Function.csv
deleted file mode 100644
index b924c86f4bd6..000000000000
--- a/scripting/workben/data/testdata/Function.csv
+++ /dev/null
@@ -1,4 +0,0 @@
-_invoke;description=Try to find and invoke a valid user level XFunction;logicalname=script://HighlightText.showForm;expected=success
-_invoke;description=Try to invoke a valid beanshell XFunction that returns an Integer;logicalname=script://returns-Integer;returntype=java.lang.Integer;expected=success
-_invoke;description=Try to invoke a valid beanshell XFunction that returns a String;logicalname=script://returns-String;returntype=java.lang.String;returnvalue=testing;expected=success
-_invoke;description=Try to invoke a valid beanshell XFunction that returns a Frame;logicalname=script://returns-Frame;expected=com.sun.star.uno.RuntimeException
diff --git a/scripting/workben/data/testdata/FunctionProvider.csv b/scripting/workben/data/testdata/FunctionProvider.csv
deleted file mode 100644
index 88dcfae118e3..000000000000
--- a/scripting/workben/data/testdata/FunctionProvider.csv
+++ /dev/null
@@ -1 +0,0 @@
-_getFunction;description=Try to get a valid XFunction;logicalname=script://MemoryUtils.MemUsage;expected=XFunction.class
diff --git a/scripting/workben/data/testdata/ScriptInfo.csv b/scripting/workben/data/testdata/ScriptInfo.csv
deleted file mode 100644
index a5fab2ad5d16..000000000000
--- a/scripting/workben/data/testdata/ScriptInfo.csv
+++ /dev/null
@@ -1,8 +0,0 @@
-_getLogicalName;description=Try to get a logical name;expected=MemoryUtils.MemUsage
-_getParcelURI;description=Try to get a parcel URI;expected=ExampleSpreadSheetLatest.sxc/Scripts/java/MemoryUsage
-_getLanguage;description=Try to get language;expected=Java
-_getFunctionName;description=Try to get a function name;expected=MemoryUsage.updateMemoryUsage
-_getLanguageProperties;description=Try to get language properties;expected=MemUsage.jar
-_getFileSetNames;description=Try to get fileset names;expected=delivered
-_getFilesInFileSet;description=Try to get files in fileset;expected=google.jar
-_getDescription;description=Try to get description;expected=Show JVM memory usage stats
diff --git a/scripting/workben/data/testdata/ScriptRuntimeManager.csv b/scripting/workben/data/testdata/ScriptRuntimeManager.csv
deleted file mode 100644
index b5d049b5f425..000000000000
--- a/scripting/workben/data/testdata/ScriptRuntimeManager.csv
+++ /dev/null
@@ -1,8 +0,0 @@
-_resolve;description=Try to resolve a valid document URI;location=script_in_class_file.sxw;logicalname=script://doc.jsuite.testMethod;expected=XScriptInfo.class
-_resolve;description=Try to resolve a valid user URI;location=user;logicalname=script://user.jsuite.test;expected=XScriptInfo.class
-_resolve;description=Try to resolve a valid share URI;location=share;logicalname=script://share.jsuite.test;expected=XScriptInfo.class
-_resolve;description=Try to resolve an invalid URI;location=user;logicalname=scrpit://user.jsuite.test;expected=com.sun.star.lang.IllegalArgumentException
-_resolve;description=Try to resolve a valid but non existent URI;location=user;logicalname=script://non.existent.test;expected=null
-_invoke;description=Try to invoke a valid user level URI;location=user;context=null;logicalname=script://user.jsuite.test;expected=success
-_invoke;description=Try to invoke a valid user level URI with a valid context;location=user;context=xscriptcontext_test_document.sxw;logicalname=script://xscriptcontext.jsuite.test;expected=success
-_invoke;description=Try to invoke a valid user level script in a jar file;location=user;context=null;logicalname=script://jarscript.jsuite.test;expected=success
diff --git a/scripting/workben/data/testdata/ScriptStorage.csv b/scripting/workben/data/testdata/ScriptStorage.csv
deleted file mode 100644
index a5b4589e6f64..000000000000
--- a/scripting/workben/data/testdata/ScriptStorage.csv
+++ /dev/null
@@ -1,4 +0,0 @@
-_getScriptLogicalNames;description=Try to get logical names;expected=MemoryUtils.MemUsage
-_getImplementations;description=Try to get a valid implementation;logicalname=script://MemoryUtils.MemUsage?location=document;expected=MemoryUtils.MemUsage
-_getAllImplementations;description=Try to get all valid implementations;location=doc_with_beanshell_scripts.sxw;expected=returns-Integer,returns-String,returns-Frame
-_refresh;description=Try calling refresh;expected=success
diff --git a/scripting/workben/data/testdata/ScriptStorageManager.csv b/scripting/workben/data/testdata/ScriptStorageManager.csv
deleted file mode 100644
index 9dc2a9b67bf2..000000000000
--- a/scripting/workben/data/testdata/ScriptStorageManager.csv
+++ /dev/null
@@ -1,18 +0,0 @@
-_createScriptStorage;description=Try to create a ScriptStorage;expected=success
-_createScriptStorageWithURI;description=Try to create a document ScriptStorage;location=script_in_class_file.sxw;expected=XScriptInfoAccess.class
-_getScriptStorage;description=Try to get application share ScriptStorage;location=share;expected=XScriptInfoAccess.class
-_getScriptStorage;description=Try to get application user ScriptStorage;location=user;expected=XScriptInfoAccess.class
-_refreshScriptStorage;description=Try to refresh non-existent ScriptStorage;location=non-existent;expected=success
-_refreshScriptStorage;description=Try to refresh valid document ScriptStorage;location=script_in_class_file.sxw;expected=success
-_checkPermission;description=Try to get permssion when run macro is set to never;location=check_perms_file1.sxw;runmacro=never;pathlist=false;confirm=false;warning=false;dialog=false;checkbox=false;buttonName=Run;checkpath=false;expected=com.sun.star.security.AccessControlException
-_checkPermission;description=Try to get permssion when run macro is set to always, and no warning dialog;location=check_perms_file2.sxw;runmacro=always;pathlist=false;confirm=false;warning=false;dialog=false;checkbox=false;buttonName=Run;checkpath=false;expected=true
-_checkPermission;description=Try to get permssion when run macro is set to always, warning dialog, and run button pressed;location=check_perms_file3.sxw;runmacro=always;pathlist=false;confirm=false;warning=true;dialog=true;checkbox=false;buttonName=Run;checkpath=false;expected=true
-_checkPermission;description=Try to get permssion when run macro is set to always, warning dialog, and do not run button pressed;location=check_perms_file4.sxw;runmacro=always;pathlist=false;confirm=false;warning=true;dialog=true;checkbox=false;buttonName=Do Not Run;checkpath=false;expected=com.sun.star.security.AccessControlException
-_checkPermission;description=Try to get permssion when run macro is set to according to path list, doc in path, no warning dialog, and no confirmation;location=check_perms_file5.sxw;runmacro=pathlist;pathlist=true;confirm=false;warning=false;dialog=false;checkbox=false;buttonName=Do Not Run;checkpath=false;expected=true
-_checkPermission;description=Try to get permssion when run macro is set to according to path list, doc not in path, no warning dialog, and no confirmation;location=check_perms_file6.sxw;runmacro=pathlist;pathlist=false;confirm=false;warning=false;dialog=false;checkbox=false;buttonName=Do Not Run;checkpath=false;expected=com.sun.star.security.AccessControlException
-_checkPermission;description=Try to get permssion when run macro is set to according to path list, doc in path, warning dialog, run button pressed;location=check_perms_file7.sxw;runmacro=pathlist;pathlist=true;confirm=false;warning=true;dialog=true;checkbox=false;buttonName=Run;checkpath=false;expected=true
-_checkPermission;description=Try to get permssion when run macro is set to according to path list, doc in path, warning dialog, do not run button pressed;location=check_perms_file8.sxw;runmacro=pathlist;pathlist=true;confirm=false;warning=true;dialog=true;checkbox=false;buttonName=Do Not Run;checkpath=false;expected=com.sun.star.security.AccessControlException
-_checkPermission;description=Try to get permssion when run macro is set to according to path list, doc not in path, warning dialog, confirm dialog, checkbox not checked, run button pressed;location=check_perms_file9.sxw;runmacro=pathlist;pathlist=false;confirm=true;warning=true;dialog=true;checkbox=false;buttonName=Run;checkpath=true;expected=true
-_checkPermission;description=Try to get permssion when run macro is set to according to path list, doc not in path, warning dialog, confirm dialog, checkbox checked, run button pressed;location=check_perms_file10.sxw;runmacro=pathlist;pathlist=true;confirm=true;warning=true;dialog=true;checkbox=true;buttonName=Run;checkpath=true;expected=true
-_checkPermission;description=Try to get permssion when run macro is set to according to path list, doc not in path, warning dialog, confirm dialog, checkbox not checked, do not run button pressed;location=check_perms_file11.sxw;runmacro=pathlist;pathlist=false;confirm=true;warning=true;dialog=true;checkbox=false;buttonName=Do Not Run;checkpath=true;expected=com.sun.star.security.AccessControlException
-_checkPermission;description=Try to get permssion when run macro is set to according to path list, doc not in path, warning dialog, confirm dialog, checkbox checked, do not run button pressed;location=check_perms_file12.sxw;runmacro=pathlist;pathlist=false;confirm=true;warning=true;dialog=true;checkbox=true;buttonName=Do Not Run;checkpath=true;expected=com.sun.star.security.AccessControlException
diff --git a/scripting/workben/data/user_scripts.zip b/scripting/workben/data/user_scripts.zip
deleted file mode 100644
index f5eed7657365..000000000000
--- a/scripting/workben/data/user_scripts.zip
+++ /dev/null
Binary files differ
diff --git a/scripting/workben/data/xscriptcontext_test_document.sxw b/scripting/workben/data/xscriptcontext_test_document.sxw
deleted file mode 100644
index da6dafb0b805..000000000000
--- a/scripting/workben/data/xscriptcontext_test_document.sxw
+++ /dev/null
Binary files differ
diff --git a/scripting/workben/ifc/scripting/ScriptingUtils.java b/scripting/workben/ifc/scripting/ScriptingUtils.java
deleted file mode 100644
index 03ef3f5ca680..000000000000
--- a/scripting/workben/ifc/scripting/ScriptingUtils.java
+++ /dev/null
@@ -1,106 +0,0 @@
-/*
- * 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 .
- */
-
-package ifc.scripting;
-
-import drafts.com.sun.star.script.framework.storage.XScriptStorageManager;
-
-import com.sun.star.uno.UnoRuntime;
-import com.sun.star.lang.XMultiServiceFactory;
-import com.sun.star.uno.XInterface;
-import com.sun.star.ucb.XSimpleFileAccess;
-import com.sun.star.beans.XPropertySet;
-import com.sun.star.uno.XComponentContext;
-
-public class ScriptingUtils {
- private XScriptStorageManager storageManager;
- private static ScriptingUtils utils;
-
- private ScriptingUtils() {
- }
-
- public static synchronized ScriptingUtils getDefault() {
- if (utils == null)
- utils = new ScriptingUtils();
-
- return utils;
- }
-
-
-
-
-
- public Object getScriptStorage(XMultiServiceFactory xMSF, String location) {
- int id = getStorageId(xMSF, location);
- return storageManager.getScriptStorage(id);
- }
-
- private int getStorageId(XMultiServiceFactory xMSF, String location) {
-
- if (location.equals("share"))
- return 0;
-
- if (location.equals("user"))
- return 1;
-
- XSimpleFileAccess access = null;
- String uri = util.utils.getFullTestURL(location);
-
- if (storageManager == null) {
- try {
- XPropertySet xProp = UnoRuntime.queryInterface(
- XPropertySet.class, xMSF);
-
- XComponentContext xContext = UnoRuntime.queryInterface(XComponentContext.class,
- xProp.getPropertyValue("DefaultContext"));
-
- XInterface ifc = (XInterface)
- xContext.getValueByName("/singletons/drafts.com.sun.star." +
- "script.framework.storage.theScriptStorageManager");
-
- storageManager = UnoRuntime.queryInterface(XScriptStorageManager.class, ifc);
- } catch (Exception e) {
- return -1;
- }
- }
-
- access = getXSimpleFileAccess(xMSF);
-
- if (access == null)
- return -1;
-
- int id = storageManager.createScriptStorageWithURI(access, uri);
-
- return id;
- }
-
- private XSimpleFileAccess getXSimpleFileAccess(XMultiServiceFactory xMSF) {
- XSimpleFileAccess access = null;
-
- try {
- Object fa =
- xMSF.createInstance("com.sun.star.ucb.SimpleFileAccess");
-
- access = UnoRuntime.queryInterface(XSimpleFileAccess.class, fa);
- } catch (com.sun.star.uno.Exception e) {
- return null;
- }
-
- return access;
- }
-}
diff --git a/scripting/workben/ifc/scripting/SecurityDialogUtil.java b/scripting/workben/ifc/scripting/SecurityDialogUtil.java
deleted file mode 100644
index 349b70bfa24f..000000000000
--- a/scripting/workben/ifc/scripting/SecurityDialogUtil.java
+++ /dev/null
@@ -1,147 +0,0 @@
-/*
- * 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 .
- */
-package ifc.scripting;
-
-import com.sun.star.awt.*;
-import com.sun.star.lang.XMultiServiceFactory;
-import com.sun.star.uno.UnoRuntime;
-import com.sun.star.uno.XInterface;
-
-import com.sun.star.accessibility.*;
-import com.sun.star.awt.XExtendedToolkit;
-
-// Jsuite classes
-import util.AccessibilityTools;
-/**
-* Thread that pushes the buttons or checkbox
-* on the message box that is on top.
-*/
-public class SecurityDialogUtil extends Thread {
-
- private XMultiServiceFactory xMSF = null;
- private String errorMsg;
- private String btnName;
- private boolean checkBox;
-
- /**
- * Constructor.
- */
- public SecurityDialogUtil(XMultiServiceFactory xMSF, String btnName,
- boolean checkBox) {
- this.xMSF = xMSF;
- this.btnName = btnName;
- this.checkBox = checkBox;
- this.errorMsg = "";
- }
-
- /**
- * Returns the error message that occurred while
- * accessing and pressing the button.
- * @return Error message.
- */
- public String getErrorMessage() {
- return errorMsg;
- }
-
-
-
- /**
- * Press the named button in the currently visible dialog box.
- */
- @Override
- public void run() {
- // wait for the message box to appear
- try {
- Thread.sleep(4000) ;
- } catch (InterruptedException e) {
- System.err.println("While waiting :" + e.getMessage()) ;
- }
-
- // access the message box
-
- XAccessibleContext xCon = null;
-
- try {
- XInterface x = (XInterface) xMSF.createInstance(
- "com.sun.star.awt.Toolkit") ;
- XExtendedToolkit tk =
- UnoRuntime.queryInterface(
- XExtendedToolkit.class, x);
- new AccessibilityTools();
- XWindow xWindow = UnoRuntime.queryInterface(
- XWindow.class, tk.getActiveTopWindow());
- XAccessible xRoot = AccessibilityTools.getAccessibleObject(xWindow);
- xCon = xRoot.getAccessibleContext();
- } catch (Exception e) {
- errorMsg = "Exception while using Accessibility\n" +
- e.getMessage();
- return;
- }
-
- // get the button
- XInterface oObj = null;
-
- try {
- int count = xCon.getAccessibleChildCount();
-
- for (int i = 0; i < count; i++) {
- XAccessible xAcc = xCon.getAccessibleChild(i);
- String name =
- xAcc.getAccessibleContext().getAccessibleName();
-
- // check for button
- if (name.equals(btnName) && (UnoRuntime.queryInterface(
- XButton.class, xAcc) != null)) {
- oObj = xAcc.getAccessibleContext();
- }
-
- // check for checkbox
- if (checkBox && (UnoRuntime.queryInterface(XCheckBox.class, xAcc) != null)) {
- // want to do this action now
- // probably equates to toggle cb
- XAccessibleAction xAction =
- UnoRuntime.queryInterface(
- XAccessibleAction.class, xAcc.getAccessibleContext());
- xAction.doAccessibleAction(0);
-
- // might be worth using oObj2 to double check the new state??
- }
- }
-
- if (oObj == null) {
- errorMsg = "No button has been found:\n" +
- "No action is triggered.";
- return;
- }
-
- // press button
- XAccessibleAction xAction =
- UnoRuntime.queryInterface(
- XAccessibleAction.class, oObj);
- xAction.doAccessibleAction(0);
- } catch (com.sun.star.lang.IndexOutOfBoundsException e) {
- errorMsg = "Exception\n" +
- e.getMessage();
- }
- }
-
-}
-
-
-
-
diff --git a/scripting/workben/ifc/scripting/_XFunction.java b/scripting/workben/ifc/scripting/_XFunction.java
deleted file mode 100644
index 31c1742b2d8b..000000000000
--- a/scripting/workben/ifc/scripting/_XFunction.java
+++ /dev/null
@@ -1,150 +0,0 @@
-/*
- * 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 .
- */
-
-package ifc.scripting;
-
-import drafts.com.sun.star.script.framework.provider.XFunction;
-import drafts.com.sun.star.script.framework.provider.XFunctionProvider;
-
-import lib.MultiMethodTest;
-import lib.StatusException;
-import lib.Parameters;
-
-import java.util.Collection;
-import java.util.Iterator;
-
-public class _XFunction extends MultiMethodTest {
-
- public XFunction oObj = null;
- public XFunctionProvider oProvider = null;
-
- /**
- * Retrieves object relation.
- */
- @Override
- public void before() throws StatusException {
- log.println("getting provider");
- oProvider = (XFunctionProvider) tEnv.getObjRelation("provider");
-
- if (oProvider == null)
- log.println("it's null");
- else
- log.println("it's not null");
- }
-
- public void _invoke() {
- boolean result = true;
-
- Collection c =
- (Collection) tEnv.getObjRelation("_invoke");
-
- Iterator tests;
-
- if (c != null) {
- tests = c.iterator();
-
- while (tests.hasNext()) {
- result &= runInvokeTest((Parameters)tests.next());
- }
- } else {
- result = false;
- }
-
- tRes.tested("invoke()", result);
- }
-
- private boolean runInvokeTest(Parameters testdata) {
- String description = testdata.get("description");
- String logicalname = testdata.get("logicalname");
-
- String expreturntype = testdata.get("returntype");
- String expreturnvalue = testdata.get("returnvalue");
- String gotreturntype = "null";
- String gotreturnvalue = "null";
-
- String location = testdata.get("location");
-
- String expected = testdata.get("expected");
- String output = "";
- boolean result = true;
-
- log.println(testdata.get("description"));
-
- try {
- Object[] aParams = new Object[0];
- short[][] aOutParamIndex = new short[1][];
- aOutParamIndex[0] = new short[0];
- Object[][] aOutParam = new Object[1][];
- aOutParam[0] = new Object[0];
-
- XFunction func = oProvider.getFunction(logicalname);
-
- if (func == null) {
- log.println("Couldn't get XFunction for:" + logicalname);
- return false;
- }
-
- Object ret = func.invoke(aParams, aOutParamIndex, aOutParam);
-
- if (ret != null) {
- gotreturntype = ret.getClass().getName();
- gotreturnvalue = ret.toString();
- }
-
- output = "success";
- } catch (com.sun.star.lang.IllegalArgumentException iae) {
- log.println("Couldn't invoke script:" + iae);
- output = "com.sun.star.lang.IllegalArgumentException";
- } catch (com.sun.star.script.CannotConvertException cce) {
- log.println("Couldn't invoke script:" + cce);
- output = "com.sun.star.script.CannotConvertException";
- } catch (com.sun.star.reflection.InvocationTargetException ite) {
- log.println("Couldn't invoke script:" + ite);
- output = "com.sun.star.reflection.InvocationTargetException";
- } catch (com.sun.star.uno.RuntimeException re) {
- log.println("Couldn't invoke script:" + re);
- output = "com.sun.star.uno.RuntimeException";
- } catch (java.lang.Exception e) {
- log.println("Couldn't invoke script:" + e);
- output = "java.lang.Exception";
- }
-
- if (expreturntype != null) {
- log.println("expected return type: " + expreturntype +
- ", got return type: " + gotreturntype);
-
- if (!gotreturntype.equals(expreturntype))
- result = false;
- }
-
- if (expreturnvalue != null) {
- log.println("expected return value: " + expreturnvalue +
- ", got return value: " + gotreturnvalue);
-
- if (!gotreturnvalue.equals(expreturnvalue))
- result = false;
- }
-
- log.println("expected: " + expected + ", output: " + output);
-
- if (!output.equals(expected))
- result = false;
-
- return result;
- }
-}
diff --git a/scripting/workben/ifc/scripting/_XFunctionProvider.java b/scripting/workben/ifc/scripting/_XFunctionProvider.java
deleted file mode 100644
index a8bfbca6b687..000000000000
--- a/scripting/workben/ifc/scripting/_XFunctionProvider.java
+++ /dev/null
@@ -1,81 +0,0 @@
-/*
- * 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 .
- */
-
-package ifc.scripting;
-
-import drafts.com.sun.star.script.framework.provider.XFunctionProvider;
-import drafts.com.sun.star.script.framework.provider.XFunction;
-
-import lib.MultiMethodTest;
-import lib.StatusException;
-import lib.Parameters;
-
-import java.util.Collection;
-import java.util.Iterator;
-
-public class _XFunctionProvider extends MultiMethodTest {
-
- public XFunctionProvider oObj = null;
-
- /**
- * Retrieves object relation.
- */
- @Override
- public void before() throws StatusException {
- }
-
- public void _getFunction() {
- boolean result = true;
-
- Collection c =
- (Collection) tEnv.getObjRelation("_getFunction");
-
- Iterator tests;
-
- if (c != null) {
- tests = c.iterator();
-
- while (tests.hasNext()) {
- result &= runGetFunctionTest((Parameters)tests.next());
- }
- } else {
- result = false;
- }
-
- tRes.tested("getFunction()", result);
- }
-
- private boolean runGetFunctionTest(Parameters testdata) {
- String description = testdata.get("description");
- String logicalname = testdata.get("logicalname");
- String expected = testdata.get("expected");
- String output = "";
-
- log.println(testdata.get("description"));
-
- XFunction function = oObj.getFunction(logicalname);
-
- if (function == null)
- output = "null";
- else
- output = "XFunction.class";
-
- log.println("expected: " + expected + ", output: " + output);
- return (output.equals(expected));
- }
-}
diff --git a/scripting/workben/ifc/scripting/_XScriptInfo.java b/scripting/workben/ifc/scripting/_XScriptInfo.java
deleted file mode 100644
index 8e1cff6bf5ea..000000000000
--- a/scripting/workben/ifc/scripting/_XScriptInfo.java
+++ /dev/null
@@ -1,308 +0,0 @@
-/*
- * 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 .
- */
-
-package ifc.scripting;
-
-import drafts.com.sun.star.script.framework.storage.XScriptInfo;
-
-import com.sun.star.beans.XPropertySet;
-
-import java.util.Collection;
-import java.util.Iterator;
-
-import lib.Parameters;
-import lib.MultiMethodTest;
-import lib.StatusException;
-
-public class _XScriptInfo extends MultiMethodTest {
-
- public XScriptInfo oObj = null;
-
- /**
- * Retrieves object relation.
- */
- @Override
- public void before() throws StatusException {
- }
-
- public void _getLogicalName() {
- boolean result = true;
-
- Collection c =
- (Collection) tEnv.getObjRelation("_getLogicalName");
-
- Iterator tests;
-
- if (c != null) {
- tests = c.iterator();
-
- while (tests.hasNext()) {
- Parameters testdata = (Parameters)tests.next();
- String expected = testdata.get("expected");
- String output = "";
-
- log.println(testdata.get("description"));
-
- output = oObj.getLogicalName();
-
- log.println("expected: " + expected + ", output: " + output);
- result &= output.equals(expected);
- }
- } else {
- result = false;
- }
-
- tRes.tested("getLogicalName()", result);
- }
-
- public void _getParcelURI() {
- boolean result = true;
-
- Collection c =
- (Collection) tEnv.getObjRelation("_getParcelURI");
-
- Iterator tests;
-
- if (c != null) {
- tests = c.iterator();
-
- while (tests.hasNext()) {
- Parameters testdata = (Parameters)tests.next();
- String expected = testdata.get("expected");
- String output = "";
-
- log.println(testdata.get("description"));
-
- output = oObj.getParcelURI();
-
- log.println("expected: " + expected + ", output: " + output);
- result &= output.endsWith(expected);
- }
- } else {
- result = false;
- }
-
- tRes.tested("getParcelURI()", result);
- }
-
- public void _getLanguage() {
- boolean result = true;
-
- Collection c =
- (Collection) tEnv.getObjRelation("_getLanguage");
-
- Iterator tests;
-
- if (c != null) {
- tests = c.iterator();
-
- while (tests.hasNext()) {
- Parameters testdata = (Parameters)tests.next();
- String expected = testdata.get("expected");
- String output = "";
-
- log.println(testdata.get("description"));
-
- output = oObj.getLanguage();
-
- log.println("expected: " + expected + ", output: " + output);
- result &= output.equals(expected);
- }
- } else {
- result = false;
- }
-
- tRes.tested("getLanguage()", result);
- }
-
- public void _getFunctionName() {
- boolean result = true;
-
- Collection c =
- (Collection) tEnv.getObjRelation("_getFunctionName");
-
- Iterator tests;
-
- if (c != null) {
- tests = c.iterator();
-
- while (tests.hasNext()) {
- Parameters testdata = (Parameters)tests.next();
- String expected = testdata.get("expected");
- String output = "";
-
- log.println(testdata.get("description"));
-
- output = oObj.getFunctionName();
-
- log.println("expected: " + expected + ", output: " + output);
- result &= output.equals(expected);
- }
- } else {
- result = false;
- }
-
- tRes.tested("getFunctionName()", result);
- }
-
- public void _getLanguageProperties() {
-
- Collection c =
- (Collection) tEnv.getObjRelation("_getLanguageProperties");
-
- Iterator tests;
-
- if (c != null) {
- tests = c.iterator();
-
- while (tests.hasNext()) {
- Parameters testdata = (Parameters)tests.next();
- String expected = testdata.get("expected");
- String output = "";
-
- log.println(testdata.get("description"));
-
- try {
- XPropertySet langProps = oObj.getLanguageProperties();
- output = (String)langProps.getPropertyValue("classpath");
-
- if (output == null)
- output = "null";
- } catch (com.sun.star.uno.Exception e) {
- log.println("caught UNO Exception:" + e);
- output = "com.sun.star.uno.Exception";
- }
-
- log.println("expected: " + expected + ", output: " + output);
- }
- }
-
- tRes.tested("getLanguageProperties()", true);
- }
-
- public void _getFileSetNames() {
- boolean result = true;
-
- Collection c =
- (Collection) tEnv.getObjRelation("_getFileSetNames");
-
- Iterator tests;
-
- if (c != null) {
- tests = c.iterator();
-
- while (tests.hasNext()) {
- Parameters testdata = (Parameters)tests.next();
- String expected = testdata.get("expected");
- String output = "";
-
- log.println(testdata.get("description"));
-
- String[] fileSets = oObj.getFileSetNames();
-
- if (fileSets == null)
- output = "null";
- else if (fileSets.length != 1)
- output = "WrongNumberOfFileSets";
- else
- output = fileSets[0];
-
- log.println("expected: " + expected + ", output: " + output);
- result &= output.equals(expected);
- }
- } else {
- result = false;
- }
-
- tRes.tested("getFileSetNames()", result);
- }
-
- public void _getFilesInFileSet() {
- boolean result = true;
-
- Collection c =
- (Collection) tEnv.getObjRelation("_getFilesInFileSet");
-
- Iterator tests;
-
- if (c != null) {
- tests = c.iterator();
-
- while (tests.hasNext()) {
- Parameters testdata = (Parameters)tests.next();
- String expected = testdata.get("expected");
- String output = "";
-
- log.println(testdata.get("description"));
-
- String[] filesInFileSet =
- oObj.getFilesInFileSet(oObj.getFileSetNames()[0]);
-
- if (filesInFileSet == null)
- output = "null";
- else if (filesInFileSet.length != 1)
- output = "WrongNumberOfFilesInFileSet";
- else
- output = filesInFileSet[0];
-
- log.println("expected: " + expected + ", output: " + output);
- result &= output.equals(expected);
- }
- } else {
- result = false;
- }
-
- tRes.tested("getFilesInFileSet()", result);
- }
-
- public void _getDescription() {
- boolean result = true;
-
- Collection c =
- (Collection) tEnv.getObjRelation("_getDescription");
-
- Iterator tests;
-
- if (c != null) {
- tests = c.iterator();
-
- while (tests.hasNext()) {
- Parameters testdata = (Parameters)tests.next();
- String expected = testdata.get("expected");
- String output = "";
-
- log.println(testdata.get("description"));
-
- output = oObj.getDescription();
-
- if (output == null)
- output = "null";
- else if (output.length() == 0)
- output = "empty";
-
- log.println("expected: [" + expected + "], output: [" +
- output + "]");
- result &= output.equals(expected);
- }
- } else {
- result = false;
- }
-
- tRes.tested("getDescription()", result);
- }
-}
diff --git a/scripting/workben/ifc/scripting/_XScriptInfoAccess.java b/scripting/workben/ifc/scripting/_XScriptInfoAccess.java
deleted file mode 100644
index bf2095635fdb..000000000000
--- a/scripting/workben/ifc/scripting/_XScriptInfoAccess.java
+++ /dev/null
@@ -1,192 +0,0 @@
-/*
- * 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 .
- */
-
-package ifc.scripting;
-
-import drafts.com.sun.star.script.framework.storage.XScriptInfoAccess;
-import drafts.com.sun.star.script.framework.storage.XScriptInfo;
-
-import com.sun.star.uno.UnoRuntime;
-import lib.MultiMethodTest;
-import lib.StatusException;
-import lib.Parameters;
-
-import java.util.Collection;
-import java.util.Iterator;
-
-public class _XScriptInfoAccess extends MultiMethodTest {
-
- public XScriptInfoAccess oObj = null;
-
- /**
- * Retrieves object relation.
- */
- @Override
- public void before() throws StatusException {
- }
-
- public void _getScriptLogicalNames() {
- boolean result = true;
-
- Collection c =
- (Collection) tEnv.getObjRelation("_getScriptLogicalNames");
-
- Iterator tests;
-
- if (c != null) {
- tests = c.iterator();
-
- while (tests.hasNext()) {
- result &= runGetScriptLogicalNamesTest((Parameters)tests.next());
- }
- } else {
- result = false;
- }
-
- tRes.tested("getScriptLogicalNames()", result);
- }
-
- private boolean runGetScriptLogicalNamesTest(Parameters testdata) {
- String description = testdata.get("description");
- String expected = testdata.get("expected");
- String output = "";
-
- log.println(testdata.get("description"));
-
- log.println("In _XScriptInfoAccess.getScriptLogicalNames()");
- String[] logicalNames = oObj.getScriptLogicalNames();
-
- if (logicalNames == null)
- output = "null";
- else if (logicalNames.length == 0)
- output = "empty";
- else {
- for (int i = 0; i < logicalNames.length; i++) {
- if (logicalNames[i].equals(expected)) {
- output = logicalNames[i];
- break;
- }
- }
- }
-
- log.println("expected: " + expected + ", output: " + output);
- return (output.equals(expected));
- }
-
- public void _getImplementations() {
- boolean result = true;
-
- Collection c =
- (Collection) tEnv.getObjRelation("_getImplementations");
-
- Iterator tests;
-
- if (c != null) {
- tests = c.iterator();
-
- while (tests.hasNext()) {
- result &= runGetImplementationsTest((Parameters)tests.next());
- }
- } else {
- result = false;
- }
-
- tRes.tested("getImplementations()", result);
- }
-
- private boolean runGetImplementationsTest(Parameters testdata) {
- String description = testdata.get("description");
- String logicalname = testdata.get("logicalname");
- String expected = testdata.get("expected");
- String output = "";
-
- log.println(testdata.get("description"));
-
- // performs a basic check to see if 1 match (XScriptInfo) is returned
- // the XScriptInfo object is tested more completely in _XScriptInfo
- // which is drive from ScriptInfo
-
- try {
- XScriptInfo[] impls = oObj.getImplementations(logicalname);
-
- // should only be one match
- if (impls == null)
- output = "null";
- else if (impls.length == 0)
- output = "empty";
- else
- output = impls[0].getLogicalName();
- } catch (com.sun.star.uno.Exception e) {
- log.println("Caught UNO Exception:" + e);
- output = "com.sun.star.uno.Exception";
- }
-
- log.println("expected: " + expected + ", output: " + output);
- return (output.equals(expected));
- }
-
- public void _getAllImplementations() {
- boolean result = true;
-
- Collection c =
- (Collection) tEnv.getObjRelation("_getAllImplementations");
-
- Iterator tests;
-
- if (c != null) {
- tests = c.iterator();
-
- while (tests.hasNext()) {
- result &= runGetAllImplementationsTest((Parameters)tests.next());
- }
- } else {
- result = false;
- }
-
- tRes.tested("getAllImplementations()", result);
- }
-
- private boolean runGetAllImplementationsTest(Parameters testdata) {
- String description = testdata.get("description");
- String location = testdata.get("location");
- String expected = testdata.get("expected");
- String output = "";
-
- log.println(testdata.get("description"));
-
- Object obj = ScriptingUtils.getDefault().getScriptStorage(
- tParam.getMSF(), location);
-
- XScriptInfoAccess access = UnoRuntime.queryInterface(XScriptInfoAccess.class,
- obj);
-
- XScriptInfo[] impls = access.getAllImplementations();
-
- if (impls == null || impls.length == 0) {
- output = "empty";
- } else {
- for (int i = 0; i < impls.length - 1; i++)
- output += impls[i].getLogicalName() + ",";
-
- output += impls[impls.length - 1].getLogicalName();
- }
-
- log.println("expected: " + expected + ", output: " + output);
- return (output.equals(expected));
- }
-}
diff --git a/scripting/workben/ifc/scripting/_XScriptInvocation.java b/scripting/workben/ifc/scripting/_XScriptInvocation.java
deleted file mode 100644
index 06c76e75ba06..000000000000
--- a/scripting/workben/ifc/scripting/_XScriptInvocation.java
+++ /dev/null
@@ -1,212 +0,0 @@
-/*
- * 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 .
- */
-
-package ifc.scripting;
-
-import java.util.HashMap;
-import java.util.Iterator;
-import java.util.Collection;
-
-import drafts.com.sun.star.script.framework.runtime.XScriptInvocation;
-import drafts.com.sun.star.script.framework.storage.XScriptStorageManager;
-
-import com.sun.star.ucb.XSimpleFileAccess;
-import com.sun.star.beans.XPropertySet;
-import com.sun.star.uno.XComponentContext;
-import com.sun.star.uno.UnoRuntime;
-import com.sun.star.uno.XInterface;
-import com.sun.star.frame.XModel;
-
-import lib.MultiMethodTest;
-import lib.StatusException;
-import lib.Parameters;
-import util.SOfficeFactory;
-
-public class _XScriptInvocation extends MultiMethodTest {
-
- public XScriptInvocation oObj = null;
- private XScriptStorageManager storageManager = null;
-
- /**
- * Retrieves object relation.
- */
- @Override
- public void before() throws StatusException {
- }
-
- @Override
- public void after() throws StatusException {
- }
-
- public void _invoke() {
- boolean result = true;
-
- Collection c =
- (Collection) tEnv.getObjRelation("_invoke");
-
- Iterator tests;
-
- if (c != null) {
- tests = c.iterator();
-
- while (tests.hasNext()) {
- result &= runInvokeTest((Parameters)tests.next());
- }
- } else {
- result = false;
- }
-
- tRes.tested("invoke()", result);
- }
-
- private boolean runInvokeTest(Parameters testdata) {
- String description = testdata.get("description");
- String logicalname = testdata.get("logicalname");
- String context = testdata.get("context");
- String location = testdata.get("location");
- String expected = testdata.get("expected");
- String output = "";
-
- int storageId = getStorageId(location);
-
- XModel ctx = null;
-
- if (!context.equals("null"))
- ctx = loadDocument(context);
-
- HashMap<String, Object> map = new HashMap<String, Object>();
- map.put("SCRIPTING_DOC_STORAGE_ID", Integer.valueOf(storageId));
- map.put("SCRIPTING_DOC_URI", "hahaha");
-
- if (ctx != null)
- map.put("SCRIPTING_DOC_REF", ctx);
-
- Parameters params = new Parameters(map);
- Object[] args = new Object[0];
-
- Object[][] result = new Object[1][0];
- result[0] = new Object[0];
-
- short[][] num = new short[1][0];
- num[0] = new short[0];
-
- log.println(description + ": " + logicalname);
-
- try {
- Object ret = oObj.invoke(logicalname, params, args, num, result);
- log.println("return type is: " + ret.getClass().getName() +
- ", value is: " + ret.toString());
- output = "success";
- } catch (com.sun.star.lang.IllegalArgumentException iae) {
- log.println("Couldn't invoke script:" + iae);
- output = "com.sun.star.lang.IllegalArgumentException";
- } catch (com.sun.star.script.CannotConvertException cce) {
- log.println("Couldn't invoke script:" + cce);
- output = "com.sun.star.script.CannotConvertException";
- } catch (com.sun.star.reflection.InvocationTargetException ite) {
- log.println("Couldn't invoke script:" + ite);
- output = "com.sun.star.reflection.InvocationTargetException";
- } catch (com.sun.star.uno.RuntimeException re) {
- log.println("Couldn't invoke script:" + re);
- output = "com.sun.star.uno.RuntimeException";
- }
-
- if (ctx != null)
- ctx.dispose();
-
- log.println("expected: " + expected + ", output: " + output);
- return (output.equals(expected));
- }
-
- private int getStorageId(String location) {
-
- if (location.equals("share"))
- return 0;
-
- if (location.equals("user"))
- return 1;
-
- XSimpleFileAccess access = null;
- String uri = util.utils.getFullTestURL(location);
-
- if (storageManager == null) {
- try {
- XPropertySet xProp = UnoRuntime.queryInterface(
- XPropertySet.class, tParam.getMSF());
-
- XComponentContext xContext = UnoRuntime.queryInterface(XComponentContext.class,
- xProp.getPropertyValue("DefaultContext"));
-
- XInterface ifc = (XInterface)
- xContext.getValueByName("/singletons/drafts.com.sun.star." +
- "script.framework.storage.theScriptStorageManager");
-
- storageManager = UnoRuntime.queryInterface(XScriptStorageManager.class, ifc);
- } catch (Exception e) {
- return -1;
- }
- }
-
- access = getXSimpleFileAccess();
-
- if (access == null)
- return -1;
-
- int id = storageManager.createScriptStorageWithURI(access, uri);
-
- return id;
- }
-
- private XSimpleFileAccess getXSimpleFileAccess() {
- XSimpleFileAccess access = null;
-
- try {
- Object fa = tParam.getMSF().createInstance(
- "com.sun.star.ucb.SimpleFileAccess");
-
- access = UnoRuntime.queryInterface(XSimpleFileAccess.class, fa);
- } catch (com.sun.star.uno.Exception e) {
- return null;
- }
-
- return access;
- }
-
- private XModel loadDocument(String name) {
- XModel model = null;
- SOfficeFactory factory = SOfficeFactory.getFactory(tParam.getMSF());
-
- String fullname = util.utils.getFullTestURL(name);
-
- try {
- Object obj = factory.loadDocument(fullname);
- model = UnoRuntime.queryInterface(XModel.class, obj);
- } catch (com.sun.star.lang.IllegalArgumentException iae) {
- return null;
- } catch (Exception e) {
- return null;
- }
-
- try {
- Thread.sleep(5000);
- } catch (InterruptedException ie) {
- }
-
- return model;
- }
-}
diff --git a/scripting/workben/ifc/scripting/_XScriptNameResolver.java b/scripting/workben/ifc/scripting/_XScriptNameResolver.java
deleted file mode 100644
index 851ed9c936e5..000000000000
--- a/scripting/workben/ifc/scripting/_XScriptNameResolver.java
+++ /dev/null
@@ -1,167 +0,0 @@
-/*
- * 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 .
- */
-
-package ifc.scripting;
-
-import java.util.HashMap;
-import java.util.Iterator;
-import java.util.Collection;
-
-import drafts.com.sun.star.script.framework.runtime.XScriptNameResolver;
-import drafts.com.sun.star.script.framework.storage.XScriptInfo;
-import drafts.com.sun.star.script.framework.storage.XScriptStorageManager;
-
-import com.sun.star.ucb.XSimpleFileAccess;
-import com.sun.star.beans.XPropertySet;
-import com.sun.star.uno.XComponentContext;
-import com.sun.star.uno.UnoRuntime;
-import com.sun.star.uno.XInterface;
-
-import lib.MultiMethodTest;
-import lib.StatusException;
-import lib.Parameters;
-
-public class _XScriptNameResolver extends MultiMethodTest {
-
- public XScriptNameResolver oObj = null;
- private XScriptStorageManager storageManager = null;
-
- /**
- * Retrieves object relation.
- */
- @Override
- public void before() throws StatusException {
- }
-
- public void _resolve() {
- boolean result = true;
-
- Collection c =
- (Collection) tEnv.getObjRelation("_resolve");
-
- Iterator tests;
-
- if (c != null) {
- tests = c.iterator();
-
- while (tests.hasNext()) {
- result &= runResolveTest((Parameters)tests.next());
- }
- } else {
- result = false;
- }
-
- tRes.tested("resolve()", result);
- }
-
- private boolean runResolveTest(Parameters data) {
- String description = data.get("description");
- String location = data.get("location");
- String logicalname = data.get("logicalname");
- String expected = data.get("expected");
- String output = "";
-
- int storageId = getStorageId(location);
-
- log.println(description + ": " + logicalname);
-
- HashMap<String, Object> map = new HashMap<String, Object>();
- map.put("SCRIPTING_DOC_STORAGE_ID", Integer.valueOf(storageId));
- map.put("SCRIPTING_DOC_URI", util.utils.getFullTestURL(location));
-
- Parameters params = new Parameters(map);
- Object[] args = new Object[] {params};
-
- try {
- XInterface ifc = (XInterface) oObj.resolve(logicalname, args);
-
- if (ifc == null)
- output = "null";
- else if (UnoRuntime.queryInterface(XScriptInfo.class, ifc) == null)
- output = "null";
- else
- output = "XScriptInfo.class";
- } catch (com.sun.star.lang.IllegalArgumentException iae) {
- log.println("caught IllegalArgumentException: " + iae);
- output = "com.sun.star.lang.IllegalArgumentException";
- } catch (com.sun.star.script.CannotConvertException cce) {
- log.println("caught CannotConvertException: " + cce);
- output = "com.sun.star.script.CannotConvertException";
- } catch (com.sun.star.uno.RuntimeException re) {
- log.println("caught RuntimeException: " + re);
- output = "com.sun.star.uno.RuntimeException";
- }
-
- log.println("expected: " + expected + ", output: " + output);
- return (output.equals(expected));
- }
-
- private int getStorageId(String location) {
-
- if (location.equals("share"))
- return 0;
-
- if (location.equals("user"))
- return 1;
-
- XSimpleFileAccess access = null;
- String uri = util.utils.getFullTestURL(location);
-
- if (storageManager == null) {
- try {
- XPropertySet xProp = UnoRuntime.queryInterface(
- XPropertySet.class, tParam.getMSF());
-
- XComponentContext xContext = UnoRuntime.queryInterface(XComponentContext.class,
- xProp.getPropertyValue("DefaultContext"));
-
- XInterface ifc = (XInterface)
- xContext.getValueByName("/singletons/drafts.com.sun.star." +
- "script.framework.storage.theScriptStorageManager");
-
- storageManager = UnoRuntime.queryInterface(XScriptStorageManager.class, ifc);
- } catch (Exception e) {
- return -1;
- }
- }
-
- access = getXSimpleFileAccess();
-
- if (access == null)
- return -1;
-
- int id = storageManager.createScriptStorageWithURI(access, uri);
-
- return id;
- }
-
- private XSimpleFileAccess getXSimpleFileAccess() {
- XSimpleFileAccess access = null;
-
- try {
- Object fa = tParam.getMSF().createInstance(
- "com.sun.star.ucb.SimpleFileAccess");
-
- access = UnoRuntime.queryInterface(XSimpleFileAccess.class, fa);
- } catch (com.sun.star.uno.Exception e) {
- return null;
- }
-
- return access;
- }
-}
diff --git a/scripting/workben/ifc/scripting/_XScriptSecurity.java b/scripting/workben/ifc/scripting/_XScriptSecurity.java
deleted file mode 100644
index f06d4288a6c4..000000000000
--- a/scripting/workben/ifc/scripting/_XScriptSecurity.java
+++ /dev/null
@@ -1,353 +0,0 @@
-/*
- * 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 .
- */
-
-package ifc.scripting;
-
-import java.util.Iterator;
-import java.util.Collection;
-
-import drafts.com.sun.star.script.framework.security.XScriptSecurity;
-import drafts.com.sun.star.script.framework.storage.XScriptStorageManager;
-
-import com.sun.star.lang.XMultiServiceFactory;
-import com.sun.star.ucb.XSimpleFileAccess;
-import com.sun.star.beans.XPropertySet;
-import com.sun.star.beans.PropertyValue;
-import com.sun.star.uno.XComponentContext;
-import com.sun.star.uno.UnoRuntime;
-import com.sun.star.uno.XInterface;
-import com.sun.star.container.XNameReplace;
-import com.sun.star.util.XChangesBatch;
-import lib.MultiMethodTest;
-import lib.StatusException;
-import lib.Parameters;
-
-public class _XScriptSecurity extends MultiMethodTest {
-
- public XScriptSecurity oObj = null;
- private XScriptStorageManager storageManager = null;
-
- /**
- * Retrieves object relation.
- */
- @Override
- public void before() throws StatusException {
- }
-
- @Override
- public void after() throws StatusException {
- }
-
- public void _checkPermission() {
- boolean result = true;
-
- Collection c =
- (Collection) tEnv.getObjRelation("_checkPermission");
-
- Iterator tests;
-
- if (c != null) {
- tests = c.iterator();
-
- while (tests.hasNext()) {
- result &= runCheckPermissionTest((Parameters)tests.next());
- }
- } else {
- result = false;
- }
-
- // set security to always without confirmation dialog and empty path
- // list so other tests can run without dialog popping up
- setSecurity(2, "false", "false", null);
-
- tRes.tested("checkPermission()", result);
- }
-
- private boolean runCheckPermissionTest(Parameters testdata) {
- // description of test
- String description = testdata.get("description");
-
- // document location
- String location = testdata.get("location");
-
- //security settings
- String runmacro = testdata.get("runmacro");
- String confirm = testdata.get("confirm");
- String warning = testdata.get("warning");
- String pathlist = testdata.get("pathlist");
-
- //do this test produce a dialog?
- String dialog = testdata.get("dialog");
- //is checkbox to be ticked?
- String checkBoxStr = testdata.get("checkbox");
- //name of button in dialog to press
- String buttonName = testdata.get("buttonName");
-
- //expected result
- String expected = testdata.get("expected");
- //do we need to check the pathlist?
- String checkpath = testdata.get("checkpath");
-
- String output = null;
-
- log.println(description);
-
- // get the officeBasic setting
- int officeBasic = 0;
-
- if (runmacro.equals("never")) {
- officeBasic = 0;
- } else if (runmacro.equals("pathlist")) {
- officeBasic = 1;
- } else if (runmacro.equals("always")) {
- officeBasic = 2;
- }
-
- // should pathlist include doc?
- String secureURLs = null;
-
- if (pathlist.equals("true")) {
- String uri = util.utils.getFullTestURL(location);
- secureURLs = uri.substring(0, uri.lastIndexOf('/'));
- }
-
- if (!setSecurity(officeBasic, confirm, warning, secureURLs)) {
- log.println("failed to set security");
- return false;
- }
-
- if (dialog.equals("true")) {
- // is the checkbox to be ticked?
- boolean checkBox = false;
-
- if (checkBoxStr.equals("true")) {
- checkBox = true;
- }
-
- new SecurityDialogUtil(tParam.getMSF(), buttonName, checkBox).start();
- }
-
- // need to set up dialog utils thread first
- int storageId = getStorageId(location);
-
- try {
- String uri = util.utils.getFullTestURL(location);
- oObj.checkPermission(uri, "execute");
- output = "true";
- } catch (com.sun.star.security.AccessControlException ace) {
- log.println("Couldn't invoke script:" + ace);
- output = "com.sun.star.security.AccessControlException";
- } catch (com.sun.star.lang.IllegalArgumentException iae) {
- log.println("Couldn't invoke script:" + iae);
- output = "com.sun.star.lang.IllegalArgumentException";
- } catch (com.sun.star.uno.RuntimeException re) {
- log.println("Couldn't invoke script:" + re);
- output = "com.sun.star.uno.RuntimeException";
- }
-
- log.println("expected: " + expected + ", output: " + output);
-
- if (output.equals(expected)) {
- if (checkpath.equals("true")) {
- String setPath = getPathList();
- String expectedPath = "empty";
-
- if (checkBoxStr.equals("true")) {
- String uri = util.utils.getFullTestURL(location);
- expectedPath = uri.substring(0, uri.lastIndexOf('/'));
- }
-
- log.println("pathlist: expected: " + expectedPath + ", output: " + setPath);
- return setPath.equals(expectedPath);
- }
-
- return true;
- } else
- return false;
- }
-
- private String getPathList() {
- String result = "";
-
- try {
- Object oProv = tParam.getMSF().createInstance(
- "com.sun.star.configuration.ConfigurationProvider");
-
- XMultiServiceFactory xProv = UnoRuntime.queryInterface(
- XMultiServiceFactory.class, oProv);
-
- //the path to the security settings in the registry
- PropertyValue aPathArg = new PropertyValue();
- aPathArg.Name = "nodepath";
- aPathArg.Value = "org.openoffice.Office.Common/Security/Scripting";
- // we don't want to cache the write
- PropertyValue aModeArg = new PropertyValue();
- aModeArg.Name = "lazywrite";
- aModeArg.Value = Boolean.FALSE;
-
- Object[] aArgs = new Object[2];
- aArgs[0] = aPathArg;
- aArgs[1] = aModeArg;
- Object oConfigUpdate = xProv.createInstanceWithArguments(
- "com.sun.star.configuration.ConfigurationAccess",
- aArgs);
- XPropertySet xPropertySet = UnoRuntime.queryInterface(
- XPropertySet.class, oConfigUpdate);
-
- String[] paths = (String[])xPropertySet.getPropertyValue("SecureURL");
-
- if (paths == null || paths.length == 0)
- result = "empty";
- else
- result = paths[0];
-
- } catch (Exception e) {
- result = e.getClass().getName() + " getting list of secure URLs";
- }
-
- return result;
- }
-
- private boolean setSecurity(int officeBasic, String confirm,
- String warning, String secureURLs) {
- boolean success = false;
-
- try {
- Object oProv = tParam.getMSF().createInstance(
- "com.sun.star.configuration.ConfigurationProvider");
-
- XMultiServiceFactory xProv = UnoRuntime.queryInterface(
- XMultiServiceFactory.class, oProv);
-
- //the path to the security settings in the registry
- PropertyValue aPathArg = new PropertyValue();
- aPathArg.Name = "nodepath";
- aPathArg.Value = "org.openoffice.Office.Common/Security/Scripting";
- // we don't want to cache the write
- PropertyValue aModeArg = new PropertyValue();
- aModeArg.Name = "lazywrite";
- aModeArg.Value = Boolean.FALSE;
-
- Object[] aArgs = new Object[2];
- aArgs[0] = aPathArg;
- aArgs[1] = aModeArg;
- Object oConfigUpdate = xProv.createInstanceWithArguments(
- "com.sun.star.configuration.ConfigurationUpdateAccess",
- aArgs);
- XNameReplace xNameReplace = UnoRuntime.queryInterface(
- XNameReplace.class, oConfigUpdate);
- XChangesBatch xChangesBatch = UnoRuntime.queryInterface(
- XChangesBatch.class, oConfigUpdate);
-
- Object[] aSecureURLs;
-
- if (secureURLs == null) {
- aSecureURLs = new Object[0];
- } else {
- aSecureURLs = new Object[1];
- aSecureURLs[0] = secureURLs;
- }
-
- log.println("setting SecureURL");
- xNameReplace.replaceByName("SecureURL", aSecureURLs);
-
- log.println("setting OfficeBasic");
- xNameReplace.replaceByName("OfficeBasic", Integer.valueOf(officeBasic));
-
- Boolean bConfirm = null;
-
- if ((confirm != null) && (confirm.equals("true"))) {
- bConfirm = Boolean.TRUE;
- } else {
- bConfirm = Boolean.FALSE;
- }
-
- log.println("setting Confirmation");
- xNameReplace.replaceByName("Confirmation", bConfirm);
-
- Boolean bWarning = null;
-
- if ((warning != null) && (warning.equals("true"))) {
- bWarning = Boolean.TRUE;
- } else {
- bWarning = Boolean.FALSE;
- }
-
- log.println("setting Warning");
- xNameReplace.replaceByName("Warning", bWarning);
-
- // and now commit the changes
- xChangesBatch.commitChanges();
- success = true;
- } catch (Exception e) {
- log.println("Error updating security settings: " +
- e.getMessage());
- }
-
- return success;
- }
-
- private int getStorageId(String location) {
-
- XSimpleFileAccess access = null;
- String uri = util.utils.getFullTestURL(location);
-
- if (storageManager == null) {
- try {
- XPropertySet xProp = UnoRuntime.queryInterface(
- XPropertySet.class, tParam.getMSF());
-
- XComponentContext xContext = UnoRuntime.queryInterface(XComponentContext.class,
- xProp.getPropertyValue("DefaultContext"));
-
- XInterface ifc = (XInterface)
- xContext.getValueByName("/singletons/drafts.com.sun.star." +
- "script.framework.storage.theScriptStorageManager");
-
- storageManager = UnoRuntime.queryInterface(XScriptStorageManager.class, ifc);
- } catch (Exception e) {
- return -1;
- }
- }
-
- access = getXSimpleFileAccess();
-
- if (access == null)
- return -1;
-
- int id = storageManager.createScriptStorageWithURI(access, uri);
-
- return id;
- }
-
- private XSimpleFileAccess getXSimpleFileAccess() {
- XSimpleFileAccess access = null;
-
- try {
- Object fa = tParam.getMSF().createInstance(
- "com.sun.star.ucb.SimpleFileAccess");
-
- access = UnoRuntime.queryInterface(XSimpleFileAccess.class, fa);
- } catch (com.sun.star.uno.Exception e) {
- return null;
- }
-
- return access;
- }
-
-}
diff --git a/scripting/workben/ifc/scripting/_XScriptStorageManager.java b/scripting/workben/ifc/scripting/_XScriptStorageManager.java
deleted file mode 100644
index 0e300317cb60..000000000000
--- a/scripting/workben/ifc/scripting/_XScriptStorageManager.java
+++ /dev/null
@@ -1,257 +0,0 @@
-/*
- * 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 .
- */
-
-package ifc.scripting;
-
-import drafts.com.sun.star.script.framework.storage.XScriptStorageManager;
-import drafts.com.sun.star.script.framework.storage.XScriptInfoAccess;
-
-import java.util.Iterator;
-import java.util.Collection;
-
-import com.sun.star.uno.UnoRuntime;
-import com.sun.star.uno.XInterface;
-import com.sun.star.ucb.XSimpleFileAccess;
-import lib.MultiMethodTest;
-import lib.StatusException;
-import lib.Parameters;
-
-public class _XScriptStorageManager extends MultiMethodTest {
-
- public XScriptStorageManager oObj = null;
-
- /**
- * Retrieves object relation.
- */
- @Override
- public void before() throws StatusException {
- }
-
- public void _createScriptStorage() {
- boolean result = true;
-
- Collection c =
- (Collection) tEnv.getObjRelation("_createScriptStorage");
-
- if (c == null) {
- tRes.tested("createScriptStorage()", false);
- return;
- }
-
- Iterator tests = c.iterator();
-
- while (tests.hasNext()) {
- Parameters testdata = (Parameters)tests.next();
- String expected = testdata.get("expected");
- String output = "";
-
- log.println(testdata.get("description"));
-
- XSimpleFileAccess access = getXSimpleFileAccess();
-
- if (access == null) {
- output = "Couldn't create XSimpleFileAccess";
- } else {
- try {
- int id = oObj.createScriptStorage(access);
- output = "success";
- } catch (com.sun.star.uno.RuntimeException re) {
- log.println("Exception from createScriptStorage: " + re);
- output = "com.sun.star.uno.RuntimeException";
- }
- }
-
- log.println("expected: " + expected + ", output: " + output);
- result &= output.equals(expected);
- }
-
- tRes.tested("createScriptStorage()", result);
- }
-
- public void _createScriptStorageWithURI() {
- boolean result = true;
-
- Collection c =
- (Collection) tEnv.getObjRelation("_createScriptStorageWithURI");
-
- if (c == null) {
- tRes.tested("createScriptStorageWithURI()", false);
- return;
- }
-
- Iterator tests = c.iterator();
-
- while (tests.hasNext()) {
- Parameters testdata = (Parameters)tests.next();
- String expected = testdata.get("expected");
- String location = testdata.get("location");
- String output = "";
-
- log.println(testdata.get("description"));
-
- String uri = util.utils.getFullTestURL(location);
- XSimpleFileAccess access = getXSimpleFileAccess();
-
- try {
- int id = oObj.createScriptStorageWithURI(access, uri);
-
- XInterface ifc = (XInterface)oObj.getScriptStorage(id);
-
- if (ifc == null)
- output = "null";
- else {
- Object info = UnoRuntime.queryInterface(
- XScriptInfoAccess.class, ifc);
-
- if (info == null)
- output = "null";
- else
- output = "XScriptInfoAccess.class";
- }
- } catch (com.sun.star.uno.RuntimeException re) {
- log.println("Caught RuntimeException: " + re);
- output = "com.sun.star.uno.RuntimeException";
- }
-
- log.println("expected: " + expected + ", output: " + output);
- result &= output.equals(expected);
- }
-
- tRes.tested("createScriptStorageWithURI()", result);
- }
-
- public void _getScriptStorage() {
- boolean result = true;
-
- Collection c =
- (Collection) tEnv.getObjRelation("_getScriptStorage");
-
- if (c == null) {
- tRes.tested("getScriptStorage()", false);
- return;
- }
-
- Iterator tests = c.iterator();
-
- while (tests.hasNext()) {
- Parameters testdata = (Parameters)tests.next();
- String expected = testdata.get("expected");
- String location = testdata.get("location");
- String output = "";
-
- log.println(testdata.get("description"));
-
- try {
- int storageid = getStorageId(location);
-
- XInterface ifc = (XInterface)oObj.getScriptStorage(storageid);
-
- if (ifc == null)
- output = "null";
- else {
- Object info = UnoRuntime.queryInterface(
- XScriptInfoAccess.class, ifc);
-
- if (info == null)
- output = "null";
- else
- output = "XScriptInfoAccess.class";
- }
- } catch (com.sun.star.uno.RuntimeException re) {
- log.println("Caught RuntimeException: " + re);
- output = "com.sun.star.uno.RuntimeException";
- }
-
- log.println("expected: " + expected + ", output: " + output);
- result &= output.equals(expected);
- }
-
- tRes.tested("getScriptStorage()", result);
- }
-
- public void _refreshScriptStorage() {
- boolean result = true;
-
- Collection c =
- (Collection) tEnv.getObjRelation("_refreshScriptStorage");
-
- if (c == null) {
- tRes.tested("refreshScriptStorage()", false);
- return;
- }
-
- Iterator tests = c.iterator();
-
- while (tests.hasNext()) {
- Parameters testdata = (Parameters)tests.next();
- String expected = testdata.get("expected");
- String location = testdata.get("location");
- String output = "";
-
- log.println(testdata.get("description"));
-
- try {
- String uri = util.utils.getFullTestURL(location);
- log.println("calling refreshScriptStorage with URI: " + uri);
- oObj.refreshScriptStorage(uri);
- output = "success";
- } catch (com.sun.star.uno.RuntimeException re) {
- log.println("Caught RuntimeException: " + re);
- output = "com.sun.star.uno.RuntimeException";
- }
-
- log.println("expected: " + expected + ", output: " + output);
- result &= output.equals(expected);
- }
-
- tRes.tested("refreshScriptStorage()", result);
- }
-
- private int getStorageId(String location) {
-
- if (location.equals("share"))
- return 0;
-
- if (location.equals("user"))
- return 1;
-
- String uri = util.utils.getFullTestURL(location);
-
- XSimpleFileAccess access = getXSimpleFileAccess();
-
- if (access == null)
- return -1;
-
- return oObj.createScriptStorageWithURI(access, uri);
- }
-
- private XSimpleFileAccess getXSimpleFileAccess() {
- XSimpleFileAccess access = null;
-
- try {
- Object fa = tParam.getMSF().createInstance(
- "com.sun.star.ucb.SimpleFileAccess");
-
- access = UnoRuntime.queryInterface(XSimpleFileAccess.class, fa);
- } catch (com.sun.star.uno.Exception e) {
- return null;
- }
-
- return access;
- }
-}
diff --git a/scripting/workben/ifc/scripting/_XScriptStorageRefresh.java b/scripting/workben/ifc/scripting/_XScriptStorageRefresh.java
deleted file mode 100644
index fb4bd7c0a316..000000000000
--- a/scripting/workben/ifc/scripting/_XScriptStorageRefresh.java
+++ /dev/null
@@ -1,75 +0,0 @@
-/*
- * 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 .
- */
-
-package ifc.scripting;
-
-import drafts.com.sun.star.script.framework.storage.XScriptStorageRefresh;
-
-import java.util.Collection;
-import java.util.Iterator;
-
-import lib.MultiMethodTest;
-import lib.StatusException;
-import lib.Parameters;
-
-public class _XScriptStorageRefresh extends MultiMethodTest {
-
- public XScriptStorageRefresh oObj = null;
-
- /**
- * Retrieves object relation.
- */
- @Override
- public void before() throws StatusException {
- }
-
- public void _refresh() {
- boolean result = true;
-
- Collection c =
- (Collection) tEnv.getObjRelation("_refresh");
-
- if (c == null) {
- tRes.tested("refresh()", false);
- return;
- }
-
- Iterator tests = c.iterator();
-
- while (tests.hasNext()) {
- Parameters testdata = (Parameters)tests.next();
- String expected = testdata.get("expected");
- String output = "";
-
- log.println(testdata.get("description"));
-
- try {
- oObj.refresh();
- output = "success";
- } catch (com.sun.star.uno.RuntimeException re) {
- log.println("Caught RuntimeException: " + re);
- output = "com.sun.star.uno.RuntimeException";
- }
-
- log.println("expected: " + expected + ", output: " + output);
- result &= output.equals(expected);
- }
-
- tRes.tested("refresh()", result);
- }
-}
diff --git a/scripting/workben/ifc/scripting/makefile.mk b/scripting/workben/ifc/scripting/makefile.mk
deleted file mode 100644
index 00a60eef73f3..000000000000
--- a/scripting/workben/ifc/scripting/makefile.mk
+++ /dev/null
@@ -1,31 +0,0 @@
-#
-# 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 .
-#
-
-PRJ = ..$/..$/..$/..
-PRJNAME = testcase
-TARGET = testcase
-
-# --- Settings -----------------------------------------------------
-.INCLUDE: settings.mk
-
-JARFILES = ridl.jar unoil.jar jurt.jar juh.jar $(CLASSPATH)$
-JAVAFILES = $(foreach,j,$(shell @ls | grep java) $j)
-
-# --- Targets ------------------------------------------------------
-
-.INCLUDE : target.mk
diff --git a/scripting/workben/installer/Banner.java b/scripting/workben/installer/Banner.java
deleted file mode 100644
index 79e28a7d5af8..000000000000
--- a/scripting/workben/installer/Banner.java
+++ /dev/null
@@ -1,41 +0,0 @@
-/*
- * 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 .
- */
-
-package installer;
-
-import java.awt.*;
-
-public class Banner extends Canvas {
- Image img;
- Banner() {
- setBackground(Color.white);
- img = Toolkit.getDefaultToolkit().createImage("sidebar.jpg");
- }
-
- @Override
- public void paint(Graphics g) {
- g.drawImage(img, 0, 0, Color.white, null);
- g.dispose();
- }
-
- @Override
- public Dimension getPreferredSize() {
- return new Dimension(137, 358);
- }
-
-}
diff --git a/scripting/workben/installer/ExceptionTraceHelper.java b/scripting/workben/installer/ExceptionTraceHelper.java
deleted file mode 100644
index ecde5e448072..000000000000
--- a/scripting/workben/installer/ExceptionTraceHelper.java
+++ /dev/null
@@ -1,49 +0,0 @@
-/*
- * 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 .
- */
-
-package installer;
-import java.io.ByteArrayOutputStream;
-import java.io.PrintStream;
-
-// class for propagating the exception stack traces across the Java/UNO bridge
-public class ExceptionTraceHelper {
- public static String getTrace(Exception e) {
- ByteArrayOutputStream baos = null;
- PrintStream ps = null;
- String result = "";
-
- try {
- baos = new ByteArrayOutputStream(128);
- ps = new PrintStream(baos);
- e.printStackTrace(ps);
- } finally {
- try {
- if (baos != null) {
- baos.close();
- }
-
- if (ps != null) {
- ps.close();
- }
- } catch (Exception excp) {
- }
- }
-
- return result;
- }
-}
diff --git a/scripting/workben/installer/ExecCmd.java b/scripting/workben/installer/ExecCmd.java
deleted file mode 100644
index e52a63aefac0..000000000000
--- a/scripting/workben/installer/ExecCmd.java
+++ /dev/null
@@ -1,105 +0,0 @@
-/*
- * 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 .
- */
-
-package installer;
-import java.io.*;
-public class ExecCmd {
-
- public boolean exec(String cmd, String[] env) {
- System.out.println("About to exectute " + cmd);
- final Process p;
- boolean result = false;
-
- try {
- Runtime rt = Runtime.getRuntime();
- p = rt.exec(cmd, env);
- new Thread(new Runnable() {
- public void run() {
- BufferedReader br_in = null;
-
- try {
- br_in = new BufferedReader(new InputStreamReader(p.getInputStream()));
- String buff = null;
-
- while ((buff = br_in.readLine()) != null) {
- System.out.println("Process out :" + buff);
- /*try
- {
- Thread.sleep(100);
- }
- catch(Exception e) {}*/
- }
-
- System.out.println("finished reading out");
- } catch (IOException ioe) {
- System.out.println("Exception caught printing javac result");
- ioe.printStackTrace();
- } finally {
- if (br_in != null) {
- try {
- br_in.close();
- } catch (Exception e) {} // nothing can be done
- }
- }
- }
- }).start();
-
- new Thread(new Runnable() {
- public void run() {
- BufferedReader br_err = null;
-
- try {
- br_err = new BufferedReader(new InputStreamReader(p.getErrorStream()));
- String buff = null;
-
- while ((buff = br_err.readLine()) != null) {
- System.out.println("Process err :" + buff);
- }
-
- System.out.println("finished reading err");
- } catch (IOException ioe) {
- System.out.println("Exception caught printing javac result");
- ioe.printStackTrace();
- } finally {
- if (br_err != null) {
- try {
- br_err.close();
- } catch (Exception e) {} // nothing can be done
- }
- }
- }
- }).start();
- int exitcode = p.waitFor();
-
- if (exitcode != 0) {
- System.out.println("cmd [" + cmd + "] failed");
- result = false;
- } else {
- System.out.println("cmd [" + cmd + "] completed successfully");
- result = true;
- }
- } catch (Exception e) {
- System.out.println("Exception");
- e.printStackTrace();
- }
-
- System.out.println("command complete");
- return result;
- }
-}
-
diff --git a/scripting/workben/installer/FileUpdater.java b/scripting/workben/installer/FileUpdater.java
deleted file mode 100644
index 6ba73692ca99..000000000000
--- a/scripting/workben/installer/FileUpdater.java
+++ /dev/null
@@ -1,183 +0,0 @@
-/*
- * 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 .
- */
-
-package installer;
-
-import java.io.*;
-import javax.swing.JLabel;
-
-public class FileUpdater {
-
-
-
-
- public static boolean updateScriptXLC(String installPath, JLabel statusLabel) {
-
- File in_file = null;
- File out_file = null;
- FileWriter out = null;
- int count = 0;
-
- try {
- in_file = new File(installPath + File.separator + "user" + File.separator +
- "basic" + File.separator + "script.xlc");
-
- String[] xmlArray = new String[50];
-
- try {
- BufferedReader reader = new BufferedReader(new FileReader(in_file));
- count = -1;
-
- for (String s = reader.readLine(); s != null;
- s = reader.readLine()) { //</oor:node>
- count = count + 1;
- xmlArray[count] = s;
- }
-
- reader.close();
- } catch (IOException ioe) {
- String message = "Error reading script.xlc, please view SFrameworkInstall.log.";
- System.out.println(message);
- ioe.printStackTrace();
- statusLabel.setText(message);
- return false;
- }
-
- in_file.delete();
-
- out_file = new File(installPath + File.separator + "user" + File.separator +
- "basic" + File.separator + "script.xlc");
- out_file.createNewFile();
- out = new FileWriter(out_file);
-
- //split the string into a string array with one line of xml in each element
- for (int i = 0; i < count + 1; i++) {
- out.write(xmlArray[i] + "\n");
-
- if ((xmlArray[i].indexOf("<library:libraries xmlns:library") != -1)
- && (xmlArray[i + 1].indexOf("ScriptBindingLibrary") == -1)) {
- String opSys = System.getProperty("os.name");
-
- if (opSys.indexOf("Windows") != -1) {
- out.write(" <library:library library:name=\"ScriptBindingLibrary\" library:link=\"true\"/>\n");
- } else {
- out.write(" <library:library library:name=\"ScriptBindingLibrary\" xlink:href=\"file://"
- + installPath +
- "/share/basic/ScriptBindingLibrary/script.xlb/\" xlink:type=\"simple\" library:link=\"true\"/>\n");
- }
- }
- }
- } catch (Exception e) {
- String message =
- "\nError updating script.xlc, please view SFrameworkInstall.log.";
- System.out.println(message);
- e.printStackTrace();
- statusLabel.setText(message);
- return false;
- } finally {
- try {
- out.close();
- } catch (Exception e) {
- System.out.println("Update Script.xlc Failed, please view SFrameworkInstall.log.");
- e.printStackTrace();
- System.err.println(e);
- }
- }
-
- return true;
- }// updateScriptXLC
-
-
- public static boolean updateDialogXLC(String installPath, JLabel statusLabel) {
- File in_file = null;
- File out_file = null;
- FileWriter out = null;
- int count = 0;
-
- try {
- in_file = new File(installPath + File.separator + "user" + File.separator +
- "basic" + File.separator + "dialog.xlc");
-
- String[] xmlArray = new String[50];
-
- try {
- BufferedReader reader = new BufferedReader(new FileReader(in_file));
- count = -1;
-
- for (String s = reader.readLine(); s != null; s = reader.readLine()) {
- count = count + 1;
- xmlArray[count] = s;
- }
-
- reader.close();
- } catch (IOException ioe) {
-
- String message =
- "\nError reading dialog.xlc, please view SFrameworkInstall.log.";
- System.out.println(message);
- statusLabel.setText(message);
- return false;
- }
-
- in_file.delete();
-
- out_file = new File(installPath + File.separator + "user" + File.separator +
- "basic" + File.separator + "dialog.xlc");
- out_file.createNewFile();
-
- out = new FileWriter(out_file);
-
- //split the string into a string array with one line of xml in each element
- for (int i = 0; i < count + 1; i++) {
- out.write(xmlArray[i] + "\n");
-
- if ((xmlArray[i].indexOf("<library:libraries xmlns:library") != -1)
- && (xmlArray[i + 1].indexOf("ScriptBindingLibrary") == -1)) {
- String opSys = System.getProperty("os.name");
-
- if (opSys.indexOf("Windows") != -1) {
- out.write(" <library:library library:name=\"ScriptBindingLibrary\" library:link=\"true\"/>\n");
- } else {
- out.write(" <library:library library:name=\"ScriptBindingLibrary\" xlink:href=\"file://"
- + installPath +
- "/share/basic/ScriptBindingLibrary/dialog.xlb/\" xlink:type=\"simple\" library:link=\"true\"/>\n");
- }
- }
- }
- } catch (Exception e) {
- String message =
- "\nError updating dialog.xlc, please view SFrameworkInstall.log.";
- System.out.println(message);
- e.printStackTrace();
- statusLabel.setText(message);
- return false;
- } finally {
- try {
- out.close();
- } catch (Exception e) {
- System.out.println("Update dialog.xlc Failed, please view SFrameworkInstall.log.");
- e.printStackTrace();
- System.err.println(e);
- }
- }
-
- return true;
- }// updateScriptXLC
-
-
-}
diff --git a/scripting/workben/installer/Final.java b/scripting/workben/installer/Final.java
deleted file mode 100644
index b951537e8e0c..000000000000
--- a/scripting/workben/installer/Final.java
+++ /dev/null
@@ -1,136 +0,0 @@
-/*
- * 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 .
- */
-
-package installer;
-
-import java.awt.event.*;
-import java.util.*;
-import javax.swing.*;
-
-public class Final extends javax.swing.JPanel implements ActionListener,
- InstallListener {
-
- /** Creates new form Welcome */
- public Final(InstallWizard wizard) {
- this.wizard = wizard;
- setBackground(java.awt.Color.white);
- xud = null;
- initComponents();
- }
-
- /** This method is called from within the constructor to
- * initialize the form.
- * WARNING: Do NOT modify this code. The content of this method is
- * always regenerated by the Form Editor.
- */
- private void initComponents() {//GEN-BEGIN:initComponents
- statusPanel = new javax.swing.JPanel();
- statusPanel.setBackground(java.awt.Color.white);
- statusLine = new javax.swing.JLabel("Ready", javax.swing.JLabel.CENTER);
-
- setLayout(new java.awt.BorderLayout());
-
- statusPanel.setLayout(new java.awt.BorderLayout());
-
- statusLine.setText("Waiting to install. \n All Office processes must be terminated.");
- statusPanel.add(statusLine, java.awt.BorderLayout.CENTER);
-
- add(statusPanel, java.awt.BorderLayout.CENTER);
- nav = new NavPanel(wizard, true, true, true, InstallWizard.VERSIONS, "");
- nav.setNextListener(this);
- nav.removeCancelListener(nav);
- nav.setCancelListener(this);
- nav.navNext.setText("Install");
- add(nav, java.awt.BorderLayout.SOUTH);
-
-
-
- }//GEN-END:initComponents
-
- @Override
- public java.awt.Dimension getPreferredSize() {
- return new java.awt.Dimension(InstallWizard.DEFWIDTH, InstallWizard.DEFHEIGHT);
- }
-
- public void actionPerformed(ActionEvent e) {
- // navNext is "Install"
- if (e.getSource() == nav.navNext) {
- JProgressBar progressBar = new JProgressBar();
- progressBar.setMaximum(10);
- progressBar.setValue(0);
- statusPanel.add(progressBar, java.awt.BorderLayout.SOUTH);
- nav.enableNext(false);
- nav.enableBack(false);
- nav.enableCancel(false);
- ArrayList<?> locations = InstallWizard.getLocations();
- // Returned 1
- String path = null;
-
- for (int i = 0; i < locations.size(); i++) {
- path = (String)locations.get(i);
- xud = new XmlUpdater(path, statusLine, progressBar,
- InstallWizard.bNetworkInstall, InstallWizard.bBindingsInstall);
- xud.addInstallListener(this);
- InstallWizard.setInstallStarted(true);
- InstallWizard.setPatchedTypes(false);
- InstallWizard.setPatchedJava(false);
- InstallWizard.setPatchedRDB(false);
- xud.start();
- }
- }
-
- // set to "Exit" at end of installation process
- if (e.getSource() == nav.navCancel) {
- int answer = JOptionPane.showConfirmDialog(wizard,
- "Are you sure you want to exit?");
-
- if (answer == JOptionPane.YES_OPTION) {
- wizard.exitForm();
- } else {
- return;
- }
- }
- }// actionPerformed
-
-
- public void installationComplete(InstallationEvent ev) {
- if (InstUtil.hasNetbeansInstallation()) {
- nav.removeCancelListener(this);
- nav.setCancelListener(nav);
- nav.navCancel.setText("Finish");
- nav.enableIDE(true);
- nav.enableCancel(true);
- xud = null;
- } else {
- nav.removeCancelListener(this);
- nav.setCancelListener(nav);
- nav.navCancel.setText("Finish");
- nav.enableCancel(true);
- xud = null;
- }
- }
-
- // Variables declaration - do not modify//GEN-BEGIN:variables
- private javax.swing.JPanel statusPanel;
- private javax.swing.JLabel statusLine;
- private InstallWizard wizard;
- private NavPanel nav;
- private XmlUpdater xud;
- // End of variables declaration//GEN-END:variables
-
-}
diff --git a/scripting/workben/installer/IdeFinal.java b/scripting/workben/installer/IdeFinal.java
deleted file mode 100644
index 93159b7b4e2b..000000000000
--- a/scripting/workben/installer/IdeFinal.java
+++ /dev/null
@@ -1,121 +0,0 @@
-/*
- * 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 .
- */
-
-package installer;
-
-import java.awt.event.*;
-import java.util.*;
-import javax.swing.*;
-
-public class IdeFinal extends javax.swing.JPanel implements ActionListener,
- InstallListener {
-
- /** Creates new form Welcome */
- public IdeFinal(InstallWizard wizard) {
- this.wizard = wizard;
- setBackground(java.awt.Color.white);
- ideupdater = null;
- initComponents();
- }
-
- /** This method is called from within the constructor to
- * initialize the form.
- * WARNING: Do NOT modify this code. The content of this method is
- * always regenerated by the Form Editor.
- */
- private void initComponents() {//GEN-BEGIN:initComponents
- statusPanel = new javax.swing.JPanel();
- statusPanel.setBackground(java.awt.Color.white);
- statusLine = new javax.swing.JLabel("Ready", javax.swing.JLabel.CENTER);
-
- setLayout(new java.awt.BorderLayout());
-
- statusPanel.setLayout(new java.awt.BorderLayout());
-
- statusLine.setText("Waiting to install IDE support.");
- statusPanel.add(statusLine, java.awt.BorderLayout.CENTER);
-
- add(statusPanel, java.awt.BorderLayout.CENTER);
- nav = new NavPanel(wizard, true, true, true, InstallWizard.IDEVERSIONS, "");
- nav.setNextListener(this);
- nav.removeCancelListener(nav);
- nav.setCancelListener(this);
- nav.navNext.setText("Install");
- add(nav, java.awt.BorderLayout.SOUTH);
- }//GEN-END:initComponents
-
- @Override
- public java.awt.Dimension getPreferredSize() {
- return new java.awt.Dimension(InstallWizard.DEFWIDTH, InstallWizard.DEFHEIGHT);
- }
-
- public void actionPerformed(ActionEvent e) {
- // navNext is "Install"
- if (e.getSource() == nav.navNext) {
- JProgressBar progressBar = new JProgressBar();
- progressBar.setMaximum(10);
- progressBar.setValue(0);
- statusPanel.add(progressBar, java.awt.BorderLayout.SOUTH);
- nav.enableNext(false);
- nav.enableBack(false);
- nav.enableCancel(false);
- ArrayList<?> locations = InstallWizard.getLocations();
- // Returned 1
- String path = null;
-
- for (int i = 0; i < locations.size(); i++) {
- path = (String)locations.get(i);
-
- ideupdater = new IdeUpdater(path, statusLine, progressBar);
- ideupdater.addInstallListener(this);
- InstallWizard.setInstallStarted(true);
- ideupdater.start();
- }
- }
-
- // set to "Exit" at end of installation process
- if (e.getSource() == nav.navCancel) {
- int answer = JOptionPane.showConfirmDialog(wizard,
- "Are you sure you want to exit?");
-
- if (answer == JOptionPane.YES_OPTION) {
- wizard.exitForm();
- } else {
- return;
- }
- }
- }// actionPerformed
-
-
- public void installationComplete(InstallationEvent ev) {
- nav.removeCancelListener(this);
- nav.setCancelListener(nav);
- nav.navCancel.setText("Finish");
- nav.enableCancel(true);
- ideupdater = null;
- }
-
- // Variables declaration - do not modify//GEN-BEGIN:variables
- private javax.swing.JPanel statusPanel;
- private javax.swing.JLabel statusLine;
- private InstallWizard wizard;
- private NavPanel nav;
- private IdeUpdater ideupdater;
- // End of variables declaration//GEN-END:variables
-
-}
diff --git a/scripting/workben/installer/IdeUpdater.java b/scripting/workben/installer/IdeUpdater.java
deleted file mode 100644
index b0ec0cd35cbf..000000000000
--- a/scripting/workben/installer/IdeUpdater.java
+++ /dev/null
@@ -1,113 +0,0 @@
-/*
- * 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 .
- */
-
-package installer;
-
-import java.io.*;
-import java.util.*;
-import javax.swing.*;
-
-/**
- * The <code>XmlUpdater</code> pulls a META-INF/converter.xml
- * file out of a jar file and parses it, providing access to this
- * information in a <code>Vector</code> of <code>ConverterInfo</code>
- * objects.
- */
-public class IdeUpdater extends Thread {
-
- private String installPath;
-
- private JLabel statusLabel;
-
- private ArrayList<InstallListener> listeners;
- private Thread internalThread;
- private boolean threadSuspended;
- private JProgressBar progressBar;
-
- private boolean isNetbeansPath = false;
-
-
- public IdeUpdater(String installPath, JLabel statusLabel, JProgressBar pBar) {
-
- if (!installPath.endsWith(File.separator))
- installPath += File.separator;
-
- File netbeansLauncher = new File(installPath + "bin");
-
- if (netbeansLauncher.isDirectory()) {
- isNetbeansPath = true;
- installPath = installPath + "modules" + File.separator;
- }
-
- System.out.println("IdeUpdater installPath is " + installPath +
- " isNetbeansPath is " + isNetbeansPath);
- this.installPath = installPath;
- this.statusLabel = statusLabel;
- listeners = new ArrayList<InstallListener>();
- threadSuspended = false;
- progressBar = pBar;
- progressBar.setStringPainted(true);
- }// XmlUpdater
-
-
- @Override
- public void run() {
-
- internalThread = Thread.currentThread();
-
- progressBar.setString("Unzipping Required Files");
- ZipData zd = new ZipData();
-
- // Adding IDE support
- if (isNetbeansPath) {
- if (!zd.extractEntry("ide/office.jar", installPath, statusLabel)) {
- onInstallComplete();
- return;
- }
- } else {
- if (!zd.extractEntry("ide/idesupport.jar", installPath, statusLabel)) {
- onInstallComplete();
- return;
- }
-
- if (!zd.extractEntry("ide/OfficeScripting.jar", installPath, statusLabel)) {
- onInstallComplete();
- return;
- }
- }
-
- statusLabel.setText("Installation Complete");
- progressBar.setString("Installation Complete");
- progressBar.setValue(10);
- onInstallComplete();
-
- }// run
-
-
- public void addInstallListener(InstallListener listener) {
- listeners.add(listener);
- }// addInstallListener
-
-
- private void onInstallComplete() {
- for (InstallListener l : listeners) {
- l.installationComplete(null);
- }
- }// onInstallComplete
-
-}// XmlUpdater class
diff --git a/scripting/workben/installer/IdeVersion.java b/scripting/workben/installer/IdeVersion.java
deleted file mode 100644
index 3a7cc5a485a4..000000000000
--- a/scripting/workben/installer/IdeVersion.java
+++ /dev/null
@@ -1,337 +0,0 @@
-/*
- * 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 .
- */
-
-package installer;
-
-import java.awt.*;
-import java.awt.event.*;
-import java.util.*;
-
-import javax.swing.*;
-import javax.swing.event.*;
-import javax.swing.table.*;
-
-public class IdeVersion extends javax.swing.JPanel implements ActionListener,
- TableModelListener {
-
- /** Creates new form Welcome */
- public IdeVersion(InstallWizard wizard) {
- this.wizard = wizard;
- setBackground(Color.white);
- initComponents();
- }
-
- /** This method is called from within the constructor to
- * initialize the form.
- * WARNING: Do NOT modify this code. The content of this method is
- * always regenerated by the Form Editor.
- */
- private void initComponents() {
- Properties props = null;
- JPanel versionPanel = new JPanel();
- setLayout(new BorderLayout());
-
-
- try {
- Properties netbeansProps = InstUtil.getNetbeansLocation();
- Properties ideProps = new Properties();
-
- if (netbeansProps != null) {
- System.out.println("**** Found netbeans install");
-
- for (int n = 0; n < netbeansProps.size(); n++) {
- for (int v = 0; v < InstUtil.versions.length; v++) {
- System.out.println("n: " + n + " v: " + v);
- String key = InstUtil.versions[v];
- System.out.println("It got here1");
- String path = null;
-
- if ((path = netbeansProps.getProperty(key)) != null) {
- ideProps.put(key, path);
- }
- }
- }
- }
-
- props = ideProps;
- } catch (Exception e) {
- System.err.println("Exception thrown in initComponents");
- }
-
- tableModel = new MyTableModelIDE(props, InstUtil.versions);
-
- if (tableModel.getRowCount() == 0) {
- JOptionPane.showMessageDialog(this, "No compatible IDEs were found.",
- "Invalid versions", JOptionPane.ERROR_MESSAGE);
- }
-
- tableModel.addTableModelListener(this);
- JTable tableVersions = new JTable(tableModel) {
- @Override
- public String getToolTipText(MouseEvent event) {
- int col = columnAtPoint(event.getPoint());
-
- if (col != 2)
- return null;
-
- int row = rowAtPoint(event.getPoint());
- Object o = getValueAt(row, col);
-
- if (o == null)
- return null;
-
- if (o.toString().equals(""))
- return null;
-
- return o.toString();
- }
-
- @Override
- public Point getToolTipLocation(MouseEvent event) {
- int col = columnAtPoint(event.getPoint());
-
- if (col != 2)
- return null;
-
- int row = rowAtPoint(event.getPoint());
- Object o = getValueAt(row, col);
-
- if (o == null)
- return null;
-
- if (o.toString().equals(""))
- return null;
-
- Point pt = getCellRect(row, col, true).getLocation();
- pt.translate(-1, -2);
- return pt;
- }
- };
-
- JScrollPane scroll = new JScrollPane(tableVersions);
-
- tableVersions.setPreferredSize(
- new Dimension(InstallWizard.DEFWIDTH, InstallWizard.DEFHEIGHT));
-
- tableVersions.setRowSelectionAllowed(false);
- tableVersions.setColumnSelectionAllowed(false);
- tableVersions.setCellSelectionEnabled(false);
-
- initColumnSizes(tableVersions, tableModel);
- versionPanel.add(scroll);
-
- JTextArea area = new
- JTextArea("Please select IDEs below that you wish to add Scripting support to");
- area.setLineWrap(true);
- area.setEditable(false);
- add(area, BorderLayout.NORTH);
- add(versionPanel, BorderLayout.CENTER);
- nav = new NavPanel(wizard, true, false, true, InstallWizard.IDEWELCOME,
- InstallWizard.IDEFINAL);
- nav.setNextListener(this);
- add(nav, BorderLayout.SOUTH);
-
- }// initComponents
-
-
- @Override
- public java.awt.Dimension getPreferredSize() {
- return new java.awt.Dimension(320, 280);
- }
-
-
- public void actionPerformed(ActionEvent ev) {
- InstallWizard.clearLocations();
- int len = tableModel.data.size();
-
- for (int i = 0; i < len; i++) {
- ArrayList<?> list = tableModel.data.get(i);
-
- if (((Boolean)list.get(0)).booleanValue())
- InstallWizard.storeLocation((String)list.get(2));
- }
- }
-
-
- public void tableChanged(TableModelEvent e) {
- if (tableModel.isAnySelected()) {
- nav.enableNext(true);
- } else {
- nav.enableNext(false);
- }
- }
-
- private void initColumnSizes(JTable table, MyTableModelIDE model) {
- TableColumn column = null;
- Component comp = null;
- int headerWidth = 0;
- int cellWidth = 0;
- int preferredWidth = 0;
- int totalWidth = 0;
- Object[] longValues = model.longValues;
-
- for (int i = 0; i < 3; i++) {
- column = table.getColumnModel().getColumn(i);
-
- try {
- comp = column.getHeaderRenderer().
- getTableCellRendererComponent(
- null, column.getHeaderValue(),
- false, false, 0, 0);
- headerWidth = comp.getPreferredSize().width;
- } catch (NullPointerException e) {
- // System.err.println("Null pointer exception!");
- // System.err.println(" getHeaderRenderer returns null in 1.3.");
- // System.err.println(" The replacement is getDefaultRenderer.");
- }
-
- // need to replace spaces in String before getting preferred width
- if (longValues[i] instanceof String) {
- longValues[i] = ((String)longValues[i]).replace(' ', '_');
- }
-
- System.out.println("longValues: " + longValues[i]);
- comp = table.getDefaultRenderer(model.getColumnClass(i)).
- getTableCellRendererComponent(
- table, longValues[i],
- false, false, 0, i);
- cellWidth = comp.getPreferredSize().width;
-
- preferredWidth = Math.max(headerWidth, cellWidth);
-
- if (false) {
- System.out.println("Initializing width of column "
- + i + ". "
- + "preferredWidth = " + preferredWidth
- + "; totalWidth = " + totalWidth
- + "; leftWidth = " + (InstallWizard.DEFWIDTH - totalWidth));
- }
-
- //XXX: Before Swing 1.1 Beta 2, use setMinWidth instead.
- if (i == 2) {
- if (preferredWidth > InstallWizard.DEFWIDTH - totalWidth)
- column.setPreferredWidth(InstallWizard.DEFWIDTH - totalWidth);
- else
- column.setPreferredWidth(preferredWidth);
- } else {
- column.setMinWidth(preferredWidth);
- totalWidth += preferredWidth;
- }
- }
- }
-
- // Variables declaration - do not modify//GEN-BEGIN:variables
- private InstallWizard wizard;
- private MyTableModelIDE tableModel;
- private NavPanel nav;
- // End of variables declaration//GEN-END:variables
-
-}
-
-class MyTableModelIDE extends AbstractTableModel {
- ArrayList<ArrayList<Object>> data;
- private String colNames[] = {"", "IDE Name", "IDE Location"};
- Object[] longValues = new Object[] {Boolean.TRUE, "Name", "Location"};
-
- MyTableModelIDE(Properties properties, String [] validVersions) {
- data = new ArrayList<ArrayList<Object>>();
-
- int len = validVersions.length;
-
- for (int i = 0; i < len; i++) {
- String key = validVersions[i];
- String path = null;
-
- if ((path = properties.getProperty(key)) != null) {
- ArrayList<Object> row = new ArrayList<Object>();
- row.add(0, Boolean.FALSE);
-
- row.add(1, key);
-
- if (key.length() > ((String)longValues[1]).length()) {
- longValues[1] = key;
- }
-
- row.add(2, path);
-
- if (path.length() > ((String)longValues[2]).length()) {
- longValues[2] = path;
- }
-
- data.add(row);
- }
- }
- }// MyTableModel
-
- public int getColumnCount() {
- return 3;
- }
-
- public int getRowCount() {
- return data.size();
- }
-
- @Override
- public String getColumnName(int col) {
- return colNames[col];
- }
-
- public Object getValueAt(int row, int col) {
- if (row < 0 || row > getRowCount() ||
- col < 0 || col > getColumnCount())
- return null;
-
- ArrayList<?> aRow = data.get(row);
- return aRow.get(col);
- }
-
- @Override
- public Class getColumnClass(int c) {
- return getValueAt(0, c).getClass();
- }
-
- @Override
- public boolean isCellEditable(int row, int col) {
- return (col == 0);
- }
-
- @Override
- public void setValueAt(Object value, int row, int col) {
- ArrayList<Object> aRow = data.get(row);
- aRow.set(col, value);
- fireTableCellUpdated(row, col);
- }
-
-
-
- public boolean isAnySelected() {
- Iterator iter = data.iterator();
-
- while (iter.hasNext()) {
- ArrayList<?> row = (ArrayList<?>)iter.next();
-
- if (((Boolean)row.get(0)).booleanValue()) {
- return true;
- }
- }
-
- return false;
- }
-
-}
-
diff --git a/scripting/workben/installer/IdeWelcome.java b/scripting/workben/installer/IdeWelcome.java
deleted file mode 100644
index c6852bbd639c..000000000000
--- a/scripting/workben/installer/IdeWelcome.java
+++ /dev/null
@@ -1,79 +0,0 @@
-/*
- * 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 .
- */
-
-package installer;
-
-import java.awt.event.*;
-
-public class IdeWelcome extends javax.swing.JPanel implements ActionListener {
-
- /** Creates new form Welcome */
- public IdeWelcome(InstallWizard wizard) {
- this.wizard = wizard;
- setBorder(new javax.swing.border.EtchedBorder(
- javax.swing.border.EtchedBorder.RAISED));
- initComponents();
- }
-
- /** This method is called from within the constructor to
- * initialize the form.
- * WARNING: Do NOT modify this code. The content of this method is
- * always regenerated by the Form Editor.
- */
- private void initComponents() {//GEN-BEGIN:initComponents
- welcomePanel = new javax.swing.JPanel();
- area = new javax.swing.JTextArea();
-
- setLayout(new java.awt.BorderLayout());
-
- welcomePanel.setLayout(new java.awt.BorderLayout());
- area.setEditable(false);
- area.setLineWrap(true);
- area.setText("\n Click Next to include Scripting Framework support for IDEs.");
- area.append("\n Click Cancel exit the Installation process. \n");
-
- if (InstUtil.hasNetbeansInstallation()) {
- area.append("\n \tA version of Netbeans has been detected. \n");
- }
-
- welcomePanel.add(area, java.awt.BorderLayout.CENTER);
- add(welcomePanel, java.awt.BorderLayout.CENTER);
- NavPanel nav = new NavPanel(wizard, false, true, true, "",
- InstallWizard.IDEVERSIONS);
- nav.setNextListener(this);
- add(nav, java.awt.BorderLayout.SOUTH);
-
- }//GEN-END:initComponents
-
- @Override
- public java.awt.Dimension getPreferredSize() {
- return new java.awt.Dimension(InstallWizard.DEFWIDTH, InstallWizard.DEFHEIGHT);
- }
-
- public void actionPerformed(ActionEvent ev) {
- //Perform next actions here...
- }
-
-
- // Variables declaration - do not modify//GEN-BEGIN:variables
- private javax.swing.JPanel welcomePanel;
- private javax.swing.JTextArea area;
- private InstallWizard wizard;
-
- // End of variables declaration//GEN-END:variables
-}
diff --git a/scripting/workben/installer/InstUtil.java b/scripting/workben/installer/InstUtil.java
deleted file mode 100644
index 262ce6c01e6b..000000000000
--- a/scripting/workben/installer/InstUtil.java
+++ /dev/null
@@ -1,326 +0,0 @@
-/*
- * 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 .
- */
-
-package installer;
-
-import java.net.URLDecoder;
-import java.io.*;
-import java.util.*;
-import java.net.*;
-
-public class InstUtil {
-
- public static File buildSversionLocation() throws IOException {
- File theFile = null;
- StringBuffer str = new StringBuffer();
- str.append(System.getProperty("user.home"));
- str.append(File.separator);
- StringBuffer thePath = new StringBuffer(str.toString());
-
- String os = System.getProperty("os.name");
-
- if (os.indexOf("Windows") != -1) {
- boolean bSVersionInHomeDir = new File(thePath.toString() +
- "sversion.ini").exists();
-
- if (!bSVersionInHomeDir) {
- thePath.append("Application Data");
- thePath.append(File.separator);
- }
-
- theFile = findVersionFile(new File(thePath.toString()));
- } else if (os.indexOf("SunOS") != -1) {
- thePath.append(".sversionrc");
- theFile = new File(thePath.toString());
- } else if (os.indexOf("Linux") != -1) {
- thePath.append(".sversionrc");
- theFile = new File(thePath.toString());
- }
-
- if (theFile == null) {
- throw new IOException("Could not locate the OpenOffice settings file.\nAre you sure StarOffice is installed on your system?");
- }
-
- if (!theFile.exists()) {
- throw new IOException("Could not locate the OpenOffice settings file.\nAre you sure StarOffice is installed on your system?");
- }
-
- return theFile;
- }
-
-
-
- public static boolean hasNetbeansInstallation() {
- boolean result = false;
- result = checkForSupportedVersion(getNetbeansLocation(), versions);
-
- if (!result)
- System.out.println("No supported version of NetBeans found.");
-
- return result;
- }
-
- private static boolean checkForSupportedVersion(Properties installs,
- String[] supportedVersions) {
- if (installs != null) {
- for (int index = 0; index < supportedVersions.length; index++) {
- String key = supportedVersions[ index ];
-
- if (installs.getProperty(key) != null) {
- // at least one supported version for netbeans present, so return;
- return true;
- }
-
- }
- }
-
- return false;
- }
-
-
-
-
-
-
- public static Properties getNetbeansLocation() {
- Properties results = new Properties();
-
- StringBuffer str = new StringBuffer();
- str.append(System.getProperty("user.home"));
- str.append(File.separator);
- StringBuffer thePath = new StringBuffer(str.toString());
-
- String os = System.getProperty("os.name");
-
- if (os.indexOf("Windows") != -1) {
- thePath.append(".netbeans");
- } else if (os.indexOf("SunOS") != -1) {
- thePath.append(".netbeans");
- } else if (os.indexOf("Linux") != -1) {
- thePath.append(".netbeans");
- }
-
- if (thePath.toString().indexOf(".netbeans") == -1)
- return null;
- else if (new File(thePath.append(File.separator + "3.4" +
- File.separator).toString()).isDirectory()) {
-
- System.out.println("Found NetBeans 3.4 user directory: " + thePath);
- File netbeansLogFile = new File(thePath.toString() + File.separator + "system" +
- File.separator + "ide.log");
-
- if (netbeansLogFile.exists()) {
- String installPath = getNetbeansInstallation(netbeansLogFile);
- File f = new File(installPath);
- results.put("NetBeans 3.4", f.getPath() + File.separator);
- System.out.println("NetBeans Installation directory: " + f.getPath());
- } else {
- System.out.println("No NetBeans log file found");
- return null;
- }
- } else {
- System.out.println("No NetBeans user directory found");
- return null;
- }
-
-
- return results;
- }
-
-
-
- private static String getNetbeansInstallation(File logFile) {
- String installPath = "";
-
- try {
- BufferedReader reader = new BufferedReader(new FileReader(logFile));
-
- for (String s = reader.readLine(); s != null; s = reader.readLine()) {
- if (s.indexOf("IDE Install") != -1) {
- int pathStart = s.indexOf("=") + 2;
- installPath = s.substring(pathStart, s.length());
- int pathEnd = installPath.indexOf(";");
- installPath = installPath.substring(0, pathEnd) + File.separator;
- break;
- }
- }
-
- reader.close();
- } catch (IOException ioe) {
- System.out.println("Error reading Netbeans location information");
- }
-
- return installPath;
- }
-
-
- private static File findVersionFile(File start) {
- File versionFile = null;
-
- File files[] = start.listFiles(new VersionFilter());
-
- if (files.length == 0) {
- File dirs[] = start.listFiles(new DirFilter());
-
- for (int i = 0; i < dirs.length; i++) {
- versionFile = findVersionFile(dirs[i]);
-
- if (versionFile != null) {
- break;
- }
- }
- } else {
- versionFile = files[0];
- }
-
- return versionFile;
- }
-
- private static boolean verifySversionExists(File sversionFile) {
- if (!sversionFile.exists())
- return false;
-
- return true;
- }
-
- public static Properties getOfficeVersions(File sversionFile) throws
- IOException {
- BufferedReader reader = new BufferedReader(new FileReader(sversionFile));
- String sectionName = null;
- Properties results = new Properties();
-
- for (String s = reader.readLine(); s != null; s = reader.readLine()) {
- if (s.length() == 0)
- continue;
-
- if (s.charAt(0) == '[') {
- sectionName = s.substring(1, s.length() - 1);
- continue;
- }
-
- if ((sectionName != null) && sectionName.equalsIgnoreCase("Versions")) {
- int equals = s.indexOf("=");
- String officeName = s.substring(0, equals);
-
- String instPath = s.substring(equals + 8, s.length());
- String [] parts = new String[2];
- parts[0] = officeName;
- parts[1] = instPath + File.separator;
-
- if (parts.length == 2) {
- try {
- URL url = new URL("file://" + parts[1].trim());
- String opSys = System.getProperty("os.name");
-
- if (opSys.indexOf("Windows") != -1) {
- String windowsPath = URLDecoder.decode(url.getPath());
- boolean firstSlash = true;
-
- while (windowsPath.indexOf("/") != -1) {
- int forwardSlashPos = windowsPath.indexOf("/");
- String firstPart = windowsPath.substring(0, forwardSlashPos);
- String lastPart = windowsPath.substring(forwardSlashPos + 1,
- windowsPath.length());
-
- if (firstSlash) {
- windowsPath = lastPart;
- firstSlash = false;
- } else {
- windowsPath = firstPart + "\\" + lastPart;
- }
- }
-
- int lastSlash = windowsPath.lastIndexOf("\\");
- windowsPath = windowsPath.substring(0, lastSlash);
- results.put(parts[0].trim(), windowsPath);
- } else {
- results.put(parts[0].trim(), URLDecoder.decode(url.getPath()));
- }
- } catch (MalformedURLException eSyntax) {
- results.put(parts[0].trim(), parts[1].trim());
- System.err.println("GotHereException");
- }
- } else {
- System.out.println("not splitting on equals");
- }
- }
- }
-
- reader.close();
- return results;
- }
-
- private static String getJavaVersion() {
- return System.getProperty("java.version");
- }
-
- private static boolean isCorrectJavaVersion() {
- if (System.getProperty("java.version").startsWith("1.4"))
- return true;
-
- return false;
- }
-
- public static void main(String args[]) {
- InstUtil inst = new InstUtil();
- File f = null;
-
- try {
- f = InstUtil.buildSversionLocation();
- } catch (IOException e) {
- e.printStackTrace();
- System.out.println(e.getMessage());
- }
-
- if (!InstUtil.verifySversionExists(f)) {
- System.err.println("Problem with sversion.ini");
- }
-
- try {
- InstUtil.getOfficeVersions(f);
- } catch (IOException e) {
- e.printStackTrace();
- System.err.println(e);
- }
-
- System.out.println(InstUtil.getJavaVersion());
-
- if (!InstUtil.isCorrectJavaVersion()) {
- System.err.println("Not correct Java Version");
- }
- }
-
- public static final String [] versions = {"NetBeans 3.4", "jEdit 4.0.3", "jEdit 4.1pre5" };
-}
-
-
-
-class DirFilter implements java.io.FileFilter {
- public boolean accept(File aFile) {
- return aFile.isDirectory();
- }
-}
-class VersionFilter implements java.io.FileFilter {
- public boolean accept(File aFile) {
- if (aFile.getName().compareToIgnoreCase("sversion.ini") == 0) {
- return true;
- }
-
- return false;
- }
-}
diff --git a/scripting/workben/installer/InstallListener.java b/scripting/workben/installer/InstallListener.java
deleted file mode 100644
index 81a005668369..000000000000
--- a/scripting/workben/installer/InstallListener.java
+++ /dev/null
@@ -1,23 +0,0 @@
-/*
- * 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 .
- */
-
-package installer;
-
-public interface InstallListener {
- void installationComplete(InstallationEvent e);
-}
diff --git a/scripting/workben/installer/InstallWizard.java b/scripting/workben/installer/InstallWizard.java
deleted file mode 100644
index fc9d3bdf19da..000000000000
--- a/scripting/workben/installer/InstallWizard.java
+++ /dev/null
@@ -1,350 +0,0 @@
-/*
- * 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 .
- */
-
-package installer;
-
-import javax.swing.*;
-import java.awt.*;
-import java.awt.event.*;
-import java.util.*;
-import java.net.*;
-import java.io.*;
-
-public class InstallWizard extends javax.swing.JFrame implements
- ActionListener {
- /*
- private static class ShutdownHook extends Thread {
- public void run()
- {
- if (InstallWizard.isInstallStarted())
- {
- // Check for and backup any config.xml files
- // Check for and backup any StarBasic macro files
- // Check for and backup ProtocolHandler
-
- if (!InstallWizard.isPatchedTypes())
- {
- File backup = new File(InstUtil.getTmpDir(), "TypeDetection.xml");
- File destination = new File(InstallWizard.getTypesPath());
- InstUtil.copy(backup, destination); //Restore typedetection.xml
- }
- if (!InstallWizard.isPatchedJava())
- {
- File backup = new File(InstUtil.getTmpDir(), "Java.xml");
- File destination = new File(InstallWizard.getJavaPath());
- InstUtil.copy(backup, destination); //Restore typedetection.xml
- }
- if (!InstallWizard.isPatchedRDB())
- {
- File backup = new File(InstUtil.getTmpDir(), "applicat.rdb");
- File destination = new File(InstallWizard.getJavaPath());
- //InstUtil.copy(backup, destination); //Restore typedetection.xml
- }
-
- System.out.println( "ShutdownHook" );
- }
-
- InstUtil.removeTmpDir();
- }
- }// class ShutdownHook
-
- static {
- Runtime rt=Runtime.getRuntime();
- rt.addShutdownHook(new ShutdownHook());
- }
- */
- /** Creates new form InstallWizard */
- public InstallWizard() {
- super("Office Scripting Framework Installer - Early Developer Release");
-
- try {
- System.out.print("All diagnostic output is being redirected to SFrameworkInstall.log\n");
- System.out.print("Location: " + System.getProperty("user.dir") +
- File.separator + "SFrameworkInstall.log\n");
-
- LogStream log = new LogStream("SFrameworkInstall.log");
- System.setErr(log);
-
- System.setOut(log);
- } catch (FileNotFoundException fnfe) {
- System.err.println("Office Scripting Framework Installer - Error: ");
- System.err.println("Unable to create log file for installation.");
- exitForm();
- }
-
- setBackground(new Color(0, 0, 0));
- locations = new ArrayList<String>();
- Point center = new Point(400, 400);
- int windowWidth = 200;
- int windowHeight = 300;
- setSize(windowWidth, windowHeight);
- setBounds((center.x - windowWidth / 2) - 115,
- (center.y - windowWidth / 2) - 100, windowWidth, windowHeight);
- initComponents();
- setResizable(false);
- }
-
- /** This method is called from within the constructor to
- * initialize the form.
- */
- private void initComponents() {
- navigation = new javax.swing.JPanel();
- navBack = new javax.swing.JButton();
- navNext = new javax.swing.JButton();
- navCancel = new javax.swing.JButton();
- screens = new javax.swing.JPanel();
-
- addWindowListener(new java.awt.event.WindowAdapter() {
- @Override
- public void windowClosing(java.awt.event.WindowEvent evt) {
- exitForm();
- }
- });
-
- navigation.setLayout(new java.awt.GridBagLayout());
- java.awt.GridBagConstraints gridBagConstraints1;
-
- navBack.setText("<< Back");
- gridBagConstraints1 = new java.awt.GridBagConstraints();
- gridBagConstraints1.insets = new java.awt.Insets(1, 1, 1, 1);
-
- navNext.setText("Next >>");
- gridBagConstraints1 = new java.awt.GridBagConstraints();
- gridBagConstraints1.gridx = 2;
- gridBagConstraints1.gridy = 0;
-
- navCancel.setText("Cancel");
- gridBagConstraints1 = new java.awt.GridBagConstraints();
- gridBagConstraints1.gridx = 6;
- gridBagConstraints1.gridy = 0;
-
- getContentPane().add(navigation, java.awt.BorderLayout.SOUTH);
- screens.setLayout(new java.awt.CardLayout());
- screens.add(WELCOME, new Welcome(this));
- version = new Version(this);
- screens.add(VERSIONS, version);
- _final = new Final(this);
- screens.add(FINAL, _final);
-
- boolean hasIDEInstallation = (InstUtil.hasNetbeansInstallation()) ;
-
- if (hasIDEInstallation) {
- idewelcome = new IdeWelcome(this);
- screens.add(IDEWELCOME, idewelcome);
- ideversion = new IdeVersion(this);
- screens.add(IDEVERSIONS, ideversion);
- idefinal = new IdeFinal(this);
- screens.add(IDEFINAL, idefinal);
- }
-
- getContentPane().add(screens, java.awt.BorderLayout.CENTER);
-
- navNext.addActionListener(this);
- navNext.addActionListener(version);
- navNext.addActionListener(_final);
-
- if (hasIDEInstallation) {
- navNext.addActionListener(ideversion);
- navNext.addActionListener(idefinal);
- }
-
- navCancel.addActionListener(this);
- navBack.addActionListener(this);
-
-
- URL url = this.getClass().getResource("sidebar.jpg");
- JLabel sideBar = new JLabel();
- sideBar.setIcon(new ImageIcon(url));
- getContentPane().add(sideBar, java.awt.BorderLayout.WEST);
- pack();
- }// initComponents
-
- /** Exit the Application */
- public void exitForm() {
- System.exit(0);
- }
-
-
- public void actionPerformed(ActionEvent e) {
- if (e.getSource() == navNext) {
- ((CardLayout)screens.getLayout()).next(screens);
- }
-
- if (e.getSource() == navCancel) {
- exitForm();
- }
-
- if (e.getSource() == navBack) {
- ((CardLayout)screens.getLayout()).previous(screens);
- }
- }// actionPerformed
-
- public static void storeLocation(String path) {
- locations.add(path);
- }
-
- public static ArrayList<String> getLocations() {
- return locations;
- }
-
- public static void clearLocations() {
- locations.clear();
- }
-
- public void show(String cardName) {
- ((CardLayout)screens.getLayout()).show(screens, cardName);
- }
-
- /**
- * @param args the command line arguments
- */
- public static void main(String args[]) {
- String officePath = null;
- String netbeansPath = null;
- int i = 0;
-
- while (i < args.length) {
- if (args[i].equals("-help")) {
- printUsage();
- System.exit(0);
- }
-
- if (args[i].equals("-office"))
- officePath = args[++i];
-
- if (args[i].equals("-netbeans"))
- netbeansPath = args[++i];
-
- if (args[i].equals("-net"))
- bNetworkInstall = true;
-
- if (args[i].equals("-bindings"))
- bBindingsInstall = true;
-
- i++;
- }
-
- if (officePath == null && netbeansPath == null)
- new InstallWizard().show();
-
- JLabel label = new JLabel();
- JProgressBar progressbar = new JProgressBar();
-
- try {
- System.out.println("Log file is: " +
- System.getProperty("user.dir") +
- File.separator + "SFrameworkInstall.log");
-
- LogStream log = new LogStream("SFrameworkInstall.log");
- System.setErr(log);
- System.setOut(log);
- } catch (FileNotFoundException fnfe) {
- System.err.println("Error: Unable to create log file: "
- + fnfe.getMessage());
- System.exit(-1);
- }
-
- if (officePath != null) {
- XmlUpdater xud = new XmlUpdater(officePath, label, progressbar, bNetworkInstall,
- bBindingsInstall);
- xud.run();
- }
-
- if (netbeansPath != null) {
- IdeUpdater ideup = new IdeUpdater(netbeansPath, label, progressbar);
- ideup.run();
- }
- }
-
- private static void printUsage() {
- System.err.println("java -jar SFrameworkInstall.jar");
- System.err.println("\t[-office <path_to_office_installation]");
- System.err.println("\t[-netbeans <path_to_netbeans_installation]");
- System.err.println("\t[-net]");
- System.err.println("\t[-bindings]");
- System.err.println("\n\n-net indicates that this is the network part of a network install.");
- System.err.println("-bindings will only install the menu & key bindings in user/config/soffice.cfg.");
- }
-
-
-
-
-
-
-
-
-
- public static synchronized void setPatchedTypes(boolean value) {
- bPatchedTypes = value;
- }
-
- public static synchronized void setPatchedJava(boolean value) {
- bPatchedJava = value;
- }
-
- public static synchronized void setPatchedRDB(boolean value) {
- bPatchedRDB = value;
- }
-
- public static synchronized void setInstallStarted(boolean value) {
- bInstallStarted = value;
- }
-
-
-
-
-
-
-
-
-
- private javax.swing.JPanel navigation;
- private javax.swing.JButton navBack;
- private javax.swing.JButton navNext;
- private javax.swing.JButton navCancel;
- private javax.swing.JPanel screens;
-
- private Version version = null;
- private Final _final = null;
- private IdeVersion ideversion = null;
- private IdeFinal idefinal = null;
- private IdeWelcome idewelcome = null;
- private static ArrayList<String> locations = null;
-
- public static String VERSIONS = "VERSIONS";
- public static String WELCOME = "WELCOME";
- public static String FINAL = "FINAL";
- public static String IDEVERSIONS = "IDEVERSIONS";
- public static String IDEWELCOME = "IDEWELCOME";
- public static String IDEFINAL = "IDEFINAL";
-
- public static int DEFWIDTH = 480;
- public static int DEFHEIGHT = 240;
-
- private static String typesPath = null;
- private static String javaPath = null;
-
- public static boolean bNetworkInstall = false;
- public static boolean bBindingsInstall = false;
-
- private static boolean bPatchedTypes = false;
- private static boolean bPatchedJava = false;
- private static boolean bPatchedRDB = false;
- private static boolean bInstallStarted = false;
-
-}// InstallWizard
diff --git a/scripting/workben/installer/InstallationEvent.java b/scripting/workben/installer/InstallationEvent.java
deleted file mode 100644
index 9d91f9bf4505..000000000000
--- a/scripting/workben/installer/InstallationEvent.java
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * 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 .
- */
-
-package installer;
-
-public class InstallationEvent {
- private Object source;
- private String message;
- InstallationEvent(Object source, String message) {
- this.source = source;
- this.message = message;
- }
-
- public Object getSource() {
- return source;
- }
-
- public String getMessage() {
- return message;
- }
-}
diff --git a/scripting/workben/installer/LogStream.java b/scripting/workben/installer/LogStream.java
deleted file mode 100644
index 27f33860d9d2..000000000000
--- a/scripting/workben/installer/LogStream.java
+++ /dev/null
@@ -1,62 +0,0 @@
-/*
- * 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 .
- */
-
-package installer;
-import java.io.PrintStream;
-import java.io.FileOutputStream;
-
-import java.util.Date;
-import java.text.DateFormat;
-import java.text.SimpleDateFormat;
-
-
-public class LogStream extends PrintStream {
- static final private DateFormat formatter = new
- SimpleDateFormat("yyyy-MM-dd HH:mm:ss z: ");
-
- private String getTimeStamp() {
- String timeStamp = formatter.format(new Date());
- return timeStamp;
- }
- public LogStream(String logFileName) throws java.io.FileNotFoundException {
- super(new FileOutputStream(logFileName));
- }
- @Override
- public void println(String x) {
- super.println(getTimeStamp() + x);
- }
- public static void main(String[] args) {
- if (args.length > 0) {
- try {
- LogStream log = new LogStream(args[0]);
- System.setErr(log);
- System.setOut(log);
- System.out.println("Test from logger from out");
- System.err.println("Test from logger from err");
- System.out.println("finised test from out");
- System.err.println("finised test from err");
- } catch (java.io.FileNotFoundException fe) {
- System.err.println("Error creating logStream: " + fe);
- fe.printStackTrace();
- }
- } else {
- System.err.println("specify log file java LogStream [logfile]");
- System.exit(1);
- }
- }
-}
diff --git a/scripting/workben/installer/NavPanel.java b/scripting/workben/installer/NavPanel.java
deleted file mode 100644
index 89cfed25b1de..000000000000
--- a/scripting/workben/installer/NavPanel.java
+++ /dev/null
@@ -1,128 +0,0 @@
-/*
- * 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 .
- */
-
-package installer;
-
-import javax.swing.*;
-import java.awt.*;
-import java.awt.event.*;
-public class NavPanel extends JPanel implements ActionListener {
-
- NavPanel(InstallWizard wizard, boolean bBack, boolean bNext, boolean bCancel,
- String prev, String next) {
- setBackground(Color.white);
- setBorder(new javax.swing.border.EtchedBorder(
- javax.swing.border.EtchedBorder.LOWERED));
- this.wizard = wizard;
- this.next = next;
- this.prev = prev;
- navBack = new javax.swing.JButton("<< Back");
- navNext = new javax.swing.JButton("Next >>");
- navCancel = new javax.swing.JButton("Cancel");
- setLayout(new GridBagLayout());
-
- gridBagConstraints1 = new java.awt.GridBagConstraints();
- gridBagConstraints1.insets = new java.awt.Insets(1, 1, 1, 1);
- gridBagConstraints1.anchor = GridBagConstraints.WEST;
-
- gridBagConstraints2 = new java.awt.GridBagConstraints();
- gridBagConstraints2.gridx = 2;
- gridBagConstraints2.gridy = 0;
-
- gridBagConstraints3 = new java.awt.GridBagConstraints();
- gridBagConstraints3.gridx = 6;
- gridBagConstraints3.gridy = 0;
-
- navNext.setEnabled(bNext);
- navBack.setEnabled(bBack);
- navCancel.setEnabled(bCancel);
- navNext.addActionListener(this);
- navBack.addActionListener(this);
- navCancel.addActionListener(this);
- add(navBack, gridBagConstraints1);
- add(navNext, gridBagConstraints2);
- add(navCancel, gridBagConstraints3);
- }
-
- public void enableNext(boolean bEnable) {
- navNext.setEnabled(bEnable);
- }
-
- public void enableBack(boolean bEnable) {
- navBack.setEnabled(bEnable);
- }
-
- public void enableCancel(boolean bEnable) {
- navCancel.setEnabled(bEnable);
- }
-
- public void enableIDE(boolean bEnable) {
- ideDetected = bEnable;
- }
-
- public void actionPerformed(ActionEvent ev) {
- if ((ev.getSource() == navNext) && (next.length() != 0)) {
- wizard.show(next);
- }
-
- if ((ev.getSource() == navBack) && (prev.length() != 0)) {
- wizard.show(prev);
- }
-
- if (ev.getSource() == navCancel) {
- if (ideDetected) {
- wizard.show(InstallWizard.IDEWELCOME);
- } else {
- wizard.exitForm();
- }
-
- enableIDE(false);
- }
- }
-
- public void setNextListener(ActionListener listener) {
- navNext.addActionListener(listener);
- }
-
- public void setBackListener(ActionListener listener) {
- navBack.addActionListener(listener);
- }
-
- public void setCancelListener(ActionListener listener) {
- navCancel.addActionListener(listener);
- }
-
-
-
-
-
- public void removeCancelListener(ActionListener listener) {
- navCancel.removeActionListener(listener);
- }
-
- private JButton navBack;
- public JButton navNext;
- public JButton navCancel;
- private GridBagConstraints gridBagConstraints1;
- private GridBagConstraints gridBagConstraints2;
- private GridBagConstraints gridBagConstraints3;
- private InstallWizard wizard;
- private String next;
- private String prev;
- private boolean ideDetected = false;
-}
diff --git a/scripting/workben/installer/Navigation.java b/scripting/workben/installer/Navigation.java
deleted file mode 100644
index 82c63a35ad9b..000000000000
--- a/scripting/workben/installer/Navigation.java
+++ /dev/null
@@ -1,66 +0,0 @@
-/*
- * 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 .
- */
-
-package installer;
-
-public class Navigation extends javax.swing.JPanel {
-
- /** Creates new form Navigation */
- public Navigation() {
- initComponents();
- }
-
- /** This method is called from within the constructor to
- * initialize the form.
- * WARNING: Do NOT modify this code. The content of this method is
- * always regenerated by the Form Editor.
- */
- private void initComponents() {//GEN-BEGIN:initComponents
- navBack = new javax.swing.JButton();
- navNext = new javax.swing.JButton();
- navCancel = new javax.swing.JButton();
-
- setLayout(new java.awt.GridBagLayout());
- java.awt.GridBagConstraints gridBagConstraints1;
-
- navBack.setText("<< Back");
- gridBagConstraints1 = new java.awt.GridBagConstraints();
- add(navBack, gridBagConstraints1);
-
- navNext.setText("Next >>");
- gridBagConstraints1 = new java.awt.GridBagConstraints();
- gridBagConstraints1.gridx = 2;
- gridBagConstraints1.gridy = 0;
- add(navNext, gridBagConstraints1);
-
- navCancel.setText("Cancel");
- gridBagConstraints1 = new java.awt.GridBagConstraints();
- gridBagConstraints1.gridx = 6;
- gridBagConstraints1.gridy = 0;
- add(navCancel, gridBagConstraints1);
-
- }//GEN-END:initComponents
-
-
- // Variables declaration - do not modify//GEN-BEGIN:variables
- private javax.swing.JButton navBack;
- private javax.swing.JButton navNext;
- private javax.swing.JButton navCancel;
- // End of variables declaration//GEN-END:variables
-
-}
diff --git a/scripting/workben/installer/ProtocolHandler.xcu b/scripting/workben/installer/ProtocolHandler.xcu
deleted file mode 100644
index fe55294f37da..000000000000
--- a/scripting/workben/installer/ProtocolHandler.xcu
+++ /dev/null
@@ -1,27 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- * 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 .
--->
-<oor:node xmlns:oor="http://openoffice.org/2001/registry" xmlns:xs="http://www.w3.org/2001/XMLSchema" oor:name="ProtocolHandler" oor:package="org.openoffice.Office">
- <node oor:name="HandlerSet">
- <node oor:name="com.sun.star.comp.ScriptProtocolHandler" oor:op="replace">
- <prop oor:name="Protocols" oor:type="oor:string-list">
- <value>script:*</value>
- </prop>
- </node>
- </node>
-</oor:node>
diff --git a/scripting/workben/installer/Register.java b/scripting/workben/installer/Register.java
deleted file mode 100644
index afe95f5d1de6..000000000000
--- a/scripting/workben/installer/Register.java
+++ /dev/null
@@ -1,107 +0,0 @@
-/*
- * 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 .
- */
-
-package installer;
-
-import java.io.*;
-import javax.swing.*;
-public class Register {
-
-
- public static boolean register(String path, JLabel statusLabel) {
- String[] packages = {"ooscriptframe.zip", "bshruntime.zip", "jsruntime.zip"};
-
- try {
- boolean goodResult = false;
- String env[] = new String[1];
- ExecCmd command = new ExecCmd();
- boolean isWindows =
- (System.getProperty("os.name").indexOf("Windows") != -1);
-
- String progpath = path.concat("program" + File.separator);
-
- statusLabel.setText("Registering Scripting Framework...");
-
- // pkgchk Scripting Framework Components
- statusLabel.setText("Registering Scripting Framework Components...");
- System.out.println("Registering Scripting Framework Components...");
-
- for (int i = 0; i < packages.length; i++) {
- String cmd = "";
-
- if (!isWindows) {
- env[0] = "LD_LIBRARY_PATH=" + progpath;
-
- goodResult = command.exec("chmod a+x " + progpath + "pkgchk", null);
-
- if (goodResult) {
- cmd = progpath + "pkgchk -s -f " + progpath + packages[i];
-
- System.err.println(cmd);
- goodResult = command.exec(cmd, env);
- }
- } else {
- cmd = "\"" + progpath + "pkgchk.exe\" -s -f \"" + progpath +
- packages[i] + "\"";
-
- System.err.println(cmd);
- goodResult = command.exec(cmd, null);
-
- }
-
- if (!goodResult) {
- System.err.println("\nPkgChk Failed");
-
- if (!isWindows)
- System.err.println("Command: " + cmd + "\n" + env[0]);
- else
- System.err.println("Command: \"" + cmd + "\"");
-
- statusLabel.setText(
- "PkgChk Failed, please view SFrameworkInstall.log");
-
- return false;
- }
- }
-
- // updating StarBasic libraries
- statusLabel.setText("Updating StarBasic libraries...");
-
- if (!FileUpdater.updateScriptXLC(path, statusLabel)) {
- statusLabel.setText("Updating user/basic/script.xlc failed, please view SFrameworkInstall.log");
- return false;
- }
-
- if (!FileUpdater.updateDialogXLC(path, statusLabel)) {
- statusLabel.setText("Updating user/basic/dialog.xlc failed, please view SFrameworkInstall.log");
- return false;
- }
-
- } catch (Exception e) {
- String message =
- "\nError installing scripting package, please view SFrameworkInstall.log.";
- System.out.println(message);
- e.printStackTrace();
- statusLabel.setText(message);
- return false;
- }
-
- return true;
- }// register
-
-}//Register
diff --git a/scripting/workben/installer/Scripting.BeanShell.xcu b/scripting/workben/installer/Scripting.BeanShell.xcu
deleted file mode 100644
index fdcc5d6b8695..000000000000
--- a/scripting/workben/installer/Scripting.BeanShell.xcu
+++ /dev/null
@@ -1,28 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- * 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 .
--->
-<oor:node xmlns:oor="http://openoffice.org/2001/registry" xmlns:xs="http://www.w3.org/2001/XMLSchema" oor:name="Scripting" oor:package="org.openoffice.Office">
- <node oor:name="ScriptRuntimes">
- <node oor:name="BeanShell" oor:op="replace">
- <prop oor:name="SupportedFileExtensions">
- <value xml:lang="x-no-translate">bsh</value>
- <value xml:lang="en-US">bsh</value>
- </prop>
- </node>
- </node>
-</oor:node>
diff --git a/scripting/workben/installer/Scripting.JavaScript.xcu b/scripting/workben/installer/Scripting.JavaScript.xcu
deleted file mode 100644
index 1849dff273e1..000000000000
--- a/scripting/workben/installer/Scripting.JavaScript.xcu
+++ /dev/null
@@ -1,28 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- * 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 .
--->
-<oor:node xmlns:oor="http://openoffice.org/2001/registry" xmlns:xs="http://www.w3.org/2001/XMLSchema" oor:name="Scripting" oor:package="org.openoffice.Office">
- <node oor:name="ScriptRuntimes">
- <node oor:name="JavaScript" oor:op="replace">
- <prop oor:name="SupportedFileExtensions">
- <value xml:lang="x-no-translate">js</value>
- <value xml:lang="en-US">js</value>
- </prop>
- </node>
- </node>
-</oor:node>
diff --git a/scripting/workben/installer/Scripting.xcs b/scripting/workben/installer/Scripting.xcs
deleted file mode 100644
index 1daeab8e978d..000000000000
--- a/scripting/workben/installer/Scripting.xcs
+++ /dev/null
@@ -1,48 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- * 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 .
--->
-<!DOCTYPE oor:component-schema SYSTEM "../../../../component-schema.dtd">
-<oor:component-schema xmlns:oor="http://openoffice.org/2001/registry" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" oor:name="Scripting" oor:package="org.openoffice.Office" xml:lang="en-US">
- <info>
- <author>DF</author>
- <desc xml:lang="x-no-translate"></desc>
- <desc xml:lang="en-US">Contains the various settings needed by the Scripting Framework and its runtimes.</desc>
- </info>
- <templates>
- <group oor:name="RuntimeNode">
- <info>
- <desc xml:lang="x-no-translate"></desc>
- <desc xml:lang="en-US">Specifies the runtimes available to the Scripting Framework.</desc>
- </info>
- <prop oor:name="SupportedFileExtensions" oor:type="oor:string-list">
- <info>
- <desc xml:lang="x-no-translate"></desc>
- <desc xml:lang="en-US">Lists the file extensions that are recognized by this runtime.</desc>
- </info>
- </prop>
- </group>
- </templates>
- <component>
- <set oor:name="ScriptRuntimes" oor:node-type="RuntimeNode">
- <info>
- <desc xml:lang="x-no-translate"></desc>
- <desc xml:lang="en-US">Lists the registered Scripting Framework runtimes.</desc>
- </info>
- </set>
- </component>
-</oor:component-schema>
diff --git a/scripting/workben/installer/Version.java b/scripting/workben/installer/Version.java
deleted file mode 100644
index 8ede6c54527e..000000000000
--- a/scripting/workben/installer/Version.java
+++ /dev/null
@@ -1,350 +0,0 @@
-/*
- * 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 .
- */
-
-package installer;
-
-import java.awt.*;
-import java.awt.event.*;
-import java.io.*;
-import java.util.*;
-
-import javax.swing.*;
-import javax.swing.event.*;
-import javax.swing.table.*;
-
-public class Version extends javax.swing.JPanel implements ActionListener,
- TableModelListener {
-
- /** Creates new form Welcome */
- public Version(InstallWizard wizard) {
- this.wizard = wizard;
- setBackground(Color.white);
- initComponents();
- }
-
- /** This method is called from within the constructor to
- * initialize the form.
- * WARNING: Do NOT modify this code. The content of this method is
- * always regenerated by the Form Editor.
- */
- private void initComponents() {
- Properties props = null;
- JPanel versionPanel = new JPanel();
- setLayout(new BorderLayout());
-
- System.out.println("Initialising versions");
-
- File fileVersions = null;
-
- try {
- fileVersions = InstUtil.buildSversionLocation();
- } catch (IOException eFnF) {
- System.err.println("Cannot find sversion.ini/.sversionrc");
- JOptionPane.showMessageDialog(this, eFnF.getMessage(), "File not Found",
- JOptionPane.ERROR_MESSAGE);
- wizard.exitForm();
- }
-
- try {
- props = InstUtil.getOfficeVersions(fileVersions);
- } catch (IOException eIO) {
- //Message about no installed versions found
- System.err.println("Failed to parse SVERSION");
- JOptionPane.showMessageDialog(this,
- "There was a problem reading from the Office settings file.", "Parse Error",
- JOptionPane.ERROR_MESSAGE);
- wizard.exitForm();
- }
-
- tableModel = new MyTableModel(props);
-
- if (tableModel.getRowCount() == 0) {
- JOptionPane.showMessageDialog(this,
- "No compatible versions of Office were found.", "Invalid versions",
- JOptionPane.ERROR_MESSAGE);
- wizard.exitForm();
- }
-
- tableModel.addTableModelListener(this);
- JTable tableVersions = new JTable(tableModel) {
- @Override
- public String getToolTipText(MouseEvent event) {
- int col = columnAtPoint(event.getPoint());
-
- if (col != 2)
- return null;
-
- int row = rowAtPoint(event.getPoint());
- Object o = getValueAt(row, col);
-
- if (o == null)
- return null;
-
- if (o.toString().equals(""))
- return null;
-
- return o.toString();
- }
-
- @Override
- public Point getToolTipLocation(MouseEvent event) {
- int col = columnAtPoint(event.getPoint());
-
- if (col != 2)
- return null;
-
- int row = rowAtPoint(event.getPoint());
- Object o = getValueAt(row, col);
-
- if (o == null)
- return null;
-
- if (o.toString().equals(""))
- return null;
-
- Point pt = getCellRect(row, col, true).getLocation();
- pt.translate(-1, -2);
- return pt;
- }
- };
-
- JScrollPane scroll = new JScrollPane(tableVersions);
-
- tableVersions.setPreferredSize(
- new Dimension(InstallWizard.DEFWIDTH, InstallWizard.DEFHEIGHT));
-
- tableVersions.setRowSelectionAllowed(false);
- tableVersions.setColumnSelectionAllowed(false);
- tableVersions.setCellSelectionEnabled(false);
-
- initColumnSizes(tableVersions, tableModel);
- versionPanel.add(scroll);
-
- JTextArea area = new
- JTextArea("Please select the Office version you wish to Update");
- area.setLineWrap(true);
- area.setEditable(false);
- add(area, BorderLayout.NORTH);
- add(versionPanel, BorderLayout.CENTER);
- //nav = new NavPanel(wizard, true, false, true, InstallWizard.WELCOME, InstallWizard.FINAL);
- nav = new NavPanel(wizard, true, false, true, InstallWizard.WELCOME,
- InstallWizard.FINAL);
- nav.setNextListener(this);
- add(nav, BorderLayout.SOUTH);
-
- }// initComponents
-
- private void initColumnSizes(JTable table, MyTableModel model) {
- TableColumn column = null;
- Component comp = null;
- int headerWidth = 0;
- int cellWidth = 0;
- int preferredWidth = 0;
- int totalWidth = 0;
- Object[] longValues = model.longValues;
-
- for (int i = 0; i < 3; i++) {
- column = table.getColumnModel().getColumn(i);
-
- try {
- comp = column.getHeaderRenderer().
- getTableCellRendererComponent(
- null, column.getHeaderValue(),
- false, false, 0, 0);
- headerWidth = comp.getPreferredSize().width;
- } catch (NullPointerException e) {
- // System.err.println("Null pointer exception!");
- // System.err.println(" getHeaderRenderer returns null in 1.3.");
- // System.err.println(" The replacement is getDefaultRenderer.");
- }
-
- // need to replace spaces in String before getting preferred width
- if (longValues[i] instanceof String) {
- longValues[i] = ((String)longValues[i]).replace(' ', '_');
- }
-
- System.out.println("longValues: " + longValues[i]);
- comp = table.getDefaultRenderer(model.getColumnClass(i)).
- getTableCellRendererComponent(
- table, longValues[i],
- false, false, 0, i);
- cellWidth = comp.getPreferredSize().width;
-
- preferredWidth = Math.max(headerWidth, cellWidth);
-
- if (false) {
- System.out.println("Initializing width of column "
- + i + ". "
- + "preferredWidth = " + preferredWidth
- + "; totalWidth = " + totalWidth
- + "; leftWidth = " + (InstallWizard.DEFWIDTH - totalWidth));
- }
-
- //XXX: Before Swing 1.1 Beta 2, use setMinWidth instead.
- if (i == 2) {
- if (preferredWidth > InstallWizard.DEFWIDTH - totalWidth)
- column.setPreferredWidth(InstallWizard.DEFWIDTH - totalWidth);
- else
- column.setPreferredWidth(preferredWidth);
- } else {
- column.setMinWidth(preferredWidth);
- totalWidth += preferredWidth;
- }
- }
- }
-
- @Override
- public java.awt.Dimension getPreferredSize() {
- return new java.awt.Dimension(320, 280);
- }
-
-
- public void actionPerformed(ActionEvent ev) {
- InstallWizard.clearLocations();
- int len = tableModel.data.size();
-
- for (int i = 0; i < len; i++) {
- ArrayList<?> list = tableModel.data.get(i);
-
- if (((Boolean)list.get(0)).booleanValue())
- InstallWizard.storeLocation((String)list.get(2));
- }
- }
-
-
- public void tableChanged(TableModelEvent e) {
- if (tableModel.isAnySelected()) {
- nav.enableNext(true);
- } else {
- nav.enableNext(false);
- }
- }
-
- // Variables declaration - do not modify//GEN-BEGIN:variables
- private InstallWizard wizard;
- private MyTableModel tableModel;
- private NavPanel nav;
- private static final String [] versions = {"StarOffice 6.1", "OpenOffice.org 1.1Beta", "OpenOffice.org 644", "OpenOffice.org 1.1"};
- // End of variables declaration//GEN-END:variables
-
-}
-
-class MyTableModel extends AbstractTableModel {
- ArrayList<ArrayList<Object>> data;
- private String colNames[] = {"", "Name", "Location"};
- Object[] longValues = new Object[] {Boolean.TRUE, "Name", "Location"};
-
- MyTableModel(Properties properties) {
- data = new ArrayList<ArrayList<Object>>();
- boolean isWindows =
- (System.getProperty("os.name").indexOf("Windows") != -1);
-
- for (Enumeration e = properties.propertyNames(); e.hasMoreElements() ;) {
- String key = (String)e.nextElement();
- String path = null;
-
- if (!(key.startsWith("#")) &&
- (path = properties.getProperty(key)) != null) {
- String pkgChkPath = path + File.separator + "program" + File.separator;
-
- if (isWindows) {
- pkgChkPath += "pkgchk.exe";
- } else {
- pkgChkPath += "pkgchk";
- }
-
- File pkgChk = new File(pkgChkPath);
-
- if (pkgChk.exists()) {
- ArrayList<Object> row = new ArrayList<Object>();
- row.add(0, Boolean.FALSE);
-
- row.add(1, key);
-
- if (key.length() > ((String)longValues[1]).length()) {
- longValues[1] = key;
- }
-
- row.add(2, path);
-
- if (path.length() > ((String)longValues[2]).length()) {
- longValues[2] = path;
- }
-
- data.add(row);
- }
- }
- }
- }// MyTableModel
-
- public int getColumnCount() {
- return 3;
- }
-
- public int getRowCount() {
- return data.size();
- }
-
- @Override
- public String getColumnName(int col) {
- return colNames[col];
- }
-
- public Object getValueAt(int row, int col) {
- if (row < 0 || row > getRowCount() ||
- col < 0 || col > getColumnCount())
- return null;
-
- ArrayList<?> aRow = data.get(row);
- return aRow.get(col);
- }
-
- @Override
- public Class getColumnClass(int c) {
- return getValueAt(0, c).getClass();
- }
-
- @Override
- public boolean isCellEditable(int row, int col) {
- return (col == 0);
- }
-
- @Override
- public void setValueAt(Object value, int row, int col) {
- ArrayList<Object> aRow = data.get(row);
- aRow.set(col, value);
- fireTableCellUpdated(row, col);
- }
-
-
-
- public boolean isAnySelected() {
- Iterator iter = data.iterator();
-
- while (iter.hasNext()) {
- ArrayList<?> row = (ArrayList<?>)iter.next();
-
- if (((Boolean)row.get(0)).booleanValue()) {
- return true;
- }
- }
-
- return false;
- }
-
-}
diff --git a/scripting/workben/installer/Welcome.java b/scripting/workben/installer/Welcome.java
deleted file mode 100644
index c71a7af6b4fb..000000000000
--- a/scripting/workben/installer/Welcome.java
+++ /dev/null
@@ -1,84 +0,0 @@
-/*
- * 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 .
- */
-
-package installer;
-
-import java.awt.event.*;
-
-public class Welcome extends javax.swing.JPanel implements ActionListener {
-
- /** Creates new form Welcome */
- public Welcome(InstallWizard wizard) {
- this.wizard = wizard;
- setBorder(new javax.swing.border.EtchedBorder(
- javax.swing.border.EtchedBorder.RAISED));
- initComponents();
- }
-
- /** This method is called from within the constructor to
- * initialize the form.
- * WARNING: Do NOT modify this code. The content of this method is
- * always regenerated by the Form Editor.
- */
- private void initComponents() {//GEN-BEGIN:initComponents
- welcomePanel = new javax.swing.JPanel();
- area = new javax.swing.JTextArea();
- nextButtonEnable = true;
-
- setLayout(new java.awt.BorderLayout());
-
- welcomePanel.setLayout(new java.awt.BorderLayout());
- area.setEditable(false);
- area.setLineWrap(true);
-
- String message = "\n\tOffice Scripting Framework Version 0.3" +
- "\n\n\n\tPlease ensure that you have exited from Office";
-
- setUpWelcomePanel(message);
-
- }//GEN-END:initComponents
-
- private void setUpWelcomePanel(String message) {
- area.setText(message);
- welcomePanel.add(area, java.awt.BorderLayout.CENTER);
- add(welcomePanel, java.awt.BorderLayout.CENTER);
- NavPanel nav = new NavPanel(wizard, false, nextButtonEnable, true, "",
- InstallWizard.VERSIONS);
- nav.setNextListener(this);
- add(nav, java.awt.BorderLayout.SOUTH);
- }
-
-
- @Override
- public java.awt.Dimension getPreferredSize() {
- return new java.awt.Dimension(InstallWizard.DEFWIDTH, InstallWizard.DEFHEIGHT);
- }
-
- public void actionPerformed(ActionEvent ev) {
- //Perform next actions here...
- }
-
-
- // Variables declaration - do not modify//GEN-BEGIN:variables
- private javax.swing.JPanel welcomePanel;
- private javax.swing.JTextArea area;
- private InstallWizard wizard;
- private boolean nextButtonEnable = true;
-
- // End of variables declaration//GEN-END:variables
-}
diff --git a/scripting/workben/installer/XmlUpdater.java b/scripting/workben/installer/XmlUpdater.java
deleted file mode 100644
index c7bd2ff6ac3a..000000000000
--- a/scripting/workben/installer/XmlUpdater.java
+++ /dev/null
@@ -1,389 +0,0 @@
-/*
- * 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 .
- */
-
-package installer;
-
-import java.io.*;
-import java.util.*;
-import javax.swing.*;
-
-public class XmlUpdater extends Thread {
-
- private String installPath;
- private boolean netInstall;
- private boolean bindingsInstall;
-
- private JLabel statusLabel;
-
- private ArrayList<InstallListener> listeners;
- private Thread internalThread;
- private boolean threadSuspended;
- private JProgressBar progressBar;
-
- private final String[] bakFiles = {
- "writermenubar.xml",
- "writerkeybinding.xml",
- "calcmenubar.xml",
- "calckeybinding.xml",
- "impressmenubar.xml",
- "impresskeybinding.xml",
- "drawmenubar.xml",
- "drawkeybinding.xml",
- "eventbindings.xml",
- "META-INF" + File.separator + "manifest.xml"
- };
-
- private final String[] dirs = {
- "java" + File.separator + "Highlight",
- "java" + File.separator + "MemoryUsage",
- "java" + File.separator + "ScriptFrmwrkHelper",
- "java" + File.separator + "debugger",
- "java" + File.separator + "debugger" + File.separator + "rhino",
- "beanshell" + File.separator + "InteractiveBeanShell",
- "beanshell" + File.separator + "Highlight",
- "beanshell" + File.separator + "MemoryUsage",
- "javascript" + File.separator + "ExportSheetsToHTML"
- };
-
- private final String[] names = {
- "java/Highlight/HighlightUtil.java",
- "java/Highlight/HighlightText.java",
- "java/Highlight/Highlight.jar",
- "java/Highlight/parcel-descriptor.xml",
- "java/MemoryUsage/MemoryUsage.java",
- "java/MemoryUsage/MemoryUsage.class",
- "java/MemoryUsage/parcel-descriptor.xml",
- "java/MemoryUsage/ExampleSpreadSheet.sxc",
- "java/ScriptFrmwrkHelper/parcel-descriptor.xml",
- "java/ScriptFrmwrkHelper/ScriptFrmwrkHelper.java",
- "java/ScriptFrmwrkHelper/ScriptFrmwrkHelper.class",
- "java/ScriptFrmwrkHelper/ScriptFrmwrkHelper.jar",
- "java/debugger/debugger.jar",
- "java/debugger/OOBeanShellDebugger.java",
- "java/debugger/OOScriptDebugger.java",
- "java/debugger/DebugRunner.java",
- "java/debugger/OORhinoDebugger.java",
- "java/debugger/parcel-descriptor.xml",
- "java/debugger/rhino/Main.java",
- "beanshell/InteractiveBeanShell/parcel-descriptor.xml",
- "beanshell/InteractiveBeanShell/interactive.bsh",
- "beanshell/Highlight/parcel-descriptor.xml",
- "beanshell/Highlight/highlighter.bsh",
- "beanshell/MemoryUsage/parcel-descriptor.xml",
- "beanshell/MemoryUsage/memusage.bsh",
- "javascript/ExportSheetsToHTML/parcel-descriptor.xml",
- "javascript/ExportSheetsToHTML/exportsheetstohtml.js"
- };
-
-
- public XmlUpdater(String installPath, JLabel statusLabel, JProgressBar pBar,
- boolean netInstall, boolean bindingsInstall) {
- this.installPath = installPath;
- this.statusLabel = statusLabel;
- this.netInstall = netInstall;
- this.bindingsInstall = bindingsInstall;
- listeners = new ArrayList<InstallListener>();
- threadSuspended = false;
- progressBar = pBar;
- progressBar.setStringPainted(true);
- }// XmlUpdater
-
-
-
-
-
- public void setResume() {
- threadSuspended = false;
- notify();
- }// setResume
-
-
- @Override
- public void run() {
-
- internalThread = Thread.currentThread();
-
- String progpath = installPath;
- progpath = progpath.concat(File.separator + "program" + File.separator);
-
- String starBasicPath = installPath;
- starBasicPath = starBasicPath.concat(File.separator + "share" + File.separator +
- "basic" + File.separator + "ScriptBindingLibrary" + File.separator);
-
- String regSchemaOfficePath = installPath;
- regSchemaOfficePath = regSchemaOfficePath.concat(File.separator + "share" +
- File.separator + "registry" + File.separator + "schema" + File.separator + "org"
- + File.separator + "openoffice" + File.separator + "Office" + File.separator);
-
- progressBar.setString("Unzipping Required Files");
- ZipData zd = new ZipData();
-
-
- if ((!netInstall) || bindingsInstall) {
- String configPath = installPath;
- configPath = configPath.concat(File.separator + "user" + File.separator +
- "config" + File.separator + "soffice.cfg" + File.separator);
- String manifestPath = configPath + "META-INF" + File.separator;
-
- //Adding <Office>/user/config/soffice.cfg/
- File configDir = new File(configPath);
-
- if (!configDir.isDirectory()) {
- if (!configDir.mkdir()) {
- System.out.println("creating " + configDir + "directory failed");
- } else {
- System.out.println(configDir + "directory created");
- }
- } else
- System.out.println("soffice.cfg exists");
-
- File manifestDir = new File(manifestPath);
-
- if (!manifestDir.isDirectory()) {
- if (!manifestDir.mkdir()) {
- System.out.println("creating " + manifestPath + "directory failed");
- } else {
- System.out.println(manifestPath + " directory created");
- }
- } else
- System.out.println(manifestPath + " exists");
-
- // Backup the confguration files in
- // <office>/user/config/soffice.cfg/
- // If they already exist.
-
- for (int i = 0; i < bakFiles.length; i++) {
- String pathNameBak = configPath + bakFiles[i];
- File origFile = new File(pathNameBak);
-
- if (origFile.exists()) {
- System.out.println("Attempting to backup " + pathNameBak + " to " + pathNameBak
- + ".bak");
-
- if (! origFile.renameTo(new File(pathNameBak + ".bak"))) {
- System.out.println("Failed to backup " + pathNameBak + " to " + pathNameBak +
- ".bak");
- }
- }
- }
-
- // Adding Office configuration files
- if (!zd.extractEntry("bindingdialog/writermenubar.xml", configPath,
- statusLabel)) {
- onInstallComplete();
- return;
- }
-
- if (!zd.extractEntry("bindingdialog/writerkeybinding.xml", configPath,
- statusLabel)) {
- onInstallComplete();
- return;
- }
-
- if (!zd.extractEntry("bindingdialog/calcmenubar.xml", configPath,
- statusLabel)) {
- onInstallComplete();
- return;
- }
-
- if (!zd.extractEntry("bindingdialog/calckeybinding.xml", configPath,
- statusLabel)) {
- onInstallComplete();
- return;
- }
-
- if (!zd.extractEntry("bindingdialog/impressmenubar.xml", configPath,
- statusLabel)) {
- onInstallComplete();
- return;
- }
-
- if (!zd.extractEntry("bindingdialog/impresskeybinding.xml", configPath,
- statusLabel)) {
- onInstallComplete();
- return;
- }
-
- if (!zd.extractEntry("bindingdialog/drawmenubar.xml", configPath,
- statusLabel)) {
- onInstallComplete();
- return;
- }
-
- if (!zd.extractEntry("bindingdialog/drawkeybinding.xml", configPath,
- statusLabel)) {
- onInstallComplete();
- return;
- }
-
- if (!zd.extractEntry("bindingdialog/eventbindings.xml", configPath,
- statusLabel)) {
- onInstallComplete();
- return;
- }
-
- if (!zd.extractEntry("bindingdialog/manifest.xml", manifestPath, statusLabel)) {
- onInstallComplete();
- return;
- }
- }
-
- if (!bindingsInstall) {
- // Adding new directories to Office
- // Adding <Office>/user/basic/ScriptBindingLibrary/
- File scriptBindingLib = new File(starBasicPath);
-
- if (!scriptBindingLib.isDirectory()) {
- if (!scriptBindingLib.mkdir()) {
- System.out.println("ScriptBindingLibrary failed");
- } else {
- System.out.println("ScriptBindingLibrary directory created");
- }
- } else
- System.out.println("ScriptBindingLibrary exists");
-
- // Adding Scripting Framework and tools
- if (!zd.extractEntry("sframework/ooscriptframe.zip", progpath, statusLabel)) {
- onInstallComplete();
- return;
- }
-
- if (!zd.extractEntry("sframework/bshruntime.zip", progpath, statusLabel)) {
- onInstallComplete();
- return;
- }
-
- if (!zd.extractEntry("sframework/jsruntime.zip", progpath, statusLabel)) {
- onInstallComplete();
- return;
- }
-
- if (!zd.extractEntry("schema/Scripting.xcs", regSchemaOfficePath,
- statusLabel)) {
- onInstallComplete();
- return;
- }
-
-
-
- progressBar.setString("Registering Scripting Framework");
- progressBar.setValue(3);
-
- if (!Register.register(installPath + File.separator, statusLabel)) {
- onInstallComplete();
- return;
- }
-
- progressBar.setValue(5);
-
- String path = installPath + File.separator +
- "share" + File.separator + "Scripts" + File.separator;
-
- for (int i = 0; i < dirs.length; i++) {
- File dir = new File(path + dirs[i]);
-
- if (!dir.exists()) {
- if (!dir.mkdirs()) {
- System.err.println("Error making dir: " +
- dir.getAbsolutePath());
- onInstallComplete();
- return;
- }
- }
- }
-
- for (int i = 0; i < names.length; i++) {
- String source = "/examples/" + names[i];
- String dest = path + names[i].replace('/', File.separatorChar);
-
- if (!zd.extractEntry(source, dest, statusLabel)) {
- onInstallComplete();
- return;
- }
- }
-
-
- // Adding binding dialog
- if (!zd.extractEntry("bindingdialog/ScriptBinding.xba", starBasicPath,
- statusLabel)) {
- onInstallComplete();
- return;
- }
-
- if (!zd.extractEntry("bindingdialog/MenuBinding.xdl", starBasicPath,
- statusLabel)) {
- onInstallComplete();
- return;
- }
-
- if (!zd.extractEntry("bindingdialog/KeyBinding.xdl", starBasicPath,
- statusLabel)) {
- onInstallComplete();
- return;
- }
-
- if (!zd.extractEntry("bindingdialog/EventsBinding.xdl", starBasicPath,
- statusLabel)) {
- onInstallComplete();
- return;
- }
-
- if (!zd.extractEntry("bindingdialog/HelpBinding.xdl", starBasicPath,
- statusLabel)) {
- onInstallComplete();
- return;
- }
-
- if (!zd.extractEntry("bindingdialog/EditDebug.xdl", starBasicPath,
- statusLabel)) {
- onInstallComplete();
- return;
- }
-
- if (!zd.extractEntry("bindingdialog/dialog.xlb", starBasicPath, statusLabel)) {
- onInstallComplete();
- return;
- }
-
- if (!zd.extractEntry("bindingdialog/script.xlb", starBasicPath, statusLabel)) {
- onInstallComplete();
- return;
- }
- }
-
-
- statusLabel.setText("Installation Complete");
- progressBar.setString("Installation Complete");
- progressBar.setValue(10);
- onInstallComplete();
-
- }// run
-
-
- public void addInstallListener(InstallListener listener) {
- listeners.add(listener);
- }// addInstallListener
-
-
- private void onInstallComplete() {
- for (InstallListener l : listeners) {
- l.installationComplete(null);
- }
- }// onInstallComplete
-
-}// XmlUpdater class
diff --git a/scripting/workben/installer/ZipData.java b/scripting/workben/installer/ZipData.java
deleted file mode 100644
index 6e5d513a16be..000000000000
--- a/scripting/workben/installer/ZipData.java
+++ /dev/null
@@ -1,114 +0,0 @@
-/*
- * 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 .
- */
-
-package installer;
-
-import java.io.*;
-import javax.swing.*;
-
-public class ZipData {
-
- public boolean extractEntry(String entry, String destination,
- JLabel statusLabel) {
-
- OutputStream out = null;
- InputStream in = null;
-
- System.out.println("Copying: " + entry);
- System.out.println("To: " + destination);
-
- if (statusLabel != null) {
- statusLabel.setText("Copying " + entry);
- }
-
- String entryName;
-
- if (entry.lastIndexOf("/") != -1) {
- entryName = entry.substring(entry.lastIndexOf("/") + 1);
- } else {
- entryName = entry;
- }
-
- String destName;
-
- if (destination.lastIndexOf(File.separator) != -1) {
- destName = destination.substring(destination
- .lastIndexOf(File.separator) + 1);
- } else {
- destName = destination;
- }
-
- if (!destName.equals(entryName))
- destination = destination.concat(entryName);
-
- System.out.println("Unzipping " + entry + " to " + destination);
-
- if (!entry.startsWith("/"))
- entry = "/" + entry;
-
- in = this.getClass().getResourceAsStream(entry);
-
- if (in == null) {
- System.err.println("File " + entry + " not found in jar file");
-
- if (statusLabel != null)
- statusLabel.setText("Failed extracting " + entry
- + "see SFramework.log for more information");
-
- return false;
- }
-
- try {
- out = new FileOutputStream(destination);
- } catch (IOException ioe) {
- System.err.println("Error opening " + destination + ": "
- + ioe.getMessage());
-
- if (statusLabel != null)
- statusLabel.setText("Error opening" + destination
- + "see SFramework.log for more information");
-
- return false;
- }
-
- try {
- byte[] bytes = new byte[1024];
- int len;
-
- while ((len = in.read(bytes)) != -1)
- out.write(bytes, 0, len);
- } catch (IOException ioe) {
- System.err.println("Error writing " + destination + ": "
- + ioe.getMessage());
-
- if (statusLabel != null)
- statusLabel.setText("Failed writing " + destination
- + "see SFramework.log for more information");
-
- return false;
- } finally {
- try {
- in.close();
- out.close();
- } catch (IOException ioe) {
- }
- }
-
- return true;
- }
-}
diff --git a/scripting/workben/installer/sidebar.jpg b/scripting/workben/installer/sidebar.jpg
deleted file mode 100644
index c2b366f74e76..000000000000
--- a/scripting/workben/installer/sidebar.jpg
+++ /dev/null
Binary files differ
diff --git a/scripting/workben/makefile.mk b/scripting/workben/makefile.mk
deleted file mode 100644
index 41d18bc2b952..000000000000
--- a/scripting/workben/makefile.mk
+++ /dev/null
@@ -1,26 +0,0 @@
-#
-# 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 .
-#
-
-PRJ=..
-PRJNAME=scriptinginstaller
-TARGET=scriptinginstaller
-
-.INCLUDE : ant.mk
-
-ALLTAR : ANTBUILD
-
diff --git a/scripting/workben/mod/_scripting/Dispatch.java b/scripting/workben/mod/_scripting/Dispatch.java
deleted file mode 100644
index 20542cf02d10..000000000000
--- a/scripting/workben/mod/_scripting/Dispatch.java
+++ /dev/null
@@ -1,100 +0,0 @@
-/*
- * 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 .
- */
-
-package mod._scripting;
-
-import java.io.PrintWriter;
-
-import lib.StatusException;
-import lib.TestCase;
-import lib.TestEnvironment;
-import lib.TestParameters;
-
-import util.SOfficeFactory;
-
-import com.sun.star.lang.XMultiServiceFactory;
-import com.sun.star.lang.XComponent;
-
-import com.sun.star.uno.XInterface;
-import com.sun.star.uno.UnoRuntime;
-
-import com.sun.star.frame.XModel;
-import com.sun.star.frame.XFrame;
-import com.sun.star.util.URL;
-import com.sun.star.util.XURLTransformer;
-
-
-
-public class Dispatch extends TestCase {
- private String scriptURL = "script://HighlightText.showForm";
- @Override
- public void initialize(TestParameters tParam, PrintWriter log) {
- }
-
- @Override
-
- public synchronized TestEnvironment createTestEnvironment(
- TestParameters tParam, PrintWriter log) throws StatusException {
- log.println("creating test environment");
- XInterface oObj = null;
- URL dispatchURL = null;
-
- try {
-
- XMultiServiceFactory xMSF = tParam.getMSF();
- SOfficeFactory SOF = null;
- SOF = SOfficeFactory.getFactory(xMSF);
- String docPath = util.utils.getFullTestURL("ExampleSpreadSheetLatest.sxc");
- XComponent doc = SOF.loadDocument(docPath);
- XModel model = UnoRuntime.queryInterface(XModel.class,
- doc);
- XFrame frame = model.getCurrentController().getFrame();
- oObj = (XInterface)
- xMSF.createInstanceWithArguments("com.sun.star.comp.ScriptProtocolHandler",
- new Object[] { frame });
-
- XURLTransformer xParser = UnoRuntime.queryInterface(XURLTransformer.class,
- tParam.getMSF().createInstance
- ("com.sun.star.util.URLTransformer"));
- // Because it's an in/out parameter we must use an array of
- // URL objects.
- URL[] aParseURL = new URL[1];
- aParseURL[0] = new URL();
- aParseURL[0].Complete = scriptURL;
- xParser.parseStrict(aParseURL);
- dispatchURL = aParseURL[0];
-
- } catch (com.sun.star.uno.Exception e) {
- e.printStackTrace();
- throw new StatusException("Can't create object environment", e) ;
- }
-
- TestEnvironment tEnv = new TestEnvironment(oObj) ;
- tEnv.addObjRelation("XDispatchProvider.URL", scriptURL);
- tEnv.addObjRelation("XDispatch.URL", dispatchURL);
- return tEnv ;
- }
-
- @Override
-
- public synchronized void disposeTestEnvironment(TestEnvironment tEnv,
- TestParameters tParam) {
- }
-}
-
-
diff --git a/scripting/workben/mod/_scripting/Function.java b/scripting/workben/mod/_scripting/Function.java
deleted file mode 100644
index 9a2d8b273144..000000000000
--- a/scripting/workben/mod/_scripting/Function.java
+++ /dev/null
@@ -1,88 +0,0 @@
-/*
- * 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 .
- */
-
-package mod._scripting;
-
-import com.sun.star.uno.XInterface;
-import java.io.PrintWriter;
-import lib.StatusException;
-import lib.TestCase;
-import lib.TestEnvironment;
-import lib.TestParameters;
-import com.sun.star.lang.XMultiServiceFactory;
-import com.sun.star.uno.UnoRuntime;
-
-import com.sun.star.frame.XModel;
-import com.sun.star.lang.XComponent;
-import util.SOfficeFactory;
-
-import drafts.com.sun.star.script.framework.provider.XFunctionProvider;
-
-public class Function extends TestCase {
- private String script = "script://returns-Integer";
- private String doc = "doc_with_beanshell_scripts.sxw";
-
- @Override
- public void initialize(TestParameters tParam, PrintWriter log) {
- }
-
- @Override
-
- public synchronized TestEnvironment createTestEnvironment(
- TestParameters tParam, PrintWriter log) throws StatusException {
- XInterface oObj = null;
- XFunctionProvider provider = null;
-
- log.println("creating test environment");
-
- try {
-
- XMultiServiceFactory xMSF = tParam.getMSF();
- SOfficeFactory SOF = null;
- SOF = SOfficeFactory.getFactory(xMSF);
- String docPath = util.utils.getFullTestURL(doc);
- XComponent doc = SOF.loadDocument(docPath);
- XModel model = UnoRuntime.queryInterface(XModel.class,
- doc);
- oObj =
- (XInterface)
- xMSF.createInstanceWithArguments("drafts.com.sun.star.script.framework.provider.FunctionProvider",
- new Object[] { model });
- provider = UnoRuntime.queryInterface(XFunctionProvider.class, oObj);
- oObj = provider.getFunction(script);
-
- } catch (com.sun.star.uno.Exception e) {
- e.printStackTrace();
- throw new StatusException("Can't create object environment", e) ;
- }
-
- TestEnvironment tEnv = new TestEnvironment(oObj) ;
- tEnv.addObjRelation("provider", provider);
- TestDataLoader.setupData(tEnv, "Function");
-
- return tEnv ;
- }
-
- @Override
-
- public synchronized void disposeTestEnvironment(TestEnvironment tEnv,
- TestParameters tParam) {
- }
-}
-
-
diff --git a/scripting/workben/mod/_scripting/FunctionProvider.java b/scripting/workben/mod/_scripting/FunctionProvider.java
deleted file mode 100644
index 8cbedee9935e..000000000000
--- a/scripting/workben/mod/_scripting/FunctionProvider.java
+++ /dev/null
@@ -1,79 +0,0 @@
-/*
- * 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 .
- */
-
-package mod._scripting;
-
-import com.sun.star.uno.XInterface;
-import java.io.PrintWriter;
-import lib.StatusException;
-import lib.TestCase;
-import lib.TestEnvironment;
-import lib.TestParameters;
-import com.sun.star.lang.XMultiServiceFactory;
-import com.sun.star.uno.UnoRuntime;
-
-import com.sun.star.frame.XModel;
-import com.sun.star.frame.XDesktop;
-
-public class FunctionProvider extends TestCase {
-
- String docPath = null;
- @Override
- public void initialize(TestParameters tParam, PrintWriter log) {
- }
-
- @Override
-
- public synchronized TestEnvironment createTestEnvironment(
- TestParameters tParam, PrintWriter log) throws StatusException {
- XInterface oObj = null;
- log.println("creating test environment");
-
- try {
-
- XMultiServiceFactory xMSF = tParam.getMSF();
-
- Object xInterface = xMSF.createInstance("com.sun.star.frame.Desktop");
- XDesktop dtop = UnoRuntime.queryInterface(XDesktop.class,
- xInterface);
-
- XModel model = dtop.getCurrentFrame().getController().getModel();
- oObj =
- (XInterface)
- xMSF.createInstanceWithArguments("drafts.com.sun.star.script.framework.provider.FunctionProvider",
- new Object[] { model });
-
-
- } catch (com.sun.star.uno.Exception e) {
- throw new StatusException("Can't create object environment", e) ;
- }
-
- TestEnvironment tEnv = new TestEnvironment(oObj) ;
- TestDataLoader.setupData(tEnv, "FunctionProvider");
-
- return tEnv ;
- }
-
- @Override
-
- public synchronized void disposeTestEnvironment(TestEnvironment tEnv,
- TestParameters tParam) {
- }
-}
-
-
diff --git a/scripting/workben/mod/_scripting/ScriptInfo.java b/scripting/workben/mod/_scripting/ScriptInfo.java
deleted file mode 100644
index 05b7b3d0c80e..000000000000
--- a/scripting/workben/mod/_scripting/ScriptInfo.java
+++ /dev/null
@@ -1,108 +0,0 @@
-/*
- * 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 .
- */
-
-package mod._scripting;
-
-import com.sun.star.uno.XInterface;
-import java.io.PrintWriter;
-import lib.StatusException;
-import lib.TestCase;
-import lib.TestEnvironment;
-import lib.TestParameters;
-import java.net.URLEncoder;
-import com.sun.star.lang.XMultiServiceFactory;
-import com.sun.star.ucb.XSimpleFileAccess;
-import com.sun.star.uno.UnoRuntime;
-
-import drafts.com.sun.star.script.framework.storage.XScriptInfoAccess;
-import drafts.com.sun.star.script.framework.storage.XScriptInfo;
-
-public class ScriptInfo extends TestCase {
-
- String docPath = null;
- @Override
- public void initialize(TestParameters tParam, PrintWriter log) {
- // Get path to test documents
- String rootDocPath = (String)tParam.get("TEST_DOCUMENT_PATH");
- System.out.println("TEST_DOCUMENT_PATH is " + rootDocPath);
- rootDocPath = util.utils.getFullTestURL("ExampleSpreadSheetLatest.sxc");
-
- if (rootDocPath != null && rootDocPath.length() > 1) {
- // convert all "\\" to "/", necessary for UCB
- if (rootDocPath.indexOf("\\") > 0) {
- rootDocPath = rootDocPath.replace('\\', '/');
- }
-
- System.out.println("After processing the path is " + rootDocPath);
- // encode the ulr (for UCB)
- String encodedPath = URLEncoder.encode(rootDocPath);
- System.out.println("The encoded path is " + encodedPath);
- docPath = "vnd.sun.star.pkg://" + encodedPath;
- System.out.println("docPath path is " + docPath);
- }
-
- }
-
- @Override
-
- public synchronized TestEnvironment createTestEnvironment(
- TestParameters tParam, PrintWriter log) throws StatusException {
-
- log.println("creating test environment");
-
- if (docPath == null) {
- log.println("Testdata not set up, docPath is null");
- throw new StatusException(
- "Can't create object environment, no test document available",
- new Exception()) ;
- }
-
- XInterface oObj = null;
- XSimpleFileAccess access = null;
-
- try {
- XMultiServiceFactory xMSF = tParam.getMSF();
- Object xInterface =
- xMSF.createInstance("com.sun.star.ucb.SimpleFileAccess");
- access = UnoRuntime.queryInterface(XSimpleFileAccess.class, xInterface);
- Object storageObj = xMSF.createInstanceWithArguments(
- "drafts.com.sun.star.script.framework.storage.ScriptStorage",
- new Object[] { access, Integer.valueOf(99), docPath });
- XScriptInfoAccess infoAccess = UnoRuntime.queryInterface(
- XScriptInfoAccess.class, storageObj);
- XScriptInfo[] infos =
- infoAccess.getImplementations("script://MemoryUtils.MemUsage?location=document");
- oObj = infos[0];
- } catch (com.sun.star.uno.Exception e) {
- throw new StatusException("Can't create object environment", e) ;
- }
-
- TestEnvironment tEnv = new TestEnvironment(oObj) ;
- TestDataLoader.setupData(tEnv, "ScriptInfo");
-
- return tEnv ;
- }
-
- @Override
-
- public synchronized void disposeTestEnvironment(TestEnvironment tEnv,
- TestParameters tParam) {
- }
-}
-
-
diff --git a/scripting/workben/mod/_scripting/ScriptRuntimeManager.java b/scripting/workben/mod/_scripting/ScriptRuntimeManager.java
deleted file mode 100644
index 6051adb1ae70..000000000000
--- a/scripting/workben/mod/_scripting/ScriptRuntimeManager.java
+++ /dev/null
@@ -1,61 +0,0 @@
-/*
- * 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 .
- */
-
-package mod._scripting;
-
-import com.sun.star.uno.XInterface;
-import java.io.PrintWriter;
-import lib.StatusException;
-import lib.TestCase;
-import lib.TestEnvironment;
-import lib.TestParameters;
-
-public class ScriptRuntimeManager extends TestCase {
-
- @Override
- public void initialize(TestParameters tParam, PrintWriter log) {
- }
-
- @Override
-
- public synchronized TestEnvironment createTestEnvironment(
- TestParameters Param, PrintWriter log) throws StatusException {
-
- log.println("creating test environment");
-
- XInterface oObj = null;
-
- try {
- oObj = (XInterface) Param.getMSF().createInstance
- ("drafts.com.sun.star.script.framework.runtime.ScriptRuntimeManager");
- } catch (com.sun.star.uno.Exception e) {
- throw new StatusException("Can't create object environment", e) ;
- }
-
- TestEnvironment tEnv = new TestEnvironment(oObj) ;
- TestDataLoader.setupData(tEnv, "ScriptRuntimeManager");
-
- return tEnv ;
- }
-
- @Override
-
- public synchronized void disposeTestEnvironment(TestEnvironment tEnv,
- TestParameters tParam) {
- }
-}
diff --git a/scripting/workben/mod/_scripting/ScriptStorage.java b/scripting/workben/mod/_scripting/ScriptStorage.java
deleted file mode 100644
index c09f24c083fd..000000000000
--- a/scripting/workben/mod/_scripting/ScriptStorage.java
+++ /dev/null
@@ -1,101 +0,0 @@
-/*
- * 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 .
- */
-
-package mod._scripting;
-
-import com.sun.star.uno.XInterface;
-import java.io.PrintWriter;
-import lib.StatusException;
-import lib.TestCase;
-import lib.TestEnvironment;
-import lib.TestParameters;
-import java.net.URLEncoder;
-import com.sun.star.lang.XMultiServiceFactory;
-import com.sun.star.ucb.XSimpleFileAccess;
-import com.sun.star.uno.UnoRuntime;
-
-public class ScriptStorage extends TestCase {
-
- String docPath = null;
- @Override
- public void initialize(TestParameters tParam, PrintWriter log) {
- // Get path to test documents
- String rootDocPath = (String)tParam.get("TEST_DOCUMENT_PATH");
- System.out.println("TEST_DOCUMENT_PATH is " + rootDocPath);
- rootDocPath = util.utils.getFullTestURL("ExampleSpreadSheetLatest.sxc");
-
- if (rootDocPath != null && rootDocPath.length() > 1) {
- // convert all "\\" to "/", necessary for UCB
- if (rootDocPath.indexOf("\\") > 0) {
- rootDocPath = rootDocPath.replace('\\', '/');
- }
-
- System.out.println("After processing the path is " + rootDocPath);
- // encode the ulr (for UCB)
- String encodedPath = URLEncoder.encode(rootDocPath);
- System.out.println("The encoded path is " + encodedPath);
- docPath = "vnd.sun.star.pkg://" + encodedPath;
- System.out.println("docPath path is " + docPath);
- }
-
- }
-
- @Override
-
- public synchronized TestEnvironment createTestEnvironment(
- TestParameters tParam, PrintWriter log) throws StatusException {
-
- log.println("creating test environment");
-
- if (docPath == null) {
- log.println("Testdata not set up, docPath is null");
- throw new StatusException(
- "Can't create object environment, no test document available",
- new Exception()) ;
- }
-
- XInterface oObj = null;
- XSimpleFileAccess access = null;
-
- try {
- XMultiServiceFactory xMSF = tParam.getMSF();
- Object xInterface =
- xMSF.createInstance("com.sun.star.ucb.SimpleFileAccess");
- access = UnoRuntime.queryInterface(XSimpleFileAccess.class, xInterface);
- oObj = (XInterface)xMSF.createInstanceWithArguments(
- "drafts.com.sun.star.script.framework.storage.ScriptStorage",
- new Object[] { access, Integer.valueOf(99), docPath });
-
- } catch (com.sun.star.uno.Exception e) {
- throw new StatusException("Can't create object environment", e) ;
- }
-
- TestEnvironment tEnv = new TestEnvironment(oObj) ;
- TestDataLoader.setupData(tEnv, "ScriptStorage");
-
- return tEnv ;
- }
-
- @Override
-
- public synchronized void disposeTestEnvironment(TestEnvironment tEnv,
- TestParameters tParam) {
- }
-}
-
-
diff --git a/scripting/workben/mod/_scripting/ScriptStorageManager.java b/scripting/workben/mod/_scripting/ScriptStorageManager.java
deleted file mode 100644
index b18c613f59e8..000000000000
--- a/scripting/workben/mod/_scripting/ScriptStorageManager.java
+++ /dev/null
@@ -1,76 +0,0 @@
-/*
- * 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 .
- */
-
-package mod._scripting;
-
-import com.sun.star.lang.XMultiServiceFactory;
-import com.sun.star.beans.XPropertySet;
-import com.sun.star.uno.XInterface;
-import com.sun.star.uno.UnoRuntime;
-import com.sun.star.uno.XComponentContext;
-import java.io.PrintWriter;
-import lib.StatusException;
-import lib.TestCase;
-import lib.TestEnvironment;
-import lib.TestParameters;
-
-public class ScriptStorageManager extends TestCase {
-
- @Override
- public void initialize(TestParameters tParam, PrintWriter log) {
- }
-
- @Override
-
- public synchronized TestEnvironment createTestEnvironment(
- TestParameters Param, PrintWriter log) throws StatusException {
-
- XInterface oObj = null;
- Object oInterface = null;
-
- try {
- XMultiServiceFactory xMSF = Param.getMSF();
- XPropertySet xProp = UnoRuntime.queryInterface(
- XPropertySet.class, xMSF);
- // get context
- XComponentContext xContext = UnoRuntime.queryInterface(XComponentContext.class,
- xProp.getPropertyValue("DefaultContext"));
- // get the script storage manager from context
- oInterface = xContext.getValueByName("/singletons/" +
- "drafts.com.sun.star.script.framework.storage.theScriptStorageManager");
- } catch (Exception e) {
- log.println("ScriptStorageManager singleton service not available");
- e.printStackTrace();
- }
-
- oObj = (XInterface) oInterface;
-
- TestEnvironment tEnv = new TestEnvironment(oObj) ;
- TestDataLoader.setupData(tEnv, "ScriptStorageManager");
-
- return tEnv ;
- }
-
- @Override
-
- public synchronized void disposeTestEnvironment(TestEnvironment tEnv,
- TestParameters tParam) {
- }
-}
-
-
diff --git a/scripting/workben/mod/_scripting/TestDataLoader.java b/scripting/workben/mod/_scripting/TestDataLoader.java
deleted file mode 100644
index 6f8078656058..000000000000
--- a/scripting/workben/mod/_scripting/TestDataLoader.java
+++ /dev/null
@@ -1,116 +0,0 @@
-/*
- * 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 .
- */
-
-package mod._scripting;
-
-import java.io.File;
-import java.io.FileReader;
-import java.io.BufferedReader;
-import java.io.IOException;
-
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.StringTokenizer;
-
-import lib.TestEnvironment;
-import lib.Parameters;
-
-public class TestDataLoader {
-
- private TestDataLoader() {
- }
-
- public static void setupData(TestEnvironment tEnv, String name) {
- String filename =
- util.utils.getFullTestDocName("testdata");
- File testdatadir = new File(filename);
- File f = new File(testdatadir, name + ".csv");
-
- if (!f.exists())
- return;
-
-
- try {
- BufferedReader in = new BufferedReader(new FileReader(f));
-
- String s, previous, current;
- ArrayList<Parameters> list = new ArrayList<Parameters>(11);
-
- if ((s = in.readLine()) != null) {
- StringTokenizer st = new StringTokenizer(s, ";");
-
- current = previous = st.nextToken();
- list.add(getParameters(st));
- } else {
- in.close();
- return;
- }
-
- while ((s = in.readLine()) != null) {
- StringTokenizer st = new StringTokenizer(s, ";");
-
- current = st.nextToken();
-
- if (!current.equals(previous)) {
- tEnv.addObjRelation(previous, list);
- previous = current;
- list = new ArrayList<Parameters>(11);
- }
-
- list.add(getParameters(st));
- }
-
- tEnv.addObjRelation(previous, list);
- in.close();
- } catch (IOException ioe) {
- }
- }
-
- private static Parameters getParameters(StringTokenizer st) {
- String separator = "=";
- HashMap<String, Object> map = new HashMap<String, Object>(5);
-
- while (st.hasMoreTokens()) {
- String pair = st.nextToken();
- StringTokenizer tokens = new StringTokenizer(pair, separator);
-
- String name;
- String value;
-
- if (tokens.countTokens() < 2)
- continue;
-
- name = tokens.nextToken();
-
- if (tokens.countTokens() == 1)
- value = tokens.nextToken();
- else {
- StringBuffer buf = new StringBuffer(tokens.nextToken());
-
- while (tokens.hasMoreTokens())
- buf.append(separator).append(tokens.nextToken());
-
- value = buf.toString();
- }
-
- map.put(name, value);
- }
-
- return new Parameters(map);
- }
-}
diff --git a/scripting/workben/mod/_scripting/makefile.mk b/scripting/workben/mod/_scripting/makefile.mk
deleted file mode 100644
index 0519fc57a953..000000000000
--- a/scripting/workben/mod/_scripting/makefile.mk
+++ /dev/null
@@ -1,31 +0,0 @@
-#
-# 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 .
-#
-
-PRJ = ..$/..$/..$/..
-PRJNAME = testcase
-TARGET = testcase
-
-# --- Settings -----------------------------------------------------
-.INCLUDE: settings.mk
-
-JARFILES = ridl.jar unoil.jar jurt.jar juh.jar $(CLASSPATH)
-JAVAFILES = $(foreach,j,$(shell @ls | grep java) $j)
-
-# --- Targets ------------------------------------------------------
-
-.INCLUDE : target.mk