The Editable property is now advertised on script providers based on SingleScriptProvider. Once invoked, the system default application for the script will be opened using SystemShellExecute. On Windows, the default app is queried via AssocQueryStringW and then passed to the SingleScriptFactory to check if it looks like an interpreter for the given language. If so, the script is opened in Notepad instead to avoid just executing the script. This is based on the code for the Python script provider in tdf#56289. Change-Id: Ia89ddbdd92b4d76c3a4ce133ffcf9b6d7a9f1e27 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/203282 Tested-by: Jenkins Reviewed-by: Neil Roberts <nroberts@libreoffice.org>
43 lines
1.1 KiB
Makefile
43 lines
1.1 KiB
Makefile
# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t; fill-column: 100 -*-
|
|
#
|
|
# 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/.
|
|
#
|
|
|
|
$(eval $(call gb_Library_Library,singleprov))
|
|
|
|
$(eval $(call gb_Library_use_sdk_api,singleprov))
|
|
|
|
$(eval $(call gb_Library_set_include,singleprov,\
|
|
$$(INCLUDE) \
|
|
-I$(SRCDIR)/scripting/source/inc \
|
|
))
|
|
|
|
$(eval $(call gb_Library_use_libraries,singleprov,\
|
|
comphelper \
|
|
cppu \
|
|
cppuhelper \
|
|
sal \
|
|
))
|
|
|
|
$(eval $(call gb_Library_add_exception_objects,singleprov,\
|
|
scripting/source/singleprov/externaledit \
|
|
scripting/source/singleprov/provcontext \
|
|
scripting/source/singleprov/scriptbrowser \
|
|
scripting/source/singleprov/scriptdir \
|
|
scripting/source/singleprov/scriptfile \
|
|
scripting/source/singleprov/scriptmacro \
|
|
scripting/source/singleprov/scriptprovider \
|
|
))
|
|
|
|
|
|
$(eval $(call gb_Library_use_system_win32_libs,singleprov,\
|
|
shell32 \
|
|
shlwapi \
|
|
))
|
|
|
|
# vim: set noet sw=4 ts=4:
|