diff options
author | Armin Le Grand <alg@apache.org> | 2013-05-02 16:29:07 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-05-10 12:08:40 +0100 |
commit | 54a1feb9b9bd654774b9aa60cda7ef9a1cd11064 (patch) | |
tree | 2aefd9d1d8e0970f06d3623ea08c1b2734ee1285 /svx/source | |
parent | a356da4e2adefd86d6f802c0753b3718909e4e4c (diff) |
Resolves: #i122142# use simple text hilight frames
use simple text hilight frame when captions are in TextEdit mode
(cherry picked from commit bdcd01c39324f5c74e0f696f2afc3449243e6c4b)
Conflicts:
svx/source/svdraw/svdmrkv.cxx
svx/source/svdraw/svdorect.cxx
Change-Id: Id570a220873d1bbd0f9caed4db44f90ca2f67d9e
Diffstat (limited to 'svx/source')
-rw-r--r-- | svx/source/svdraw/svdmrkv.cxx | 8 | ||||
-rw-r--r-- | svx/source/svdraw/svdorect.cxx | 1 |
2 files changed, 9 insertions, 0 deletions
diff --git a/svx/source/svdraw/svdmrkv.cxx b/svx/source/svdraw/svdmrkv.cxx index dbd259fa21ad..ff27728c1d09 100644 --- a/svx/source/svdraw/svdmrkv.cxx +++ b/svx/source/svdraw/svdmrkv.cxx @@ -47,6 +47,7 @@ #include <svx/sdrpaintwindow.hxx> #include <svx/sdrpagewindow.hxx> #include <svx/sdrhittesthelper.hxx> +#include <svx/svdocapt.hxx> #include <editeng/editdata.hxx> @@ -621,6 +622,13 @@ void SdrMarkView::SetMarkHandles() // ( necessary for handles to be displayed in // correct position ) Point aGridOff = GetGridOffset(); + + // #i122142# for captions in TextEdit, force to FrameHdls to get the special text selection + if(!bFrmHdl && pMarkedObj && bSingleTextObjMark && dynamic_cast< SdrCaptionObj* >(pMarkedObj)) + { + bFrmHdl = true; + } + if (bFrmHdl) { Rectangle aRect(GetMarkedObjRect()); diff --git a/svx/source/svdraw/svdorect.cxx b/svx/source/svdraw/svdorect.cxx index da2d9fe77021..d17a0ed3b43e 100644 --- a/svx/source/svdraw/svdorect.cxx +++ b/svx/source/svdraw/svdorect.cxx @@ -316,6 +316,7 @@ SdrHdl* SdrRectObj::GetHdl(sal_uInt32 nHdlNum) const { case 0: { + OSL_ENSURE(!IsTextEditActive(), "Do not use a ImpTextframeHdl for hilighting text in active text edit, this will collide with EditEngine paints (!)"); // hack for calc grid sync to ensure the hatched area // for a textbox is displayed at correct position pH = new ImpTextframeHdl(aRect + GetGridOffset() ); |