diff options
author | Miklos Vajna <vmiklos@collabora.com> | 2023-01-09 11:08:42 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2023-01-09 12:25:12 +0000 |
commit | dd775cd630c907bc7d8bcd6f57ffd3f66115a5ba (patch) | |
tree | d3245184b1dbca45a69393cde314b640b914fcd0 /sw/CppunitTest_sw_uibase_dialog.mk | |
parent | 60f6b0e363a4bb38f249a26609a4fc219b001c87 (diff) |
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
fa82e151d80d15eeb6dfae434f1dbb3b68907188 (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
Diffstat (limited to 'sw/CppunitTest_sw_uibase_dialog.mk')
-rw-r--r-- | sw/CppunitTest_sw_uibase_dialog.mk | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/sw/CppunitTest_sw_uibase_dialog.mk b/sw/CppunitTest_sw_uibase_dialog.mk new file mode 100644 index 000000000000..eaecfc5abeb6 --- /dev/null +++ b/sw/CppunitTest_sw_uibase_dialog.mk @@ -0,0 +1,76 @@ +# -*- 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: |