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="textsharedguideline_intextxml" indexer="include"> 27<title id="tit" xml-lang="en-US">Drawing Lines in Text</title> 28<filename>/text/shared/guide/line_intext.xhp</filename> 29</topic> 30</meta> 31<body> 32<bookmark xml-lang="en-US" branch="index" id="bm_id3143206"> 33<bookmark_value>arrows; drawing in text</bookmark_value> 34<bookmark_value>indicator lines in text</bookmark_value> 35<bookmark_value>lines; drawing in text</bookmark_value> 36<bookmark_value>lines; removing automatic lines</bookmark_value> 37<bookmark_value>deleting; lines in text</bookmark_value> 38<bookmark_value>drawing lines in text</bookmark_value> 39<bookmark_value>automatic lines/borders in text</bookmark_value> 40</bookmark> 41<paragraph role="heading" id="hd_id3143206" xml-lang="en-US" level="1" l10n="U" oldref="36"><variable id="line_intext"><link href="text/shared/guide/line_intext.xhp" name="Drawing Lines in Text">Drawing Lines in Text</link> 42</variable></paragraph> 43<paragraph role="paragraph" id="par_id3144436" xml-lang="en-US" l10n="U" oldref="37">You can incorporate lines into your text with custom angles, width, color, and other attributes.</paragraph> 44<paragraph role="paragraph" id="par_id3153345" xml-lang="en-US" l10n="U" oldref="39">To define the line attributes and direction, use the <emph>Line</emph> drawing object as follows:</paragraph> 45<table id="tbl_id3153031"> 46<tablerow> 47<tablecell> 48<paragraph role="paragraph" id="par_id3156113" xml-lang="en-US" l10n="E"> 49<image id="img_id3166410" src="res/commandimagelist/sc_insertdraw.png" width="0.2228in" height="0.2228in"><alt id="alt_id3166410" xml-lang="en-US">Icon</alt> 50</image></paragraph> 51<paragraph role="paragraph" id="par_id3152780" xml-lang="en-US" l10n="E"> 52<image id="img_id3154285" src="res/commandimagelist/sc_line.png" width="0.2228in" height="0.2228in"><alt id="alt_id3154285" xml-lang="en-US">Icon</alt> 53</image></paragraph> 54</tablecell> 55<tablecell> 56<paragraph role="paragraph" id="par_id3153254" xml-lang="en-US" l10n="U" oldref="66">1.</paragraph> 57</tablecell> 58<tablecell> 59<paragraph role="paragraph" id="par_id3159400" xml-lang="en-US" l10n="CHG" oldref="41">On the Standard bar, click the <emph>Show Draw Functions</emph> icon to open the <emph>Drawing</emph> toolbar, and click the <emph>Line</emph> icon. The mouse pointer changes to a cross-hair symbol with a line beside it.</paragraph> 60</tablecell> 61</tablerow> 62<tablerow> 63<tablecell> 64</tablecell> 65<tablecell> 66<paragraph role="paragraph" id="par_id3156117" xml-lang="en-US" l10n="U" oldref="67">2.</paragraph> 67</tablecell> 68<tablecell> 69<paragraph role="paragraph" id="par_id3152472" xml-lang="en-US" l10n="U" oldref="42">In your document, click where the line should begin. Hold down the mouse button and drag to the point where you want the line to end. If you also hold down the Shift key, you can draw only horizontal, vertical, and diagonal lines.</paragraph> 70</tablecell> 71</tablerow> 72<tablerow> 73<tablecell> 74<paragraph role="paragraph" id="par_id3149294" xml-lang="en-US" l10n="E"> 75<image id="img_id3159413" src="res/commandimagelist/sc_drawselect.png" width="0.2228in" height="0.2228in"><alt id="alt_id3159413" xml-lang="en-US">Icon</alt> 76</image></paragraph> 77</tablecell> 78<tablecell> 79<paragraph role="paragraph" id="par_id3151056" xml-lang="en-US" l10n="U" oldref="68">3.</paragraph> 80</tablecell> 81<tablecell> 82<paragraph role="paragraph" id="par_id3153361" xml-lang="en-US" l10n="CHG" oldref="43">Release the mouse button once the line has the desired direction and length. You can then draw more lines. End this function by pressing the Esc key or by clicking the <emph>Select</emph> icon from the <emph>Drawing</emph> bar.</paragraph> 83</tablecell> 84</tablerow> 85<tablerow> 86<tablecell> 87</tablecell> 88<tablecell> 89<paragraph role="paragraph" id="par_id3156422" xml-lang="en-US" l10n="U" oldref="69">4.</paragraph> 90</tablecell> 91<tablecell> 92<paragraph role="paragraph" id="par_id3159149" xml-lang="en-US" l10n="U" oldref="44">After clicking the <emph>Select</emph> icon, you can select all of the lines at the same time by clicking each line while holding down the Shift key. This multiple selection enables you to assign all of them a common color, width or other attribute.</paragraph> 93</tablecell> 94</tablerow> 95</table> 96<list type="ordered"> 97<listitem> 98<paragraph role="listitem" id="par_id3153049" xml-lang="en-US" l10n="CHG" oldref="38">Create a horizontal line by applying the preset Paragraph Style <emph>Horizontal Line</emph>. Click into an empty paragraph, and double-click the <emph>Horizontal Line</emph> Style in the <emph>Styles and Formatting</emph> window. If the entry for horizontal lines is not visible in the list of Paragraph Styles, select "All Styles" in the lower listbox.</paragraph> 99</listitem> 100<listitem> 101<paragraph role="listitem" id="par_id3153748" xml-lang="en-US" l10n="CHG" oldref="64">You can draw a line above, beside or below a paragraph in a Writer text document by choosing <emph>Format - Paragraph - </emph><link href="text/shared/01/05030500.xhp" name="Borders"><emph>Borders</emph></link>.</paragraph> 102</listitem> 103</list> 104<paragraph role="heading" id="par_idN107C6" xml-lang="en-US" level="2" l10n="CHG">Automatic lines in Writer</paragraph> 105<list type="ordered"> 106<listitem> 107<paragraph role="listitem" id="par_idN107CC" xml-lang="en-US" l10n="CHG">If you start a new line in a Writer text document by typing three or more hyphen characters and press the Enter key, the characters are removed and the previous paragraph gets a line as a bottom border.</paragraph> 108<paragraph role="paragraph" id="par_id8849452" xml-lang="en-US" l10n="NEW">To create a single line, type three or more hyphens (-), or underscores ( _ ), and then press Enter. To create a double line, type three or more equal signs (=), asterisks (*), tildes (~), or hash marks (#), and then press Enter.</paragraph> 109</listitem> 110<listitem> 111<paragraph role="listitem" id="par_idN107D0" xml-lang="en-US" l10n="CHG">To remove an automatically drawn border, choose <emph>Format - Paragraph - Borders</emph> and select no border.</paragraph> 112</listitem> 113<listitem> 114<paragraph role="listitem" id="par_idN107D8" xml-lang="en-US" l10n="NEW">To undo an automatic border replacement once, choose <emph>Edit - Undo</emph>.</paragraph> 115</listitem> 116<listitem> 117<paragraph role="listitem" id="par_idN107E0" xml-lang="en-US" l10n="NEW">To disable the automatic borders, choose <emph>Tools - AutoCorrect Options - Options</emph> and clear <emph>Apply border</emph>.</paragraph> 118</listitem> 119</list> 120<paragraph role="warning" id="par_id3145787" xml-lang="en-US" l10n="U" oldref="45">The lines and other drawing objects that you insert in text are not defined in <link href="text/shared/00/00000002.xhp#html" name="HTML">HTML</link>, and are therefore not exported directly into HTML format. Instead, they are exported as graphics.</paragraph> 121<paragraph role="tip" id="par_id641804" xml-lang="en-US" l10n="NEW">When you enter a line width, you can append a measurement unit. A zero line width results in a hairline with a width of one pixel of the output medium.</paragraph> 122<embed href="text/shared/00/00000004.xhp#related"/> 123<paragraph role="paragraph" id="par_id3154188" xml-lang="en-US" l10n="U" oldref="65"><link href="text/shared/01/05030500.xhp" name="Format - Paragraph - Borders">Format - Paragraph - Borders</link></paragraph> 124<embed href="text/swriter/guide/insert_line.xhp#insert_line"/> 125<embed href="text/shared/guide/linestyles.xhp#linestyles"/> 126</body> 127</helpdocument> 128