diff options
author | Fred Kruse <fred.kruse@gmx.de> | 2023-01-15 19:09:36 +0100 |
---|---|---|
committer | Michael Stahl <michael.stahl@allotropia.de> | 2023-01-17 10:17:19 +0000 |
commit | 04f15c8a8c733f159f77bd58905e4136a32b1be9 (patch) | |
tree | b3adec0cb51eb52c348740865b99186e62c79739 /offapi | |
parent | 79541a4808561fbe400cb4e0d33c8ddc23cf9d84 (diff) |
Properties SortedTextId and DocumentElementsCount added for grammar check
The LanguageTool extension (LT extension) runs not only a grammar check on the level of sentences and paragraphs, some rules work on the level of many paragraphs or full text. The LT extension uses a complex caching mechanism to support this feature. A mapping from a check request to the cached to the (flat)paragraphs is necessary. Until now, this is done by a time-consuming and error-prone mechanism. The adding of the SortedTextId introduce a feature, a paragraph to be checked can be fast and easy identified. The flatparagraphs also can easily be mapped to cursors to get additional information of the paragraph, used for further features of LT extension.
The added Property DocumentElementsCount to flatparagraphs and doProofreading gives the extension the hint to recreate the cache.
Change-Id: I4b6b58bba4dfb3e870fe7b71fd8537ee9ffd6476
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142251
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
Diffstat (limited to 'offapi')
-rw-r--r-- | offapi/com/sun/star/style/ParagraphProperties.idl | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/offapi/com/sun/star/style/ParagraphProperties.idl b/offapi/com/sun/star/style/ParagraphProperties.idl index 9951703c8a3d..a7d6c059bd8a 100644 --- a/offapi/com/sun/star/style/ParagraphProperties.idl +++ b/offapi/com/sun/star/style/ParagraphProperties.idl @@ -419,6 +419,15 @@ published service ParagraphProperties @since LibreOffice 7.4 */ [optional, property] long ParaHyphenationZone; + + /** contains a paragraph identifier within the actual text, + which also shows the position of the paragraph relative to the + other paragraphs of the same text, i.e. a paragraph with lower + identifier is there before the other ones with greater values. + This property depends on implementation details and is considered experimental. + @since LibreOffice 7.5 + */ + [optional, property, readonly] long SortedTextId; }; |