Created attachment 172817 [details]
Example file from Calc
Attached file contains shapes with text, after changing the text anchor point in the Text box properties.
After saving to XLSX and reloading the horizontally Left aligned texts become Center aligned.
Steps to reproduce:
1. Open attached file
2. Save as XLSX, reload.
The horizontally left aligned texts become horizontally centered.
The horizontally right aligned texts also become horizontally centered, but this alignment layout is not supported by Excel, so this is fine.
The horizontally left aligned texts stay horizontally left.
Version: 126.96.36.199.alpha1+ (x64) / LibreOffice Community
Build ID: 239b4bb27fd8db26e8416045b3015688a8b1b0ae
CPU threads: 4; OS: Windows 10.0 Build 18363; UI render: default; VCL: win
Locale: en-US (hu_HU); UI: en-US
Also in 6.0, 5.0, 4.0.
Created attachment 172818 [details]
The original file saved by Calc
Created attachment 172819 [details]
Screenshot of the original and exported document side by side in Excel and Calc
The problem is, that OOXML does not have attributes or elements which would correspond to the settings possible in ODF.
You can find some explanations on https://wiki.documentfoundation.org/Documentation/Text_in_Custom_Shapes
In general you need to be very cautious not to mix up the anchor of the text box with the paragraph alignment.
You can try to simulate the ODF rendering in OOXML somehow. But without additional information in the file, you will not be able to recreate the original settings on reopening.
We might use the extension mechanism of OOXML to put information about the ODF attributes into the OOXML file.
The problem itself is not specific to Calc. I think, we should make sure, that OOXML filters in Calc and Impress/Draw treat text in shapes the same way. [Writer is different because of the frame bound to custom shapes.]
I set status to 'new' because the problem exists. But there might be duplicates; I have not searched yet.
Created attachment 173221 [details]
spreadsheet with possibilities in OOXML
The spreadsheets shows the possibilities of OOXML. The examples have 'Wrap text in shape' disabled and 'Allow text to overflow shape' enabled. Otherwise you cannot examine the overflow behavior of the textbox.
This is all in latin LTR writing mode. RTL or east asian might have additional or different problems.
Dear NISZ LibreOffice Team,
To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year.
There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present.
If you have time, please do the following:
Test to see if the bug is still present with the latest version of LibreOffice from https://www.libreoffice.org/download/
If the bug is present, please leave a comment that includes the information from Help - About LibreOffice.
If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a comment that includes the information from Help - About LibreOffice.
Please DO NOT
Update the version field
Reply via email (please reply directly on the bug tracker)
Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not
appropriate in this case)
If you want to do more to help you can test to see if your issue is a REGRESSION. To do so:
1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) from https://downloadarchive.documentfoundation.org/libreoffice/old/
2. Test your bug
3. Leave a comment with your results.
4a. If the bug was present with 3.3 - set version to 'inherited from OOo';
4b. If the bug was not present in 3.3 - add 'regression' to keyword
Feel free to come ask questions or to say hello in our QA chat: https://web.libera.chat/?settings=#libreoffice-qa
Thank you for helping us make LibreOffice even better for everyone!