From 4565470d0002acfa81f346cbb86144abc5399f0f Mon Sep 17 00:00:00 2001 From: Olivier Hallot Date: Mon, 25 Nov 2019 20:38:07 -0300 Subject: Clarify handling of empty paragraph in TOC Empty heading or paragraph will not display in TOC. Change-Id: Ia7549d8f22ccf63148150140cd1ccd0bf3b3aba0 Reviewed-on: https://gerrit.libreoffice.org/83720 Tested-by: Jenkins Reviewed-by: Olivier Hallot (cherry picked from commit 48eee4cf96c555a986ec6b8836373eb15445ff9f) Reviewed-on: https://gerrit.libreoffice.org/83751 --- source/text/swriter/01/04120211.xhp | 25 +++++++++++++------------ source/text/swriter/guide/indices_enter.xhp | 12 +++++++----- source/text/swriter/guide/indices_toc.xhp | 10 ++++++---- 3 files changed, 26 insertions(+), 21 deletions(-) diff --git a/source/text/swriter/01/04120211.xhp b/source/text/swriter/01/04120211.xhp index ff99ad8d3b..0e3ed0decf 100644 --- a/source/text/swriter/01/04120211.xhp +++ b/source/text/swriter/01/04120211.xhp @@ -29,52 +29,53 @@ -Index +

Index

The following options are available when you select Table of Contents as the index type.
- Type and Title +

Type and Title

Specify the type and title of the index. -Type +

Type

Select the type of index that you want to insert. The options available on this tab depend on the index type that you select. If the cursor is in an index when you choose the Insert - Table of Contents and Index - Table of Contents, Index or Bibliography, you can then edit that index. -Title +

Title

Enter a title for the selected index. -Protected against manual changes +

Protected against manual changes

Prevents the contents of the index from being changed. Manual changes that you make to an index are lost when the index is refreshed. If you want the cursor to scroll through a protected area, choose %PRODUCTNAME - PreferencesTools - Options - %PRODUCTNAME Writer - Formatting Aids, and then select the Enable cursor check box in the Protected Areas section.
-Create index for +

Create index for

Select whether to create the index for the document or for the current chapter.
-Evaluation level +

Evaluation level

Enter the number of heading levels to include in the index. - Create from +

Create from

Use this area to specify which information to include in an index. -Outline +

Outline

Creates the index using outline levels, that is, paragraphs formatted with one of the predefined heading styles (Heading 1-10) are added to the index. You can also assign the outline levels in the Outline & Numbering tab page of the Format - Paragraph dialog. -Additional Styles +

Additional Styles

Includes the paragraph styles that you specify in the Assign Styles dialog as index entries. To select the paragraph styles that you want to include in the index, click the Assign Styles (...) button to the right of this box. You can include the Figure Index Heading or Bibliography Heading styles, as well as any other relevant heading style, to the Table of Contents.
-Assign styles +

Assign styles

Opens the Assign Styles dialog, where you can select the paragraph styles to include in the index. Choose the proper heading level on which the style will be included in the index.
+
-Index marks +

Index marks

Includes the index entries that you inserted by choosing Insert - Table of Contents and Index - Index Entry in the index.
diff --git a/source/text/swriter/guide/indices_enter.xhp b/source/text/swriter/guide/indices_enter.xhp index 3fd81468fc..7841d0a72f 100644 --- a/source/text/swriter/guide/indices_enter.xhp +++ b/source/text/swriter/guide/indices_enter.xhp @@ -34,9 +34,9 @@
-Defining Index or Table of Contents Entries +

Defining Index or Table of Contents Entries

-To Define Index Entries +

To Define Index Entries

@@ -58,10 +58,10 @@ To add the entries to a custom index, click the New User-defined Index icon, enter the name of the index, and then click OK. -To Define Table of Contents Entries +

To Define Table of Contents Entries

The best way to generate a table of contents is to apply the predefined heading paragraph styles, such as "Heading 1", to the paragraphs that you want to include in your table of contents. -To Use a Custom Paragraph Style as a Table of Contents Entry +

To Use a Custom Paragraph Style as a Table of Contents Entry

@@ -77,7 +77,8 @@ Click OK. You can now apply the style to headings in your document and include them in your table of contents. - + +
@@ -86,6 +87,7 @@ +
diff --git a/source/text/swriter/guide/indices_toc.xhp b/source/text/swriter/guide/indices_toc.xhp index 7689e12b48..e81e93091a 100644 --- a/source/text/swriter/guide/indices_toc.xhp +++ b/source/text/swriter/guide/indices_toc.xhp @@ -35,12 +35,12 @@ -Creating a Table of Contents +

Creating a Table of Contents

The best way to generate a table of contents is to apply the predefined heading paragraph styles, such as "Heading 1", to the paragraphs that you want to include in your table of contents. After you apply these styles, you can then create a table of contents. -To Insert a Table of Contents +

To Insert a Table of Contents

@@ -61,8 +61,10 @@ If you want to use a different paragraph style as a table of contents entry, select the Additional Styles check box in the Create from area, and then click the Assign styles button next to the check box. In the Assign Styles dialog, click the style in the list, and then click the >> or the << button to define the chapter level for the paragraph style.
- -To Update a Table of Contents +
+%PRODUCTNAME creates the table of contents entries based on the chapter level of the paragraph style and the paragraph contents. If the paragraph is empty, it will not be included in the table of contents. To force the empty paragraph to be listed in the table of contents, manually add a space or a non breaking space to the paragraph. Spaces added in the After text box of the Numbering tab in the Chapter Numbering dialog will not work for this purpose, since they are part of the paragraph numbering, not the paragraph contents. +
+

To Update a Table of Contents

Do one of the following: -- cgit /cib_contract57l'>feature/cib_contract57l LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
>
AgeCommit message (Expand)Author
2017-07-21migrate to boost::gettextCaolán McNamara
2024-05-21loplugin:ostr in sc/qaNoel Grandin
2024-03-14tdf#146619 Remove unused #includes from C/C++ filesRafał Dobrakowski
2022-10-21test: merge CalcUnoApiTest and UnoApiTest into oneXisco Fauli
2022-10-17CalcUnoApiTest: factor out tearDownXisco Fauli
2022-10-14CalcUnoApiTest: Move mxComponent to parent and use it everywhereXisco Fauli