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="textscalcguidebordersxhp" indexer="include" status="PUBLISH">
36         <title xml-lang="en-US" id="tit">User Defined Borders in Cells </title>
37         <filename>/text/scalc/guide/borders.xhp</filename>
38      </topic>
39   </meta>
40   <body>
41<bookmark xml-lang="en-US" branch="index" id="bm_id3457441"><bookmark_value>cells;borders</bookmark_value>
42      <bookmark_value>line arrangements with cells</bookmark_value>
43      <bookmark_value>borders;cells</bookmark_value>
44</bookmark><comment>MW made "line arrangement;" a one level entry</comment>
45<paragraph xml-lang="en-US" id="hd_id4544816" role="heading" level="1" l10n="NEW"><variable id="borders"><link href="text/scalc/guide/borders.xhp">User Defined Borders in Cells</link>
46</variable></paragraph>
47      <paragraph xml-lang="en-US" id="par_id2320017" role="paragraph" l10n="NEW">You can apply a variety of different lines to selected cells.</paragraph>
48      <list type="ordered">
49         <listitem>
50            <paragraph xml-lang="en-US" id="par_id8055665" role="paragraph" l10n="NEW">Select the cell or a block of cells.</paragraph>
51         </listitem>
52         <listitem>
53            <paragraph xml-lang="en-US" id="par_id9181188" role="paragraph" l10n="NEW">Choose <item type="menuitem">Format - Cells</item>.</paragraph>
54         </listitem>
55         <listitem>
56            <paragraph xml-lang="en-US" id="par_id9947508" role="paragraph" l10n="NEW">In the dialog, click the <emph>Borders</emph> tab.</paragraph>
57         </listitem>
58         <listitem>
59            <paragraph xml-lang="en-US" id="par_id7907956" role="paragraph" l10n="NEW">Choose the border options you want to apply and click OK.</paragraph>
60         </listitem>
61      </list>
62      <paragraph xml-lang="en-US" id="par_id1342204" role="paragraph" l10n="NEW">The options in the <emph>Line arrangement</emph> area can be used to apply multiple border styles.</paragraph>
63      <paragraph xml-lang="en-US" id="hd_id4454481" role="heading" level="2" l10n="NEW">Selection of cells</paragraph>
64      <paragraph xml-lang="en-US" id="par_id7251503" role="paragraph" l10n="NEW">Depending on the selection of cells, the area looks different.</paragraph>
65      <table id="tbl_id4423352">
66         <tablerow>
67            <tablecell>
68               <paragraph xml-lang="en-US" id="par_id8716696" role="tablehead" l10n="NEW">Selection</paragraph>
69            </tablecell>
70            <tablecell>
71               <paragraph xml-lang="en-US" id="par_id4677877" role="tablehead" l10n="NEW">Line arrangement area</paragraph>
72            </tablecell>
73         </tablerow>
74         <tablerow>
75            <tablecell>
76               <paragraph xml-lang="en-US" id="par_id807824" role="tablecontent" l10n="NEW">One cell</paragraph>
77            </tablecell>
78            <tablecell>
79               <paragraph xml-lang="en-US" id="par_id8473464" role="tablecontent" l10n="NEW">
80<image id="img_id1737113" src="res/helpimg/border_ca_1.png" width="1.2602in" height="1.5937in"><alt xml-lang="en-US" id="alt_id1737113">borders with one cell selected</alt>
81	</image></paragraph>
82            </tablecell>
83         </tablerow>
84         <tablerow>
85            <tablecell>
86               <paragraph xml-lang="en-US" id="par_id3509933" role="tablecontent" l10n="NEW">Cells in a column</paragraph>
87            </tablecell>
88            <tablecell>
89               <paragraph xml-lang="en-US" id="par_id6635639" role="tablecontent" l10n="NEW">
90<image id="img_id1680959" src="res/helpimg/border_ca_2.png" width="1.2602in" height="1.5937in"><alt xml-lang="en-US" id="alt_id1680959">borders with a column selected</alt>
91	</image></paragraph>
92            </tablecell>
93         </tablerow>
94         <tablerow>
95            <tablecell>
96               <paragraph xml-lang="en-US" id="par_id8073366" role="tablecontent" l10n="NEW">Cells in a row</paragraph>
97            </tablecell>
98            <tablecell>
99               <paragraph xml-lang="en-US" id="par_id6054567" role="tablecontent" l10n="NEW">
100<image id="img_id9623096" src="res/helpimg/border_ca_3.png" width="1.2602in" height="1.5937in"><alt xml-lang="en-US" id="alt_id9623096">borders with a row selected</alt>
101	</image></paragraph>
102            </tablecell>
103         </tablerow>
104         <tablerow>
105            <tablecell>
106               <paragraph xml-lang="en-US" id="par_id466322" role="tablecontent" l10n="NEW">Cells in a block of 2x2 or more</paragraph>
107            </tablecell>
108            <tablecell>
109               <paragraph xml-lang="en-US" id="par_id4511551" role="tablecontent" l10n="NEW">
110<image id="img_id8139591" src="res/helpimg/border_ca_4.png" width="1.2602in" height="1.5937in"><alt xml-lang="en-US" id="alt_id8139591">borders with a block selected</alt>
111	</image></paragraph>
112            </tablecell>
113         </tablerow>
114      </table>
115
116      <paragraph xml-lang="en-US" id="par_id5383465" role="note" l10n="NEW">You cannot apply borders to multiple selections.</paragraph>
117      <paragraph xml-lang="en-US" id="hd_id7790154" role="heading" level="2" l10n="NEW">Default Settings</paragraph>
118      <paragraph xml-lang="en-US" id="par_id2918485" role="paragraph" l10n="NEW">Click one of the <emph>Default</emph> icons to set or reset multiple borders.</paragraph>
119      <list type="unordered">
120         <listitem>
121            <paragraph xml-lang="en-US" id="par_id1836909" role="listitem" l10n="NEW">The thin gray lines inside an icon show the borders that will be reset or cleared.</paragraph>
122         </listitem>
123         <listitem>
124            <paragraph xml-lang="en-US" id="par_id5212561" role="listitem" l10n="NEW">The dark lines inside an icon show the lines that will be set using the selected line style and color.</paragraph>
125         </listitem>
126         <listitem>
127            <paragraph xml-lang="en-US" id="par_id4818872" role="listitem" l10n="NEW">The thick gray lines inside an icon show the lines that will not be changed.</paragraph>
128         </listitem>
129      </list>
130      <paragraph xml-lang="en-US" id="hd_id8989226" role="heading" level="3" l10n="NEW">Examples</paragraph>
131      <paragraph xml-lang="en-US" id="par_id622577" role="paragraph" l10n="NEW">Select a block of about 8x8 cells, then choose <emph>Format - Cells - Borders</emph>.</paragraph>
132      <paragraph xml-lang="en-US" id="par_id8119754" role="paragraph" l10n="NEW">
133<image id="img_id7261268" src="res/helpimg/border_ca_5.png" width="1.0937in" height="0.2189in"><alt xml-lang="en-US" id="alt_id7261268">default icon row of Borders tab page</alt>
134	</image></paragraph>
135      <list type="unordered">
136         <listitem>
137            <paragraph xml-lang="en-US" id="par_id8964201" role="listitem" l10n="NEW">Click the left icon to clear all lines. This removes all outer borders, all inner lines, and all diagonal lines.</paragraph>
138         </listitem>
139         <listitem>
140            <paragraph xml-lang="en-US" id="par_id6048463" role="listitem" l10n="NEW">Click the second icon from the left to set an outer border and to remove all other lines.</paragraph>
141         </listitem>
142         <listitem>
143            <paragraph xml-lang="en-US" id="par_id1495406" role="listitem" l10n="NEW">Click the rightmost icon to set an outer border. The inner lines are not changed, except the diagonal lines, which will be removed.<comment>is this a bug?</comment></paragraph>
144         </listitem>
145      </list>
146      <paragraph xml-lang="en-US" id="par_id9269386" role="paragraph" l10n="NEW">Now you can continue to see which lines the other icons will set or remove.</paragraph>
147      <paragraph xml-lang="en-US" id="hd_id3593554" role="heading" level="2" l10n="NEW">User Defined Settings</paragraph>
148      <paragraph xml-lang="en-US" id="par_id4018066" role="paragraph" l10n="NEW">In the <emph>User defined</emph> area, you can click to set or remove individual lines. The preview shows lines in three different states. </paragraph>
149      <paragraph xml-lang="en-US" id="par_id8004699" role="paragraph" l10n="NEW">Repeatedly click an edge or a corner to switch through the three different states.</paragraph>
150      <table id="tbl_id5196996">
151         <tablerow>
152            <tablecell>
153               <paragraph xml-lang="en-US" id="par_id8037659" role="tablehead" l10n="NEW">Line types</paragraph>
154            </tablecell>
155            <tablecell>
156               <paragraph xml-lang="en-US" id="par_id2305978" role="tablehead" l10n="NEW">Image</paragraph>
157            </tablecell>
158            <tablecell>
159               <paragraph xml-lang="en-US" id="par_id8716086" role="tablehead" l10n="NEW">Meaning</paragraph>
160            </tablecell>
161         </tablerow>
162         <tablerow>
163            <tablecell>
164               <paragraph xml-lang="en-US" id="par_id3978087" role="tablecontent" l10n="NEW">A black line</paragraph>
165            </tablecell>
166            <tablecell>
167               <paragraph xml-lang="en-US" id="par_id4065065" role="tablecontent" l10n="NEW">
168<image id="img_id9379863" src="res/helpimg/border_ca_7.png" width="1.2602in" height="1.1252in"><alt xml-lang="en-US" id="alt_id9379863">solid line for user defined border</alt>
169	</image></paragraph>
170            </tablecell>
171            <tablecell>
172               <paragraph xml-lang="en-US" id="par_id6987823" role="tablecontent" l10n="NEW">A black line sets the corresponding line of the selected cells. The line is shown as a dotted line when you choose the 0.05 pt line style. Double lines are shown when you select a double line style.</paragraph>
173            </tablecell>
174         </tablerow>
175         <tablerow>
176            <tablecell>
177               <paragraph xml-lang="en-US" id="par_id1209143" role="tablecontent" l10n="NEW">A gray line</paragraph>
178            </tablecell>
179            <tablecell>
180               <paragraph xml-lang="en-US" id="par_id6653340" role="tablecontent" l10n="NEW">
181<image id="img_id6972563" src="res/helpimg/border_ca_gray.png" width="1.2602in" height="1.1252in"><alt xml-lang="en-US" id="alt_id6972563">gray line for user defined border</alt>
182	</image></paragraph>
183            </tablecell>
184            <tablecell>
185               <paragraph xml-lang="en-US" id="par_id2278817" role="tablecontent" l10n="NEW">A gray line is shown when the corresponding line of the selected cells will not be changed. No line will be set or removed at this position.</paragraph>
186            </tablecell>
187         </tablerow>
188         <tablerow>
189            <tablecell>
190               <paragraph xml-lang="en-US" id="par_id5374919" role="tablecontent" l10n="NEW">A white line</paragraph>
191            </tablecell>
192            <tablecell>
193               <paragraph xml-lang="en-US" id="par_id52491" role="tablecontent" l10n="NEW">
194<image id="img_id3801080" src="res/helpimg/border_ca_white.png" width="1.2602in" height="1.1252in"><alt xml-lang="en-US" id="alt_id3801080">white line for user defined border</alt>
195	</image></paragraph>
196            </tablecell>
197            <tablecell>
198               <paragraph xml-lang="en-US" id="par_id372325" role="tablecontent" l10n="NEW">A white line is shown when the corresponding line of the selected cells will be removed.</paragraph>
199            </tablecell>
200         </tablerow>
201      </table>
202
203      <paragraph xml-lang="en-US" id="hd_id7282937" role="heading" level="3" l10n="NEW">Examples</paragraph>
204      <paragraph xml-lang="en-US" id="par_id4230780" role="paragraph" l10n="NEW">Select a single cell, then choose <emph>Format - Cells - Borders</emph>.</paragraph>
205      <paragraph xml-lang="en-US" id="par_id1712393" role="paragraph" l10n="NEW">Click the lower edge to set a very thin line as a lower border. All other lines will be removed from the cell.</paragraph>
206      <paragraph xml-lang="en-US" id="par_id5149693" role="paragraph" l10n="NEW">
207<image id="img_id9467452" src="res/helpimg/border_ca_6.png" width="1.2602in" height="1.1252in"><alt xml-lang="en-US" id="alt_id9467452">setting a thin lower border</alt>
208	</image></paragraph>
209      <paragraph xml-lang="en-US" id="par_id5759453" role="paragraph" l10n="NEW">Choose a thicker line style and click the lower edge. This sets a thicker line as a lower border.</paragraph>
210      <paragraph xml-lang="en-US" id="par_id6342051" role="paragraph" l10n="NEW">
211<image id="img_id7431562" src="res/helpimg/border_ca_7.png" width="1.2602in" height="1.1252in"><alt xml-lang="en-US" id="alt_id7431562">setting a thick line as a border</alt>
212	</image></paragraph>
213      <paragraph xml-lang="en-US" id="par_id5775322" role="paragraph" l10n="NEW">Click the second <emph>Default</emph> icon from the left to set all four borders. Then repeatedly click the lower edge until a white line is shown. This removes the lower border.</paragraph>
214      <paragraph xml-lang="en-US" id="par_id2882778" role="paragraph" l10n="NEW">
215<image id="img_id8155766.00000001" src="res/helpimg/border_ca_8.png" width="1.2602in" height="1.1252in"><alt xml-lang="en-US" id="alt_id8155766.00000001">removing lower border</alt>
216	</image></paragraph>
217      <paragraph xml-lang="en-US" id="par_id8102053" role="paragraph" l10n="NEW">You can combine several line types and styles. The last image shows how to set thick outer borders (the thick black lines), while any diagonal lines inside the cell will not be touched (gray lines).</paragraph>
218      <paragraph xml-lang="en-US" id="par_id2102420" role="paragraph" l10n="NEW">
219<image id="img_id5380718" src="res/helpimg/border_ca_9.png" width="1.2602in" height="1.1252in"><alt xml-lang="en-US" id="alt_id5380718">advanced example for cell borders</alt>
220	</image></paragraph>
221      <section id="relatedtopics">
222<switch select="appl">
223<case select="WRITER"><embed href="text/swriter/guide/border_page.xhp#border_page"/>
224</case>
225</switch><embed href="text/shared/guide/border_paragraph.xhp#border_paragraph"/>
226      </section>
227   </body>
228</helpdocument>