summaryrefslogtreecommitdiff
path: root/include/svtools/ruler.hxx
diff options
context:
space:
mode:
authorTomaž Vajngerl <quikee@gmail.com>2013-09-02 23:25:33 +0200
committerTomaž Vajngerl <quikee@gmail.com>2013-09-03 07:46:44 +0200
commitdda8877b989ebe330315e94523b983a6803e1372 (patch)
treec0c82c8f9fe1dc5315f7de6f8811065fddce1084 /include/svtools/ruler.hxx
parentbe0759283c22d06e8fd7683776866c5abc1bf8f2 (diff)
Ruler: minimal unit 1/16 inch, 1/10 cm, dynamic tick draw, various
- minimal unit for inch is 1/16 and for cm 1/10 (1mm) - additional tick level (now 4 in total) - top and bottom tick in addition to the number (highes tick level) - dynamically draw tick levels depending on the tick gap (should be at least 6 pixel wide) Change-Id: I0598b16e32d19eb1294a2358eacbeb19a70966a2
Diffstat (limited to 'include/svtools/ruler.hxx')
-rw-r--r--include/svtools/ruler.hxx9
1 files changed, 5 insertions, 4 deletions
diff --git a/include/svtools/ruler.hxx b/include/svtools/ruler.hxx
index 97d27fb64028..7bcc67d8c116 100644
--- a/include/svtools/ruler.hxx
+++ b/include/svtools/ruler.hxx
@@ -592,9 +592,10 @@ struct RulerUnitData
{
MapUnit eMapUnit; // MAP_UNIT for calculaion
long nTickUnit; // Unit divider
- long nTick1; // Minimal step
- long nTick2; // Tick half unit
- long nTick3; // Tick whole unit
+ double nTick1; // Minimal step
+ double nTick2; // Tick quarter unit
+ double nTick3; // Tick half unit
+ double nTick4; // Tick whole unit
long n100THMM; // 100mm Unit divider
sal_uInt16 nUnitDigits; // Number of digits
sal_Char aUnitStr[8]; // Unit string
@@ -665,7 +666,7 @@ private:
SVT_DLLPRIVATE void ImplVDrawRect( long nX1, long nY1, long nX2, long nY2 );
SVT_DLLPRIVATE void ImplVDrawText( long nX, long nY, const OUString& rText, long nMin = LONG_MIN, long nMax = LONG_MAX );
- SVT_DLLPRIVATE void ImplDrawTicks( long nMin, long nMax, long nStart, long nCenter );
+ SVT_DLLPRIVATE void ImplDrawTicks( long nMin, long nMax, long nStart, long nVirTop, long nVirBottom );
SVT_DLLPRIVATE void ImplDrawBorders( long nMin, long nMax, long nVirTop, long nVirBottom );
SVT_DLLPRIVATE void ImplDrawIndent( const Polygon& rPoly, sal_uInt16 nStyle, bool bIsHit = false );
SVT_DLLPRIVATE void ImplDrawIndents( long nMin, long nMax, long nVirTop, long nVirBottom );