diff options
author | Armin Le Grand <alg@apache.org> | 2012-12-13 08:47:57 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-06-13 10:37:03 +0100 |
commit | 67608078a857fc128efc6bf4172f9ce4384d25c7 (patch) | |
tree | b35538ea67ffdf00a83d1a8de17df3b96e2be537 /svx | |
parent | de435e745ad8c32640342675103a48383a84b5a9 (diff) |
Resolves: #i121463# Enhanced handle visualization..
and some fixes in that region
(cherry picked from commit 2ece2411aa1ab78e6aec269d08d8a9b526390939)
Conflicts:
default_images/svx/res/cropmarkers.png
default_images/svx/res/cropmarkers2.png
default_images/svx/res/cropmarkersACC.png
default_images/svx/res/markers.png
default_images/svx/res/markers2.png
default_images/svx/res/markersACC.png
officecfg/registry/schema/org/openoffice/Office/Calc.xcs
officecfg/registry/schema/org/openoffice/Office/Draw.xcs
officecfg/registry/schema/org/openoffice/Office/Impress.xcs
officecfg/registry/schema/org/openoffice/Office/Writer.xcs
officecfg/registry/schema/org/openoffice/Office/WriterWeb.xcs
sc/source/core/tool/viewopti.cxx
sd/source/ui/app/optsitem.cxx
svx/inc/svx/svdhdl.hxx
svx/source/svdraw/svdhdl.cxx
svx/source/svdraw/svdstr.src
sw/source/ui/config/viewopt.cxx
sw/source/ui/docvw/edtwin.cxx
Change-Id: I4094c2ca18a3c29e8e24a15ddeb040808ce4605d
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/svdraw/svdhdl.cxx | 32 |
1 files changed, 29 insertions, 3 deletions
diff --git a/svx/source/svdraw/svdhdl.cxx b/svx/source/svdraw/svdhdl.cxx index 4559e69b4cd6..4911fabad3c4 100644 --- a/svx/source/svdraw/svdhdl.cxx +++ b/svx/source/svdraw/svdhdl.cxx @@ -175,17 +175,19 @@ const BitmapEx& SdrHdlBitmapSet::GetBitmapEx(BitmapMarkerKind eKindOfMarker, sal } case Circ_7x7: + case Customshape_7x7: { return impGetOrCreateTargetBitmap((4 * INDEX_COUNT) + nInd, Rectangle(Point(27, nYPos), Size(7, 7))); } case Circ_9x9: - case Customshape1: + case Customshape_9x9: { return impGetOrCreateTargetBitmap((5 * INDEX_COUNT) + nInd, Rectangle(Point(34, nYPos), Size(9, 9))); } case Circ_11x11: + case Customshape_11x11: { return impGetOrCreateTargetBitmap((6 * INDEX_COUNT) + nInd, Rectangle(Point(43, nYPos), Size(11, 11))); } @@ -523,7 +525,7 @@ void SdrHdl::CreateB2dIAObject() // for SJ and the CustomShapeHandles: case HDL_CUSTOMSHAPE1: { - eKindOfMarker = Customshape1; + eKindOfMarker = (b1PixMore) ? Customshape_7x7 : Customshape_9x9; eColIndex = Yellow; break; } @@ -597,6 +599,10 @@ BitmapMarkerKind SdrHdl::GetNextBigger(BitmapMarkerKind eKnd) const case Circ_7x7: eRetval = Circ_9x9; break; case Circ_9x9: eRetval = Circ_11x11; break; + case Customshape_7x7: eRetval = Customshape_9x9; break; + case Customshape_9x9: eRetval = Customshape_11x11; break; + //case Customshape_11x11: eRetval = ; break; + case Elli_7x9: eRetval = Elli_9x11; break; case Elli_9x7: eRetval = Elli_11x9; break; @@ -633,7 +639,27 @@ BitmapEx SdrHdl::ImpGetBitmapEx( BitmapMarkerKind eKindOfMarker, sal_uInt16 nInd if(pHdlList->GetHdlSize() > 3) { - bForceBiggerSize = true; + switch(eKindOfMarker) + { + case Anchor: + case AnchorPressed: + case AnchorTR: + case AnchorPressedTR: + { + // #i121463# For anchor, do not simply make bigger because of HdlSize, + // do it dependent of IsSelected() which Writer can set in drag mode + if(IsSelected()) + { + bForceBiggerSize = true; + } + break; + } + default: + { + bForceBiggerSize = true; + break; + } + } } if(bForceBiggerSize) |