1<?xml version="1.0" encoding="UTF-8"?>
2<helpdocument version="1.0">
3
4<!--***********************************************************
5 *
6 * Licensed to the Apache Software Foundation (ASF) under one
7 * or more contributor license agreements.  See the NOTICE file
8 * distributed with this work for additional information
9 * regarding copyright ownership.  The ASF licenses this file
10 * to you under the Apache License, Version 2.0 (the
11 * "License"); you may not use this file except in compliance
12 * with the License.  You may obtain a copy of the License at
13 *
14 *   http://www.apache.org/licenses/LICENSE-2.0
15 *
16 * Unless required by applicable law or agreed to in writing,
17 * software distributed under the License is distributed on an
18 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
19 * KIND, either express or implied.  See the License for the
20 * specific language governing permissions and limitations
21 * under the License.
22 *
23 ***********************************************************-->
24
25
26
27
28<meta>
29      <topic id="textswriterguideglobaldoc_howtosxml" indexer="include" status="PUBLISH">
30         <title xml-lang="en-US" id="tit">Working with Master Documents and Subdocuments</title>
31         <filename>/text/swriter/guide/globaldoc_howtos.xhp</filename>
32      </topic>
33   </meta>
34   <body>
35<bookmark xml-lang="en-US" branch="index" id="bm_id3145246"><bookmark_value>Navigator;master documents</bookmark_value>
36      <bookmark_value>master documents;creating/editing/exporting</bookmark_value>
37      <bookmark_value>subdocuments;creating/editing/removing</bookmark_value>
38      <bookmark_value>removing;subdocuments</bookmark_value>
39      <bookmark_value>indexes; master documents</bookmark_value>
40</bookmark><comment>MW created 4 new index entries. 2 index entries were taken from globaldoc.xhp.</comment><comment>MW made one index entry out of 2 "subdocuments;" entries</comment>
41<paragraph xml-lang="en-US" id="hd_id3145246" role="heading" level="1" l10n="U" oldref="4"><variable id="globaldoc_howtos"><link href="text/swriter/guide/globaldoc_howtos.xhp">Working with Master Documents and Subdocuments</link>
42</variable></paragraph><comment>MW: this is a new guide created from splitting globaldoc.xhp</comment>
43<paragraph xml-lang="en-US" id="par_id1522873" role="paragraph" l10n="NEW">A master document lets you manage large documents, such as a book with many chapters. The master document can be seen as a container for individual <item type="productname">%PRODUCTNAME</item> Writer files. The individual files are called subdocuments.</paragraph>
44      <paragraph xml-lang="en-US" id="hd_id3153127" role="heading" level="2" l10n="U"
45                 oldref="29">To Create a Master Document</paragraph>
46      <list type="ordered">
47         <listitem>
48            <paragraph xml-lang="en-US" id="par_id3149634" role="listitem" l10n="U" oldref="30">Do one of the following:</paragraph>
49         </listitem>
50      </list>
51
52
53
54<list type="unordered">
55<listitem>
56<paragraph role="listitem" id="par_id3149956" xml-lang="en-US" l10n="U" oldref="31">Choose <emph>File - New - Master Document</emph>.</paragraph>
57</listitem>
58
59<listitem>
60<paragraph role="listitem" id="par_id3149612" xml-lang="en-US" l10n="U" oldref="32">Open an existing document and choose <emph>File - Send - Create Master Document</emph>.</paragraph>
61</listitem>
62</list>
63
64
65
66
67      <list type="ordered" startwith="2">
68         <listitem>
69            <paragraph xml-lang="en-US" id="par_id3149873" role="listitem" l10n="CHG" oldref="28">If you are creating a new master document, the first entry in the Navigator should be a <item type="menuitem">Text</item>
70               <emph/>entry. Type an introduction or enter some text. This ensures that after having edited an existing style in the master document, you see the changed style when viewing the subdocuments.</paragraph>
71         </listitem>
72         <listitem>
73            <paragraph xml-lang="en-US" id="par_id3145114" role="listitem" l10n="CHG" oldref="33">In the <item type="menuitem">Navigator</item> for master documents (should open automatically, else press F5 to open), click and hold the <item type="menuitem">Insert</item>
74               <emph/>icon, and do one of the following:</paragraph>
75         </listitem>
76      </list>
77
78<list type="unordered">
79<listitem>
80<paragraph role="listitem" id="par_id3156240" xml-lang="en-US" l10n="U" oldref="34">To insert an existing file as a subdocument, choose <emph>File</emph>, locate the file that you want to include, and then click <emph>OK</emph>.</paragraph>
81</listitem>
82
83<listitem>
84<paragraph role="listitem" id="par_id3145405" xml-lang="en-US" l10n="U" oldref="35">To create a new subdocument, choose <emph>New Document</emph>, type a name for the file, and then click <emph>Save</emph>.</paragraph>
85</listitem>
86<listitem>
87<paragraph role="listitem" id="par_id8550981" xml-lang="en-US" l10n="CHG">To insert some text between subdocuments, choose <emph>Text</emph>. Then type the text. You cannot insert text next to an existing text entry in the Navigator.<comment>i81372</comment></paragraph>
88</listitem>
89</list>
90
91
92      <list type="ordered" startwith="4">
93         <listitem>
94            <paragraph xml-lang="en-US" id="par_id3153382" role="listitem" l10n="U" oldref="36">Choose <emph>File - Save</emph>.</paragraph>
95         </listitem>
96      </list>
97      <paragraph xml-lang="en-US" id="hd_id3154242" role="heading" level="2" l10n="U"
98                 oldref="37">To Edit a Master Document</paragraph>
99      <paragraph xml-lang="en-US" id="par_id3154255" role="paragraph" l10n="U" oldref="20">Use the Navigator for rearranging and editing the subdocuments in a master document.</paragraph>
100      <list type="unordered">
101         <listitem>
102            <paragraph xml-lang="en-US" id="par_id3155879" role="listitem" l10n="CHG" oldref="38">To open a subdocument for editing, double-click the name of the subdocument in the Navigator.</paragraph>
103         </listitem>
104      </list>
105      <list type="unordered">
106         <listitem>
107            <paragraph xml-lang="en-US" id="par_id3155931" role="listitem" l10n="CHG" oldref="39">To remove a subdocument from the master document, right-click the subdocument in the Navigator list and choose <emph>Delete</emph>. The subdocument file is not deleted, only the entry in the Navigator is removed.</paragraph>
108         </listitem>
109      </list>
110      <list type="unordered">
111         <listitem>
112            <paragraph xml-lang="en-US" id="par_id3148677" role="listitem" l10n="CHG" oldref="8">To add text to a master document, right-click an item in the Navigator list, and then choose <emph>Insert - Text</emph>. A text section is inserted before the selected item in the master document where you can type the text that you want. You cannot insert text next to an existing text entry in the Navigator.<comment>i81372</comment></paragraph>
113         </listitem>
114      </list>
115      <list type="unordered">
116         <listitem>
117            <paragraph xml-lang="en-US" id="par_id3149982" role="listitem" l10n="U" oldref="10">To reorder the subdocuments in a master document, drag a subdocument to a new location in the Navigator list. You can also select a subdocument in the list, and click the <item type="menuitem">Move down</item> or <item type="menuitem">Move up</item>
118               <emph/>icon.</paragraph>
119         </listitem>
120      </list>
121      <list type="unordered">
122         <listitem>
123            <paragraph xml-lang="en-US" id="par_id3153022" role="listitem" l10n="CHG" oldref="40">To add an index, such as a table of contents, right-click in the Navigator list, and then choose <emph>Insert - Index</emph>.</paragraph>
124         </listitem>
125      </list>
126      <table id="tbl_id3154206">
127         <tablerow>
128            <tablecell>
129               <paragraph xml-lang="en-US" id="par_id3148949" role="paragraph" l10n="E">
130<image id="img_id3148959" src="sw/imglst/sc20246.png" width="0.1862in" height="0.1862in"><alt xml-lang="en-US" id="alt_id3148959">Icon</alt>
131	</image></paragraph>
132            </tablecell>
133            <tablecell>
134               <paragraph xml-lang="en-US" id="par_id3153632" role="paragraph" l10n="U" oldref="21">To update an index in a master document, select the index in the Navigator, and then click the <emph>Update</emph> icon.</paragraph>
135            </tablecell>
136         </tablerow>
137      </table>
138
139      <paragraph xml-lang="en-US" id="par_idN10C40" role="note" l10n="NEW">When you insert an object like a frame or a picture into a master document, do not anchor the object "to page". Instead, set the anchor "to paragraph" on the <emph>Format - (Object type) - Type</emph> tab page, and then set the object's position relative to "Entire Page" in the <emph>Horizontal</emph> and <emph>Vertical</emph> list boxes.</paragraph>
140      <paragraph xml-lang="en-US" id="hd_id3153656" role="heading" level="3" l10n="U"
141                 oldref="41">To Start Each Subdocument on a New Page</paragraph>
142      <list type="ordered">
143         <listitem>
144            <paragraph xml-lang="en-US" id="par_id3152760" role="listitem" l10n="U" oldref="42">Ensure that each subdocument starts with a heading that uses the same paragraph style, for example "Heading 1".</paragraph>
145         </listitem>
146         <listitem>
147            <paragraph xml-lang="en-US" id="par_id3153876" role="listitem" l10n="U" oldref="43">In the master document, choose <emph>Format - Styles and Formatting</emph>, and click the <emph>Paragraph Styles</emph> icon.</paragraph>
148         </listitem>
149         <listitem>
150            <paragraph xml-lang="en-US" id="par_id3153907" role="listitem" l10n="U" oldref="44">Right-click "Heading 1" and choose <emph>Modify</emph>.</paragraph>
151         </listitem>
152         <listitem>
153            <paragraph xml-lang="en-US" id="par_id3147124" role="listitem" l10n="U" oldref="45">Click the <item type="menuitem">Text Flow</item>
154               <emph/>tab.</paragraph>
155         </listitem>
156         <listitem>
157            <paragraph xml-lang="en-US" id="par_id3149770" role="listitem" l10n="CHG" oldref="46">In the <item type="menuitem">Breaks</item>
158               <emph/>area, select <item type="menuitem">Insert</item>, and then select “Page”<emph/>in the <item type="menuitem">Type</item>
159               <emph/>box.</paragraph>
160         </listitem>
161         <listitem>
162            <paragraph xml-lang="en-US" id="par_id3150224" role="listitem" l10n="U" oldref="17">If you want each subdocument to start on an odd page, select <emph>With Page Style</emph>, and select "Right page" in the box.</paragraph>
163         </listitem>
164         <listitem>
165            <paragraph xml-lang="en-US" id="par_id3145205" role="listitem" l10n="U" oldref="47">Click <emph>OK</emph>.</paragraph>
166         </listitem>
167      </list>
168      <paragraph xml-lang="en-US" id="hd_id3145228" role="heading" level="3" l10n="CHG"
169                 oldref="48">To Export a Master Document as a <item type="productname">%PRODUCTNAME</item> Text Document</paragraph>
170      <list type="ordered">
171         <listitem>
172            <paragraph xml-lang="en-US" id="par_id3150315" role="listitem" l10n="U" oldref="49">Choose <item type="menuitem">File - Export</item>.</paragraph>
173         </listitem>
174         <listitem>
175            <paragraph xml-lang="en-US" id="par_id3148580" role="listitem" l10n="U" oldref="50">In the <emph>File format</emph> list, select a text document file format and click <emph>Export</emph>.</paragraph>
176         </listitem>
177      </list>
178      <paragraph xml-lang="en-US" id="par_id8371227" role="note" l10n="NEW">The subdocuments will be exported as sections. Use <item type="menuitem">Format - Sections</item> to unprotect and remove sections, if you prefer a plain text document without sections.</paragraph>
179      <section id="relatedtopics">
180         <embed href="text/swriter/guide/indices_multidoc.xhp#indices_multidoc"/>
181         <paragraph xml-lang="en-US" id="par_id3154382" role="paragraph" l10n="C"><link href="text/shared/01/02110000.xhp" name="Navigator in master mode">Navigator in master mode</link></paragraph>
182      </section>
183   </body>
184</helpdocument>
185