Issue 104937

Summary: automatic style of text frames, graphics and embedded objects are not stored.
Product: Writer Reporter: jurf <jurfinke>
Component: formattingAssignee: michael.ruess
Status: CLOSED FIXED QA Contact: issues@sw <issues>
Severity: Trivial    
Priority: P2 CC: cno, issues, jbf.faure
Version: DEV300m57Keywords: regression
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Issue Type: DEFECT Latest Confirmation in: ---
Developer Difficulty: ---
Issue Depends on:    
Issue Blocks: 99999    
Attachments:
Description Flags
ODT file with incorrect output for a text frame: the framed text at the top of the doc had been formatted with the frame style, present in the output doc, called "Sidenote", but loses that applied style in the saved document. none

Description jurf 2009-09-10 01:31:31 UTC
DESCRIPTION:

(bug seen in OOo-Dev_DEV300_m57; OOo-Dev_DEV300_m55 works fine; m56 not tested)

Custom frame or graphics styles, whilst visually correct when created and
applied within OOo, are not correctly saved to ODT (save as DOC is unaffected).

When reopening the ODT file, text that had been formatted with a custom frame
style is now formatted in the default "Frame" style, and images that had been
formatted with a custom graphics style revert to the default "Graphics" style.

The custom styles are still present as document styles, but have not been applied.

This is a showstopper as it silently loses all custom frame and graphics
formatting, and that in OOo's native format.


STEPS TO RECREATE

1. Create a custom frame style or graphics style, with a horizontal position
different to default (for easy visual confirmation).

2. Create a text frame or import an image, and apply the custom style to it.

3. Save, close, and reopen... If the bug is present, the frame or image will
have reverted to its default position, and the applied style will be "Frame" or
"Graphics", not the custom style.


I'm attaching one file showing the incorrect output.
Comment 1 jurf 2009-09-10 01:32:11 UTC
Created attachment 64661 [details]
ODT file with incorrect output for a text frame: the framed text at the top of the doc had been formatted with the frame style, present in the output doc, called "Sidenote", but loses that applied style in the saved document.
Comment 2 michael.ruess 2009-09-10 12:15:36 UTC
MRU->OD: we should treat this as a stopper. It worked in m56.
You just need to create a frame and assign a custom style to it. Save & reload
the document (odt) -> the style is not assigned anymore.
Comment 3 Oliver-Rainer Wittmann 2009-09-10 14:13:28 UTC
Very serious issue.
The automatic styles from text frames, graphics and embedded objects are no
longer exported into the ODF.

This is indeed a stopper for OOo 3.2
Comment 4 Oliver-Rainer Wittmann 2009-09-10 14:17:00 UTC
adjusting summary
Comment 5 Oliver-Rainer Wittmann 2009-09-10 14:32:15 UTC
fixed in cws sw32bf03 - changed file:
/sw/source/core/unocore/unocoll.cxx, rev 276036
Comment 6 michael.ruess 2009-09-14 08:35:43 UTC
*** Issue 104997 has been marked as a duplicate of this issue. ***
Comment 7 michael.ruess 2009-09-14 12:02:59 UTC
*** Issue 105051 has been marked as a duplicate of this issue. ***
Comment 8 cno 2009-09-14 12:12:13 UTC
alreay an idea when sw32bf03 will be integrated?
Comment 9 Oliver-Rainer Wittmann 2009-09-14 15:47:35 UTC
It is planned that I will hand over cws sw32bf03 to QA, namely MRU, tomorrow
morning. Thus, I expect that cws sw32bf03 will be nominated at least at the end
of this week. Then the cws can be integrated. I expect the integration to happen
after the branch off date, but may be the nomination occurs earlier and the cws
will be integrated before branch off date.
Comment 10 Oliver-Rainer Wittmann 2009-09-15 10:11:51 UTC
OD->MRU: Checked in internal installation set of cws sw32bf03 - please verify.
Comment 11 michael.ruess 2009-09-18 11:35:27 UTC
Verified in CWS sw32bf03.
Comment 12 michael.ruess 2009-09-18 12:39:42 UTC
Reopen to mark as verified, not closed.
Comment 13 michael.ruess 2009-09-18 12:41:15 UTC
Reassigned to mru.
Comment 14 michael.ruess 2009-09-18 12:53:40 UTC
Fixed in CWS sw32bf03.
Comment 15 michael.ruess 2009-09-18 12:58:09 UTC
Verified.
Comment 16 michael.ruess 2009-09-21 08:54:45 UTC
*** Issue 105222 has been marked as a duplicate of this issue. ***
Comment 17 michael.ruess 2009-10-07 15:54:22 UTC
Checked in DEV300m60.