Files
odfstudio/sc/common_unoapi_tests.mk
T
Dan Williams 92c6a725b8 tdf#139467 correctly handle DatabaseLocation for Calc cell ranges
svx::ODataAccessDescriptor contains properties for both a database
name and a local file database location. It parses a given name
via setDataSource() and puts the value into the correct property
depending on whether it starts with "file://" or not.

But this means that code which directly checks properties of
the ODataAccessDescriptor cannot just look for "DataSource"
but must also handle the "DatabaseLocation" property.

Net effect was that saving a Calc sheet with a cell range
backed by a database query from a local file database that was
NOT registered with LibreOffice would not save the database URL
to the .ods file, and on reload would lose the reference to the
database. This caused failures when trying to refresh the database
query.

On the UNO side creating import descriptors for a cell range
from a file with a database location would also fail to read
in the location. Fix that.

Change-Id: I7340f2d9f2f0552f436682f2b96249f39413c1fb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/195173
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Hossein <hossein@libreoffice.org>
Tested-by: Jenkins
Reviewed-by: Hossein <hossein@libreoffice.org>
2026-02-18 22:20:45 +01:00

68 lines
1.6 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/.
#
#*************************************************************************
# template for unoapi tests
define sc_unoapi_common
$(eval $(call gb_CppunitTest_CppunitTest,sc_$(1)))
$(eval $(call gb_CppunitTest_use_externals,sc_$(1), \
boost_headers \
libxml2 \
))
$(eval $(call gb_Library_use_common_precompiled_header,sc_$(1)))
$(eval $(call gb_CppunitTest_add_defs,sc_$(1),\
$(if $(ENABLE_LPSOLVE), -DENABLE_LPSOLVE) \
))
$(eval $(call gb_CppunitTest_add_exception_objects,sc_$(1), \
sc/qa/extras/sc$(1) \
))
$(eval $(call gb_CppunitTest_use_libraries,sc_$(1), \
comphelper \
cppu \
cppuhelper \
sal \
salhelper \
sc \
sfx \
subsequenttest \
test \
unotest \
utl \
tl \
vcl \
))
$(eval $(call gb_CppunitTest_set_include,sc_$(1),\
-I$(SRCDIR)/sc/inc \
-I$(SRCDIR)/sc/source/ui/inc \
$$(INCLUDE) \
))
$(eval $(call gb_CppunitTest_use_api,sc_$(1),\
offapi \
udkapi \
))
$(eval $(call gb_CppunitTest_use_ure,sc_$(1)))
$(eval $(call gb_CppunitTest_use_vcl,sc_$(1)))
$(eval $(call gb_CppunitTest_use_rdb,sc_$(1),services))
$(eval $(call gb_CppunitTest_use_configuration,sc_$(1)))
endef
# vim: set noet sw=4 ts=4: