diff options
author | Cédric Bosdonnat <cedricbosdo@openoffice.org> | 2010-11-06 19:23:59 +0100 |
---|---|---|
committer | Cédric Bosdonnat <cedricbosdo@openoffice.org> | 2011-03-19 17:57:15 +0100 |
commit | 83e1130832dfb5a55b3e8e1cc17bb49dd60a865f (patch) | |
tree | 53ee1be88da1171cd51ceb4c38c52654308d3949 /drawinglayer/inc | |
parent | 718cd07930ee523e9c2943fe8de7a14d296a1a8a (diff) |
Nicely draw borders using drawinglayer
Diffstat (limited to 'drawinglayer/inc')
-rwxr-xr-x | drawinglayer/inc/drawinglayer/primitive2d/borderlineprimitive2d.hxx | 49 |
1 files changed, 29 insertions, 20 deletions
diff --git a/drawinglayer/inc/drawinglayer/primitive2d/borderlineprimitive2d.hxx b/drawinglayer/inc/drawinglayer/primitive2d/borderlineprimitive2d.hxx index 2bc5ba4db08c..12cdbbe21009 100755 --- a/drawinglayer/inc/drawinglayer/primitive2d/borderlineprimitive2d.hxx +++ b/drawinglayer/inc/drawinglayer/primitive2d/borderlineprimitive2d.hxx @@ -32,6 +32,7 @@ #include <drawinglayer/primitive2d/baseprimitive2d.hxx> #include <basegfx/color/bcolor.hxx> #include <basegfx/matrix/b2dhommatrix.hxx> +#include <basegfx/polygon/b2dpolypolygon.hxx> ////////////////////////////////////////////////////////////////////////////// @@ -60,13 +61,17 @@ namespace drawinglayer double mfRightWidth; /// edge overlap sizes - double mfExtendInnerStart; - double mfExtendInnerEnd; - double mfExtendOuterStart; - double mfExtendOuterEnd; + double mfExtendLeftStart; + double mfExtendLeftEnd; + double mfExtendRightStart; + double mfExtendRightEnd; + + /// the line colors + basegfx::BColor maRGBColorRight; + basegfx::BColor maRGBColorLeft; + basegfx::BColor maRGBColorGap; + bool mbHasGapColor; - /// the line color - basegfx::BColor maRGBColor; short mnStyle; /// bitfield @@ -115,6 +120,8 @@ namespace drawinglayer return !basegfx::fTools::equalZero(mfRightWidth); } + basegfx::B2DPolyPolygon getClipPolygon( ) const; + protected: /// create local decomposition virtual Primitive2DSequence create2DDecomposition(const geometry::ViewInformation2D& rViewInformation) const; @@ -127,13 +134,14 @@ namespace drawinglayer double fLeftWidth, double fDistance, double fRightWidth, - double fExtendInnerStart, - double fExtendInnerEnd, - double fExtendOuterStart, - double fExtendOuterEnd, - bool bCreateInside, - bool bCreateOutside, - const basegfx::BColor& rRGBColor, + double fExtendLeftStart, + double fExtendLeftEnd, + double fExtendRightStart, + double fExtendRightEnd, + const basegfx::BColor& rRGBColorRight, + const basegfx::BColor& rRGBColorLeft, + const basegfx::BColor& rRGBColorGap, + bool bHasGapColor, const short nStyle ); /// data read access @@ -142,13 +150,14 @@ namespace drawinglayer double getLeftWidth() const { return mfLeftWidth; } double getDistance() const { return mfDistance; } double getRightWidth() const { return mfRightWidth; } - double getExtendInnerStart() const { return mfExtendInnerStart; } - double getExtendInnerEnd() const { return mfExtendInnerEnd; } - double getExtendOuterStart() const { return mfExtendOuterStart; } - double getExtendOuterEnd() const { return mfExtendOuterEnd; } - bool getCreateInside() const { return mbCreateInside; } - bool getCreateOutside() const { return mbCreateOutside; } - const basegfx::BColor& getRGBColor () const { return maRGBColor; } + double getExtendLeftStart() const { return mfExtendLeftStart; } + double getExtendLeftEnd() const { return mfExtendLeftEnd; } + double getExtendRightStart() const { return mfExtendRightStart; } + double getExtendRightEnd() const { return mfExtendRightEnd; } + const basegfx::BColor& getRGBColorRight () const { return maRGBColorRight; } + const basegfx::BColor& getRGBColorLeft () const { return maRGBColorLeft; } + const basegfx::BColor& getRGBColorGap () const { return maRGBColorGap; } + bool hasGapColor( ) const { return mbHasGapColor; } short getStyle () const { return mnStyle; } /// compare operator |