sw bibliography: make URLs in the bibliography table clickable

Desktop / LibreOffice - Miklos Vajna [collabora.com] - 18 February 2021 14:07 UTC

- Don't reuse the / mechianism from , because doesn't allow this

- Use STR_POOLCHR_INET_NORMAL as a char style, so the URL looks clickable

- Allow absolute URLs for ToxAuthorityField::AUTH_FIELD_URL (other URLs like ToC are always relative)

- Track the new text added by FillText() between the StartNewLink() and CloseLink() to figure out what is the URL to be launched on click

Change-Id: I126fa06aecfff783e62b65a548228ff781b62c5c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111117

3591c657ddee sw bibliography: make URLs in the bibliography table clickable
sw/CppunitTest_sw_core_tox.mk | 76 +++++++++++++++++++++++++++++++++
sw/Module_sw.mk | 1 +
sw/inc/ToxLinkProcessor.hxx | 2 +-
sw/qa/core/test_ToxLinkProcessor.cxx | 14 +++---
sw/qa/core/tox/tox.cxx | 71 ++++++++++++++++++++++++++++++
sw/source/core/tox/ToxLinkProcessor.cxx | 23 ++++++----
sw/source/core/tox/ToxTextGenerator.cxx | 18 ++++++--
7 files changed, 186 insertions(+), 19 deletions(-)

Upstream: cgit.freedesktop.org


  • Share