office-gobmx/oox/CppunitTest_oox_mcgr.mk
Regina Henschel 0028c2311c MCGR: Use BGradient in export of Fontwork to docx too
Transparency values are not exactly like in UI because converting
through rgb-color adds rounding inaccuracy. The unit tests are adjusted
accordingly. With only start and end values it was possible to use the
UI values directly. It would be possible to make special cases for
front and back value, but I think it is not worth the effort.

The previous solution had the error, that the stops were not mirrored
in case of non linear gradient. That is corrected now. The unit tests
are adjusted.

The previous solution had assumed that our 'intensity' at start or end
colors is the same as the 'lumMod' attribute in OOXML. However, this is
not the case. So now the 'intensity' is incorporated into the color.
Again, the unit tests are adjusted.

Change-Id: Id02e455dc09d12c5b453637fcb2bdc4f8f1529d1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/152839
Tested-by: Jenkins
Reviewed-by: Regina Henschel <rb.henschel@t-online.de>
2023-06-14 10:09:51 +02:00

53 lines
1.4 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/.
#
#*************************************************************************
$(eval $(call gb_CppunitTest_CppunitTest,oox_mcgr))
$(eval $(call gb_CppunitTest_use_externals,oox_mcgr,\
boost_headers \
libxml2 \
))
$(eval $(call gb_CppunitTest_add_exception_objects,oox_mcgr, \
oox/qa/unit/mcgr \
))
$(eval $(call gb_CppunitTest_use_libraries,oox_mcgr, \
comphelper \
cppu \
cppuhelper \
oox \
sal \
subsequenttest \
test \
unotest \
utl \
tl \
))
$(eval $(call gb_CppunitTest_use_sdk_api,oox_mcgr))
$(eval $(call gb_CppunitTest_use_ure,oox_mcgr))
$(eval $(call gb_CppunitTest_use_vcl,oox_mcgr))
$(eval $(call gb_CppunitTest_use_rdb,oox_mcgr,services))
$(eval $(call gb_CppunitTest_use_custom_headers,oox_mcgr,\
officecfg/registry \
))
$(eval $(call gb_CppunitTest_use_configuration,oox_mcgr))
$(eval $(call gb_CppunitTest_add_arguments,oox_mcgr, \
-env:arg-env=$(gb_Helper_LIBRARY_PATH_VAR)"$$$${$(gb_Helper_LIBRARY_PATH_VAR)+=$$$$$(gb_Helper_LIBRARY_PATH_VAR)}" \
))
# vim: set noet sw=4 ts=4: