diff options
Diffstat (limited to 'drawinglayer/source/tools/emfppen.hxx')
-rw-r--r-- | drawinglayer/source/tools/emfppen.hxx | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/drawinglayer/source/tools/emfppen.hxx b/drawinglayer/source/tools/emfppen.hxx index 05b2fc376d7d..31812c8b0c0e 100644 --- a/drawinglayer/source/tools/emfppen.hxx +++ b/drawinglayer/source/tools/emfppen.hxx @@ -19,6 +19,7 @@ #pragma once +#include <drawinglayer/attribute/strokeattribute.hxx> #include "emfpbrush.hxx" #include <vector> @@ -26,6 +27,7 @@ namespace emfplushelper { const sal_uInt32 EmfPlusLineCapTypeSquare = 0x00000001; const sal_uInt32 EmfPlusLineCapTypeRound = 0x00000002; + const sal_uInt32 EmfPlusLineCapTypeTriangle = 0x00000003; const sal_uInt32 EmfPlusLineJoinTypeMiter = 0x00000000; const sal_uInt32 EmfPlusLineJoinTypeBevel = 0x00000001; @@ -102,17 +104,17 @@ namespace emfplushelper float penWidth; sal_Int32 startCap; sal_Int32 endCap; - sal_Int32 lineJoin; - float miterLimit; + basegfx::B2DLineJoin maLineJoin; + double fMiterMinimumAngle; sal_Int32 dashStyle; sal_Int32 dashCap; float dashOffset; std::vector<float> dashPattern; sal_Int32 alignment; std::vector<float> compoundArray; - sal_Int32 customStartCapLen; + sal_uInt32 customStartCapLen; std::unique_ptr<EMFPCustomLineCap> customStartCap; - sal_Int32 customEndCapLen; + sal_uInt32 customEndCapLen; std::unique_ptr<EMFPCustomLineCap> customEndCap; EMFPPen(); @@ -121,8 +123,7 @@ namespace emfplushelper void Read(SvStream& s, EmfPlusHelperData const & rR); - static sal_Int8 lcl_convertStrokeCap(sal_uInt32 nEmfStroke); - static sal_Int8 lcl_convertLineJoinType(sal_uInt32 nEmfLineJoin); + drawinglayer::attribute::StrokeAttribute GetStrokeAttribute(const double aTransformation) const; }; } |