---- Reported by lassi.ta.nieminen@nokia.com 2009-10-28 10:51:54 +0200 ---- Created an attachment msword 2007 test document to be opened in kword SOFTWARE VERSION: Kubuntu 9.04 Koffice (svn version 1037805) Test document (MS Word 2007): mw07_hidden_text.docx STEPS LEADING TO THE PROBLEM: 1. Open the attached document in MSOffice 2007. 2. Open the same document in KOffice. 3. Check for the hidden text in the first page of the document. EXPECTED OUTCOME: Kword should not show the hidden text. see attachment hidden_text_msword_2007.PNG ACTUAL OUTCOME: Kword is showing the hidden text in the first page of the document. see attachment hidden_text_svn_1037805.PNG Note: OpenOffice does not show hidden text. FREQUENCY: Always ---- Additional Comments From lassi.ta.nieminen@nokia.com 2009-10-28 10:54:04 +0200 ---- Created an attachment screenshot of the document in kword ---- Additional Comments From lassi.ta.nieminen@nokia.com 2009-10-28 10:54:29 +0200 ---- Created an attachment screenshot of the document in msword ---- Additional Comments From lassi.ta.nieminen@nokia.com 2010-02-25 15:40:45 +0200 ---- Changing severity to enhancement ---- Additional Comments From lassi.ta.nieminen@nokia.com 2010-03-10 12:53:39 +0200 ---- Moving to Community sub component --- Bug imported by faure@kde.org 2010-05-28 03:11 --- This bug was previously known as _bug_ 144505. Imported an attachment (id=44908) Imported an attachment (id=44909) Imported an attachment (id=44910) Unknown bug field "example" encountered while moving bug <example>2010-03-10 12:53:39</example> Unknown Component Community Using default product and component set in Parameters
The filter is fine text:display="none", tested with LO. Proper support of the text:display attribute is required.
Git commit 838ba003218b92092a6344f01456651584a022e6 by Matus Uzak. Committed on 30/03/2012 at 15:14. Pushed by uzak into branch 'master'. docx: Added a workaround until text:display="none" support. According to MSWord 2007: - Ignoring text:span elements with text:display="none" in the TextStyle. - Ignoring text:a elements containing only hidden text:span elements. - Ignoring empty text:p elements with text:display="none" in text-properties of the paragraph mark. TODO: If the content of a list-item is hidden, then content of the first NOT hidden paragraph replaces it. From the implementation point of view that paragraph inherits list related properties. M +36 -13 filters/words/docx/DocxXmlDocumentReader.cpp http://commits.kde.org/calligra/838ba003218b92092a6344f01456651584a022e6