office-gobmx/sd/CppunitTest_sd_textfitting_tests.mk
Tomaž Vajngerl 6c042848b6 Change text auto-fit alg. to also increase the scaling
When in edit mode, the text can be deleted, so the text box size
can become smaller, but the auto-fit algorithm didn't take into
account.
In this case we already have the font and spacing scaling already
set to a specific value and we need to find a scaling value where
the margin is the smallest.

This change also adds a test for the issue.

Change-Id: I6c52f06dfbf5a1e582f7b31aceabf4736498ee90
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/151412
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2023-05-06 14:38:32 +02:00

79 lines
2 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,sd_textfitting_tests))
$(eval $(call gb_CppunitTest_use_externals,sd_textfitting_tests,\
boost_headers \
libxml2 \
))
$(eval $(call gb_CppunitTest_use_common_precompiled_header,sd_textfitting_tests))
$(eval $(call gb_CppunitTest_add_exception_objects,sd_textfitting_tests, \
sd/qa/unit/TextFittingTest \
))
$(eval $(call gb_CppunitTest_use_libraries,sd_textfitting_tests, \
basegfx \
comphelper \
cppu \
cppuhelper \
drawinglayer \
editeng \
for \
forui \
i18nlangtag \
msfilter \
oox \
sal \
salhelper \
sax \
sd \
sfx \
sot \
subsequenttest \
svl \
svt \
svx \
svxcore \
test \
tl \
tk \
ucbhelper \
unotest \
utl \
vcl \
xo \
))
$(eval $(call gb_CppunitTest_set_include,sd_textfitting_tests,\
-I$(SRCDIR)/sd/source/ui/inc \
-I$(SRCDIR)/sd/inc \
$$(INCLUDE) \
))
$(eval $(call gb_CppunitTest_use_sdk_api,sd_textfitting_tests))
$(eval $(call gb_CppunitTest_use_ure,sd_textfitting_tests))
$(eval $(call gb_CppunitTest_use_vcl,sd_textfitting_tests))
$(eval $(call gb_CppunitTest_use_rdb,sd_textfitting_tests,services))
$(eval $(call gb_CppunitTest_use_custom_headers,sd_textfitting_tests,\
officecfg/registry \
))
$(eval $(call gb_CppunitTest_use_configuration,sd_textfitting_tests))
$(eval $(call gb_CppunitTest_add_arguments,sd_textfitting_tests, \
-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: