#98281# Bidi - line numbering

This commit is contained in:
Frank Meies 2002-06-20 11:38:34 +00:00
parent 7b1403df80
commit 8362ae2ac2

View file

@ -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