Alan Yaniger wrote:
If I have a given ScBaseCell object, I want to set the justification based on its text. I know that I can get the text through GetStringData(). But how can I change the justification setting of that cell?

The alignment attribute is part of the cell attributes that are stored for cell ranges within a column in the ScAttrArray class.

But if you want to dynamically change the alignment based on content, including formula results, it's probably better to extend the handling of "default" alignment that currently aligns text left, numbers right. Look for occurences of SVX_HOR_JUSTIFY_STANDARD, especially in sc/source/ui/view/output2.cxx, which has the code for text output.

If you have further questions, we should take this to the [email protected] list.

Niklas

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to