summaryrefslogtreecommitdiff
path: root/svx/source/svdraw/svdoedge.cxx
diff options
context:
space:
mode:
authorIvo Hinkelmann <ihi@openoffice.org>2007-11-26 13:54:32 +0000
committerIvo Hinkelmann <ihi@openoffice.org>2007-11-26 13:54:32 +0000
commitf4b9f44d1836a7ee006815503403619707e36b99 (patch)
treeb3da6d2125c887375d13fc1b36222a13d718f62e /svx/source/svdraw/svdoedge.cxx
parent033b9886201c5db9c8d3a688654168537df4ce89 (diff)
INTEGRATION: CWS aw053 (1.41.82); FILE MERGED
2007/09/14 10:37:10 aw 1.41.82.1: #i80528# Removal of draft paint modes
Diffstat (limited to 'svx/source/svdraw/svdoedge.cxx')
-rw-r--r--svx/source/svdraw/svdoedge.cxx24
1 files changed, 5 insertions, 19 deletions
diff --git a/svx/source/svdraw/svdoedge.cxx b/svx/source/svdraw/svdoedge.cxx
index 3460128fdc40..18bc7759fe2c 100644
--- a/svx/source/svdraw/svdoedge.cxx
+++ b/svx/source/svdraw/svdoedge.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: svdoedge.cxx,v $
*
- * $Revision: 1.41 $
+ * $Revision: 1.42 $
*
- * last change: $Author: hr $ $Date: 2007-06-27 19:05:54 $
+ * last change: $Author: ihi $ $Date: 2007-11-26 14:54:32 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -458,8 +458,6 @@ void SdrEdgeObj::TakeUnrotatedSnapRect(Rectangle& rRect) const
sal_Bool SdrEdgeObj::DoPaintObject(XOutputDevice& rXOut, const SdrPaintInfoRec& rInfoRec) const
{
bool bHideContour(IsHideContour());
- bool bIsFillDraft(0 != (rInfoRec.nPaintMode & SDRPAINTMODE_DRAFTFILL));
- bool bIsLineDraft(0 != (rInfoRec.nPaintMode & SDRPAINTMODE_DRAFTLINE));
// prepare ItemSet of this object
const SfxItemSet& rSet = GetObjectItemSet();
@@ -472,16 +470,12 @@ sal_Bool SdrEdgeObj::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))
@@ -509,17 +503,9 @@ sal_Bool SdrEdgeObj::DoPaintObject(XOutputDevice& rXOut, const SdrPaintInfoRec&
// Before here the LineAttr were set: if(pLineAttr) rXOut.SetLineAttr(*pLineAttr);
rXOut.SetLineAttr(aEmptySet);
- if(bIsFillDraft)
- {
- // perepare ItemSet to avoid XOut filling
- rXOut.SetFillAttr(aEmptySet);
- }
- else
+ if(bHideContour)
{
- if(bHideContour)
- {
- rXOut.SetFillAttr(aItemSet);
- }
+ rXOut.SetFillAttr(aItemSet);
}
if (!bHideContour) {