office-gobmx/sc/CppunitTest_sc_tiledrendering.mk
Szymon Kłos 52eba79371 Make LOKClipboard available to other modules
LOKClipboard has higher level dependencies (sfx2) so it cannot be
moved to the vcl where SystemClibpoard instance is created.

- introduce new interface LokClipboard to differentiate
  from SystemClipboard so we can have vcl's and lok's implementations
  at the same time
- publish LOKClipboard using new interface for other modules by adding
  component file in desktop module

Thanks to that when code calls GetClipboard and we cannot get clipboard
assigned to the vcl::Window* (for welded widgets) in GetSystemClipboard
correct instance is returned (shared clipboard for current view) so we
can access content which was copied before. Previously always a new
instance was created (with empty content).

test ScTiledRenderingTest::testPasteIntoWrapTextCell was broken
add some content to clipboard to simulate more real case
and test the content copied

Change-Id: I23c0298960a710c498646493f33122b908864cba
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/126310
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131644
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Tested-by: Szymon Kłos <szymon.klos@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135198
Tested-by: Jenkins
2023-02-06 17:02:54 +00:00

69 lines
1.9 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,sc_tiledrendering))
$(eval $(call gb_CppunitTest_use_common_precompiled_header,sc_tiledrendering))
$(eval $(call gb_CppunitTest_add_exception_objects,sc_tiledrendering, \
sc/qa/unit/tiledrendering/tiledrendering \
))
$(eval $(call gb_CppunitTest_use_libraries,sc_tiledrendering, \
comphelper \
cppu \
cppuhelper \
editeng \
sal \
sfx \
sot \
svl \
svt \
svxcore \
sc \
scfilt \
scui \
subsequenttest \
test \
unotest \
$(call gb_Helper_optional,SCRIPTING, \
vbahelper) \
vcl \
tl \
utl \
))
$(eval $(call gb_CppunitTest_use_externals,sc_tiledrendering,\
boost_headers \
libxml2 \
))
$(eval $(call gb_CppunitTest_set_include,sc_tiledrendering,\
-I$(SRCDIR)/sc/source/ui/inc \
-I$(SRCDIR)/sc/inc \
$$(INCLUDE) \
))
$(eval $(call gb_CppunitTest_use_sdk_api,sc_tiledrendering))
$(eval $(call gb_CppunitTest_use_api,sc_tiledrendering,oovbaapi))
$(eval $(call gb_CppunitTest_use_ure,sc_tiledrendering))
$(eval $(call gb_CppunitTest_use_vcl,sc_tiledrendering))
$(eval $(call gb_CppunitTest_use_rdb,sc_tiledrendering,services))
$(eval $(call gb_CppunitTest_use_configuration,sc_tiledrendering))
$(eval $(call gb_CppunitTest_add_arguments,sc_tiledrendering, \
-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: