Operation Manual
2) Navigate to the template that you want to edit. Click once on it to activate the file handling
controls (see Figure 50). Click Edit. The template opens in LibreOffice.
3) Edit the template just as you would any other document. To save your changes, choose
File > Save from the main menu.
Updating a document from a changed template
The next time you open a document that was created from the changed template, the following
message appears.
Figure 53. Update styles message
Click Update Styles to apply the template’s changed styles to the document. Click Keep Old
Styles if you do not want to apply the template’s changed styles to the document (but see the
Caution notice below).
Caution
If you choose Keep Old Styles in the message box shown in Figure 53, that
message will not appear again the next time you open the document after
changing the template it is based on. You will not get another chance to update the
styles from the template, although you can use the macro given in the Note below
to re-enable this feature.
Note
To re-enable updating from a template:
1) Use Tools > Macros > Organize Macros > LibreOffice Basic. Select the
document from the list, click the expansion symbol (+ or triangle), and select
Standard. If Standard has an expansion symbol beside it, click that and select a
module.
2) If the Edit button is active, click it. If the Edit button is not active, click New.
3) In the Basic window, enter the following:
Sub FixDocV3
' set UpdateFromTemplate
oDocSettings = ThisComponent.createInstance( _
"com.sun.star.document.Settings" )
oDocSettings.UpdateFromTemplate = True
End Sub 'FixDocV3
4) Click the Run BASIC icon, then close the Basic window.
5) Save the document.
The next time you open this document, you will be prompted to update the styles
from the modified template.
Adding templates obtained from other sources
You can download templates for LibreOffice from many sources, including the official template
repository at http://templates.libreoffice.org/, and install them on your computer. On other websites
72 | Getting Started with LibreOffice 4.0