1cdf0e10cSrcweir<?xml version="1.0" encoding="UTF-8"?>
2cdf0e10cSrcweir
3226a8927SAndrew Rist<!--***********************************************************
48e9b354dSmseidel *
5226a8927SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one
6226a8927SAndrew Rist * or more contributor license agreements.  See the NOTICE file
7226a8927SAndrew Rist * distributed with this work for additional information
8226a8927SAndrew Rist * regarding copyright ownership.  The ASF licenses this file
9226a8927SAndrew Rist * to you under the Apache License, Version 2.0 (the
10226a8927SAndrew Rist * "License"); you may not use this file except in compliance
11226a8927SAndrew Rist * with the License.  You may obtain a copy of the License at
128e9b354dSmseidel *
13226a8927SAndrew Rist *   http://www.apache.org/licenses/LICENSE-2.0
148e9b354dSmseidel *
15226a8927SAndrew Rist * Unless required by applicable law or agreed to in writing,
16226a8927SAndrew Rist * software distributed under the License is distributed on an
17226a8927SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
18226a8927SAndrew Rist * KIND, either express or implied.  See the License for the
19226a8927SAndrew Rist * specific language governing permissions and limitations
20226a8927SAndrew Rist * under the License.
218e9b354dSmseidel *
22226a8927SAndrew Rist ***********************************************************-->
23226a8927SAndrew Rist
248e9b354dSmseidel<helpdocument version="1.0">
25cdf0e10cSrcweir<meta>
26cdf0e10cSrcweir<topic id="textsharedguidestandard_templatexml" indexer="include" status="PUBLISH">
27cdf0e10cSrcweir<title id="tit" xml-lang="en-US">Changing Default Templates</title>
28cdf0e10cSrcweir<filename>/text/shared/guide/standard_template.xhp</filename>
29cdf0e10cSrcweir</topic>
30cdf0e10cSrcweir</meta>
31cdf0e10cSrcweir<body>
3282a98929Smseidel<bookmark xml-lang="en-US" branch="index" id="bm_id3154285">
3382a98929Smseidel<bookmark_value>modifying, see changing</bookmark_value>
34cdf0e10cSrcweir<bookmark_value>changing, see also editing and replacing</bookmark_value>
35cdf0e10cSrcweir<bookmark_value>default templates; changing</bookmark_value>
36cdf0e10cSrcweir<bookmark_value>defaults;documents</bookmark_value>
37cdf0e10cSrcweir<bookmark_value>custom templates</bookmark_value>
38cdf0e10cSrcweir<bookmark_value>updating; templates</bookmark_value>
39cdf0e10cSrcweir<bookmark_value>editing;templates</bookmark_value>
40cdf0e10cSrcweir<bookmark_value>templates;editing and saving</bookmark_value>
41cdf0e10cSrcweir<bookmark_value>saving;templates</bookmark_value>
42cdf0e10cSrcweir<bookmark_value>resetting;templates</bookmark_value>
4382a98929Smseidel</bookmark><comment>MW deleted "changing;"</comment>
4482a98929Smseidel<paragraph role="heading" id="hd_id3154285" xml-lang="en-US" level="1" l10n="U" oldref="36"><variable id="standard_template"><link href="text/shared/guide/standard_template.xhp" name="Changing Default Templates">Changing Default Templates</link>
45cdf0e10cSrcweir</variable></paragraph>
46cdf0e10cSrcweir<section id="text">
47cdf0e10cSrcweir<paragraph role="paragraph" id="par_id3152811" xml-lang="en-US" l10n="U" oldref="2">When you open a new document with <emph>File - New</emph>, a blank document appears based on a $[officename] template. You can edit, modify, or replace this template so that the new document contains your customized Styles or other contents.</paragraph>
48cdf0e10cSrcweir<paragraph role="heading" id="hd_id3150792" xml-lang="en-US" level="2" l10n="U" oldref="3">Modifying Default Templates</paragraph>
49cdf0e10cSrcweir<list type="unordered">
50cdf0e10cSrcweir<listitem>
51cdf0e10cSrcweir<paragraph role="listitem" id="par_id3154365" xml-lang="en-US" l10n="U" oldref="4">First, open either an existing $[officename] template and modify it, or open a new document and edit it as necessary to create the desired template.</paragraph>
52cdf0e10cSrcweir</listitem>
53cdf0e10cSrcweir</list>
54cdf0e10cSrcweir<paragraph role="note" id="par_id3159152" xml-lang="en-US" l10n="U" oldref="6">You can define a document template for each $[officename] module. The following describes how to proceed for text documents.</paragraph>
55cdf0e10cSrcweir<list type="ordered">
56cdf0e10cSrcweir<listitem>
57cdf0e10cSrcweir<paragraph role="paragraph" id="par_id3145748" xml-lang="en-US" l10n="U" oldref="8">Save the document by choosing<emph> File</emph> -<emph> Templates - Save </emph>and saving the document in the <emph>My Templates</emph> category.</paragraph>
58cdf0e10cSrcweir</listitem>
59cdf0e10cSrcweir<listitem>
60cdf0e10cSrcweir<paragraph role="paragraph" id="par_id3154011" xml-lang="en-US" l10n="U" oldref="9">Choose <emph>File - Templates - Organize</emph>.</paragraph>
61cdf0e10cSrcweir</listitem>
62cdf0e10cSrcweir<listitem>
63cdf0e10cSrcweir<paragraph role="paragraph" id="par_id3145799" xml-lang="en-US" l10n="CHG" oldref="11">Double-click <emph>My Templates</emph> in the list on the left. You will see the user-defined templates in the user directory specified under <emph><switchinline select="sys"><caseinline select="MAC">%PRODUCTNAME - Preferences</caseinline><defaultinline>Tools - Options</defaultinline></switchinline> - %PRODUCTNAME - Paths</emph>. Select the template you have just saved and open the context menu or open the submenu of the <emph>Commands</emph> button.</paragraph>
64cdf0e10cSrcweir</listitem>
65cdf0e10cSrcweir<listitem>
66cdf0e10cSrcweir<paragraph role="paragraph" id="par_id3146901" xml-lang="en-US" l10n="U" oldref="26">Choose <emph>Set As Default Template</emph>. The next time you open a new text document, the new document will be based on the new default template.</paragraph>
67cdf0e10cSrcweir</listitem>
68cdf0e10cSrcweir</list>
69cdf0e10cSrcweir<paragraph role="heading" id="hd_id3153947" xml-lang="en-US" level="2" l10n="U" oldref="27">Resetting Default Templates</paragraph>
70cdf0e10cSrcweir<paragraph role="paragraph" id="par_id3156276" xml-lang="en-US" l10n="U" oldref="12">To reset the modified text template to the original default template:</paragraph>
71cdf0e10cSrcweir<list type="ordered">
72cdf0e10cSrcweir<listitem>
73cdf0e10cSrcweir<paragraph role="listitem" id="par_id3146792" xml-lang="en-US" l10n="U" oldref="29">Choose <emph>File - Templates - Organize</emph>.</paragraph>
74cdf0e10cSrcweir</listitem>
75cdf0e10cSrcweir<listitem>
76cdf0e10cSrcweir<paragraph role="listitem" id="par_id3153714" xml-lang="en-US" l10n="U" oldref="32">Open the context menu and choose <emph>Reset default template</emph>. In the submenu, select the document type whose default setting you want to restore. Thereafter, when you open an empty text document, it will again correspond to the $[officename] default template for text documents.</paragraph>
77cdf0e10cSrcweir</listitem>
78cdf0e10cSrcweir</list>
79cdf0e10cSrcweir<paragraph role="heading" id="hd_id3153764" xml-lang="en-US" level="2" l10n="U" oldref="13">Using Custom Templates</paragraph>
80*fc4ee8aaSmseidel<paragraph role="paragraph" id="par_id3150386" xml-lang="en-US" l10n="CHG" oldref="14">There are several ways to make your work easier by using your own custom templates.</paragraph>
81cdf0e10cSrcweir<paragraph role="heading" id="hd_id3149109" xml-lang="en-US" level="3" l10n="U" oldref="15">Templates in the Template Folder</paragraph>
82cdf0e10cSrcweir<paragraph role="paragraph" id="par_id3146918" xml-lang="en-US" l10n="CHG" oldref="16">You can save a new template with <emph>File - Templates - Save</emph> or by selecting "Template" file type in any Save dialog. Save the template in the user directory specified under <emph><switchinline select="sys"><caseinline select="MAC">%PRODUCTNAME - Preferences</caseinline><defaultinline>Tools - Options</defaultinline></switchinline> - %PRODUCTNAME - Paths</emph> to be able to access the template from within the <emph>File - New - From Templates and Documents</emph> dialog.</paragraph>
83cdf0e10cSrcweir<paragraph role="tip" id="par_id3155960" xml-lang="en-US" l10n="U" oldref="33">You may need to update the view of the templates in the dialog before you can see a newly created template. In this case, choose <emph>File - Templates - Organize</emph> and in the submenu of the <emph>Commands</emph> button, choose <emph>Update</emph>.</paragraph>
84cdf0e10cSrcweir<paragraph role="paragraph" id="par_id3147343" xml-lang="en-US" l10n="U" oldref="17">To open the template for editing, choose <emph>File - Templates - Edit</emph>.</paragraph>
85cdf0e10cSrcweir</section>
86cdf0e10cSrcweir<section id="relatedtopics">
87cdf0e10cSrcweir<paragraph role="paragraph" id="par_id3147315" xml-lang="en-US" l10n="U" oldref="37"><link href="text/shared/01/01110000.xhp" name="Templates">Templates</link></paragraph>
88cdf0e10cSrcweir<switch select="appl">
89cdf0e10cSrcweir<case select="WRITER"><embed href="text/swriter/guide/template_default.xhp#template_default"/>
90cdf0e10cSrcweir</case>
91cdf0e10cSrcweir</switch></section>
92cdf0e10cSrcweir</body>
93cdf0e10cSrcweir</helpdocument>
94