Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

OpenOffice Writer User Guide
Previous Page Home Next Page

Editing a template

You can edit a template’s styles and content, and then, if you wish, you can reapply the template’s styles to documents that were created from that template.

Note

You can only reapply styles. You cannot reapply content.

To edit a template:

  1. From the main menu, choose File > Templates > Organize. The Template Management window opens (see Figure 260).

Frame227

  1. In the box on the left, double-click the folder containing the template that you want to edit. A list of all the templates contained in that folder appears underneath the folder name.

  2. Click the template that you want to edit.

  3. Click the Commands button.

  4. From the drop-down menu, choose Edit. The Template Management window closes and the selected template opens in Writer.

  5. Edit the template just as you would any other document. To save your changes, choose File > Save from the main menu.

The next time that you open a document that was created from the changed template, the following message appears.

Frame414

Click Yes to apply the template’s changed styles to the document. Click No if you do not want to apply the template’s changed styles to the document. Whichever option you choose, the message box closes and the document opens in Writer.

Note

Automatic updating from a template did not work in OOo2.0.2. This bug was fixed in OOo 2.0.3. To re-enable updating in files created using OOo 2.0.2:

  1. Use Tools > Macros > Organize Macros > OpenOffice.org Basic. Select the document from the list, click the +, and select Standard. If Standard has a + beside it, click that and select a module.

  2. Name the macro. For example, you could call it FixDocument. If the Edit button is active, click it. If the Edit button is not active, click New, type a module name in the pop-up dialog, and click OK.

  3. In the Basic window, enter the following:

Sub FixDocument

TemplateName = ThisComponent.DocumentInfo.Template

if TemplateName <> "" then

ThisComponent.DocumentInfo.Template = TemplateName

end if

End Sub

  1. Click the Run BASIC icon, then close the Basic window.

  2. Save the document.

Next time when you open this document you will have the update from template feature back.

OpenOffice Writer User Guide
Previous Page Home Next Page

 
 
  Published under the terms of the Open Publication License Design by Interspire