Kaydet (Commit) bdac3f7f authored tarafından Rüdiger Timm's avatar Rüdiger Timm

INTEGRATION: CWS impresstables2 (1.13.16); FILE MERGED

2007/08/01 18:37:51 cl 1.13.16.2: RESYNC: (1.13-1.14); FILE MERGED
2007/03/15 16:57:05 cl 1.13.16.1: #i68103# adding a shape for tables
üst 838c0fa8
...@@ -4,9 +4,9 @@ ...@@ -4,9 +4,9 @@
* *
* $RCSfile: impgrfll.cxx,v $ * $RCSfile: impgrfll.cxx,v $
* *
* $Revision: 1.14 $ * $Revision: 1.15 $
* *
* last change: $Author: hr $ $Date: 2007-06-27 18:57:02 $ * last change: $Author: rt $ $Date: 2008-03-12 09:47:48 $
* *
* The Contents of this file are made available subject to * The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1. * the terms of GNU Lesser General Public License Version 2.1.
...@@ -105,11 +105,30 @@ ImpGraphicFill::ImpGraphicFill( const SdrObject& rObj, ...@@ -105,11 +105,30 @@ ImpGraphicFill::ImpGraphicFill( const SdrObject& rObj,
const XOutputDevice& rXOut, const XOutputDevice& rXOut,
const SfxItemSet& rFillItemSet, const SfxItemSet& rFillItemSet,
bool bIsShadow ) : bool bIsShadow ) :
mrObj( rObj ),
mrXOut( rXOut ), mrXOut( rXOut ),
mbCommentWritten( false ) mbCommentWritten( false )
{ {
const SfxItemSet& rSet = rObj.GetMergedItemSet(); basegfx::B2DPolyPolygon aGeometry(rObj.TakeXorPoly(sal_True));
prepare( rXOut, rObj.GetMergedItemSet(), aGeometry, rFillItemSet, bIsShadow );
}
ImpGraphicFill::ImpGraphicFill( const XOutputDevice& rXOut,
const SfxItemSet& rSet,
basegfx::B2DPolyPolygon& aGeometry,
const SfxItemSet& rFillItemSet,
bool bIsShadow ) :
mrXOut( rXOut ),
mbCommentWritten( false )
{
prepare( rXOut, rSet, aGeometry, rFillItemSet, bIsShadow );
}
void ImpGraphicFill::prepare( const XOutputDevice& rXOut,
const SfxItemSet& rSet,
basegfx::B2DPolyPolygon& aGeometry,
const SfxItemSet& rFillItemSet,
bool bIsShadow )
{
XFillStyle eFillStyle( ITEMVALUE( rFillItemSet, XATTR_FILLSTYLE, XFillStyleItem ) ); XFillStyle eFillStyle( ITEMVALUE( rFillItemSet, XATTR_FILLSTYLE, XFillStyleItem ) );
XGradient aGradient(((const XFillGradientItem&)rFillItemSet.Get(XATTR_FILLGRADIENT)).GetGradientValue()); XGradient aGradient(((const XFillGradientItem&)rFillItemSet.Get(XATTR_FILLGRADIENT)).GetGradientValue());
XHatch aHatch(((const XFillHatchItem&)rFillItemSet.Get(XATTR_FILLHATCH)).GetHatchValue()); XHatch aHatch(((const XFillHatchItem&)rFillItemSet.Get(XATTR_FILLHATCH)).GetHatchValue());
...@@ -126,8 +145,6 @@ ImpGraphicFill::ImpGraphicFill( const SdrObject& rObj, ...@@ -126,8 +145,6 @@ ImpGraphicFill::ImpGraphicFill( const SdrObject& rObj,
pMtf=mrXOut.GetOutDev()->GetConnectMetaFile(); pMtf=mrXOut.GetOutDev()->GetConnectMetaFile();
if( pMtf != NULL ) if( pMtf != NULL )
{ {
basegfx::B2DPolyPolygon aGeometry(mrObj.TakeXorPoly(sal_True));
// #104686# Prune non-closed polygons from geometry // #104686# Prune non-closed polygons from geometry
basegfx::B2DPolyPolygon aPolyPoly; basegfx::B2DPolyPolygon aPolyPoly;
sal_uInt32 i; sal_uInt32 i;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment