Files
odfstudio/comphelper/Library_comphelper.mk
Neil Roberts 6154aa313c Related tdf#173293 comphelper: Add helper class for XInvocation
Lots of classes implement XInvocation in order to add extra methods and
properties that are determined at runtime. One problem with this is that
when such an object is introspected with the css.script.Invocation
service then that service uses the XInvocation interface directly to
query what methods and properties are supported instead of creating an
XIntrospectionAccess via the css.beans.Introspection service. It looks
like probably all of the current implementations of XInvocation only use
it to advertise the dynamic methods and don’t advertise any concrete
methods provided by any interfaces that the object implements. This
means for example that when the object is accessed by pyuno, only the
dynamic methods and properties can be used.

This patch adds a helper class that can be used to help implement
XInvocation in such a way that if a requested method isn’t found as a
dynamic method, it can pass the method call on to the helper which will
use the normal Introspection service to query the available methods and
properties.

Change-Id: Ia4363594ee274c36249a0d1c94f16a829ace4647
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/210130
Tested-by: Jenkins
Reviewed-by: Neil Roberts <nroberts@libreoffice.org>
2026-09-25 10:39:19 +02:00

179 lines
6.8 KiB
Makefile

# -*- 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/.
#
# 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 .
#
$(eval $(call gb_Library_Library,comphelper))
$(eval $(call gb_Library_use_custom_headers,comphelper,\
officecfg/registry \
))
$(eval $(call gb_Library_set_componentfile,comphelper,comphelper/util/comphelp,services))
$(eval $(call gb_Library_set_precompiled_header,comphelper,comphelper/inc/pch/precompiled_comphelper))
$(eval $(call gb_Library_add_defs,comphelper,\
-DCOMPHELPER_DLLIMPLEMENTATION \
))
$(eval $(call gb_Library_use_externals,comphelper,\
gpgmepp \
boost_headers \
frozen \
icuuc \
icu_headers \
zlib \
))
ifeq ($(TLS),NSS)
$(eval $(call gb_Library_use_externals,comphelper,\
plc4 \
nss3 \
))
else
ifeq ($(TLS),OPENSSL)
$(eval $(call gb_Library_use_externals,comphelper,\
openssl \
openssl_headers \
))
endif
endif
$(eval $(call gb_Library_use_libraries,comphelper,\
cppu \
cppuhelper \
sal \
salhelper \
ucbhelper \
i18nlangtag \
))
$(eval $(call gb_Library_use_sdk_api,comphelper))
$(eval $(call gb_Library_add_exception_objects,comphelper,\
comphelper/source/compare/AnyCompareFactory \
comphelper/source/container/IndexedPropertyValuesContainer \
comphelper/source/container/NamedPropertyValuesContainer \
comphelper/source/container/container \
comphelper/source/container/containermultiplexer \
comphelper/source/container/interfacecontainer2 \
comphelper/source/container/embeddedobjectcontainer \
comphelper/source/container/enumerablemap \
comphelper/source/container/enumhelper \
comphelper/source/container/namecontainer \
comphelper/source/crypto/Crypto \
$(if $(filter NSS,$(TLS)), comphelper/source/crypto/Crypto_NSS) \
$(if $(filter OPENSSL,$(TLS)), comphelper/source/crypto/Crypto_OpenSSL) \
$(if $(filter NSS OPENSSL,$(TLS)),,comphelper/source/crypto/Crypto_None) \
comphelper/source/eventattachermgr/eventattachermgr \
comphelper/source/misc/OAccessible \
comphelper/source/misc/accessibleeventnotifier \
comphelper/source/misc/accessiblekeybindinghelper \
comphelper/source/misc/accessibleselectionhelper \
comphelper/source/misc/accessibletexthelper \
comphelper/source/misc/AccessibleImplementationHelper \
comphelper/source/misc/anycompare \
comphelper/source/misc/anytohash \
comphelper/source/misc/anytostring \
comphelper/source/misc/asyncnotification \
comphelper/source/misc/asyncquithandler \
comphelper/source/misc/automationinvokedzone \
comphelper/source/misc/backupfilehelper \
comphelper/source/misc/base64 \
comphelper/source/misc/compbase \
comphelper/source/misc/componentbase \
comphelper/source/misc/configuration \
comphelper/source/misc/configurationhelper \
comphelper/source/misc/date \
comphelper/source/misc/debuggerinfo \
comphelper/source/misc/diagnose_ex \
comphelper/source/misc/DirectoryHelper \
comphelper/source/misc/dispatchcommand \
comphelper/source/misc/docpasswordhelper \
comphelper/source/misc/docpasswordrequest \
comphelper/source/misc/documentinfo \
comphelper/source/misc/emscriptenthreading \
comphelper/source/misc/errcode \
comphelper/source/misc/evtlistenerhlp \
comphelper/source/misc/evtmethodhelper \
comphelper/source/misc/fileurl \
comphelper/source/misc/getexpandeduri \
comphelper/source/misc/graphicmimetype \
comphelper/source/misc/hash \
comphelper/source/misc/instancelocker \
comphelper/source/misc/interaction \
comphelper/source/misc/invocationhelper \
comphelper/source/misc/logging \
comphelper/source/misc/lok \
comphelper/source/misc/mimeconfighelper \
comphelper/source/misc/namedvaluecollection \
comphelper/source/misc/numberedcollection \
comphelper/source/misc/numbers \
comphelper/source/misc/officerestartmanager \
comphelper/source/misc/traceevent \
comphelper/source/misc/random \
comphelper/source/misc/SelectionMultiplex \
comphelper/source/misc/scriptbrowse \
comphelper/source/misc/sequenceashashmap \
comphelper/source/misc/sharedmutex \
comphelper/source/misc/simplefileaccessinteraction \
comphelper/source/misc/solarmutex \
comphelper/source/misc/stillreadwriteinteraction \
comphelper/source/misc/storagehelper \
comphelper/source/misc/string \
comphelper/source/misc/synchronousdispatch \
comphelper/source/misc/syntaxhighlight \
comphelper/source/misc/threadpool \
comphelper/source/misc/types \
comphelper/source/misc/weakeventlistener \
comphelper/source/misc/xmlsechelper \
comphelper/source/officeinstdir/officeinstallationdirectories \
comphelper/source/processfactory/processfactory \
comphelper/source/property/ChainablePropertySet \
comphelper/source/property/ChainablePropertySetInfo \
comphelper/source/property/genericpropertyset \
comphelper/source/property/MasterPropertySet \
comphelper/source/property/MasterPropertySetInfo \
comphelper/source/property/opropertybag \
comphelper/source/property/propagg \
comphelper/source/property/propertybag \
comphelper/source/property/propertycontainer \
comphelper/source/property/propertycontainerhelper \
comphelper/source/property/property \
comphelper/source/property/propertysethelper \
comphelper/source/property/propertysetinfo \
comphelper/source/property/propertystatecontainer \
comphelper/source/property/propmultiplex \
comphelper/source/property/propmultiplex2 \
comphelper/source/property/propshlp \
comphelper/source/property/propstate \
comphelper/source/streaming/basicio \
comphelper/source/streaming/memorystream \
comphelper/source/streaming/oslfile2streamwrap \
comphelper/source/streaming/seekableinput \
comphelper/source/streaming/seqinputstreamserv \
comphelper/source/streaming/seqoutputstreamserv \
comphelper/source/streaming/seqstream \
comphelper/source/streaming/streamsection \
comphelper/source/xml/attributelist \
comphelper/source/xml/ofopxmlhelper \
comphelper/source/xml/xmltools \
))
# vim: set noet sw=4 ts=4: