[Libreoffice-commits] .: Branch 'libreoffice-3-5' - sw/source

Cédric Bosdonnat cbosdo at kemper.freedesktop.org
Fri Dec 23 02:28:27 PST 2011


 sw/source/core/tox/tox.cxx    |    4 +++-
 sw/source/ui/index/cnttab.cxx |    2 +-
 2 files changed, 4 insertions(+), 2 deletions(-)

New commits:
commit dfa082d3836d34b19a07b326c46d1e069ed5f50b
Author: Cédric Bosdonnat <cedric.bosdonnat.ooo at free.fr>
Date:   Fri Dec 23 11:27:26 2011 +0100

    Writer: Hyperlinks on ToX have 'Index Link' style by default

diff --git a/sw/source/core/tox/tox.cxx b/sw/source/core/tox/tox.cxx
index 002dabf..cc949ed 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 cab0b19..dfb2ab5 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)
     {


More information about the Libreoffice-commits mailing list