summaryrefslogtreecommitdiff
path: root/include
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
parentc04cff6e12b83d47dec4bc7cf86049fe2ba8ff6c (diff)
Pass scaling to borderline primitive objects.
This will be used when generating line patterns. Change-Id: I2fa0298bd3e34df1cb304d9be41e471835484d83
Diffstat (limited to 'include')
-rw-r--r--include/drawinglayer/primitive2d/borderlineprimitive2d.hxx6
-rw-r--r--include/drawinglayer/primitive2d/clippedborderlineprimitive2d.hxx3
-rw-r--r--include/svx/framelink.hxx2
3 files changed, 9 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;
diff --git a/include/svx/framelink.hxx b/include/svx/framelink.hxx
index ebdc010b69d7..afae83e428e7 100644
--- a/include/svx/framelink.hxx
+++ b/include/svx/framelink.hxx
@@ -127,6 +127,7 @@ public:
inline double Prim() const { return mnPrim; }
inline double Dist() const { return mnDist; }
inline double Secn() const { return mnSecn; }
+ double Scale() const;
inline editeng::SvxBorderStyle Type() const { return mnType; }
/** Returns the total width of this frame style. */
@@ -167,6 +168,7 @@ private:
double mnPrim; /// Width of primary (single, left, or top) line.
double mnDist; /// Distance between primary and secondary line.
double mnSecn; /// Width of secondary (right or bottom) line.
+ double mfScale;
editeng::SvxBorderStyle mnType;
};