From 57b5ed51d46fd5673dfe35125ceffa71d39f133d Mon Sep 17 00:00:00 2001 From: Yohei Yukawa Date: Mon, 6 May 2013 14:20:11 +0900 Subject: Support IMR_QUERYCHARPOSITION in Writer and Calc. IMR_QUERYCHARPOSITION is one of optional but fundamental request message sent from IMEs to application. This message is used for retrieving the positional information for each character in a composition text especially when the composition text is drawn by the application. This information is critical for IMEs to align suggestion window with the composition text. Change-Id: I53a344a78688060004cc8bcbbf1127f22a468e20 Reviewed-on: https://gerrit.libreoffice.org/3849 Reviewed-by: Tor Lillqvist Tested-by: Tor Lillqvist --- include/vcl/cmdevt.hxx | 2 ++ include/vcl/window.hxx | 2 ++ 2 files changed, 4 insertions(+) (limited to 'include/vcl') diff --git a/include/vcl/cmdevt.hxx b/include/vcl/cmdevt.hxx index 03876e52e5a3..75714f2f531f 100644 --- a/include/vcl/cmdevt.hxx +++ b/include/vcl/cmdevt.hxx @@ -351,6 +351,8 @@ inline CommandSelectionChangeData::CommandSelectionChangeData( sal_uLong nStart, #define COMMAND_MEDIA ((sal_uInt16)17) #define COMMAND_SELECTIONCHANGE ((sal_uInt16)18) #define COMMAND_PREPARERECONVERSION ((sal_uInt16)19) +#define COMMAND_QUERYCHARPOSITION ((sal_uInt16)20) + class VCL_DLLPUBLIC CommandEvent { diff --git a/include/vcl/window.hxx b/include/vcl/window.hxx index 43e232dab55c..d1c783bc0e69 100644 --- a/include/vcl/window.hxx +++ b/include/vcl/window.hxx @@ -680,6 +680,8 @@ public: const Rectangle* GetCursorRect() const; long GetCursorExtTextInputWidth() const; + void SetCompositionCharRect( const Rectangle* pRect, long nCompositionLength, sal_Bool bVertical = sal_False ); + using OutputDevice::SetSettings; virtual void SetSettings( const AllSettings& rSettings ); virtual void SetSettings( const AllSettings& rSettings, sal_Bool bChild ); -- cgit