diff options
author | Cédric Bosdonnat <cedric.bosdonnat@free.fr> | 2013-07-16 15:49:44 +0200 |
---|---|---|
committer | Fridrich Strba <fridrich@documentfoundation.org> | 2013-07-17 18:32:19 +0000 |
commit | afe4760d2d2ee1e1fe5554b6727886de068372a2 (patch) | |
tree | c42d625d9d86e4638b68157ea61302d34cde615c /sw/source/core/doc/doctxm.cxx | |
parent | c1f0f890f5065f88164add33707228f8c6d57555 (diff) |
fdo#39904, n#825976: implement hyperlinks for Illustrations index
(cherry picked from commit 8bb2c7f1556c10508c8ac451c579539ccf5dacfb)
Conflicts:
sw/inc/swtypes.hxx
Change-Id: I6f682c382e7ab0e06259b335247fdcebd7412942
(cherry picked from commit 2c10d784deb86501b5488044a61d9fc2efc6321a)
Reviewed-on: https://gerrit.libreoffice.org/4957
Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org>
Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
Diffstat (limited to 'sw/source/core/doc/doctxm.cxx')
-rw-r--r-- | sw/source/core/doc/doctxm.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sw/source/core/doc/doctxm.cxx b/sw/source/core/doc/doctxm.cxx index 1bcd89285fd6..2029d9f30ee3 100644 --- a/sw/source/core/doc/doctxm.cxx +++ b/sw/source/core/doc/doctxm.cxx @@ -1261,7 +1261,11 @@ void SwTOXBaseSection::UpdateSequence( const SwTxtNode* pOwnChapterNode ) ( !IsFromChapter() || ::lcl_FindChapterNode( rTxtNode, 0 ) == pOwnChapterNode ) ) { - SwTOXPara * pNew = new SwTOXPara( rTxtNode, nsSwTOXElement::TOX_SEQUENCE, 1 ); + const SwSetExpField* pSeqField = dynamic_cast< const SwSetExpField* >( pFmtFld->GetFld() ); + OUString sName = GetSequenceName(); + sName += OUString( cSequenceMarkSeparator ); + sName += OUString::valueOf( sal_Int32( pSeqField->GetSeqNumber() ) ); + SwTOXPara * pNew = new SwTOXPara( rTxtNode, nsSwTOXElement::TOX_SEQUENCE, 1, sName ); // set indexes if the number or the reference text are to be displayed if( GetCaptionDisplay() == CAPTION_TEXT ) { |