Re: [dev] Calc cell justification

2006-10-24 Thread Niklas Nebel

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 
dev@sc.openoffice.org list.


Niklas

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



[dev] Calc cell justification

2006-10-23 Thread Alan Yaniger

Hi list-members,

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?


Thanks,
Alan

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