summaryrefslogtreecommitdiff
path: root/drawinglayer/source/primitive2d
diff options
context:
space:
mode:
authorArmin Weiss <aw@openoffice.org>2007-12-12 12:23:40 +0000
committerArmin Weiss <aw@openoffice.org>2007-12-12 12:23:40 +0000
commitc58ad39340a331ca5b77f39530f5267985b53144 (patch)
tree9f697fd3c7f3c95904140b94e772134f421ee38a /drawinglayer/source/primitive2d
parent951409194e0404dd794bda0fbd890999d4c394f2 (diff)
#i39532# clipping changes
Diffstat (limited to 'drawinglayer/source/primitive2d')
-rw-r--r--drawinglayer/source/primitive2d/polygonprimitive2d.cxx6
-rw-r--r--drawinglayer/source/primitive2d/textlayoutdevice.cxx11
-rw-r--r--drawinglayer/source/primitive2d/textprimitive2d.cxx14
3 files changed, 12 insertions, 19 deletions
diff --git a/drawinglayer/source/primitive2d/polygonprimitive2d.cxx b/drawinglayer/source/primitive2d/polygonprimitive2d.cxx
index 0518665a432f..22f4551867f6 100644
--- a/drawinglayer/source/primitive2d/polygonprimitive2d.cxx
+++ b/drawinglayer/source/primitive2d/polygonprimitive2d.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: polygonprimitive2d.cxx,v $
*
- * $Revision: 1.8 $
+ * $Revision: 1.9 $
*
- * last change: $Author: aw $ $Date: 2007-11-22 15:01:17 $
+ * last change: $Author: aw $ $Date: 2007-12-12 13:23:39 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -227,7 +227,7 @@ namespace drawinglayer
// to be painted as a single PolyPolygon (XORed as fill rule). Alternatively, a
// melting process may be used here one day.
const basegfx::B2DPolyPolygon aNewPolyPolygon(aAreaPolyPolygon.getB2DPolygon(b));
- static bool bTestByUsingRandomColor(true);
+ static bool bTestByUsingRandomColor(false);
const basegfx::BColor aColor(bTestByUsingRandomColor
? basegfx::BColor(rand() / 32767.0, rand() / 32767.0, rand() / 32767.0)
: getLineAttribute().getColor());
diff --git a/drawinglayer/source/primitive2d/textlayoutdevice.cxx b/drawinglayer/source/primitive2d/textlayoutdevice.cxx
index 56d7ea292bba..aee637ce1884 100644
--- a/drawinglayer/source/primitive2d/textlayoutdevice.cxx
+++ b/drawinglayer/source/primitive2d/textlayoutdevice.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: textlayoutdevice.cxx,v $
*
- * $Revision: 1.7 $
+ * $Revision: 1.8 $
*
- * last change: $Author: aw $ $Date: 2007-11-19 10:21:42 $
+ * last change: $Author: aw $ $Date: 2007-12-12 13:23:39 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -231,11 +231,8 @@ namespace drawinglayer
basegfx::B2DPolyPolygonVector& rB2DPolyPolyVector,
const String& rText,
xub_StrLen nIndex,
- xub_StrLen nLength,
- const ::std::vector< sal_Int32 >& rDXArray)
+ xub_StrLen nLength)
{
- const sal_Int32* pDXArray = rDXArray.size() ? &rDXArray[0] : NULL;
-
return mrDevice.GetTextOutlines(
rB2DPolyPolyVector,
rText,
@@ -244,7 +241,7 @@ namespace drawinglayer
nLength,
true,
0,
- pDXArray);
+ 0);
}
basegfx::B2DRange TextLayouterDevice::getTextBoundRect(
diff --git a/drawinglayer/source/primitive2d/textprimitive2d.cxx b/drawinglayer/source/primitive2d/textprimitive2d.cxx
index 59c9e9281a8f..ac92d4680f88 100644
--- a/drawinglayer/source/primitive2d/textprimitive2d.cxx
+++ b/drawinglayer/source/primitive2d/textprimitive2d.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: textprimitive2d.cxx,v $
*
- * $Revision: 1.19 $
+ * $Revision: 1.20 $
*
- * last change: $Author: aw $ $Date: 2007-11-19 10:21:42 $
+ * last change: $Author: aw $ $Date: 2007-12-12 13:23:40 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -158,13 +158,9 @@ namespace drawinglayer
TextLayouterDevice aTextLayouter;
aTextLayouter.setFontAttributes(getFontAttributes(), aFontScale.getX(), aFontScale.getY());
- // get integer DXArray for getTextOutlines call (ATM uses vcl, so this
- // is needed)
- const basegfx::B2DVector aPixelVector(getTextTransform() * basegfx::B2DVector(1.0, 0.0));
- const ::std::vector< sal_Int32 > aNewIntegerDXArray(getDXArray().size(), basegfx::fround(aPixelVector.getLength()));
-
- // get the text outlines
- aTextLayouter.getTextOutlines(rTarget, getText(), getTextPosition(), getTextLength(), aNewIntegerDXArray);
+ // get the text outlines. No DXArray is given (would contain integers equal to unit vector
+ // transformed by object's transformation), let VCL do the job
+ aTextLayouter.getTextOutlines(rTarget, getText(), getTextPosition(), getTextLength());
// create primitives for the outlines
const sal_uInt32 nCount(rTarget.size());