summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCédric Bosdonnat <cedric.bosdonnat@free.fr>2013-07-18 16:38:39 +0200
committerCédric Bosdonnat <cedric.bosdonnat@free.fr>2013-07-18 16:38:49 +0200
commitc1fac43432891bf9f396ff1ec7a1c2ed042bce54 (patch)
treef09e86de2696326e0ab22b76ea95fdffc59eb2c0
parent43f7bc96c0117a77610bfa5e1edfa870123f56f1 (diff)
n#825976: Table of Illustration has hyperlinks by default like TOC
...and that fixes the formatting of hyperlinks in docx Tableoof Illustrations. Change-Id: I990f31a8c9d0d56f58b7b87e368010576d8c8c0d
-rw-r--r--sw/source/core/tox/tox.cxx8
1 files changed, 6 insertions, 2 deletions
diff --git a/sw/source/core/tox/tox.cxx b/sw/source/core/tox/tox.cxx
index ea77c51ae174..eebf802e0045 100644
--- a/sw/source/core/tox/tox.cxx
+++ b/sw/source/core/tox/tox.cxx
@@ -310,11 +310,15 @@ SwForm::SwForm( TOXTypes eTyp ) // #i21237#
}
SwFormTokens aTokens;
- if (TOX_CONTENT == eType)
+ if (TOX_CONTENT == eType || TOX_ILLUSTRATIONS == eType )
{
SwFormToken aLinkStt (TOKEN_LINK_START);
aLinkStt.sCharStyleName = String(SW_RES(STR_POOLCHR_TOXJUMP));
aTokens.push_back(aLinkStt);
+ }
+
+ if (TOX_CONTENT == eType)
+ {
aTokens.push_back(SwFormToken(TOKEN_ENTRY_NO));
aTokens.push_back(SwFormToken(TOKEN_ENTRY_TEXT));
}
@@ -334,7 +338,7 @@ SwForm::SwForm( TOXTypes eTyp ) // #i21237#
aTokens.push_back(SwFormToken(TOKEN_PAGE_NUMS));
}
- if (TOX_CONTENT == eType)
+ if (TOX_CONTENT == eType || TOX_ILLUSTRATIONS)
aTokens.push_back(SwFormToken(TOKEN_LINK_END));
SetTemplate( 0, SW_RESSTR( nPoolId++ ));