tdf#170930 Add namespace used for theServiceDocumenter to component

The namespace for theServiceDocumenter singleton doesn’t match the name
of the component declared in utl.component so if you tried to use the
automatically generated getter in C++ or the getter from BASIC then it
wouldn’t work. This patch adds a second singleton name to the
component to make the getter work without breaking existing code
that is using getValueByName with the old name.

Change-Id: I650b0766a0adf3f3c915e2337e2a7ebbddd9fc72
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/199955
Tested-by: Jenkins
Reviewed-by: Neil Roberts <bpeeluk@yahoo.co.uk>
This commit is contained in:
Neil Roberts
2026-02-23 16:39:06 +01:00
parent 02503363d6
commit 99c0fcc777
+5
View File
@@ -27,5 +27,10 @@
constructor="unotools_ServiceDocument_get_implementation"
single-instance="true">
<singleton name="com.sun.star.util.theServiceDocumenter"/>
<!-- tdf#170930 the singleton was created in the “script” namespace whereas the name in the
component file contained “util”. Let’s keep both names in order to make the singleton
getter work without breaking it for people that are used to using the old name with
getValueByName -->
<singleton name="com.sun.star.script.theServiceDocumenter"/>
</implementation>
</component>