1<?xml version="1.0" encoding="UTF-8"?>
2
3<!--***********************************************************
4 *
5 * Licensed to the Apache Software Foundation (ASF) under one
6 * or more contributor license agreements.  See the NOTICE file
7 * distributed with this work for additional information
8 * regarding copyright ownership.  The ASF licenses this file
9 * to you under the Apache License, Version 2.0 (the
10 * "License"); you may not use this file except in compliance
11 * with the License.  You may obtain a copy of the License at
12 *
13 *   http://www.apache.org/licenses/LICENSE-2.0
14 *
15 * Unless required by applicable law or agreed to in writing,
16 * software distributed under the License is distributed on an
17 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
18 * KIND, either express or implied.  See the License for the
19 * specific language governing permissions and limitations
20 * under the License.
21 *
22 ***********************************************************-->
23
24<helpdocument version="1.0">
25<meta>
26<topic id="textswriterguidetable_insertxml" indexer="include" status="PUBLISH">
27<title xml-lang="en-US" id="tit">Inserting Tables</title>
28<filename>/text/swriter/guide/table_insert.xhp</filename>
29</topic>
30</meta>
31<body>
32<bookmark xml-lang="en-US" branch="index" id="bm_id3156377">
33<bookmark_value>tables; inserting text tables</bookmark_value>
34<bookmark_value>inserting; tables in text</bookmark_value>
35<bookmark_value>DDE; inserting tables</bookmark_value>
36<bookmark_value>OLE objects; inserting tables in</bookmark_value>
37<bookmark_value>cells;inserting from spreadsheets</bookmark_value>
38<bookmark_value>tables in spreadsheets;inserting in text</bookmark_value>
39<bookmark_value>spreadsheets;inserting tables from</bookmark_value>
40</bookmark><comment>mw changed "cell ranges;" to "cells;"</comment>
41<paragraph xml-lang="en-US" id="hd_id3156377" role="heading" level="1" l10n="U"
42oldref="31"><variable id="table_insert"><link href="text/swriter/guide/table_insert.xhp" name="Inserting Tables">Inserting Tables</link>
43</variable></paragraph>
44<paragraph xml-lang="en-US" id="par_id3149489" role="paragraph" l10n="CHG" oldref="32">There are several ways to create a table in a text document. You can insert a table from a toolbar, through a menu command, or from a spreadsheet. <comment>UFI: from a database?</comment></paragraph>
45<paragraph xml-lang="en-US" id="hd_id3155908" role="heading" level="2" l10n="U"
46oldref="33">To Insert a Table From the Insert Toolbar</paragraph>
47<list type="ordered">
48<listitem>
49<paragraph xml-lang="en-US" id="par_id3155861" role="listitem" l10n="U" oldref="34">Place the cursor in your document where you want to insert the table.</paragraph>
50</listitem>
51<listitem>
52<paragraph xml-lang="en-US" id="par_id3147416" role="listitem" l10n="CHG" oldref="28">On the <emph>Standard</emph> bar, click the arrow next to the <emph>Table</emph> icon.</paragraph>
53</listitem>
54<listitem>
55<paragraph xml-lang="en-US" id="par_id3153398" role="listitem" l10n="U" oldref="29">In the table grid, drag to select the numbers of rows and columns that you want, and then release.</paragraph>
56</listitem>
57</list>
58<paragraph xml-lang="en-US" id="par_id3153416" role="paragraph" l10n="CHG" oldref="30">To cancel, drag to the other side until <emph>Cancel</emph> appears in the preview area of the grid.<comment>make it RTL compliant</comment></paragraph>
59<paragraph xml-lang="en-US" id="hd_id3153135" role="heading" level="2" l10n="U"
60oldref="35">To Insert a Table With a Menu Command</paragraph>
61<list type="ordered">
62<listitem>
63<paragraph xml-lang="en-US" id="par_id3149642" role="listitem" l10n="U" oldref="36">Place the cursor in your document where you want to insert the table.</paragraph>
64</listitem>
65<listitem>
66<paragraph xml-lang="en-US" id="par_id3149609" role="listitem" l10n="CHG" oldref="37">Choose <emph>Table - Insert - Table</emph>.</paragraph>
67</listitem>
68<listitem>
69<paragraph xml-lang="en-US" id="par_id3149858" role="listitem" l10n="U" oldref="66">In the <emph>Size</emph> area, enter the number of rows and columns.</paragraph>
70</listitem>
71<listitem>
72<paragraph xml-lang="en-US" id="par_id3145097" role="listitem" l10n="U" oldref="67">Select the options that you want, click <emph>OK</emph>.</paragraph>
73</listitem>
74</list>
75<paragraph xml-lang="en-US" id="hd_id3149572" role="heading" level="2" l10n="CHG"
76oldref="43">To Insert a Table From a Calc Spreadsheet</paragraph>
77<list type="ordered">
78<listitem>
79<paragraph xml-lang="en-US" id="par_id3149594" role="listitem" l10n="U" oldref="44">Open the $[officename] Calc spreadsheet containing the cell range that you want to insert.</paragraph>
80</listitem>
81<listitem>
82<paragraph xml-lang="en-US" id="par_id3156250" role="listitem" l10n="U" oldref="45">In the spreadsheet, drag to select the cells.</paragraph>
83</listitem>
84<listitem>
85<paragraph xml-lang="en-US" id="par_id3154395" role="listitem" l10n="U" oldref="68">Choose <emph>Edit - Copy</emph>.</paragraph>
86</listitem>
87<listitem>
88<paragraph xml-lang="en-US" id="par_id3154420" role="listitem" l10n="U" oldref="46">In your text document, do one of the following:</paragraph>
89</listitem>
90</list>
91<list type="unordered">
92<listitem>
93<paragraph role="listitem" id="par_id3153383" xml-lang="en-US" l10n="U" oldref="47">Choose <emph>Edit - Paste</emph>. The cell range is pasted as an OLE object. To edit the contents of the cells, double-click the object.</paragraph>
94</listitem>
95<listitem>
96<paragraph role="listitem" id="par_id3154248" xml-lang="en-US" l10n="U" oldref="48">Choose <emph>Edit - Paste Special</emph>, and choose from the following options:</paragraph>
97</listitem>
98</list>
99<table id="tbl_id3152755">
100<tablerow>
101<tablecell>
102<paragraph xml-lang="en-US" id="par_id3154844" role="tablehead" l10n="U" oldref="49">Options</paragraph>
103</tablecell>
104<tablecell>
105<paragraph xml-lang="en-US" id="par_id3154867" role="tablehead" l10n="U" oldref="50">Is inserted as...</paragraph>
106</tablecell>
107</tablerow>
108<tablerow>
109<tablecell>
110<paragraph xml-lang="en-US" id="par_id3155893" role="tablecontent" l10n="U" oldref="51">$[officename] $[officeversion] Spreadsheet</paragraph>
111</tablecell>
112<tablecell>
113<paragraph xml-lang="en-US" id="par_id3149986" role="tablecontent" l10n="U" oldref="52">OLE object - as with <switchinline select="sys"><caseinline select="MAC">Command
114</caseinline><defaultinline>Ctrl</defaultinline></switchinline>+V or drag-and-drop</paragraph>
115</tablecell>
116</tablerow>
117<tablerow>
118<tablecell>
119<paragraph xml-lang="en-US" id="par_id3148674" role="tablecontent" l10n="U" oldref="53">GDIMetaFile</paragraph>
120</tablecell>
121<tablecell>
122<paragraph xml-lang="en-US" id="par_id3148697" role="tablecontent" l10n="U" oldref="54">Graphic</paragraph>
123</tablecell>
124</tablerow>
125<tablerow>
126<tablecell>
127<paragraph xml-lang="en-US" id="par_id3153027" role="tablecontent" l10n="U" oldref="55">Bitmap</paragraph>
128</tablecell>
129<tablecell>
130<paragraph xml-lang="en-US" id="par_id3148957" role="tablecontent" l10n="U" oldref="56">Graphic</paragraph>
131</tablecell>
132</tablerow>
133<tablerow>
134<tablecell>
135<paragraph xml-lang="en-US" id="par_id3147104" role="tablecontent" l10n="U" oldref="57">HTML</paragraph>
136</tablecell>
137<tablecell>
138<paragraph xml-lang="en-US" id="par_id3147126" role="tablecontent" l10n="U" oldref="58">HTML table</paragraph>
139</tablecell>
140</tablerow>
141<tablerow>
142<tablecell>
143<paragraph xml-lang="en-US" id="par_id3150223" role="tablecontent" l10n="U" oldref="59">Unformatted text</paragraph>
144</tablecell>
145<tablecell>
146<paragraph xml-lang="en-US" id="par_id3150246" role="tablecontent" l10n="U" oldref="60">Text only, tab stops as separators</paragraph>
147</tablecell>
148</tablerow>
149<tablerow>
150<tablecell>
151<paragraph xml-lang="en-US" id="par_id3145227" role="tablecontent" l10n="U" oldref="61">Formatted text [RTF]</paragraph>
152</tablecell>
153<tablecell>
154<paragraph xml-lang="en-US" id="par_id3150938" role="tablecontent" l10n="U" oldref="62">Text table</paragraph>
155</tablecell>
156</tablerow>
157<tablerow>
158<tablecell>
159<paragraph xml-lang="en-US" id="par_id3150965" role="tablecontent" l10n="U" oldref="63"><switchinline select="sys"><caseinline select="WIN">DDE link (only under Windows)
160</caseinline></switchinline></paragraph>
161</tablecell>
162<tablecell>
163<paragraph xml-lang="en-US" id="par_id3154377" role="tablecontent" l10n="U" oldref="64"><switchinline select="sys"><caseinline select="WIN">Table structure and contents, without formatting. With updating
164</caseinline></switchinline></paragraph>
165</tablecell>
166</tablerow>
167</table>
168<paragraph xml-lang="en-US" id="hd_id3151093" role="heading" level="3" l10n="CHG"
169oldref="38">Drag-and-Drop a Cell Range From a Calc Spreadsheet</paragraph>
170<list type="ordered">
171<listitem>
172<paragraph xml-lang="en-US" id="par_id3151116" role="listitem" l10n="U" oldref="39">Open the $[officename] Calc spreadsheet containing the cell range that you want to insert.</paragraph>
173</listitem>
174<listitem>
175<paragraph xml-lang="en-US" id="par_id3150515" role="listitem" l10n="U" oldref="69">In the spreadsheet, drag to select the cells.</paragraph>
176</listitem>
177<listitem>
178<paragraph xml-lang="en-US" id="par_id3150534" role="listitem" l10n="CHG" oldref="40">Click and hold the mouse button in the selected cells.</paragraph>
179</listitem>
180<listitem>
181<paragraph xml-lang="en-US" id="par_id3147527" role="listitem" l10n="U" oldref="41">Drag the selected cells into the text document.</paragraph>
182</listitem>
183</list>
184<embed href="text/shared/00/00000004.xhp#related"/>
185<embed href="text/swriter/guide/table_select.xhp#table_select"/>
186<embed href="text/swriter/guide/table_delete.xhp#table_delete"/>
187<embed href="text/swriter/guide/borders.xhp#borders"/>
188</body>
189</helpdocument>
190