# Questions about Text Align feature.

21 messages
12
Open this post in threaded view
|

## Questions about Text Align feature.

Open this post in threaded view
|

## Re: Questions about Text Align feature.

Open this post in threaded view
|

## Re: Questions about Text Align feature.

Open this post in threaded view
|

## Re: Questions about Text Align feature.

Open this post in threaded view
|

## Re: Questions about Text Align feature.

Open this post in threaded view
|

## Re: Questions about Text Align feature.

Open this post in threaded view
|

## Re: Questions about Text Align feature.

Open this post in threaded view
|

## Re: Questions about Text Align feature.

 Hi LiuTao, JiaXiang Liu wrote, On 12/04/09 10:30: > Hello Malte, > > Thank you for your answer. > > What I puzzled now is: > > Why I can not set the new attribute in no edit mode? For redrawing the content, the metrics calculated from the EditEngine are cached somewhere, and the drawing layer uses DrawText() directly, probably also with ALIGN_BASELINE. > > This is the* biggest problem* now and I want to solve it. Can you help > me?you said it may be the drawing layer.but I can not do anything about > that. Armin should know more about this... You might figure out by setting a break point in outliner.cxx aDrawPortionHdl.Call(...). Then you will at least be able to see how the information is collected. You need to record the information about the currently used alignment, and also use that information at the place where the drawtext() is done. > > Do you know Are there somebody in OpenOffice team is developing or will > develop this feature? Don't know / think so. Malte. --------------------------------------------------------------------- To unsubscribe, e-mail: [hidden email] For additional commands, e-mail: [hidden email]
Open this post in threaded view
|

## Re: Questions about Text Align feature.

 Hello Malte, Thank you very much for the information. It is too late today fo me. I will test in Monday morning. if it is not ok, I will also ask Armin for this. Have a nice weekend. With Best Regards, LiuTao 2009/12/4 Malte Timmermann <[hidden email]> > Hi LiuTao, > > JiaXiang Liu wrote, On 12/04/09 10:30: > > Hello Malte, > > > > Thank you for your answer. > > > > What I puzzled now is: > > > > Why I can not set the new attribute in no edit mode? > > For redrawing the content, the metrics calculated from the EditEngine > are cached somewhere, and the drawing layer uses DrawText() directly, > probably also with ALIGN_BASELINE. > > > > > This is the* biggest problem* now and I want to solve it. Can you help > > me?you said it may be the drawing layer.but I can not do anything about > > that. > > Armin should know more about this... > > You might figure out by setting a break point in outliner.cxx > aDrawPortionHdl.Call(...). Then you will at least be able to see how the > information is collected. You need to record the information about the > currently used alignment, and also use that information at the place > where the drawtext() is done. > > > > > Do you know Are there somebody in OpenOffice team is developing or will > > develop this feature? > > Don't know / think so. > > Malte. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [hidden email] > For additional commands, e-mail: [hidden email] > >
Open this post in threaded view
|

## Re: Questions about Text Align feature.

Open this post in threaded view
|

## Re: Questions about Text Align feature.

Open this post in threaded view
|

## Re: Questions about Text Align feature.

Open this post in threaded view
|

## Re: Questions about Text Align feature.

Open this post in threaded view
|

## Re: Questions about Text Align feature.

Open this post in threaded view
|

## Re: Questions about Text Align feature.

Open this post in threaded view
|

## Re: Questions about Text Align feature.

Open this post in threaded view
|

## Re: Questions about Text Align feature.

 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: [hidden email] For additional commands, e-mail: [hidden email]
Open this post in threaded view
|

## Re: Questions about Text Align feature.

Open this post in threaded view
|