Adds an XBrowseNode implementation for JavaScript scripts using the QuickJS bindings so that JS files can be found and executed from the macro organizer. Unlike in Python macros, the entire source file becomes a single macro instead of trying to find function definitions in the source. Change-Id: I73d0c6e6fc6bb7ffd4f6164d1f1887d03bfdfe62 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/203219 Tested-by: Jenkins Reviewed-by: Neil Roberts <nroberts@libreoffice.org>
18 lines
788 B
XML
18 lines
788 B
XML
<?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/.
|
|
*
|
|
-->
|
|
<component loader="com.sun.star.loader.SharedLibrary" environment="@CPPU_ENV@"
|
|
xmlns="http://openoffice.org/2010/uno-components">
|
|
<implementation name="com.sun.star.singleprov.ScriptProviderForJavaScript"
|
|
constructor="scripting_JavaScriptProviderImpl_get_implementation">
|
|
<service name="com.sun.star.script.provider.ScriptProviderForJavaScript"/>
|
|
<service name="com.sun.star.script.provider.LanguageScriptProvider"/>
|
|
</implementation>
|
|
</component>
|