diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-03-05 11:32:14 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-03-09 10:16:14 +0100 |
commit | 233fdd99f27ccdb1e31561b4093c68007549a5b5 (patch) | |
tree | b33bd64a3d9a51062186617e4395e74fddc5d3b1 /svx | |
parent | sw: when tiled rendering, disable map mode of SwEditWin early (diff) | |
download | core-233fdd99f27ccdb1e31561b4093c68007549a5b5.tar.gz core-233fdd99f27ccdb1e31561b4093c68007549a5b5.zip |
LOK: add LOK_CALLBACK_GRAPHIC_SELECTION API and implement it in svx
Change-Id: I4dbee4048f52f480efef4454d3714862e4ddcf4b
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/svdraw/svdmrkv.cxx | 11 |
1 files changed, 11 insertions, 0 deletions
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 ) |