summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/LibreOfficeKit/LibreOfficeKitEnums.h11
-rw-r--r--svx/source/svdraw/svdmrkv.cxx11
2 files changed, 20 insertions, 2 deletions
diff --git a/include/LibreOfficeKit/LibreOfficeKitEnums.h b/include/LibreOfficeKit/LibreOfficeKitEnums.h
index aed96d64a7c5..1cb3da46cc44 100644
--- a/include/LibreOfficeKit/LibreOfficeKitEnums.h
+++ b/include/LibreOfficeKit/LibreOfficeKitEnums.h
@@ -43,7 +43,8 @@ typedef enum
* longer valid.
*
* Rectangle format: "width, height, x, y", where all numbers are document
- * coordinates, in twips.
+ * coordinates, in twips. When all tiles are supposed to be dropped, the
+ * format is the "EMPTY" string.
*/
LOK_CALLBACK_INVALIDATE_TILES,
/**
@@ -87,7 +88,13 @@ typedef enum
* LOK_CALLBACK_INVALIDATE_VISIBLE_CURSOR once it becomes true. Payload is
* either the "true" or the "false" string.
*/
- LOK_CALLBACK_CURSOR_VISIBLE
+ LOK_CALLBACK_CURSOR_VISIBLE,
+ /**
+ * The size and/or the position of the graphic selection changed.
+ *
+ * Rectangle format is the same as LOK_CALLBACK_INVALIDATE_TILES.
+ */
+ LOK_CALLBACK_GRAPHIC_SELECTION
}
LibreOfficeKitCallbackType;
diff --git a/svx/source/svdraw/svdmrkv.cxx b/svx/source/svdraw/svdmrkv.cxx
index cd67b46a37c1..3209f4e3a704 100644
--- a/svx/source/svdraw/svdmrkv.cxx
+++ b/svx/source/svdraw/svdmrkv.cxx
@@ -51,6 +51,7 @@
#include <svx/svdograf.hxx>
#include <editeng/editdata.hxx>
+#include <LibreOfficeKit/LibreOfficeKitEnums.h>
using namespace com::sun::star;
@@ -702,6 +703,16 @@ void SdrMarkView::SetMarkHandles()
{
Rectangle aRect(GetMarkedObjRect());
+ if (GetModel()->isTiledRendering())
+ {
+ OString sRectangle;
+ if (aRect.IsEmpty())
+ sRectangle = "EMPTY";
+ else
+ sRectangle = aRect.toString();
+ GetModel()->libreOfficeKitCallback(LOK_CALLBACK_GRAPHIC_SELECTION, sRectangle.getStr());
+ }
+
if(!aRect.IsEmpty())
{ // otherwise nothing is found
if( bSingleTextObjMark )