Bug 56695

Summary: Writer doesn't save new page styles permanently
Product: LibreOffice Reporter: Lew <lg7896-libre>
Component: WriterAssignee: Not Assigned <libreoffice-bugs>
Status: RESOLVED NOTABUG QA Contact:
Severity: normal    
Priority: medium    
Version: 3.6.1.2 release   
Hardware: Other   
OS: Windows (All)   
Whiteboard:
i915 platform: i915 features:

Description Lew 2012-11-02 20:22:34 UTC
From Styles and Formatting icon (F11)
In the styles box, click on the icon for Page Styles (4th one)
Right click anywhere in the styles box
Choose "New" (only option)
Enter a name and change margins, etc.
Click Apply
Click OK

new name appears in my All list
applies to current document ok by double clicking

Exit the styles box with upper right red X

Reopen styles and formatting
new name still appears in my All list
change to a new style and change it back by double clicking
applies to current document ok 

Close LO -- do NOT SAVE the document
Reopen LO
new name does NOT appear in my All list

IF I SAVE THE FILE IN WHICH I CREATED THE NEW STYLE,
the new style appears in my All list ONLY in that file, 
not in new files. It is not available for any other file.
Comment 1 Lew 2012-11-02 21:17:52 UTC
AOO does the same thing.  In their bugzilla (2002), they specify that new styles have to be saved in templates.

I don't see this in the documentation about styles.  It would be best if if were included and prominent.  

I had created and applied a new default template a while ago, but I couldn't remember how to modify it.  For anyone in the same situation, to find the default *.ott template, click on:
- File/Templates/Edit 
      or 
- File/Templates/Organize
- double click My Templates
- right click on the template name

Once you're in the *.ott file, add the new styles and save the *.ott file.  The new styles will be available for use in new and existing *.odt files.

When opening an old *.odt file that was created with a previous default template, LO will ask if you want to keep the old ones or update the styles.  

If you say to update them, your new styles will be added to what's in your old *.odt file. If you save your old *.odt file, the new styles will stay with it, and LO will not have to ask about updating again (unless you update the default template again before you open your old *.odt file).  

If you say to update the styles and then exit your old *.odt file *without* saving it, the next time you open your old *.odt file, LO will ask again if you want to update.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.