summaryrefslogtreecommitdiff
path: root/sw/inc
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.com>2021-02-18 12:57:21 +0100
committerMiklos Vajna <vmiklos@collabora.com>2021-02-18 15:07:28 +0100
commit3591c657ddee42a0a4b05fe87b13a737c5bfe868 (patch)
treedbcf6f6528f42a5accd131fc3ed25ad8bb445f3e /sw/inc
parent787158d528838bdb25d86139ab02ecdd4e341bdb (diff)
sw bibliography: make URLs in the bibliography table clickable
- Don't reuse the <text:index-entry-link-start> / <text:index-entry-link-end> mechianism from <text:table-of-content-entry-template>, because <text:bibliography-entry-template> 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 Reviewed-by: Miklos Vajna <vmiklos@collabora.com> Tested-by: Jenkins
Diffstat (limited to 'sw/inc')
-rw-r--r--sw/inc/ToxLinkProcessor.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/inc/ToxLinkProcessor.hxx b/sw/inc/ToxLinkProcessor.hxx
index e53c537b758e..77307cf6b784 100644
--- a/sw/inc/ToxLinkProcessor.hxx
+++ b/sw/inc/ToxLinkProcessor.hxx
@@ -41,7 +41,7 @@ public:
* STR_POOLCHR_TOXJUMP.
*/
void
- CloseLink(sal_Int32 endPosition, const OUString& url);
+ CloseLink(sal_Int32 endPosition, const OUString& url, bool bRelative);
/** Insert the found links as attributes to a text node */
void