From 8362ae2ac21d17fc0608c1edb512e2df6267654d Mon Sep 17 00:00:00 2001 From: Frank Meies Date: Thu, 20 Jun 2002 11:38:34 +0000 Subject: [PATCH] #98281# Bidi - line numbering --- sw/source/core/inc/drawfont.hxx | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/sw/source/core/inc/drawfont.hxx b/sw/source/core/inc/drawfont.hxx index a44af4b569c2..ac1573d0983a 100644 --- a/sw/source/core/inc/drawfont.hxx +++ b/sw/source/core/inc/drawfont.hxx @@ -2,9 +2,9 @@ * * $RCSfile: drawfont.hxx,v $ * - * $Revision: 1.23 $ + * $Revision: 1.24 $ * - * last change: $Author: fme $ $Date: 2002-06-20 09:43:30 $ + * last change: $Author: fme $ $Date: 2002-06-20 12:38:34 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -359,6 +359,11 @@ class SwDrawTextInfo // is right in front of a hole portion or a // fix margin portion. BOOL bSnapToGrid : 1; // Does paragraph snap to grid? +#ifdef BIDI + BOOL bIgnoreFrmRTL : 1; // Paint text as if text has LTR direction, used for + // line numbering +#endif + SwDrawTextInfo(); // nicht zulaessig public: #ifndef PRODUCT @@ -392,7 +397,11 @@ public: { pSh = pS; pOut = &rO; pScriptInfo = pSI; pText = &rSt; nIdx = nI; nLen = nL; nKern = 0; nCompress = 0; nWidth = nW; bBullet = bB; pUnderFnt = 0; bGreyWave = bSpaceStop = +#ifdef BIDI + bSnapToGrid = bIgnoreFrmRTL = FALSE; +#else bSnapToGrid = FALSE; +#endif pFrm = 0; #ifndef PRODUCT @@ -525,6 +534,10 @@ public: return bSnapToGrid; } + BOOL IsIgnoreFrmRTL() const { + return bIgnoreFrmRTL; + } + void SetOut( OutputDevice &rNew ){ pOut = &rNew; #ifndef PRODUCT bOut = TRUE; @@ -657,6 +670,10 @@ public: void SetSpaceStop( BOOL bNew ) { bSpaceStop = bNew; } void SetSnapToGrid( BOOL bNew ) { bSnapToGrid = bNew; } +#ifdef BIDI + void SetIgnoreFrmRTL( BOOL bNew ) { bIgnoreFrmRTL = bNew; } +#endif + void Shift( USHORT nDir ); // sets a new color at the output device if necessary