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:36:44 +0100 |
commit | 4c75e57a42251b86683253a832c534d8909a9f23 (patch) | |
tree | ef6aa76e16437b5ec5dffa79bbf18f7c46f2cfa1 | |
parent | 0fd40fe17bf67f81db44ef187ce67193ba1696cb (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 3e07f62ba048..c042edafb6e9 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) { |