summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorIvo Hinkelmann <ihi@openoffice.org>2007-11-26 13:54:14 +0000
committerIvo Hinkelmann <ihi@openoffice.org>2007-11-26 13:54:14 +0000
commit033b9886201c5db9c8d3a688654168537df4ce89 (patch)
tree04973cb4d0fb46420bc1ecbc1a211b7d643887a1 /svx
parentd5e8175886871261dc4ee643c6e4d1fa7ae57308 (diff)
INTEGRATION: CWS aw053 (1.34.42); FILE MERGED
2007/09/14 10:37:10 aw 1.34.42.1: #i80528# Removal of draft paint modes
Diffstat (limited to 'svx')
-rw-r--r--svx/source/svdraw/svdocirc.cxx22
1 files changed, 7 insertions, 15 deletions
diff --git a/svx/source/svdraw/svdocirc.cxx b/svx/source/svdraw/svdocirc.cxx
index 08d9403b6bfd..79a8d2b530ff 100644
--- a/svx/source/svdraw/svdocirc.cxx
+++ b/svx/source/svdraw/svdocirc.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: svdocirc.cxx,v $
*
- * $Revision: 1.34 $
+ * $Revision: 1.35 $
*
- * last change: $Author: obo $ $Date: 2007-07-18 10:57:20 $
+ * last change: $Author: ihi $ $Date: 2007-11-26 14:54:14 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -388,8 +388,6 @@ void SdrCircObj::RecalcBoundRect()
sal_Bool SdrCircObj::DoPaintObject(XOutputDevice& rXOut, const SdrPaintInfoRec& rInfoRec) const
{
bool bHideContour(IsHideContour());
- bool bIsLineDraft(0 != (rInfoRec.nPaintMode & SDRPAINTMODE_DRAFTLINE));
- bool bIsFillDraft(0 != (rInfoRec.nPaintMode & SDRPAINTMODE_DRAFTFILL));
// prepare ItemSet of this object
const SfxItemSet& rSet = GetObjectItemSet();
@@ -402,21 +400,17 @@ sal_Bool SdrCircObj::DoPaintObject(XOutputDevice& rXOut, const SdrPaintInfoRec&
// #b4899532# if not filled but fill draft, avoid object being invisible in using
// a hair linestyle and COL_LIGHTGRAY
SfxItemSet aItemSet(rSet);
- if(bIsFillDraft && XLINE_NONE == ((const XLineStyleItem&)(rSet.Get(XATTR_LINESTYLE))).GetValue())
- {
- ImpPrepareLocalItemSetForDraftLine(aItemSet);
- }
// #103692# prepare ItemSet for shadow fill attributes
SfxItemSet aShadowSet(aItemSet);
// prepare line geometry
- ::std::auto_ptr< SdrLineGeometry > pLineGeometry( ImpPrepareLineGeometry(rXOut, aItemSet, bIsLineDraft) );
+ ::std::auto_ptr< SdrLineGeometry > pLineGeometry( ImpPrepareLineGeometry(rXOut, aItemSet) );
// Shadows
if(!bHideContour && ImpSetShadowAttributes(aItemSet, aShadowSet))
{
- if( meCircleKind==OBJ_CARC || bIsFillDraft )
+ if( meCircleKind==OBJ_CARC )
rXOut.SetFillAttr(aEmptySet);
else
rXOut.SetFillAttr(aShadowSet);
@@ -474,8 +468,7 @@ sal_Bool SdrCircObj::DoPaintObject(XOutputDevice& rXOut, const SdrPaintInfoRec&
// Before here the LineAttr were set: if(pLineAttr) rXOut.SetLineAttr(*pLineAttr);
rXOut.SetLineAttr(aEmptySet);
-
- rXOut.SetFillAttr( bIsFillDraft ? aEmptySet : aItemSet );
+ rXOut.SetFillAttr( aItemSet );
if (!bHideContour) {
if (PaintNeedsXPolyCirc())
@@ -485,13 +478,12 @@ sal_Bool SdrCircObj::DoPaintObject(XOutputDevice& rXOut, const SdrPaintInfoRec&
const XPolygon& rXP=GetXPoly(); // In dieser Reihenfolge, damit bXPolyIsLine gueltig ist.
// #100127# Output original geometry for metafiles
- ImpGraphicFill aFill( *this, rXOut, bIsFillDraft ? aEmptySet : aItemSet );
-
+ ImpGraphicFill aFill( *this, rXOut, aItemSet );
rXOut.DrawPolygon(rXP.getB2DPolygon());
}
} else {
// #100127# Output original geometry for metafiles
- ImpGraphicFill aFill( *this, rXOut, bIsFillDraft ? aEmptySet : aItemSet );
+ ImpGraphicFill aFill( *this, rXOut, aItemSet );
if (meCircleKind==OBJ_CIRC) {
rXOut.DrawEllipse(aRect);