Alan Yaniger wrote:
Thanks for your suggestion. I added a function in output2.cxx to extend the default alignment handling, call it when necessary, and it works great. There's still a problem, though. When I edit a field by pressing F2 or clicking on the string in the input window, the alignment of the cell temporarily reverts to the old default alignment. Alignment of the input window is OK, the only problem is the alignment of the cell. When the editing is done, the cell is refreshed properly, but during the editing the text suddenly gets realigned. How can I prevent this?
That is handled in ScInputHandler::UpdateAdjust in sc/source/ui/app/inputhdl.cxx.
Another related question: I still have a problem when I import Excel documents with text direction set as "Context". Here also I have to make the setting based on the text content, but this time it's the text direction setting, and it's only with imported Excel documents. How could I handle that problem?
There's more to that, see issue 37905. We don't have a setting "depend on content" (which is what Excel's "Context" does). Adding that choice to the text direction requires quite a lot of changes. If it's just for imported Excel files, one might go through the file after importing and apply "Right-to-left" attributes where needed. Not a perfect solution, but maybe good enough.
Niklas --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
