office-gobmx/unoxml
László Németh a8a9b4f463 tdf#142448 sw offapi: add custom color metadata field shading
using the new com::sun::rdf::URIs::LO_EXT_SHADING
URI (modelled after odf:prefix and odf:suffix).
Custom color field shading of text:meta annotated text
ranges and text:meta-field metadata fields allows
quick visual check of metadata categories.

For example, RDF triple

content.xml#id1753384014 urn:org:documentfoundation:names:experimental🏢xmlns:loext:1.0odf#shading FF0000

sets red (FF0000) shading color for the text span
with xml:id="id1753384014".

Pressing Ctrl-F8 or View->Field Shadings can disable
custom color metadata field shading on the UI.

Note: neither LO_EXT_SHADING, nor odf:prefix and
odf:suffix changes invalidate the View (MetaPortion),
but run-time update of shading color can be triggered
without save and reload of the document e.g. by using
(temporary) bookmarks on the annotated text spans.

To run unit test with enabled visibility, use

(cd sw && make UITest_sw_styleInspector UITEST_TEST_NAME="styleInspector.styleNavigator.test_metadata_shading_color" SAL_USE_VCLPLUGIN=gen)

in Linux command line.

Change-Id: I5de93cfa32ac6793d7dbdc7b64e6f4beacb2e8d7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116015
Tested-by: László Németh <nemeth@numbertext.org>
Reviewed-by: László Németh <nemeth@numbertext.org>
2021-05-23 18:51:58 +02:00
..
inc throw() -> noexcept, part 2/3: Automatic loplugin:noexcept rewrite 2021-05-02 17:02:28 +02:00
qa
source tdf#142448 sw offapi: add custom color metadata field shading 2021-05-23 18:51:58 +02:00
CppunitTest_unoxml_domtest.mk
IwyuFilter_unoxml.yaml
JunitTest_unordf_complex.mk
JunitTest_unoxml_complex.mk
Library_unordf.mk
Library_unoxml.mk
Makefile
Module_unoxml.mk
README.md Updated README.md files to represent current code / use Markdown format 2021-04-07 17:47:16 +02:00

UNO Wrappers for XML Services

Contains UNO wrappers for XML services including DOM, RDF and XPath.