summaryrefslogtreecommitdiff
path: root/include/drawinglayer
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@collabora.com>2014-01-15 15:18:37 -0500
committerKohei Yoshida <kohei.yoshida@collabora.com>2014-01-17 11:33:14 -0500
commitf2ff3b10547a7a3f31a8dd885a004e5f4bec1377 (patch)
tree51ff3028e11bd5ad53026b9775666e060b44cd4a /include/drawinglayer
parentc04cff6e12b83d47dec4bc7cf86049fe2ba8ff6c (diff)
Pass scaling to borderline primitive objects.
This will be used when generating line patterns. Change-Id: I2fa0298bd3e34df1cb304d9be41e471835484d83
Diffstat (limited to 'include/drawinglayer')
-rw-r--r--include/drawinglayer/primitive2d/borderlineprimitive2d.hxx6
-rw-r--r--include/drawinglayer/primitive2d/clippedborderlineprimitive2d.hxx3
2 files changed, 7 insertions, 2 deletions
diff --git a/include/drawinglayer/primitive2d/borderlineprimitive2d.hxx b/include/drawinglayer/primitive2d/borderlineprimitive2d.hxx
index 3e85b3a5e845..9726dcd6dd03 100644
--- a/include/drawinglayer/primitive2d/borderlineprimitive2d.hxx
+++ b/include/drawinglayer/primitive2d/borderlineprimitive2d.hxx
@@ -69,6 +69,8 @@ namespace drawinglayer
short mnStyle;
+ double mfPatternScale;
+
/// local helpers
double getWidth(
const geometry::ViewInformation2D& rViewInformation) const;
@@ -111,7 +113,8 @@ namespace drawinglayer
const basegfx::BColor& rRGBColorLeft,
const basegfx::BColor& rRGBColorGap,
bool bHasGapColor,
- const short nStyle );
+ const short nStyle,
+ double fPatternScale = 1.0 );
/// data read access
const basegfx::B2DPoint& getStart() const { return maStart; }
@@ -128,6 +131,7 @@ namespace drawinglayer
const basegfx::BColor& getRGBColorGap () const { return maRGBColorGap; }
bool hasGapColor( ) const { return mbHasGapColor; }
short getStyle () const { return mnStyle; }
+ double getPatternScale() const { return mfPatternScale; }
/// compare operator
virtual bool operator==(const BasePrimitive2D& rPrimitive) const;
diff --git a/include/drawinglayer/primitive2d/clippedborderlineprimitive2d.hxx b/include/drawinglayer/primitive2d/clippedborderlineprimitive2d.hxx
index a2e21948a908..aaa2095fb9d3 100644
--- a/include/drawinglayer/primitive2d/clippedborderlineprimitive2d.hxx
+++ b/include/drawinglayer/primitive2d/clippedborderlineprimitive2d.hxx
@@ -46,7 +46,8 @@ namespace drawinglayer
const basegfx::BColor& rRGBColorLeft,
const basegfx::BColor& rRGBColorGap,
bool bHasGapColor,
- const short nStyle );
+ const short nStyle,
+ double fPatternScale = 1.0 );
/// compare operator
virtual bool operator==(const BasePrimitive2D& rPrimitive) const;