From 3f281b6f0ad73eae72b77fa4dcab9008b7e14187 Mon Sep 17 00:00:00 2001 From: Michael Meeks Date: Fri, 6 Jul 2012 17:28:37 +0100 Subject: re-base on ALv2 code. Includes: remove onlineregistration with dependencies Patch contributed by Juergen Schmidt http://svn.apache.org/viewvc?view=revision&revision=1249245 --- scripting/Makefile | 7 ++++ scripting/examples/basic/InsertColouredText.xba | 17 +++++++++ .../examples/basic/InsertColouredTextDialog.xdl | 17 +++++++++ scripting/examples/basic/SearchAndReplace.xba | 17 +++++++++ .../examples/basic/SearchAndReplaceDialog.xdl | 17 +++++++++ .../examples/beanshell/Capitalise/capitalise.bsh | 17 +++++++++ .../beanshell/Capitalise/parcel-descriptor.xml | 18 ++++++++- .../examples/beanshell/HelloWorld/helloworld.bsh | 17 +++++++++ .../beanshell/HelloWorld/parcel-descriptor.xml | 18 ++++++++- .../beanshell/Highlight/ButtonPressHandler.bsh | 17 +++++++++ .../examples/beanshell/Highlight/ShowDialog.bsh | 17 +++++++++ .../examples/beanshell/Highlight/highlighter.bsh | 17 +++++++++ .../beanshell/Highlight/parcel-descriptor.xml | 18 ++++++++- .../beanshell/InteractiveBeanShell/interactive.bsh | 21 ++++++++++- .../InteractiveBeanShell/parcel-descriptor.xml | 18 ++++++++- .../examples/beanshell/MemoryUsage/memusage.bsh | 17 +++++++++ .../beanshell/MemoryUsage/parcel-descriptor.xml | 18 ++++++++- .../beanshell/WordCount/parcel-descriptor.xml | 18 ++++++++- .../examples/beanshell/WordCount/wordcount.bsh | 19 +++++++++- .../examples/java/HelloWorld/parcel-descriptor.xml | 17 +++++++++ .../examples/java/Highlight/parcel-descriptor.xml | 18 ++++++++- .../java/MemoryUsage/parcel-descriptor.xml | 17 +++++++++ .../examples/java/debugger/parcel-descriptor.xml | 18 ++++++++- .../examples/java/selector/parcel-descriptor.xml | 18 ++++++++- .../ExportSheetsToHTML/exportsheetstohtml.js | 23 ++++++++++-- .../ExportSheetsToHTML/parcel-descriptor.xml | 18 ++++++++- .../examples/javascript/HelloWorld/helloworld.js | 17 +++++++++ .../javascript/HelloWorld/parcel-descriptor.xml | 18 ++++++++- .../javascript/Highlight/ButtonPressHandler.js | 17 +++++++++ .../examples/javascript/Highlight/ShowDialog.js | 17 +++++++++ .../javascript/Highlight/parcel-descriptor.xml | 18 ++++++++- scripting/java/ScriptFramework.component | 43 +++++++++------------- .../java/ScriptProviderForBeanShell.component | 43 +++++++++------------- scripting/java/ScriptProviderForJava.component | 43 +++++++++------------- .../java/ScriptProviderForJavaScript.component | 43 +++++++++------------- .../framework/provider/beanshell/template.bsh | 17 +++++++++ .../javascript/ScriptEditorForJavaScript.java | 37 +++++++------------ .../javascript/ScriptProviderForJavaScript.java | 37 +++++++------------ .../framework/provider/javascript/template.js | 17 +++++++++ .../modules/office/filesystem/Bundle.properties | 17 +++++++++ .../modules/office/loader/Bundle.properties | 17 +++++++++ .../modules/office/options/Bundle.properties | 17 +++++++++ .../modules/office/resources/Bundle.properties | 17 +++++++++ .../netbeans/modules/office/resources/layer.xml | 17 +++++++++ .../modules/office/resources/mime-resolver.xml | 18 ++++++++- .../modules/office/resources/templates/Empty.bsh_ | 22 ++++++++++- .../resources/templates/EmptyParcelDescriptor.xml_ | 1 - .../modules/office/wizard/Bundle.properties | 17 +++++++++ .../office/wizard/ParcelPropertiesVisualPanel.form | 18 ++++++++- .../office/wizard/SelectPathVisualPanel.form | 18 ++++++++- scripting/source/basprov/basmethnode.cxx | 37 +++++++------------ scripting/source/basprov/basprov.component | 43 +++++++++------------- scripting/source/basprov/basprov.cxx | 37 +++++++------------ scripting/source/basprov/basprov.xml | 17 +++++++++ scripting/source/basprov/basscript.cxx | 37 +++++++------------ scripting/source/basprov/basscript.hxx | 37 +++++++------------ scripting/source/dlgprov/DialogModelProvider.cxx | 37 +++++++------------ scripting/source/dlgprov/dlgevtatt.cxx | 37 +++++++------------ scripting/source/dlgprov/dlgevtatt.hxx | 37 +++++++------------ scripting/source/dlgprov/dlgprov.component | 43 +++++++++------------- scripting/source/dlgprov/dlgprov.cxx | 37 +++++++------------ scripting/source/dlgprov/dlgprov.hxx | 37 +++++++------------ scripting/source/dlgprov/dlgprov.xml | 17 +++++++++ scripting/source/inc/util/MiscUtils.hxx | 37 +++++++------------ .../protocolhandler/protocolhandler.component | 43 +++++++++------------- .../source/protocolhandler/protocolhandler.xml | 17 +++++++++ scripting/source/protocolhandler/scripthandler.cxx | 37 +++++++------------ scripting/source/provider/ActiveMSPList.cxx | 37 +++++++------------ scripting/source/provider/ActiveMSPList.hxx | 37 +++++++------------ .../source/provider/BrowseNodeFactoryImpl.cxx | 37 +++++++------------ .../source/provider/BrowseNodeFactoryImpl.hxx | 37 +++++++------------ scripting/source/provider/MasterScriptProvider.cxx | 37 +++++++------------ scripting/source/provider/MasterScriptProvider.hxx | 37 +++++++------------ .../provider/MasterScriptProviderFactory.cxx | 37 +++++++------------ .../provider/MasterScriptProviderFactory.hxx | 37 +++++++------------ scripting/source/provider/ProviderCache.cxx | 37 +++++++------------ scripting/source/provider/ProviderCache.hxx | 37 +++++++------------ scripting/source/provider/ScriptImpl.cxx | 37 +++++++------------ scripting/source/provider/ScriptImpl.hxx | 37 +++++++------------ scripting/source/provider/ScriptingContext.cxx | 37 +++++++------------ scripting/source/provider/ScriptingContext.hxx | 37 +++++++------------ scripting/source/provider/URIHelper.cxx | 37 +++++++------------ scripting/source/provider/URIHelper.hxx | 37 +++++++------------ scripting/source/provider/provider.xml | 17 +++++++++ scripting/source/pyprov/components.rdb | 17 +++++++++ scripting/source/pyprov/description.xml | 17 +++++++++ scripting/source/pyprov/mailmerge.component | 43 +++++++++------------- scripting/source/pyprov/manifest.xml | 17 +++++++++ scripting/source/pyprov/officehelper.py | 33 ++++++----------- scripting/source/pyprov/pythonscript.py | 17 +++++++++ .../source/runtimemgr/ScriptNameResolverImpl.cxx | 37 +++++++------------ .../source/runtimemgr/ScriptNameResolverImpl.hxx | 37 +++++++------------ .../source/runtimemgr/ScriptRuntimeManager.cxx | 37 +++++++------------ .../source/runtimemgr/ScriptRuntimeManager.hxx | 37 +++++++------------ scripting/source/runtimemgr/StorageBridge.cxx | 37 +++++++------------ scripting/source/runtimemgr/StorageBridge.hxx | 37 +++++++------------ .../source/runtimemgr/StorageBridgeFactory.hxx | 37 +++++++------------ scripting/source/runtimemgr/runtimemgr.xml | 17 +++++++++ .../source/stringresource/stringresource.component | 43 +++++++++------------- scripting/source/stringresource/stringresource.cxx | 37 +++++++------------ scripting/source/stringresource/stringresource.hxx | 37 +++++++------------ scripting/source/stringresource/stringresource.xml | 17 +++++++++ scripting/source/vbaevents/eventhelper.cxx | 37 +++++++------------ scripting/source/vbaevents/service.cxx | 37 +++++++------------ scripting/source/vbaevents/vbaevents.component | 43 +++++++++------------- scripting/source/vbaevents/vbaevents.xml | 17 +++++++++ scripting/util/scriptframe.component | 43 +++++++++------------- scripting/workben/bindings/EditDebug.xdl | 17 +++++++++ scripting/workben/bindings/EventsBinding.xdl | 17 +++++++++ scripting/workben/bindings/HelpBinding.xdl | 17 +++++++++ scripting/workben/bindings/Highlight.xdl | 17 +++++++++ scripting/workben/bindings/KeyBinding.xdl | 17 +++++++++ scripting/workben/bindings/MacroEditor.xdl | 17 +++++++++ scripting/workben/bindings/MenuBinding.xdl | 17 +++++++++ scripting/workben/bindings/ScriptBinding.xba | 17 +++++++++ scripting/workben/bindings/calckeybinding.xml | 17 +++++++++ scripting/workben/bindings/calcmenubar.xml | 18 ++++++++- scripting/workben/bindings/drawkeybinding.xml | 17 +++++++++ scripting/workben/bindings/drawmenubar.xml | 18 ++++++++- scripting/workben/bindings/impresskeybinding.xml | 17 +++++++++ scripting/workben/bindings/impressmenubar.xml | 18 ++++++++- scripting/workben/bindings/manifest.xml | 17 +++++++++ scripting/workben/bindings/writerkeybinding.xml | 17 +++++++++ scripting/workben/bindings/writermenubar.xml | 18 ++++++++- scripting/workben/build.xml | 41 ++++++++------------- .../workben/installer/Scripting.BeanShell.xcu | 17 +++++++++ .../workben/installer/Scripting.JavaScript.xcu | 17 +++++++++ scripting/workben/installer/Scripting.xcs | 37 +++++++------------ 128 files changed, 2029 insertions(+), 1303 deletions(-) (limited to 'scripting') diff --git a/scripting/Makefile b/scripting/Makefile index ccb1c85a04da..0997e628485b 100644 --- a/scripting/Makefile +++ b/scripting/Makefile @@ -1,4 +1,11 @@ # -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*- +# +# 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/. +# module_directory:=$(dir $(realpath $(firstword $(MAKEFILE_LIST)))) diff --git a/scripting/examples/basic/InsertColouredText.xba b/scripting/examples/basic/InsertColouredText.xba index 791689a15538..e97b5dfd8a87 100644 --- a/scripting/examples/basic/InsertColouredText.xba +++ b/scripting/examples/basic/InsertColouredText.xba @@ -1,5 +1,22 @@ + ' *** ' InsertColouredText basic script ' Uses a user interface to insert text of a specified colour to the diff --git a/scripting/examples/basic/InsertColouredTextDialog.xdl b/scripting/examples/basic/InsertColouredTextDialog.xdl index c2e8ace8466e..2fa7768bcf8d 100644 --- a/scripting/examples/basic/InsertColouredTextDialog.xdl +++ b/scripting/examples/basic/InsertColouredTextDialog.xdl @@ -1,5 +1,22 @@ + diff --git a/scripting/examples/basic/SearchAndReplace.xba b/scripting/examples/basic/SearchAndReplace.xba index d98369e9f372..fb7c60bd4f22 100644 --- a/scripting/examples/basic/SearchAndReplace.xba +++ b/scripting/examples/basic/SearchAndReplace.xba @@ -1,5 +1,22 @@ + ' *** ' SearchAndReplace basic script ' Uses a user interface to search and replace the specified strings diff --git a/scripting/examples/basic/SearchAndReplaceDialog.xdl b/scripting/examples/basic/SearchAndReplaceDialog.xdl index 7b0e90dd9779..9503dbf57200 100644 --- a/scripting/examples/basic/SearchAndReplaceDialog.xdl +++ b/scripting/examples/basic/SearchAndReplaceDialog.xdl @@ -1,5 +1,22 @@ + diff --git a/scripting/examples/beanshell/Capitalise/capitalise.bsh b/scripting/examples/beanshell/Capitalise/capitalise.bsh index c059d3990846..206a84910ee6 100755 --- a/scripting/examples/beanshell/Capitalise/capitalise.bsh +++ b/scripting/examples/beanshell/Capitalise/capitalise.bsh @@ -1,3 +1,20 @@ +/* + * 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 . + */ // Change the case of a selection, or current word from upper case, // to first char upper case, to all lower case to upper case... import com.sun.star.uno.UnoRuntime; diff --git a/scripting/examples/beanshell/Capitalise/parcel-descriptor.xml b/scripting/examples/beanshell/Capitalise/parcel-descriptor.xml index bf3730bf1da4..d6fb419aa05b 100644 --- a/scripting/examples/beanshell/Capitalise/parcel-descriptor.xml +++ b/scripting/examples/beanshell/Capitalise/parcel-descriptor.xml @@ -1,5 +1,21 @@ - +