Apache OpenOffice (AOO) Bugzilla – Issue 120051
[From Symphony]the text in the table turn to black from white when opening the pptx file
Last modified: 2017-05-20 10:31:48 UTC
Created attachment 78419 [details] Sample pptx has text in table Please see attached file PPTX_43377_NoTransparency.pptx, slide 3, the text in the table turn to black from white.
*** Issue 120054 has been marked as a duplicate of this issue. ***
*** Issue 120053 has been marked as a duplicate of this issue. ***
*** Issue 120052 has been marked as a duplicate of this issue. ***
confirm the bug
1. Root Cause: The text color in table is decided by table style.Refer to tableStyles.xml. <a:wholeTbl> <a:tcTxStyle> <a:schemeClr val="lt1"/> </a:tcTxStyle> </a:wholeTbl> And the lt1 is from theme.xml. <a:lt1> <a:sysClr val="window" lastClr="FFFFFF"/> </a:lt1> 2. Resoltion: In this sample, we need to get char color from tableStyles.xml and keep it to apply on text run.And char color from tableStyles.xml should have higher priority than that from master page.
Created attachment 78425 [details] patch for text color in table from pptx In this sample, the color of text in table is decided by related table style. And this char color from table style has higher priority than that from master page. Thus, patch involves 3 parts: 1. add lcl_getCharPropFromTblStylePart() to get char color from table style, including wholeTbl/firstRow/firstCol/... 2. pass the char color during getTextbody()->insertAt() 3. when combine the char color from table style and master page, keep color from table style if existing.
ALG: Added code, built and checked functionality. Works as expected. Checked the code, makes sense. Review done. Checked in as r1352577, thanks for the patch!
Verified pass on Windows7-64bit, Redhat 32bit,ubutu 10.04 Mac10.7 with AOO trunk r1374181
set Target Milestone to AOO 3.5.0 for PM purpose.