office-gobmx/sw/CppunitTest_sw_ooxml_theme_export.mk
Tomaž Vajngerl 17105fc44b sw: remove char color GrabBag and fix export, fix tint/shade calc.
Don't store values from grab bag when exporting character theme
colors and tint/shade values. The values could be wrong now and
aren't needed anyway as we support the values in the model.
Add proper export support for char color theme information with
correct conversion of values into tint/shade values in 0-255
inverted interval.
This also fixes the import of tint/shade values whcih calculation
was slightly off. We divided by 256 instead of 255, which
introduced an error.

In addition introduce ThemeColorUsage enum, which marks if the
theme color type has a specific "usage" - text or background. This
is determined on import if the theme type is background{1,2} or
text{1,2}. This is then taken into account on export, so the
exact type is preserved.

Change-Id: I0022a159397fd0c3d39a118a7149bb2488dfc149
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/152705
Tested-by: Tomaž Vajngerl <quikee@gmail.com>
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2023-06-08 07:45:13 +02:00

53 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/.
#
#*************************************************************************
$(eval $(call gb_CppunitTest_CppunitTest,sw_ooxml_theme_export))
$(eval $(call gb_CppunitTest_use_common_precompiled_header,sw_ooxml_theme_export))
$(eval $(call gb_CppunitTest_add_exception_objects,sw_ooxml_theme_export, \
sw/qa/extras/ooxmlexport/ooxml_ThemeExport \
))
$(eval $(call gb_CppunitTest_use_libraries,sw_ooxml_theme_export, \
$(sw_ooxmlexport_libraries) \
))
$(eval $(call gb_CppunitTest_use_externals,sw_ooxml_theme_export,\
boost_headers \
libxml2 \
))
$(eval $(call gb_CppunitTest_set_include,sw_ooxml_theme_export,\
-I$(SRCDIR)/sw/inc \
-I$(SRCDIR)/sw/source/core/inc \
-I$(SRCDIR)/sw/qa/inc \
$$(INCLUDE) \
))
$(eval $(call gb_CppunitTest_use_api,sw_ooxml_theme_export,\
udkapi \
offapi \
oovbaapi \
))
$(eval $(call gb_CppunitTest_use_ure,sw_ooxml_theme_export))
$(eval $(call gb_CppunitTest_use_vcl,sw_ooxml_theme_export))
$(eval $(call gb_CppunitTest_use_rdb,sw_ooxml_theme_export,services))
$(eval $(call gb_CppunitTest_use_configuration,sw_ooxml_theme_export))
$(eval $(call gb_CppunitTest_use_packages,sw_ooxml_theme_export,\
oox_generated \
))
# vim: set noet sw=4 ts=4: