From b88a5657a95e1b94498ed238e2b4e0fb0418d40b Mon Sep 17 00:00:00 2001 From: Tamás Zolnai Date: Sat, 10 Dec 2016 11:23:38 +0000 Subject: tdf#93430: Return the right offsets for runs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit MultiLineEdit is a special control which can have more text portions with different text attributes. Change-Id: Iab51dba0d0344fad4358f4961c968c031b1660b6 Reviewed-on: https://gerrit.libreoffice.org/31813 Tested-by: Jenkins Reviewed-by: Tamás Zolnai (cherry picked from commit 8d52045853cecb716138d51b8b6ad0272a86af86) Reviewed-on: https://gerrit.libreoffice.org/31832 Tested-by: Tamás Zolnai --- include/vcl/texteng.hxx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') diff --git a/include/vcl/texteng.hxx b/include/vcl/texteng.hxx index 96ac4261116e..4c6c3dfb4746 100644 --- a/include/vcl/texteng.hxx +++ b/include/vcl/texteng.hxx @@ -257,6 +257,8 @@ public: sal_Int32 GetTextLen( sal_uInt32 nParagraph ) const; long GetTextHeight( sal_uInt32 nParagraph ) const; + void GetTextPortionRange(const TextPaM& rPaM, sal_Int32& nStart, sal_Int32& nEnd); + sal_uInt16 GetLineCount( sal_uInt32 nParagraph ) const; sal_Int32 GetLineLen( sal_uInt32 nParagraph, sal_uInt16 nLine ) const; -- cgit v1.2.3