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="textswriterguidetable_insertxml" indexer="include" status="PUBLISH">
30         <title xml-lang="en-US" id="tit">Inserting Tables</title>
31         <filename>/text/swriter/guide/table_insert.xhp</filename>
32      </topic>
33   </meta>
34   <body>
35<bookmark xml-lang="en-US" branch="index" id="bm_id3156377"><bookmark_value>tables; inserting text tables</bookmark_value>
36      <bookmark_value>inserting; tables in text</bookmark_value>
37      <bookmark_value>DDE; inserting tables</bookmark_value>
38      <bookmark_value>OLE objects; inserting tables in</bookmark_value>
39      <bookmark_value>cells;inserting from spreadsheets</bookmark_value>
40      <bookmark_value>tables in spreadsheets;inserting in text</bookmark_value>
41      <bookmark_value>spreadsheets;inserting tables from</bookmark_value>
42</bookmark><comment>mw changed "cell ranges;" to "cells;"</comment>
43<paragraph xml-lang="en-US" id="hd_id3156377" role="heading" level="1" l10n="U"
44                 oldref="31"><variable id="table_insert"><link href="text/swriter/guide/table_insert.xhp" name="Inserting Tables">Inserting Tables</link>
45</variable></paragraph>
46      <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>
47      <paragraph xml-lang="en-US" id="hd_id3155908" role="heading" level="2" l10n="U"
48                 oldref="33">To Insert a Table From the Insert Toolbar</paragraph>
49      <list type="ordered">
50         <listitem>
51            <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>
52         </listitem>
53         <listitem>
54            <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>
55         </listitem>
56         <listitem>
57            <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>
58         </listitem>
59      </list>
60      <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>
61      <paragraph xml-lang="en-US" id="hd_id3153135" role="heading" level="2" l10n="U"
62                 oldref="35">To Insert a Table With a Menu Command</paragraph>
63      <list type="ordered">
64         <listitem>
65            <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>
66         </listitem>
67         <listitem>
68            <paragraph xml-lang="en-US" id="par_id3149609" role="listitem" l10n="CHG" oldref="37">Choose <emph>Table - Insert - Table</emph>. </paragraph>
69         </listitem>
70         <listitem>
71            <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>
72         </listitem>
73         <listitem>
74            <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>
75         </listitem>
76      </list>
77      <paragraph xml-lang="en-US" id="hd_id3149572" role="heading" level="2" l10n="CHG"
78                 oldref="43">To Insert a Table From a Calc Spreadsheet</paragraph>
79      <list type="ordered">
80         <listitem>
81            <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>
82         </listitem>
83         <listitem>
84            <paragraph xml-lang="en-US" id="par_id3156250" role="listitem" l10n="U" oldref="45">In the spreadsheet, drag to select the cells.</paragraph>
85         </listitem>
86         <listitem>
87            <paragraph xml-lang="en-US" id="par_id3154395" role="listitem" l10n="U" oldref="68">Choose <emph>Edit - Copy</emph>.</paragraph>
88         </listitem>
89         <listitem>
90            <paragraph xml-lang="en-US" id="par_id3154420" role="listitem" l10n="U" oldref="46">In your text document, do one of the following:</paragraph>
91         </listitem>
92      </list>
93
94
95
96<list type="unordered">
97<listitem>
98<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>
99</listitem>
100<listitem>
101<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>
102</listitem>
103</list>
104
105
106
107      <table id="tbl_id3152755">
108         <tablerow>
109            <tablecell>
110               <paragraph xml-lang="en-US" id="par_id3154844" role="tablehead" l10n="U" oldref="49">Options</paragraph>
111            </tablecell>
112            <tablecell>
113               <paragraph xml-lang="en-US" id="par_id3154867" role="tablehead" l10n="U" oldref="50">Is inserted as...</paragraph>
114            </tablecell>
115         </tablerow>
116         <tablerow>
117            <tablecell>
118               <paragraph xml-lang="en-US" id="par_id3155893" role="tablecontent" l10n="U" oldref="51">$[officename] $[officeversion] Spreadsheet</paragraph>
119            </tablecell>
120            <tablecell>
121               <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
122</caseinline><defaultinline>Ctrl</defaultinline></switchinline>+V or drag-and-drop</paragraph>
123            </tablecell>
124         </tablerow>
125         <tablerow>
126            <tablecell>
127               <paragraph xml-lang="en-US" id="par_id3148674" role="tablecontent" l10n="U" oldref="53">GDIMetaFile</paragraph>
128            </tablecell>
129            <tablecell>
130               <paragraph xml-lang="en-US" id="par_id3148697" role="tablecontent" l10n="U" oldref="54">Graphic</paragraph>
131            </tablecell>
132         </tablerow>
133         <tablerow>
134            <tablecell>
135               <paragraph xml-lang="en-US" id="par_id3153027" role="tablecontent" l10n="U" oldref="55">Bitmap</paragraph>
136            </tablecell>
137            <tablecell>
138               <paragraph xml-lang="en-US" id="par_id3148957" role="tablecontent" l10n="U" oldref="56">Graphic</paragraph>
139            </tablecell>
140         </tablerow>
141         <tablerow>
142            <tablecell>
143               <paragraph xml-lang="en-US" id="par_id3147104" role="tablecontent" l10n="U" oldref="57">HTML</paragraph>
144            </tablecell>
145            <tablecell>
146               <paragraph xml-lang="en-US" id="par_id3147126" role="tablecontent" l10n="U" oldref="58">HTML table</paragraph>
147            </tablecell>
148         </tablerow>
149         <tablerow>
150            <tablecell>
151               <paragraph xml-lang="en-US" id="par_id3150223" role="tablecontent" l10n="U" oldref="59">Unformatted text</paragraph>
152            </tablecell>
153            <tablecell>
154               <paragraph xml-lang="en-US" id="par_id3150246" role="tablecontent" l10n="U" oldref="60">Text only, tab stops as separators</paragraph>
155            </tablecell>
156         </tablerow>
157         <tablerow>
158            <tablecell>
159               <paragraph xml-lang="en-US" id="par_id3145227" role="tablecontent" l10n="U" oldref="61">Formatted text [RTF]</paragraph>
160            </tablecell>
161            <tablecell>
162               <paragraph xml-lang="en-US" id="par_id3150938" role="tablecontent" l10n="U" oldref="62">Text table</paragraph>
163            </tablecell>
164         </tablerow>
165         <tablerow>
166            <tablecell>
167               <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)
168</caseinline></switchinline></paragraph>
169            </tablecell>
170            <tablecell>
171               <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
172</caseinline></switchinline></paragraph>
173            </tablecell>
174         </tablerow>
175      </table>
176
177      <paragraph xml-lang="en-US" id="hd_id3151093" role="heading" level="3" l10n="CHG"
178                 oldref="38">Drag-and-Drop a Cell Range From a Calc Spreadsheet</paragraph>
179      <list type="ordered">
180         <listitem>
181            <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>
182         </listitem>
183         <listitem>
184            <paragraph xml-lang="en-US" id="par_id3150515" role="listitem" l10n="U" oldref="69">In the spreadsheet, drag to select the cells.</paragraph>
185         </listitem>
186         <listitem>
187            <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>
188         </listitem>
189         <listitem>
190            <paragraph xml-lang="en-US" id="par_id3147527" role="listitem" l10n="U" oldref="41">Drag the selected cells into the text document.</paragraph>
191         </listitem>
192      </list>
193      <embed href="text/shared/00/00000004.xhp#related"/>
194      <embed href="text/swriter/guide/table_select.xhp#table_select"/>
195      <embed href="text/swriter/guide/table_delete.xhp#table_delete"/>
196      <embed href="text/swriter/guide/borders.xhp#borders"/>
197   </body>
198</helpdocument>
199