From 071a306e270a04202790250c16071b9f4b397e17 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=BCdiger=20Timm?= Date: Fri, 26 Nov 2004 19:54:46 +0000 Subject: [PATCH] INTEGRATION: CWS presentationengine01 (1.2.2); FILE MERGED 2004/11/01 22:21:48 thb 1.2.2.3: #110496# Performance optimizations: added profiling traces 2004/07/20 19:08:58 thb 1.2.2.2: #110496# Unified include statements; removed external prefix from boost includes 2004/04/05 15:58:47 thb 1.2.2.1: Resync with canvas01 changes --- cppcanvas/source/mtfrenderer/lineaction.cxx | 30 +++++++++++++++------ 1 file changed, 22 insertions(+), 8 deletions(-) diff --git a/cppcanvas/source/mtfrenderer/lineaction.cxx b/cppcanvas/source/mtfrenderer/lineaction.cxx index b82150527fdc..1fd85465c459 100644 --- a/cppcanvas/source/mtfrenderer/lineaction.cxx +++ b/cppcanvas/source/mtfrenderer/lineaction.cxx @@ -2,9 +2,9 @@ * * $RCSfile: lineaction.cxx,v $ * - * $Revision: 1.2 $ + * $Revision: 1.3 $ * - * last change: $Author: thb $ $Date: 2004-03-18 10:41:04 $ + * last change: $Author: rt $ $Date: 2004-11-26 20:54:46 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -59,9 +59,15 @@ * ************************************************************************/ -#include "lineaction.hxx" -#include "outdevstate.hxx" -#include "cppcanvas/canvas.hxx" +#include +#include + +#ifndef _RTL_LOGFILE_HXX_ +#include +#endif +#ifndef _DRAFTS_COM_SUN_STAR_RENDERING_XCANVAS_HPP_ +#include +#endif #ifndef _SV_GEN_HXX #include @@ -77,7 +83,9 @@ #include #endif -#include "mtftools.hxx" +#include + +#include using namespace ::com::sun::star; @@ -104,12 +112,18 @@ namespace cppcanvas { } - bool LineAction::render() const + bool LineAction::render( const ::basegfx::B2DHomMatrix& rTransformation ) const { + RTL_LOGFILE_CONTEXT( aLog, "::cppcanvas::internal::LineAction::render()" ); + RTL_LOGFILE_CONTEXT_TRACE1( aLog, "::cppcanvas::internal::LineAction: 0x%X", this ); + + rendering::RenderState aLocalState( maState ); + ::canvas::tools::prependToRenderState(aLocalState, rTransformation); + mpCanvas->getUNOCanvas()->drawLine( ::vcl::unotools::point2DFromPoint(maStartPoint), ::vcl::unotools::point2DFromPoint(maEndPoint), mpCanvas->getViewState(), - maState ); + aLocalState ); return true; }