summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorCédric Bosdonnat <cedric.bosdonnat@free.fr>2011-11-21 11:48:16 +0100
committerCédric Bosdonnat <cedric.bosdonnat@free.fr>2011-11-21 14:27:48 +0100
commit2cc144286d81236e8677a551a458172ca9546c29 (patch)
tree41455d5d7a7863e84d290f26c6759abdc9081116 /sw
parent68f1b7dac7e77f68050f73c8692b8180f6e7cc65 (diff)
sw, Add hyperlinks by default in Table of Contents
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/tox/tox.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/sw/source/core/tox/tox.cxx b/sw/source/core/tox/tox.cxx
index 57102e8f675e..62e95ec8d3aa 100644
--- a/sw/source/core/tox/tox.cxx
+++ b/sw/source/core/tox/tox.cxx
@@ -325,6 +325,7 @@ SwForm::SwForm( TOXTypes eTyp ) // #i21237#
SwFormTokens aTokens;
if (TOX_CONTENT == eType)
{
+ aTokens.push_back(SwFormToken(TOKEN_LINK_START));
aTokens.push_back(SwFormToken(TOKEN_ENTRY_NO));
aTokens.push_back(SwFormToken(TOKEN_ENTRY_TEXT));
}
@@ -344,6 +345,9 @@ SwForm::SwForm( TOXTypes eTyp ) // #i21237#
aTokens.push_back(SwFormToken(TOKEN_PAGE_NUMS));
}
+ if (TOX_CONTENT == eType)
+ aTokens.push_back(SwFormToken(TOKEN_LINK_END));
+
SetTemplate( 0, SW_RESSTR( nPoolId++ ));
if(TOX_INDEX == eType)