Apache OpenOffice (AOO) Bugzilla – Issue 66520
Outline destroyed when pasting text from Word as RTF
Last modified: 2017-05-20 11:18:12 UTC
I just recognized a really serious bug, which is definitely a P1 bug in OpenOffice.org 2.0.2. My girlfriend writes a really big document in Writer. It contains a lot of OLE-objects, pictures (which are linked in most cases) and a lot of styles and formatting. It just reached a size of 13 MB. She saved it a few days ago and reopened it today. Alle the headings are not numbered anymore. They are still declared as "Heading 1", "Heading 2" and outline numbering is activated, but still the numbers are not displayed. I tried to click on the headings and activate the numbering. This works for "Heading 1" but "Heading 2" gets numbered as if it is a "Heading 1". Additionally, the table of contents gets filled by the first lines of the document and not with the headings anymore. Last but not least: the document takes about 3 minutes until it gets openened. I am now trying to rescue the document by copying it step by step to a new empty one. Since the content of the document is confidential I can not append it to this report. I will try to delete all the important contents and append it in the next days, but first I have to rescue all the stuff. I know that this issue report is not very helpful because I cannot identify the issue directly, but I thought reporting it is really necessary.
Ok, it seems as if I managed it to restore everything by copying everything to a new document (but not the table of contents, this had to be regenerated). I think the problem was a pasted part from a Word-document, which disturbed the "style and formatting". The only entry in the table of contents was from that part of the document. Since it seems to be a "inserting of formatted text problem", I think that this issue can be reduced to P2. Can some, who has the privileges, do that?
@parity That sounds like a serious problem, but unfortunately currently I do not see any chance to get that reproducible, so that a developer can search for the reasons. It would be deserving if you could create a short Word document and a short OOo document and a step by step instruction how to reproduce the problem by pasting some contents from the WORD document to the OOo document.
@rainerbielefeld: I just tried to reproduce the problem by starting a small document and pasting the mentioned part of the word document. I am sorry, I cannot reproduce this bug anymore. It happened once and was very unpretty but I cannot attach the big document because it is confidential. But I now recognized that the pasted Word-Document contains "styles and formattings" which are interpreted as "Headings". That's why the table of contents changed. But still it is not clear why all the Heading Enumerations are missing and why no other heading is inserted in the table of contents.
@rainerbielefeld: Ok, now I even have some more informations. By the way: I use the german version of OpenOffice.org. I opened the mentioned document today again and I recognized that in the "styles and formatting" window, there are defined the normal headings (which are called "Ãœberschrift 1", "Ãœberschrift 2", ... in German). But the pasting of the Word-Document declared some additional headings, which are top-level in the hierarchical view. They have the normal English names ("Heading 1", "Heading 2", ...). The Outline numbering option is now only assigned to these (new) headings. And even the table of contents does only recognize these new headings. The normal "Ãœberschrift 1" does not get a number anymore and is not in the table of contents. So I think this issue should be renamed to: "After pasting of a part of a .doc file, outline numbering of Headings is broken". P.S.: The Word Document was opened in OpenOffice.org and pasted from there to the mentioned document.
Created attachment 37209 [details] Here you can see the additional wrong heading styles
As I told before, I cannot attach the whole document. But maybe somebody knows in which .xml file, the style and formatting is saved. So maybe I can unzip the file and attach only that .xml file. If that helps.
I believe a short OOo document containing some original OOo headings, some pasted WORD headings, a table of contents and also the short WORS source document containing only few text and the pasted headings might be helpful. I did a quick test with headings outline numbering for a document with included paragraphs from WORD and was not able to reproduce your problem.
Created attachment 37212 [details] Here is the damaged document containing only some example text
I just attached an example document containing the formatting issue. The Table with XX's was a Word-Document opened in OpenOffice.org Writer 2.0.2 and copyied to this document.
I just attached a document containing this formatting issue. The table with XX's was in a Word-document which was then opened in OpenOffice.org Writer 2.0.2 and from there copyied to this document. It seems to be the source of the issue since it defined some additional headings which make the "normal" headings useless.
Yeah, I can see the problem in the document there. As it looks, the problems happens when pasting text from The Word document into the Writer document. Then, the new styles will be inserted into the Writer document and the settings in Tools.Outline will be scratched. Please attach the mentioned Word document (or send to mru@openoffice.org if it's confidential) so that we can reproduce the issue here.
I have discovered when this happens. I will attach a sample file.
Created attachment 37248 [details] Document to show the outline problem when pasting
MRU->HBRINKM: open the attached document in MS Word, select all and copy to clipboard. In Writer document paste the clipboard content as RTF -> the heading will now have the style "heading x". The are also now present in the outline dialog. We should really get rid of this nasty bug in the future.
set target to 2.x
Hello, will this issue be fixed in the next releases?
according to release status meeting: target 3.x
.
Reset assigne to the default "issues@openoffice.apache.org".