sw: add new LOK_CALLBACK_VIEW_LOCK callback

Desktop / LibreOffice - Miklos Vajna [collabora.co.uk] - 22 July 2016 10:13 UTC

When we're after SdrBeginTextEdit(), but before SdrEndTextEdit(), and have multiple views, then only the active view paints the edited text, the other views look like the shape has no text at all.

Add a new callback that exposes the position and size of the rectangle where the shape text will be painted after text edit ended, so clients can draw some kind of locking indicator there. This way the rendered result can differ in the "shape has no text" and the "shape text is edited in an other view" cases.

Change-Id: I6096479a8a05c2547d15222e6d997b848af02945 Reviewed-on: https://gerrit.libreoffice.org/27441

897189c sw: add new LOK_CALLBACK_VIEW_LOCK callback
include/LibreOfficeKit/LibreOfficeKitEnums.h | 16 +++++++
libreofficekit/source/gtk/lokdocview.cxx | 59 ++++++++++++++++++++++++
sw/qa/extras/tiledrendering/tiledrendering.cxx | 49 +++++++++++++++++++-
sw/source/core/frmedt/feshview.cxx | 7 +++
sw/source/uibase/uiview/viewdraw.cxx | 9 ++++
5 files changed, 139 insertions(+), 1 deletion(-)

Upstream: cgit.freedesktop.org


  • Share