Apache OpenOffice (AOO) Bugzilla – Issue 120723
Table style is lost when import PPTX by AOO
Last modified: 2013-07-12 10:47:28 UTC
1. launch AOO 2. Open the sample files you will find that the table styles lost
Created attachment 79173 [details] sample file1
Created attachment 79174 [details] sample file2
Root casue When we create table in MS Office 2007 and use one of the predefined styles from UI, and save as .pptx file, then open in AOO, the table styles' content will be saved in tableStyles.xml in the zip package with the unique id. So AOO can show correctly when import the tables. But in this samples, there are no table styles' detailed contents in the tableStyle.xml, but only ID, so we lost the table style information. MS Office 2007 can show the correct table style according to the unique ID only, which is for the predefined table styles in OOXML.
Solution: The ID of table in tablestyle.xml is unique for PPTX predefined table style, and we can use the ID to map the unique style for table. So When AOO import a table in pptx just have the tableStyleId, we will create a the tablestyle's content and then apply them to the table.
There are about 60 predefined table styles in PPTX, but it will cost too much time to create the content of every tablestyle according to the content in tablestyle.xml. And the sample files just includes 3 table styles(Medium2-Accent1, Medium2-Accent2, Medium4-Accent4). Moreover, this sample files aren't common, so we could just create these 3 styles temporarily.
the details of table style, can be seen in following url: http://wiki.openoffice.org/wiki/Table_Style_in_Writerfilter
confirm on AOO350ml 1377620
Created attachment 79230 [details] Fix patch for this issue
I'll take this one
Delivered At revision: 1381863
checked the sample files in build 1404513, pass