diff options
author | Khaled Hosny <khaled@libreoffice.org> | 2023-06-18 17:35:32 +0300 |
---|---|---|
committer | خالد حسني <khaled@libreoffice.org> | 2023-06-18 22:01:53 +0200 |
commit | 68a4f005bc3e74d847e82dddf3237137cf3a1648 (patch) | |
tree | 3712971edf90e5fb753369a6874093a9e90c73d7 /offapi | |
parent | 94bf26798bb973c7df26e2aa841099bb9cbaf3cb (diff) |
tdf#155810: Pass Kashida insertion positions through canvas
This was missed in:
commit 3901e029bd39575f700e69a73818565d62226a23
Author: Khaled Hosny <khaled@aliftype.com>
Date: Mon Aug 8 22:08:37 2022 +0200
tdf#104921: Cleanup Kashida insertion logic
The width adjustment passed through, but Kashida insertion positions
didn’t, leaving gaps in place of Kashidas when canvas is used
(apparently canvas is only used for slideshow).
Change-Id: I25ff30f10cc46a5c87bda2f3936df26b2fc926b1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/153234
Tested-by: Jenkins
Reviewed-by: خالد حسني <khaled@libreoffice.org>
Diffstat (limited to 'offapi')
-rw-r--r-- | offapi/com/sun/star/rendering/XTextLayout.idl | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/offapi/com/sun/star/rendering/XTextLayout.idl b/offapi/com/sun/star/rendering/XTextLayout.idl index b2318d2554eb..1551b7334203 100644 --- a/offapi/com/sun/star/rendering/XTextLayout.idl +++ b/offapi/com/sun/star/rendering/XTextLayout.idl @@ -143,6 +143,53 @@ interface XTextLayout : ::com::sun::star::uno::XInterface raises (com::sun::star::lang::IllegalArgumentException); + /** Query the Kashida insertion positions in the input string.<p> + + This method returns a sequence of Kashida insertion positions, one for + each character in the input string (<em>not</em> for every + glyph. There might be multiple glyphs per input character, or + multiple input characters per glyph).<p> + + A Kashida insertion position is a boolean indicating if Kashida should + inserted after this character.<p> + + This method can be used to query for the layout's default Kashida + insertion positions, which can subsequently be changed and applied to + the layout via + XTextLayout::applyKashidaPositions().<p> + + @returns a sequence of booleans specifying the Kashida insertion + positions per character. + + @see XTextLayout::applyKashidaPositions) + + @since LibreOffice 7.6 + */ + sequence<boolean> queryKashidaPositions(); + + + /** Apply Kashida insertion positions for the layout string.<p> + + This method applies the specified Kashida insertion positions to every + logical character in the input string (<em>not</em> for every + glyph. There might be multiple glyphs per input character, or + multiple input characters per glyph).<p> + + @param aPositions + A sequence of booleans specifying Kashida insertion positions. + + @see XTextLayout::queryKashidaPositions() + + @throws com::sun::star::lang::IllegalArgumentException + if the size of aPositions is not zero and does not match the number of + characters in the text. + + @since LibreOffice 7.6 + */ + void applyKashidaPositions( [in] sequence< boolean > aPositions ) + raises (com::sun::star::lang::IllegalArgumentException); + + /** Query the overall bounding box of the text.<p> This method is similar to |