INTEGRATION: CWS canvas02 (1.5.8); FILE MERGED

2005/10/09 09:21:45 thb 1.5.8.2: RESYNC: (1.5-1.6); FILE MERGED
2005/08/19 11:08:34 thb 1.5.8.1: #i53538# Changed clip setting to use basegfx polygon (cppcanvas::PolyPolygon contains reference back to canvas); changed direct access to base class member to getter method, thus, providing the actual XCanvas clip polygon lazily.
This commit is contained in:
Kurt Zenker
2005-11-02 12:43:48 +00:00
parent 8bb32b9831
commit 36f9a4d595

View File

@@ -4,9 +4,9 @@
*
* $RCSfile: implpolypolygon.cxx,v $
*
* $Revision: 1.6 $
* $Revision: 1.7 $
*
* last change: $Author: rt $ $Date: 2005-09-08 08:29:09 $
* last change: $Author: kz $ $Date: 2005-11-02 13:43:48 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -179,25 +179,27 @@ namespace cppcanvas
if( mbFillColorSet )
{
maRenderState.DeviceColor = maFillColor;
rendering::RenderState aLocalState( getRenderState() );
aLocalState.DeviceColor = maFillColor;
pCanvas->getUNOCanvas()->fillPolyPolygon( mxPolyPoly,
pCanvas->getViewState(),
maRenderState );
aLocalState );
}
if( mbStrokeColorSet )
{
maRenderState.DeviceColor = maStrokeColor;
rendering::RenderState aLocalState( getRenderState() );
aLocalState.DeviceColor = maStrokeColor;
if( ::rtl::math::approxEqual(maStrokeAttributes.StrokeWidth, 1.0) )
pCanvas->getUNOCanvas()->drawPolyPolygon( mxPolyPoly,
pCanvas->getViewState(),
maRenderState );
aLocalState );
else
pCanvas->getUNOCanvas()->strokePolyPolygon( mxPolyPoly,
pCanvas->getViewState(),
maRenderState,
aLocalState,
maStrokeAttributes );
}