summaryrefslogtreecommitdiff
path: root/vcl/source/gdi/outdev4.cxx
diff options
context:
space:
mode:
authorKurt Zenker <kz@openoffice.org>2003-08-25 12:53:57 +0000
committerKurt Zenker <kz@openoffice.org>2003-08-25 12:53:57 +0000
commit8bc87cde065f59f83d54c3cd766a4a1bf0ad4904 (patch)
tree78e1231e6b72b139852b2c21452ceb99b0e6bee8 /vcl/source/gdi/outdev4.cxx
parentf365075ecb1508150bcb94ca621af543446629fb (diff)
INTEGRATION: CWS vcl15 (1.13.94); FILE MERGED
2003/07/28 14:37:22 pl 1.13.94.1: #i13119# use OutputDevice::ImplDrawHatch for PDF hatching to achieve WYSIWYG
Diffstat (limited to 'vcl/source/gdi/outdev4.cxx')
-rw-r--r--vcl/source/gdi/outdev4.cxx20
1 files changed, 14 insertions, 6 deletions
diff --git a/vcl/source/gdi/outdev4.cxx b/vcl/source/gdi/outdev4.cxx
index 307672c4136a..765d71f6bf80 100644
--- a/vcl/source/gdi/outdev4.cxx
+++ b/vcl/source/gdi/outdev4.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: outdev4.cxx,v $
*
- * $Revision: 1.13 $
+ * $Revision: 1.14 $
*
- * last change: $Author: hr $ $Date: 2003-03-27 17:58:00 $
+ * last change: $Author: kz $ $Date: 2003-08-25 13:53:57 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -117,6 +117,8 @@
#include <outdev.hxx>
#endif
+#include "pdfwriter_impl.hxx"
+
// -----------
// - Defines -
// -----------
@@ -1483,10 +1485,16 @@ void OutputDevice::ImplDrawHatchLine( const Line& rLine, const PolyPolygon& rPol
#ifndef REMOTE_APPSERVER
for( long i = 0; i < nPCounter; i += 2 )
{
- const Point aPt1( ImplLogicToDevicePixel( pPtBuffer[ i ] ) );
- const Point aPt2( ImplLogicToDevicePixel( pPtBuffer[ i + 1 ] ) );
-
- mpGraphics->DrawLine( aPt1.X(), aPt1.Y(), aPt2.X(), aPt2.Y(), this );
+ if( mpPDFWriter )
+ {
+ mpPDFWriter->drawLine( pPtBuffer[ i ], pPtBuffer[ i+1 ] );
+ }
+ else
+ {
+ const Point aPt1( ImplLogicToDevicePixel( pPtBuffer[ i ] ) );
+ const Point aPt2( ImplLogicToDevicePixel( pPtBuffer[ i + 1 ] ) );
+ mpGraphics->DrawLine( aPt1.X(), aPt1.Y(), aPt2.X(), aPt2.Y(), this );
+ }
}
#endif
}