diff options
author | Cédric Bosdonnat <cedric.bosdonnat.ooo@free.fr> | 2011-12-23 11:27:26 +0100 |
---|---|---|
committer | Cédric Bosdonnat <cedric.bosdonnat.ooo@free.fr> | 2011-12-23 11:27:55 +0100 |
commit | dfa082d3836d34b19a07b326c46d1e069ed5f50b (patch) | |
tree | 19288f452a792899ed0a75144d01b9f0e14e2f62 | |
parent | 49a1737b7d3d61304e749c6c164165b8bf68790e (diff) |
Writer: Hyperlinks on ToX have 'Index Link' style by default
-rw-r--r-- | sw/source/core/tox/tox.cxx | 4 | ||||
-rw-r--r-- | sw/source/ui/index/cnttab.cxx | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/sw/source/core/tox/tox.cxx b/sw/source/core/tox/tox.cxx index 002dabf7c018..cc949ed6fc0c 100644 --- a/sw/source/core/tox/tox.cxx +++ b/sw/source/core/tox/tox.cxx @@ -323,7 +323,9 @@ SwForm::SwForm( TOXTypes eTyp ) // #i21237# SwFormTokens aTokens; if (TOX_CONTENT == eType) { - aTokens.push_back(SwFormToken(TOKEN_LINK_START)); + SwFormToken aLinkStt (TOKEN_LINK_START); + aLinkStt.sCharStyleName = String(SW_RES(STR_POOLCHR_TOXJUMP)); + aTokens.push_back(aLinkStt); aTokens.push_back(SwFormToken(TOKEN_ENTRY_NO)); aTokens.push_back(SwFormToken(TOKEN_ENTRY_TEXT)); } diff --git a/sw/source/ui/index/cnttab.cxx b/sw/source/ui/index/cnttab.cxx index cab0b19477ee..dfb2ab506b06 100644 --- a/sw/source/ui/index/cnttab.cxx +++ b/sw/source/ui/index/cnttab.cxx @@ -2441,7 +2441,7 @@ IMPL_LINK(SwTOXEntryTabPage, InsertTokenHdl, PushButton*, pBtn) { sText.AssignAscii(SwForm::aFormLinkStt); eTokenType = TOKEN_LINK_START; - sCharStyle = String(SW_RES(STR_POOLCHR_INET_NORMAL)); + sCharStyle = String(SW_RES(STR_POOLCHR_TOXJUMP)); } else if(pBtn == &aTabPB) { |