主题
#Bug of LibreOffice Writer -- UserDefinedAttributes of Table Cell
There is something wrong with the 'UserDefinedAttributes' of the text table when save as .odt. I write a script of Python to show the bug. Follow by step:
- Put the Python script to {LOROOT}/share/Scripts/python/pythonSamples/TableCellProperty.py
- Open an empty doc on writer.
- Insert table with have 6 cloums.
- Tools->Macros->OrgnizeMacros->Pythons...
- Select LibreOfficeDev Macros, on the pop dialog.
sh
|-pythonSamples
|-TableCellProperty
|-SetPropertyPython- Then GetPropertyPython (for show the atrributes)
- Save file. (There is something wring here ?)
- Open the file.
- GetPropertyPython again, the attribute of the cell('D1', 'E1') changed.
click here to down load the script of Python.


voido of steps:
http://7xjcd4.com1.z0.glb.clouddn.com/lo_bug_cell_attr.mp4
About TableCellProperty.py
functions:
SetPropertyPython: set the cell of A1,B1,C1 property value 'v1'
GetPropertyPython: get the cell UserDefinedAttributes attribte and set the string of the cell with the value.
Resolved
aqcoder committed a patch related to this issue. It has been pushed to "master":
http://cgit.freedesktop.org/libreoffice/core/commit/?id=d3e57ccf2e56a75bd4f004de53793f1742e34bc4
tdf#96412 Fix export text table cell UserDefinedAttributes to xml.
It will be available in 5.2.0.
more visit: https://gerrit.libreoffice.org/#/c/20765/