Editing Default Styles and Using Templates

From NeoWiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 23:21, 20 May 2005 (edit)
Ovvldc ( | contribs)
(Setting the Default Style, Layout and Styles Available in New Documents)
← Previous diff
Revision as of 05:39, 21 May 2005 (edit) (undo)
Sardisson (Talk | contribs)
m (note OOo template dir location, since this page is referenced by both; do a bit of NeoWiki Syle Guide formatting cleanup)
Next diff →
Line 13: Line 13:
*Styles *Styles
*Languages *Languages
-*Any required metadata ''(File -> Properties)''+*Any required metadata ''('''File''' -> '''Properties''')''
*''etc.'' *''etc.''
You can easily build a template by opening a new document and setting all the defaults you want. For default fonts, be sure to set the font in the ''standard'' style, from which nearly all other styles are derived. You can easily build a template by opening a new document and setting all the defaults you want. For default fonts, be sure to set the font in the ''standard'' style, from which nearly all other styles are derived.
-You should then save it via the File -> Templates -> Save dialogue. It should now be located in this folder: <tt>~/Library/NeoOfficeJ-1.1/user/template/</tt>.+You should then save it via the '''File''' -> '''Templates''' -> '''Save''' dialogue. It should now be located in this folder: <tt>~/Library/NeoOfficeJ-1.1/user/template/</tt>
 +<br>
 +or the equivalent folder for OpenOffice.org, usually
 +<tt>~/Library/Preferences/OpenOffice.org1.1.2/user/template/</tt>
Once you have saved your template do the following: Once you have saved your template do the following:
-* Go to File -> Templates -> Organize+* Go to '''File''' -> '''Templates''' -> '''Organize'''
* Open a folder in the left part of the window if you need to, and select the template * Open a folder in the left part of the window if you need to, and select the template
-* Right-click or control-click or use the 'Commands' button and select 'use as default template'+* Right-click or control-click or use the ''' 'Commands' ''' button and select ''' 'use as default template' '''
== Using Templates in Other Locations == == Using Templates in Other Locations ==
-You can also use files located in other folders or drives if you select File -> Templates -> Organize and use the 'File' button. This enables you to share templates stored on a central server.+You can also use files located in other folders or drives if you select '''File''' -> '''Templates''' -> '''Organize''' and use the ''' 'File' ''' button. This enables you to share templates stored on a central server.
The advantage of using templates in NeoOffice/J and OpenOffice.org is that you will be notified when a template that you have based a document on has been changed. You will be asked if you want to update the document to the new template. If you approve, the new settings will be applied immediately. The advantage of using templates in NeoOffice/J and OpenOffice.org is that you will be notified when a template that you have based a document on has been changed. You will be asked if you want to update the document to the new template. If you approve, the new settings will be applied immediately.
Line 33: Line 36:
''Note: if you do not update a document based on a changed template, the link between the document and template will be broken and you will never be asked again.'' ''Note: if you do not update a document based on a changed template, the link between the document and template will be broken and you will never be asked again.''
-Also note that NeoOffice will not ask you to save templates after editing any document, so you do not run the risk of changing your default templates as with Microsoft Word. You must deliberately edit a template to update it.+Also note that NeoOffice/J will not ask you to save templates after editing any document, so you do not run the risk of changing your default templates as with Microsoft Word. You must deliberately edit a template to update it.
<!-- asxless posts the work-around solution to this issue in the trinity topic: <!-- asxless posts the work-around solution to this issue in the trinity topic:
http://trinity.neooffice.org/modules.php?name=Forums&file=viewtopic&t=389 --> http://trinity.neooffice.org/modules.php?name=Forums&file=viewtopic&t=389 -->

Revision as of 05:39, 21 May 2005

Both OpenOffice.org and NeoOffice/J save styles in individual documents, and any modification of them (or the default document style) is only saved in the document that is active when editing the styles. This is highly impractical for those who want to develop their own consistent look and feel.

The following instructions apply equally to NeoOffice/J and OpenOffice.org

Setting the Default Style, Layout and Styles Available in New Documents

To install a standard style for every new document, you should create and save a template for each component of NeoOffice/J (NeoWriter, NeoCalc and NeoImpress) that you intend to use.

These templates should contain all of the defaults that you want, such as:

  • Default fonts
  • Margins
  • Page sizes/orientations
  • Styles
  • Languages
  • Any required metadata (File -> Properties)
  • etc.

You can easily build a template by opening a new document and setting all the defaults you want. For default fonts, be sure to set the font in the standard style, from which nearly all other styles are derived.

You should then save it via the File -> Templates -> Save dialogue. It should now be located in this folder: ~/Library/NeoOfficeJ-1.1/user/template/
or the equivalent folder for OpenOffice.org, usually ~/Library/Preferences/OpenOffice.org1.1.2/user/template/

Once you have saved your template do the following:

  • Go to File -> Templates -> Organize
  • Open a folder in the left part of the window if you need to, and select the template
  • Right-click or control-click or use the 'Commands' button and select 'use as default template'

Using Templates in Other Locations

You can also use files located in other folders or drives if you select File -> Templates -> Organize and use the 'File' button. This enables you to share templates stored on a central server.

The advantage of using templates in NeoOffice/J and OpenOffice.org is that you will be notified when a template that you have based a document on has been changed. You will be asked if you want to update the document to the new template. If you approve, the new settings will be applied immediately.

Note: if you do not update a document based on a changed template, the link between the document and template will be broken and you will never be asked again.

Also note that NeoOffice/J will not ask you to save templates after editing any document, so you do not run the risk of changing your default templates as with Microsoft Word. You must deliberately edit a template to update it.


Personal tools