Hello Malte,Armin
@Malte
I test that.It is so difficult.
I setted a break point in outliner.cxx
aDrawPortionHdl.Call(...).
Then I find the many information is collected but not alignment.
How to record the information about the currently used alignment?
If I should add a Parameter in this area ?
DrawPortionInfo aInfo( rStartPos, rText, nTextStart, nTextLen, rFont,
nPara, nIndex, pDXArray, pWrongSpellVector,
pFieldData, pLocale, rOverlineColor, rTextLineColor,
nRightToLeft, bEndOfLine, bEndOfParagraph, bEndOfBullet);
BTW,
aDrawPortionHdl.Call(...). is called by
void ImpEditEngine::Paint( OutputDevice* pOutDev, Rectangle aClipRec, Point
aStartPos, sal_Bool bStripOnly, short nOrientation )
and the pOutDev saved the alignment.
This area is also not save paragraph adjust.I am so puzzled.
@Armin
Malte told me that you maybe know that I want to know. :-)
the question is :
I am developing a new feature called "fontalign" It can set the text align
top,center,baseline and bottom.
In Impress,Create a new document, input some words in a text box in normal
view.
I can set the alignment successful in edit mode.
but it can not store the setting when left the edit mode.
It is OK in outline view,bucause in outline view it is also in edit mode.
I wish you can help me to solve this problem. Thank you.
With Best Regards,
LiuTao
2009/12/4 JiaXiang Liu <[email protected]>
> 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 <[email protected]>
>
>> 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: [email protected]
>> For additional commands, e-mail: [email protected]
>>
>>
>