Kaydet (Commit) fb7b24dc authored tarafından Cédric Bosdonnat's avatar Cédric Bosdonnat

n#825976: Table of Illustration has hyperlinks by default like TOC

...and that fixes the formatting of hyperlinks in docx Tableoof
Illustrations.

(cherry picked from commit c1fac434)
(cherry picked from commit 49d077b8)

Change-Id: I990f31a8c9d0d56f58b7b87e368010576d8c8c0d
üst f494d9df
......@@ -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 == eType)
aTokens.push_back(SwFormToken(TOKEN_LINK_END));
SetTemplate( 0, SW_RESSTR( nPoolId++ ));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment