Files
Neil Roberts 99c0fcc777 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>
2026-02-23 16:39:06 +01:00

37 lines
1.8 KiB
XML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?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/.
*
* 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 .
-->
<component loader="com.sun.star.loader.SharedLibrary" environment="@CPPU_ENV@"
xmlns="http://openoffice.org/2010/uno-components">
<implementation name="com.sun.star.io.comp.TempFile"
constructor="unotools_OTempFileService_get_implementation">
<service name="com.sun.star.io.TempFile"/>
</implementation>
<implementation name="com.sun.star.comp.unotools.misc.ServiceDocumenter"
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>