EditEngine/Outliner::StripPortions is used with some lambda callbacks to convert Text to Primitives. The tooling for this is currently located in svx due to historical reasons (when I initially did that). An EditEngine/Outliner gets configured, this is dependent of the object type to handle (see TextBreakupHandler in svx and other places). Then the OutlinerParaObject gets set - the model data. EditEngine::StripPortions then initially uses ImpEditEngine::Paint which layouts all that and formats it. For all Text (or Graphics e.g. Bullets) those callbacks are used - if given. If not given it *still* does a direct paint to a given OutputDevice to stay compatible with legacy usages. Thus ImpEditEngine::Paint is currently kind of an hybrid: It needs to be capable of both: For Primitive creation it extracts data to DrawPortionInfo or DrawBulletInfo and calls the lambda callback where (e.g. in svx) the Primitives are created as needed based on that data. For Paint that data is used to Paint using the given OutputDevice. This means up to now for doing changes both had to be supported in that method which of course hosts the danger of getting unequal outputs when not being very careful. The DirectPaint is now rarely used (AFAIK only in some UI elements, e.g. WeldEditView stuff). The goal is to go in a direction where it would be possible to do those remaining Paint calls direcly inside ImpEditEngine using primitives, or - alternatively - change all remaining places to use a unified StripPortions method and send the result to a PrimitiveRenderer or buffer/resue it. This change is a 1st step to get the preconditions but does not change functionality yet. It moves that tooling to where it is used. Change-Id: I7225eab9a0dfd3d50cd3d1d8fe386dfb99ec42ef Reviewed-on: https://gerrit.libreoffice.org/c/core/+/186045 Reviewed-by: Armin Le Grand <Armin.Le.Grand@me.com> Tested-by: Jenkins
90 lines
2.2 KiB
Makefile
90 lines
2.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,editeng_core))
|
|
|
|
$(eval $(call gb_CppunitTest_add_exception_objects,editeng_core, \
|
|
editeng/qa/unit/core-test \
|
|
editeng/qa/unit/ESelectionTest \
|
|
editeng/qa/unit/EPaMTest \
|
|
editeng/qa/unit/EditLineTest \
|
|
editeng/qa/unit/EditLineListTest \
|
|
editeng/qa/unit/EditPaMTest \
|
|
editeng/qa/unit/EditSelectionTest \
|
|
))
|
|
|
|
$(eval $(call gb_CppunitTest_use_library_objects,editeng_core,editeng))
|
|
|
|
$(eval $(call gb_CppunitTest_use_libraries,editeng_core, \
|
|
basegfx \
|
|
comphelper \
|
|
cppu \
|
|
cppuhelper \
|
|
docmodel \
|
|
drawinglayercore \
|
|
drawinglayer \
|
|
i18nlangtag \
|
|
i18nutil \
|
|
lng \
|
|
sal \
|
|
salhelper \
|
|
sax \
|
|
sot \
|
|
sfx \
|
|
svl \
|
|
svt \
|
|
test \
|
|
tk \
|
|
tl \
|
|
ucbhelper \
|
|
unotest \
|
|
utl \
|
|
vcl \
|
|
xo \
|
|
))
|
|
|
|
$(eval $(call gb_CppunitTest_use_externals,editeng_core,\
|
|
boost_headers \
|
|
icuuc \
|
|
libxml2 \
|
|
yrs \
|
|
))
|
|
|
|
$(eval $(call gb_CppunitTest_set_include,editeng_core,\
|
|
-I$(SRCDIR)/editeng/inc \
|
|
-I$(SRCDIR)/editeng/source/editeng \
|
|
$$(INCLUDE) \
|
|
))
|
|
|
|
$(eval $(call gb_CppunitTest_use_sdk_api,editeng_core))
|
|
|
|
$(eval $(call gb_CppunitTest_use_ure,editeng_core))
|
|
$(eval $(call gb_CppunitTest_use_vcl,editeng_core))
|
|
|
|
$(eval $(call gb_CppunitTest_use_components,editeng_core,\
|
|
configmgr/source/configmgr \
|
|
framework/util/fwk \
|
|
i18npool/util/i18npool \
|
|
i18npool/source/search/i18nsearch \
|
|
linguistic/source/lng \
|
|
sfx2/util/sfx \
|
|
ucb/source/core/ucb1 \
|
|
ucb/source/ucp/file/ucpfile1 \
|
|
unoxml/source/service/unoxml \
|
|
sax/source/expatwrap/expwrap \
|
|
))
|
|
|
|
$(eval $(call gb_CppunitTest_use_configuration,editeng_core))
|
|
|
|
$(eval $(call gb_CppunitTest_use_more_fonts,editeng_core))
|
|
|
|
# vim: set noet sw=4 ts=4:
|