JiaXiang Liu wrote, On 12/10/09 04:28:

> Hi, Malte
> 
> Do you mean I should modifiy the code like this:in the loop of (nLine <
> nLines )
> 
>      sal_uInt16 nAscent, nDescent;
>       FontMetric aMetric( pRefDev->GetFontMetric() );
>       nAscent = (sal_uInt16)aMetric.GetAscent();
> 
>      aTmpPos.X() += pLine->GetStartPosX();
>      aTmpPos.Y() += nAscent;
>      ... ... ...

.X() was already manipulated previously.
.Y() also, to match baseline

So you only need to make manipulatation here for non baseline modes.

> 
> I tried but in non-edit mode they can only change the line location but not
> the character location.
> 
> It is still can not set align in non-edit mode.
> 
> can you give me some test code to implement the alignment setting in
> non-edit mode?I really have no idea.

Sorry, but I work on other stuff currently...

> 
> LiuTao

Malte.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to