office-gobmx/sw/CppunitTest_sw_uibase_dialog.mk
Miklos Vajna dd775cd630 sw, .uno:InsertSection: add a new Content parameter and accept HTML there
When Zotero uses refmarks to represent citations, then a section is used
for the bibliography. While it was possible to insert refmarks with a
given name & content, inserting a section with a provided HTML content
was not possible.

A section (and not a refmark) is needed for the bibliography, as a
refmark is a text attribute, so it must start and end in the same
paragraph.

Fix this by adding a new, optional Content parameter to
.uno:InsertSection, which allows providing multi-paragraph, formatted
text.

This is somewhat similar to what commit
fa82e151d8 (sw, .uno:InsertBookmark: add a
new BookmarkText parameter and accept HTML there, 2022-12-06) did for
the bookmark case.

Change-Id: I0ccbc8a765fed4e019783d0b743c1cd2d0596093
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145188
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
2023-01-09 12:25:12 +00:00

76 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,sw_uibase_dialog))
$(eval $(call gb_CppunitTest_use_common_precompiled_header,sw_uibase_dialog))
$(eval $(call gb_CppunitTest_add_exception_objects,sw_uibase_dialog, \
sw/qa/uibase/dialog/dialog \
))
$(eval $(call gb_CppunitTest_use_libraries,sw_uibase_dialog, \
comphelper \
cppu \
cppuhelper \
editeng \
sal \
sfx \
subsequenttest \
svl \
svx \
svxcore \
sw \
swqahelper \
test \
unotest \
utl \
vcl \
tl \
))
$(eval $(call gb_CppunitTest_use_externals,sw_uibase_dialog,\
boost_headers \
libxml2 \
))
$(eval $(call gb_CppunitTest_set_include,sw_uibase_dialog,\
-I$(SRCDIR)/sw/inc \
-I$(SRCDIR)/sw/source/core/inc \
-I$(SRCDIR)/sw/source/uibase/inc \
-I$(SRCDIR)/sw/qa/inc \
$$(INCLUDE) \
))
$(eval $(call gb_CppunitTest_use_api,sw_uibase_dialog,\
udkapi \
offapi \
oovbaapi \
))
$(eval $(call gb_CppunitTest_use_ure,sw_uibase_dialog))
$(eval $(call gb_CppunitTest_use_vcl,sw_uibase_dialog))
$(eval $(call gb_CppunitTest_use_rdb,sw_uibase_dialog,services))
$(eval $(call gb_CppunitTest_use_custom_headers,sw_uibase_dialog,\
officecfg/registry \
))
$(eval $(call gb_CppunitTest_use_configuration,sw_uibase_dialog))
$(eval $(call gb_CppunitTest_use_uiconfigs,sw_uibase_dialog, \
modules/swriter \
))
$(eval $(call gb_CppunitTest_use_more_fonts,sw_uibase_dialog))
# vim: set noet sw=4 ts=4: