Apache OpenOffice (AOO) Bugzilla – Full Text Issue Listing |
Summary: | Table style is lost when import PPTX by AOO | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | Impress | Reporter: | Ma Bingbing <jiazema> | ||||||||
Component: | open-import | Assignee: | WangZhe <kingwisemmx> | ||||||||
Status: | CLOSED FIXED | QA Contact: | |||||||||
Severity: | Normal | ||||||||||
Priority: | P3 | CC: | doneyourself, kingwisemmx, louqingle | ||||||||
Version: | 4.0.0-dev | ||||||||||
Target Milestone: | 4.0.0 | ||||||||||
Hardware: | All | ||||||||||
OS: | All | ||||||||||
Issue Type: | DEFECT | Latest Confirmation in: | --- | ||||||||
Developer Difficulty: | --- | ||||||||||
Attachments: |
|
Description
Ma Bingbing
2012-08-27 08:11:30 UTC
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 |