summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorAmelia Wang <amwang@novell.com>2010-09-13 14:42:43 +0200
committerC├ędric Bosdonnat <cedricbosdo@openoffice.org>2010-09-13 15:57:30 +0200
commit07a5627d92719740b5f16fdd8d53926acfffbde6 (patch)
treef1f8e3e7597e55a9b5eb1149e93cda79298efe7a /svtools
parentc85db626029fd8a5e0dfcb312937279df32339a0 (diff)
cjk-character-units-rulers-sync-with-pggrid-fix.diff:
Diffstat (limited to 'svtools')
-rw-r--r--svtools/inc/ruler.hxx2
-rw-r--r--svtools/source/control/ruler.cxx12
2 files changed, 12 insertions, 2 deletions
diff --git a/svtools/inc/ruler.hxx b/svtools/inc/ruler.hxx
index bcf441e5c2d2..3caa9cd6bccd 100644
--- a/svtools/inc/ruler.hxx
+++ b/svtools/inc/ruler.hxx
@@ -876,6 +876,8 @@ public:
void SetCharWidth( long nWidth ) { mnCharWidth = nWidth ; }
void SetLineHeight( long nHeight ) { mnLineHeight = nHeight ; }
+
+ void DrawTicks();
};
#endif // _RULER_HXX
diff --git a/svtools/source/control/ruler.cxx b/svtools/source/control/ruler.cxx
index 9897c96e1672..92c33e988c84 100644
--- a/svtools/source/control/ruler.cxx
+++ b/svtools/source/control/ruler.cxx
@@ -476,14 +476,14 @@ void Ruler::ImplDrawTicks( long nMin, long nMax, long nStart, long nCenter )
long nTick2 ;
if ( mnUnitIndex == RULER_UNIT_CHAR )
{
- nTick3 = mnCharWidth;
+ nTick3 = mnCharWidth*2;
nTickCount = mnCharWidth;
nTickUnit = mnCharWidth;
nTick2 = mnCharWidth;
}
else if ( mnUnitIndex == RULER_UNIT_LINE )
{
- nTick3 = mnLineHeight;
+ nTick3 = mnLineHeight*2;
nTickCount = mnLineHeight;
nTickUnit = mnLineHeight;
nTick2 = mnLineHeight;
@@ -3219,3 +3219,11 @@ const RulerBorder* Ruler::GetBorders() const { return mpData->pBorders; }
USHORT Ruler::GetIndentCount() const { return mpData->nIndents; }
const RulerIndent* Ruler::GetIndents() const { return mpData->pIndents; }
+/* ---------------------------------------------------
+ *
+ * ---------------------------------------------------*/
+void Ruler::DrawTicks()
+{
+ mbFormat = TRUE;
+ ImplDraw();
+}