Create a new document with some headings with 'Heading 1', 'Heading 2' and 'Heading 3' styles; Insert a TOC (Insert > Indexes and Tables > Indexes and Tables); In the new TOC, all entries will be underlined as a link because there are [LS] and [LE] marks with 'None' character style in the entry level structures of the TOC. Have links in TOC is good! However, the underline will appear in Page Preview and in the printed document. I suggest that character style of [LS] and [LE] marks is changed from 'None' to 'Index Link' for all TOC levels. Using 'Index Link' style, TOC keeps the link function and preserves the text formatting. Thanks! Gustavo Pacheco.
Confirmed for LibO 3.5.0 Beta2 (on WinXP 32b · UI en-US). That is already fixed in LO-3-5 branch, e.g.: LO-3-5~2011-12-28_12.37.52_... LOdev 3.5.0beta2+ · Build ID: fab993b-7ef74e0-6f9c6e1 [ http://dev-builds.libreoffice.org/daily/Win-x86@6-fast/libreoffice-3-5/ ] LS (Hyperlink Start) has Character Style 'Index Link' by default. Writer: Hyperlinks on ToX have 'Index Link' style by default http://cgit.freedesktop.org/libreoffice/core/commit/?h=libreoffice-3-5&id=dfa082d3836d34b19a07b326c46d1e069ed5f50b Should be integrated into 3.5.0 Beta3. See also: Index table: character style 'Index link' instead of 'Internet link' http://nabble.documentfoundation.org/Index-table-character-style-Index-link-instead-of-Internet-link-td3605854.html#none Sample: Screenshot 'toc_index_link_lo-3-5_2011-12-28.png'
Created attachment 54952 [details] Screenshot: 'toc_index_link_lo-3-5_2011-12-28.png' Screenshot: LS (Hyperlink Start) has Character Style 'Index Link' by default.
*** Bug 37308 has been marked as a duplicate of this bug. ***
Fixed by these commits in master and 3.5 branches: http://cgit.freedesktop.org/libreoffice/core/commit/?id=4c75e57a42251b86683253a832c534d8909a9f23 http://cgit.freedesktop.org/libreoffice/core/commit/?h=libreoffice-3-5&id=dfa082d3836d34b19a07b326c46d1e069ed5f50b
*** Bug 42320 has been marked as a duplicate of this bug. ***