Difference between revisions of "Documentation/OOoAuthors User Manual/Writer Guide/Editing a template"
From Apache OpenOffice Wiki
(6 intermediate revisions by 3 users not shown) | |||
Line 22: | Line 22: | ||
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 OOo. | 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 OOo. | ||
− | {{ | + | {{Warn|If you choose '''No''' in the message box shown above, 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. |
− | + | You can also use the [[Documentation/OOo3_User_Guides/Writer_Guide/Using_extensions|Template Changer extension]] to reactivate the template.}} | |
− | To re-enable updating from a template: | + | |
+ | {{Note|To re-enable updating from a template: | ||
<ol> | <ol> | ||
− | <li>Use '''Tools > Macros > Organize Macros > OpenOffice.org Basic'''. Select the document from the list, click the +, and select Standard. If Standard has | + | <li>Use '''Tools > Macros > Organize Macros > OpenOffice.org 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.</li> |
− | <li> | + | <li>If the '''Edit''' button is active, click it. If the Edit button is not active, click '''New'''.</li> |
<li>In the Basic window, enter the following:</li> | <li>In the Basic window, enter the following:</li> | ||
− | < | + | <source lang="oobas"> |
− | Sub | + | Sub FixDocV3 |
− | + | ' set UpdateFromTemplate | |
− | + | oDocSettings = ThisComponent.createInstance( "com.sun.star.document.Settings" ) | |
− | + | oDocSettings.UpdateFromTemplate = True | |
− | + | End Sub 'FixDocV3 | |
− | End Sub | + | </source> |
− | </ | ||
<li>Click the '''Run BASIC''' icon, then close the Basic window.</li> | <li>Click the '''Run BASIC''' icon, then close the Basic window.</li> | ||
<li>Save the document.</li> | <li>Save the document.</li> | ||
</ol> | </ol> | ||
− | Next time when you open this document you will have the update from template feature back. | + | Next time when you open this document you will have the update from template feature back.}} |
{{Manual}} | {{Manual}} | ||
+ | [[Category: Writer Guide (Documentation)]] |
Latest revision as of 06:45, 12 July 2018
< {{#switch:Previous Page | Previous Section = Previous Section | Next Section = Next Section | Previous Page = Previous Page | Next Page = Next Page | }} | {{#switch:Next Page | Previous Section = Previous Section | Next Section = Next Section | Previous Page = Previous Page | Next Page = Next Page | }} > |
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 that you can only reapply styles. You cannot reapply content.)
To edit a template:
- From the main menu, choose File > Templates > Organize. The Template Management dialog opens.
- In the box on the left, double-click the folder that contains the template that you want to edit. A list of all the templates contained in that folder appears underneath the folder name.
- Click the template that you want to edit.
- Click the Commands button.
- From the drop-down menu, choose Edit. The Template Management dialog closes and the selected template opens.
- 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.
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 OOo.
If you choose No in the message box shown above, 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.
You can also use the Template Changer extension to reactivate the template. |
Content on this page is licensed under the Creative Common Attribution 3.0 license (CC-BY). |