summaryrefslogtreecommitdiff
path: root/offapi
diff options
context:
space:
mode:
authorMichael Stahl <michael.stahl@allotropia.de>2023-01-20 15:15:32 +0100
committerMichael Stahl <michael.stahl@allotropia.de>2023-01-23 10:12:05 +0000
commit5ef8d07fe04717dc4a5b8846a3b324381b2c8efd (patch)
treecf5e8346fbbb0e20f5772ff2b08c680225c7562e /offapi
parent3f11b3c466565432e45f19f1cc30171075b9af8d (diff)
tdf#153090 writerfilter,sw: DOCX/RTF import/export of TOC \c \t
This is for Table of Figures/Objects/Tables. The core will happily generate entries from paragraph styles by simply setting the Template flag and adding the style name. In Word, this feature differs from ToC in that only a single paragraph style is allowed, and there is only one level to assign to so that is omitted and \t is simply the style name (presumably suffering the usual i18n disaster, see tdf#153083). So implement it with the same limitations, not reusing the CreateFromLevelParagraphStyles property on SwXDocumentIndex but instead add new property CreateFromParagraphStyle. Change-Id: Ic8ab1fa9e81bdc85cc932f6bba8724d560e0fbc1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145904 Tested-by: Jenkins Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
Diffstat (limited to 'offapi')
-rw-r--r--offapi/com/sun/star/text/IllustrationsIndex.idl6
-rw-r--r--offapi/com/sun/star/text/ObjectIndex.idl6
-rw-r--r--offapi/com/sun/star/text/TableIndex.idl6
3 files changed, 18 insertions, 0 deletions
diff --git a/offapi/com/sun/star/text/IllustrationsIndex.idl b/offapi/com/sun/star/text/IllustrationsIndex.idl
index 433d1503bd9b..d58392ded2bc 100644
--- a/offapi/com/sun/star/text/IllustrationsIndex.idl
+++ b/offapi/com/sun/star/text/IllustrationsIndex.idl
@@ -36,6 +36,12 @@ published service IllustrationsIndex
/* determines the way the paragraph containing a label is included in the index.
@see ChapterFormat*/
[optional, property] short LabelDisplayType;//tables, illustrations
+
+ /** determines if paragraphs with one particular style applied are
+ included in the index.
+ @since LibreOffice 7.6
+ */
+ [optional, property, maybevoid] string CreateFromParagraphStyle;
};
diff --git a/offapi/com/sun/star/text/ObjectIndex.idl b/offapi/com/sun/star/text/ObjectIndex.idl
index 2aea50204be2..3df13f2abd63 100644
--- a/offapi/com/sun/star/text/ObjectIndex.idl
+++ b/offapi/com/sun/star/text/ObjectIndex.idl
@@ -45,6 +45,12 @@ published service ObjectIndex
/** Determines if external embedded objects are included in the office.
*/
[optional, property] boolean CreateFromOtherEmbeddedObjects;//objects
+
+ /** determines if paragraphs with one particular style applied are
+ included in the index.
+ @since LibreOffice 7.6
+ */
+ [optional, property, maybevoid] string CreateFromParagraphStyle;
};
diff --git a/offapi/com/sun/star/text/TableIndex.idl b/offapi/com/sun/star/text/TableIndex.idl
index 166748573370..e65f86233111 100644
--- a/offapi/com/sun/star/text/TableIndex.idl
+++ b/offapi/com/sun/star/text/TableIndex.idl
@@ -42,6 +42,12 @@ published service TableIndex
ONLY_CAPTION
*/
[optional, property] short LabelDisplayType;//tables, illustrations
+
+ /** determines if paragraphs with one particular style applied are
+ included in the index.
+ @since LibreOffice 7.6
+ */
+ [optional, property, maybevoid] string CreateFromParagraphStyle;
};