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"><variable id="table_insert"><link href="text/swriter/guide/table_insert.xhp" name="Inserting Tables">Inserting Tables</link> 42</variable></paragraph> 43<paragraph xml-lang="en-US" id="par_id3149489" role="paragraph" l10n="CHG">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> 44<paragraph xml-lang="en-US" id="hd_id3155908" role="heading" level="2" l10n="U">To Insert a Table From the Insert Toolbar</paragraph> 45<list type="ordered"> 46<listitem> 47<paragraph xml-lang="en-US" id="par_id3155861" role="listitem" l10n="U">Place the cursor in your document where you want to insert the table.</paragraph> 48</listitem> 49<listitem> 50<paragraph xml-lang="en-US" id="par_id3147416" role="listitem" l10n="CHG">On the <emph>Standard</emph> bar, click the arrow next to the <emph>Table</emph> icon.</paragraph> 51</listitem> 52<listitem> 53<paragraph xml-lang="en-US" id="par_id3153398" role="listitem" l10n="U">In the table grid, drag to select the numbers of rows and columns that you want, and then release.</paragraph> 54</listitem> 55</list> 56<paragraph xml-lang="en-US" id="par_id3153416" role="paragraph" l10n="CHG">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> 57<paragraph xml-lang="en-US" id="hd_id3153135" role="heading" level="2" l10n="U">To Insert a Table With a Menu Command</paragraph> 58<list type="ordered"> 59<listitem> 60<paragraph xml-lang="en-US" id="par_id3149642" role="listitem" l10n="U">Place the cursor in your document where you want to insert the table.</paragraph> 61</listitem> 62<listitem> 63<paragraph xml-lang="en-US" id="par_id3149609" role="listitem" l10n="CHG">Choose <emph>Table - Insert - Table</emph>.</paragraph> 64</listitem> 65<listitem> 66<paragraph xml-lang="en-US" id="par_id3149858" role="listitem" l10n="U">In the <emph>Size</emph> area, enter the number of rows and columns.</paragraph> 67</listitem> 68<listitem> 69<paragraph xml-lang="en-US" id="par_id3145097" role="listitem" l10n="U">Select the options that you want, click <emph>OK</emph>.</paragraph> 70</listitem> 71</list> 72<paragraph xml-lang="en-US" id="hd_id3149572" role="heading" level="2" l10n="CHG">To Insert a Table From a Calc Spreadsheet</paragraph> 73<list type="ordered"> 74<listitem> 75<paragraph xml-lang="en-US" id="par_id3149594" role="listitem" l10n="U">Open the $[officename] Calc spreadsheet containing the cell range that you want to insert.</paragraph> 76</listitem> 77<listitem> 78<paragraph xml-lang="en-US" id="par_id3156250" role="listitem" l10n="U">In the spreadsheet, drag to select the cells.</paragraph> 79</listitem> 80<listitem> 81<paragraph xml-lang="en-US" id="par_id3154395" role="listitem" l10n="U">Choose <emph>Edit - Copy</emph>.</paragraph> 82</listitem> 83<listitem> 84<paragraph xml-lang="en-US" id="par_id3154420" role="listitem" l10n="U">In your text document, do one of the following:</paragraph> 85</listitem> 86</list> 87<list type="unordered"> 88<listitem> 89<paragraph role="listitem" id="par_id3153383" xml-lang="en-US" l10n="U">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> 90</listitem> 91<listitem> 92<paragraph role="listitem" id="par_id3154248" xml-lang="en-US" l10n="U">Choose <emph>Edit - Paste Special</emph>, and choose from the following options:</paragraph> 93</listitem> 94</list> 95<table id="tbl_id3152755"> 96<tablerow> 97<tablecell> 98<paragraph xml-lang="en-US" id="par_id3154844" role="tablehead" l10n="U">Options</paragraph> 99</tablecell> 100<tablecell> 101<paragraph xml-lang="en-US" id="par_id3154867" role="tablehead" l10n="U">Is inserted as...</paragraph> 102</tablecell> 103</tablerow> 104<tablerow> 105<tablecell> 106<paragraph xml-lang="en-US" id="par_id3155893" role="tablecontent" l10n="U">$[officename] $[officeversion] Spreadsheet</paragraph> 107</tablecell> 108<tablecell> 109<paragraph xml-lang="en-US" id="par_id3149986" role="tablecontent" l10n="U">OLE object - as with <switchinline select="sys"><caseinline select="MAC">Command 110</caseinline><defaultinline>Ctrl</defaultinline></switchinline>+V or drag-and-drop</paragraph> 111</tablecell> 112</tablerow> 113<tablerow> 114<tablecell> 115<paragraph xml-lang="en-US" id="par_id3148674" role="tablecontent" l10n="U">GDIMetaFile</paragraph> 116</tablecell> 117<tablecell> 118<paragraph xml-lang="en-US" id="par_id3148697" role="tablecontent" l10n="U">Graphic</paragraph> 119</tablecell> 120</tablerow> 121<tablerow> 122<tablecell> 123<paragraph xml-lang="en-US" id="par_id3153027" role="tablecontent" l10n="U">Bitmap</paragraph> 124</tablecell> 125<tablecell> 126<paragraph xml-lang="en-US" id="par_id3148957" role="tablecontent" l10n="U">Graphic</paragraph> 127</tablecell> 128</tablerow> 129<tablerow> 130<tablecell> 131<paragraph xml-lang="en-US" id="par_id3147104" role="tablecontent" l10n="U">HTML</paragraph> 132</tablecell> 133<tablecell> 134<paragraph xml-lang="en-US" id="par_id3147126" role="tablecontent" l10n="U">HTML table</paragraph> 135</tablecell> 136</tablerow> 137<tablerow> 138<tablecell> 139<paragraph xml-lang="en-US" id="par_id3150223" role="tablecontent" l10n="U">Unformatted text</paragraph> 140</tablecell> 141<tablecell> 142<paragraph xml-lang="en-US" id="par_id3150246" role="tablecontent" l10n="U">Text only, tab stops as separators</paragraph> 143</tablecell> 144</tablerow> 145<tablerow> 146<tablecell> 147<paragraph xml-lang="en-US" id="par_id3145227" role="tablecontent" l10n="U">Formatted text [RTF]</paragraph> 148</tablecell> 149<tablecell> 150<paragraph xml-lang="en-US" id="par_id3150938" role="tablecontent" l10n="U">Text table</paragraph> 151</tablecell> 152</tablerow> 153<tablerow> 154<tablecell> 155<paragraph xml-lang="en-US" id="par_id3150965" role="tablecontent" l10n="U"><switchinline select="sys"><caseinline select="WIN">DDE link (only under Windows) 156</caseinline></switchinline></paragraph> 157</tablecell> 158<tablecell> 159<paragraph xml-lang="en-US" id="par_id3154377" role="tablecontent" l10n="U"><switchinline select="sys"><caseinline select="WIN">Table structure and contents, without formatting. With updating 160</caseinline></switchinline></paragraph> 161</tablecell> 162</tablerow> 163</table> 164<paragraph xml-lang="en-US" id="hd_id3151093" role="heading" level="3" l10n="CHG">Drag-and-Drop a Cell Range From a Calc Spreadsheet</paragraph> 165<list type="ordered"> 166<listitem> 167<paragraph xml-lang="en-US" id="par_id3151116" role="listitem" l10n="U">Open the $[officename] Calc spreadsheet containing the cell range that you want to insert.</paragraph> 168</listitem> 169<listitem> 170<paragraph xml-lang="en-US" id="par_id3150515" role="listitem" l10n="U">In the spreadsheet, drag to select the cells.</paragraph> 171</listitem> 172<listitem> 173<paragraph xml-lang="en-US" id="par_id3150534" role="listitem" l10n="CHG">Click and hold the mouse button in the selected cells.</paragraph> 174</listitem> 175<listitem> 176<paragraph xml-lang="en-US" id="par_id3147527" role="listitem" l10n="U">Drag the selected cells into the text document.</paragraph> 177</listitem> 178</list> 179<embed href="text/shared/00/00000004.xhp#related"/> 180<embed href="text/swriter/guide/table_select.xhp#table_select"/> 181<embed href="text/swriter/guide/table_delete.xhp#table_delete"/> 182<embed href="text/swriter/guide/borders.xhp#borders"/> 183</body> 184</helpdocument> 185