1*b1cdbd2cSJim Jagielski<?xml version="1.0" encoding="UTF-8"?> 2*b1cdbd2cSJim Jagielski 3*b1cdbd2cSJim Jagielski 4*b1cdbd2cSJim Jagielski 5*b1cdbd2cSJim Jagielski<!--*********************************************************** 6*b1cdbd2cSJim Jagielski * 7*b1cdbd2cSJim Jagielski * Licensed to the Apache Software Foundation (ASF) under one 8*b1cdbd2cSJim Jagielski * or more contributor license agreements. See the NOTICE file 9*b1cdbd2cSJim Jagielski * distributed with this work for additional information 10*b1cdbd2cSJim Jagielski * regarding copyright ownership. The ASF licenses this file 11*b1cdbd2cSJim Jagielski * to you under the Apache License, Version 2.0 (the 12*b1cdbd2cSJim Jagielski * "License"); you may not use this file except in compliance 13*b1cdbd2cSJim Jagielski * with the License. You may obtain a copy of the License at 14*b1cdbd2cSJim Jagielski * 15*b1cdbd2cSJim Jagielski * http://www.apache.org/licenses/LICENSE-2.0 16*b1cdbd2cSJim Jagielski * 17*b1cdbd2cSJim Jagielski * Unless required by applicable law or agreed to in writing, 18*b1cdbd2cSJim Jagielski * software distributed under the License is distributed on an 19*b1cdbd2cSJim Jagielski * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 20*b1cdbd2cSJim Jagielski * KIND, either express or implied. See the License for the 21*b1cdbd2cSJim Jagielski * specific language governing permissions and limitations 22*b1cdbd2cSJim Jagielski * under the License. 23*b1cdbd2cSJim Jagielski * 24*b1cdbd2cSJim Jagielski ***********************************************************--> 25*b1cdbd2cSJim Jagielski 26*b1cdbd2cSJim Jagielski 27*b1cdbd2cSJim Jagielski 28*b1cdbd2cSJim Jagielski 29*b1cdbd2cSJim Jagielski <helpdocument version="1.0"> 30*b1cdbd2cSJim Jagielski<meta> 31*b1cdbd2cSJim Jagielski<topic id="textsharedguidestandard_templatexml" indexer="include" status="PUBLISH"> 32*b1cdbd2cSJim Jagielski<title id="tit" xml-lang="en-US">Changing Default Templates</title> 33*b1cdbd2cSJim Jagielski<filename>/text/shared/guide/standard_template.xhp</filename> 34*b1cdbd2cSJim Jagielski</topic> 35*b1cdbd2cSJim Jagielski</meta> 36*b1cdbd2cSJim Jagielski<body> 37*b1cdbd2cSJim Jagielski<bookmark xml-lang="en-US" branch="index" id="bm_id3154285"><bookmark_value>modifying, see changing</bookmark_value> 38*b1cdbd2cSJim Jagielski<bookmark_value>changing, see also editing and replacing</bookmark_value> 39*b1cdbd2cSJim Jagielski<bookmark_value>default templates; changing</bookmark_value> 40*b1cdbd2cSJim Jagielski<bookmark_value>defaults;documents</bookmark_value> 41*b1cdbd2cSJim Jagielski<bookmark_value>custom templates</bookmark_value> 42*b1cdbd2cSJim Jagielski<bookmark_value>updating; templates</bookmark_value> 43*b1cdbd2cSJim Jagielski<bookmark_value>editing;templates</bookmark_value> 44*b1cdbd2cSJim Jagielski<bookmark_value>templates;editing and saving</bookmark_value> 45*b1cdbd2cSJim Jagielski<bookmark_value>saving;templates</bookmark_value> 46*b1cdbd2cSJim Jagielski<bookmark_value>resetting;templates</bookmark_value> 47*b1cdbd2cSJim Jagielski</bookmark><comment>MW deleted "changing;"</comment><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> 48*b1cdbd2cSJim Jagielski</variable></paragraph> 49*b1cdbd2cSJim Jagielski<section id="text"> 50*b1cdbd2cSJim Jagielski<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> 51*b1cdbd2cSJim Jagielski<paragraph role="heading" id="hd_id3150792" xml-lang="en-US" level="2" l10n="U" oldref="3">Modifying Default Templates</paragraph> 52*b1cdbd2cSJim Jagielski<list type="unordered"> 53*b1cdbd2cSJim Jagielski<listitem> 54*b1cdbd2cSJim Jagielski<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> 55*b1cdbd2cSJim Jagielski</listitem> 56*b1cdbd2cSJim Jagielski</list> 57*b1cdbd2cSJim Jagielski<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> 58*b1cdbd2cSJim Jagielski<list type="ordered"> 59*b1cdbd2cSJim Jagielski<listitem> 60*b1cdbd2cSJim Jagielski<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> 61*b1cdbd2cSJim Jagielski</listitem> 62*b1cdbd2cSJim Jagielski<listitem> 63*b1cdbd2cSJim Jagielski<paragraph role="paragraph" id="par_id3154011" xml-lang="en-US" l10n="U" oldref="9">Choose <emph>File - Templates - Organize</emph>.</paragraph> 64*b1cdbd2cSJim Jagielski</listitem> 65*b1cdbd2cSJim Jagielski<listitem> 66*b1cdbd2cSJim Jagielski<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> 67*b1cdbd2cSJim Jagielski</listitem> 68*b1cdbd2cSJim Jagielski<listitem> 69*b1cdbd2cSJim Jagielski<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> 70*b1cdbd2cSJim Jagielski</listitem> 71*b1cdbd2cSJim Jagielski</list> 72*b1cdbd2cSJim Jagielski<paragraph role="heading" id="hd_id3153947" xml-lang="en-US" level="2" l10n="U" oldref="27">Resetting Default Templates</paragraph> 73*b1cdbd2cSJim Jagielski<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> 74*b1cdbd2cSJim Jagielski<list type="ordered"> 75*b1cdbd2cSJim Jagielski<listitem> 76*b1cdbd2cSJim Jagielski<paragraph role="listitem" id="par_id3146792" xml-lang="en-US" l10n="U" oldref="29">Choose <emph>File - Templates - Organize</emph>.</paragraph> 77*b1cdbd2cSJim Jagielski</listitem> 78*b1cdbd2cSJim Jagielski<listitem> 79*b1cdbd2cSJim Jagielski<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> 80*b1cdbd2cSJim Jagielski</listitem> 81*b1cdbd2cSJim Jagielski</list> 82*b1cdbd2cSJim Jagielski<paragraph role="heading" id="hd_id3153764" xml-lang="en-US" level="2" l10n="U" oldref="13">Using Custom Templates</paragraph> 83*b1cdbd2cSJim Jagielski<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> 84*b1cdbd2cSJim Jagielski<paragraph role="heading" id="hd_id3149109" xml-lang="en-US" level="3" l10n="U" oldref="15">Templates in the Template Folder</paragraph> 85*b1cdbd2cSJim Jagielski<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> 86*b1cdbd2cSJim Jagielski<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> 87*b1cdbd2cSJim Jagielski<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> 88*b1cdbd2cSJim Jagielski</section> 89*b1cdbd2cSJim Jagielski<section id="relatedtopics"> 90*b1cdbd2cSJim Jagielski<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> 91*b1cdbd2cSJim Jagielski<switch select="appl"> 92*b1cdbd2cSJim Jagielski<case select="WRITER"><embed href="text/swriter/guide/template_default.xhp#template_default"/> 93*b1cdbd2cSJim Jagielski</case> 94*b1cdbd2cSJim Jagielski</switch></section> 95*b1cdbd2cSJim Jagielski</body> 96*b1cdbd2cSJim Jagielski</helpdocument> 97