1<?xml version="1.0" encoding="UTF-8"?>
2<helpdocument version="1.0">
3
4<!--
5***********************************************************************
6 *
7 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
8 *
9 * Copyright 2000, 2010 Oracle and/or its affiliates.
10 *
11 * OpenOffice.org - a multi-platform office productivity suite
12 *
13 * This file is part of OpenOffice.org.
14 *
15 * OpenOffice.org is free software: you can redistribute it and/or modify
16 * it under the terms of the GNU Lesser General Public License version 3
17 * only, as published by the Free Software Foundation.
18 *
19 * OpenOffice.org is distributed in the hope that it will be useful,
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
22 * GNU Lesser General Public License version 3 for more details
23 * (a copy is included in the LICENSE file that accompanied this code).
24 *
25 * You should have received a copy of the GNU Lesser General Public License
26 * version 3 along with OpenOffice.org.  If not, see
27 * <http://www.openoffice.org/license.html>
28 * for a copy of the LGPLv3 License.
29 *
30 ************************************************************************
31 -->
32
33
34<meta>
35      <topic id="textswriterguidetable_insertxml" indexer="include" status="PUBLISH">
36         <title xml-lang="en-US" id="tit">Inserting Tables</title>
37         <filename>/text/swriter/guide/table_insert.xhp</filename>
38      </topic>
39   </meta>
40   <body>
41<bookmark xml-lang="en-US" branch="index" id="bm_id3156377"><bookmark_value>tables; inserting text tables</bookmark_value>
42      <bookmark_value>inserting; tables in text</bookmark_value>
43      <bookmark_value>DDE; inserting tables</bookmark_value>
44      <bookmark_value>OLE objects; inserting tables in</bookmark_value>
45      <bookmark_value>cells;inserting from spreadsheets</bookmark_value>
46      <bookmark_value>tables in spreadsheets;inserting in text</bookmark_value>
47      <bookmark_value>spreadsheets;inserting tables from</bookmark_value>
48</bookmark><comment>mw changed "cell ranges;" to "cells;"</comment>
49<paragraph xml-lang="en-US" id="hd_id3156377" role="heading" level="1" l10n="U"
50                 oldref="31"><variable id="table_insert"><link href="text/swriter/guide/table_insert.xhp" name="Inserting Tables">Inserting Tables</link>
51</variable></paragraph>
52      <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>
53      <paragraph xml-lang="en-US" id="hd_id3155908" role="heading" level="2" l10n="U"
54                 oldref="33">To Insert a Table From the Insert Toolbar</paragraph>
55      <list type="ordered">
56         <listitem>
57            <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>
58         </listitem>
59         <listitem>
60            <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>
61         </listitem>
62         <listitem>
63            <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>
64         </listitem>
65      </list>
66      <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>
67      <paragraph xml-lang="en-US" id="hd_id3153135" role="heading" level="2" l10n="U"
68                 oldref="35">To Insert a Table With a Menu Command</paragraph>
69      <list type="ordered">
70         <listitem>
71            <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>
72         </listitem>
73         <listitem>
74            <paragraph xml-lang="en-US" id="par_id3149609" role="listitem" l10n="CHG" oldref="37">Choose <emph>Table - Insert - Table</emph>. </paragraph>
75         </listitem>
76         <listitem>
77            <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>
78         </listitem>
79         <listitem>
80            <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>
81         </listitem>
82      </list>
83      <paragraph xml-lang="en-US" id="hd_id3149572" role="heading" level="2" l10n="CHG"
84                 oldref="43">To Insert a Table From a Calc Spreadsheet</paragraph>
85      <list type="ordered">
86         <listitem>
87            <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>
88         </listitem>
89         <listitem>
90            <paragraph xml-lang="en-US" id="par_id3156250" role="listitem" l10n="U" oldref="45">In the spreadsheet, drag to select the cells.</paragraph>
91         </listitem>
92         <listitem>
93            <paragraph xml-lang="en-US" id="par_id3154395" role="listitem" l10n="U" oldref="68">Choose <emph>Edit - Copy</emph>.</paragraph>
94         </listitem>
95         <listitem>
96            <paragraph xml-lang="en-US" id="par_id3154420" role="listitem" l10n="U" oldref="46">In your text document, do one of the following:</paragraph>
97         </listitem>
98      </list>
99
100
101
102<list type="unordered">
103<listitem>
104<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>
105</listitem>
106<listitem>
107<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>
108</listitem>
109</list>
110
111
112
113      <table id="tbl_id3152755">
114         <tablerow>
115            <tablecell>
116               <paragraph xml-lang="en-US" id="par_id3154844" role="tablehead" l10n="U" oldref="49">Options</paragraph>
117            </tablecell>
118            <tablecell>
119               <paragraph xml-lang="en-US" id="par_id3154867" role="tablehead" l10n="U" oldref="50">Is inserted as...</paragraph>
120            </tablecell>
121         </tablerow>
122         <tablerow>
123            <tablecell>
124               <paragraph xml-lang="en-US" id="par_id3155893" role="tablecontent" l10n="U" oldref="51">$[officename] $[officeversion] Spreadsheet</paragraph>
125            </tablecell>
126            <tablecell>
127               <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
128</caseinline><defaultinline>Ctrl</defaultinline></switchinline>+V or drag-and-drop</paragraph>
129            </tablecell>
130         </tablerow>
131         <tablerow>
132            <tablecell>
133               <paragraph xml-lang="en-US" id="par_id3148674" role="tablecontent" l10n="U" oldref="53">GDIMetaFile</paragraph>
134            </tablecell>
135            <tablecell>
136               <paragraph xml-lang="en-US" id="par_id3148697" role="tablecontent" l10n="U" oldref="54">Graphic</paragraph>
137            </tablecell>
138         </tablerow>
139         <tablerow>
140            <tablecell>
141               <paragraph xml-lang="en-US" id="par_id3153027" role="tablecontent" l10n="U" oldref="55">Bitmap</paragraph>
142            </tablecell>
143            <tablecell>
144               <paragraph xml-lang="en-US" id="par_id3148957" role="tablecontent" l10n="U" oldref="56">Graphic</paragraph>
145            </tablecell>
146         </tablerow>
147         <tablerow>
148            <tablecell>
149               <paragraph xml-lang="en-US" id="par_id3147104" role="tablecontent" l10n="U" oldref="57">HTML</paragraph>
150            </tablecell>
151            <tablecell>
152               <paragraph xml-lang="en-US" id="par_id3147126" role="tablecontent" l10n="U" oldref="58">HTML table</paragraph>
153            </tablecell>
154         </tablerow>
155         <tablerow>
156            <tablecell>
157               <paragraph xml-lang="en-US" id="par_id3150223" role="tablecontent" l10n="U" oldref="59">Unformatted text</paragraph>
158            </tablecell>
159            <tablecell>
160               <paragraph xml-lang="en-US" id="par_id3150246" role="tablecontent" l10n="U" oldref="60">Text only, tab stops as separators</paragraph>
161            </tablecell>
162         </tablerow>
163         <tablerow>
164            <tablecell>
165               <paragraph xml-lang="en-US" id="par_id3145227" role="tablecontent" l10n="U" oldref="61">Formatted text [RTF]</paragraph>
166            </tablecell>
167            <tablecell>
168               <paragraph xml-lang="en-US" id="par_id3150938" role="tablecontent" l10n="U" oldref="62">Text table</paragraph>
169            </tablecell>
170         </tablerow>
171         <tablerow>
172            <tablecell>
173               <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)
174</caseinline></switchinline></paragraph>
175            </tablecell>
176            <tablecell>
177               <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
178</caseinline></switchinline></paragraph>
179            </tablecell>
180         </tablerow>
181      </table>
182
183      <paragraph xml-lang="en-US" id="hd_id3151093" role="heading" level="3" l10n="CHG"
184                 oldref="38">Drag-and-Drop a Cell Range From a Calc Spreadsheet</paragraph>
185      <list type="ordered">
186         <listitem>
187            <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>
188         </listitem>
189         <listitem>
190            <paragraph xml-lang="en-US" id="par_id3150515" role="listitem" l10n="U" oldref="69">In the spreadsheet, drag to select the cells.</paragraph>
191         </listitem>
192         <listitem>
193            <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>
194         </listitem>
195         <listitem>
196            <paragraph xml-lang="en-US" id="par_id3147527" role="listitem" l10n="U" oldref="41">Drag the selected cells into the text document.</paragraph>
197         </listitem>
198      </list>
199      <embed href="text/shared/00/00000004.xhp#related"/>
200      <embed href="text/swriter/guide/table_select.xhp#table_select"/>
201      <embed href="text/swriter/guide/table_delete.xhp#table_delete"/>
202      <embed href="text/swriter/guide/borders.xhp#borders"/>
203   </body>
204</helpdocument>
205