Difference between revisions of "Documentation/OOoAuthors User Manual/Writer Guide/The Table menu and toolbar"

From Apache OpenOffice Wiki
Jump to: navigation, search
 
m
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{WriterTablesTOC|PrevNext=block
+
{{DISPLAYTITLE:The Table menu and toolbar}}
|Prev=Documentation/OOoAuthors User Manual/Writer Guide/Working with Tables
+
{{WriterTablesTOC|ShowPrevNext=block
|Next=Documentation/OOoAuthors_User_Manual/Writer Guide/Creating a table}}__notoc__
+
|PrevPage=Documentation/OOoAuthors User Manual/Writer Guide/Working with Tables
 +
|NextPage=Documentation/OOoAuthors_User_Manual/Writer Guide/Creating a table}}__notoc__
 +
Table commands are located in the main '''Table '''menu and on the Table toolbar, shown in Figure 1. Table 1 describes the functions of these commands and icons.
  
= Creating a table =
+
[[Image:TableToolbar.png]]<br />''Table toolbar'':<br />
Before you insert a table into a document, it is beneficial to have an estimate of the number of rows and columns required. However, if necessary, you can easily make changes later.
+
'''1''' Table '''2''' Line Style '''3''' Line Color (of the border) '''4''' Borders '''5''' Background Color '''6''' Merge Cells '''7''' Split Cells '''8''' Optimize '''9''' Top '''10''' Center (vertical) '''11''' Bottom '''12''' Insert Row '''13''' Insert Column '''14''' Delete Row '''15''' Delete Column '''16''' AutoFormat '''17''' Table Properties '''18''' Sort '''19''' Sum
  
== Inserting a new table ==
+
When you create a table or select an existing table, the Table toolbar may be displayed automatically. You can manually display the Table toolbar by clicking '''View > Toolbars > Table'''. The toolbar can float on top of the main Writer window (as above) or it can be docked along any side of the window.
To insert a new table, position the cursor where you want the table to appear, then use any of the following methods to open the Insert Table dialog box:
+
  
* From the main menu, select '''Table > Insert > Table'''.
+
''Table 1: Functions of the icons on the Table toolbar''
* Press ''Control+F12''.
+
* From the Standard toolbar, click the '''Table''' icon [[Image:TableIcon.png]].
+
  
[[Image:WG9-2.png|Insert Table dialog box]]<br>''Inserting a new table using the Insert Table dialog box''
+
{| class="prettytable"
 +
! Icon Name
 +
! Description
  
Here you can specify the properties for the new table.
+
|-
 +
| Table
 +
| Opens the Insert Table dialog box where you can set up and insert a table into the document, name the table for use with the Navigator, and set some options. You can also use the mouse to click the arrow at the right, drag to select the number of rows and columns to include in the table, and then release the mouse button on the last (lower right) cell.
  
Under ''Name'', you can enter a different name than the OOo-generated default for the table. This might come in handy in case you want the tables displayed in the Navigator in a certain (sorted) way.
+
|-
 +
| Line Style
 +
| Opens the Border Style toolbar where you can modify the style of the border line.
  
Under ''Size'', specify the initial number of columns and rows for the new table. You can change the size of the table later, if necessary.
+
|-
 +
| Line Color (of the border)
 +
| Opens the Border Color toolbar where you can modify the color of the border.
  
Under ''Options'', set up the initial table characteristics. Selecting the check boxes in this section of the dialog produces the following results:
+
|-
 +
| Borders
 +
| Opens the Borders toolbar where you can select which sides should have a border.
  
* '''Heading''' — Defines the first row(s) in the table as headings. The default ''Table Heading'' paragraph style is applied to the heading rows and thus makes the text centered, bold, and italic. The OOo predefined ''Table Heading'' paragraph style may be modified in the Styles and Formatting window, if desired.
+
|-
* '''Repeat heading''' — Repeats the heading row(s) of the table at the top of subsequent pages if the table spans more than one page.<br/> ''The first ... rows'' —Specifies the number of rows to be repeated. Default is 1.
+
| Background Color
* '''Don’t split table''' — Prevents the table from spanning more than one page. This can be useful if the table starts near the end of a page, and would look better if it were completely located on the following page. If the table becomes longer than would fit on one page, you will need to either de-select this check box or manually split the table.
+
| Opens the Background toolbar where you can select the background color.
* '''Border''''' ''— Surrounds each cell of the table with a border. This border can be modified or deleted later.
+
  
The '''AutoFormat''' button opens a dialog from where it is possible to select one of the many predefined table layouts. See [[#AutoFormatting tables|AutoFormatting tables]] for more information.
+
|-
 +
| Merge Cells
 +
| Combines the selected cells into a single cell. Refer to [[Documentation/OOoAuthors User Manual/Writer Guide/Formatting a table#Merging and splitting cells|Merging and splitting cells]] for an example of using this button.
  
After making your choices, click '''OK'''. Writer creates a table as wide as the page margins, with all columns the same width and all rows the same height. You can then adjust the columns and rows later to suit your needs.
+
|-
 +
| Split Cells
 +
| Opens the Split Cell dialog box where you can define how to split a cell. Refer to [[Documentation/OOoAuthors User Manual/Writer Guide/Formatting a table#Merging and splitting tables|Merging and splitting tables]] for an example of using this button.
  
'''Tip:''' To directly insert a table with the default properties, click on the little arrow next to the '''Table''' icon on the Standard toolbar. A graphic appears where you can choose the table’s size (rows and columns). To create the table, click on the cell that you want to be on the last row of the last column. Holding down the mouse button over the '''Table''' icon will also display the graphic.
+
|-
 +
| Optimize
 +
| Opens the Optimize toolbar where you can distribute the columns or rows evenly or optimize the row height or column width.
  
== Creating nested tables ==
+
|-
With OpenOffice.org 2.0 it became possible to create tables within tables, nested to a depth only limited by imagination and practicality. The figure below demonstrates a simple, 2 level example.
+
| Top
 +
| Aligns the contents of the selected cells to the top of the cell.
  
To achieve this, simply click in a cell of an existing table and use any of the methods mentioned in [[#Inserting a new table|Inserting a new table]].
+
|-
 +
| Center (vertical)
 +
| Aligns the contents of the selected cells to the center of the cell.
  
[[Image:WG9-3.png|Nested table]]<br>''Nested table example. The shaded table is nested in a cell of the larger table.''
+
|-
 +
| Bottom
 +
| Aligns the contents of the selected cells to the bottom of the cell.
  
== Using AutoCorrect to create a table ==
+
|-
You can also create a table by typing a series of hyphens (-) or tabs separated by plus signs. For example, type: +------+---+ and then press ''Enter''. Plus signs indicate column dividers, while hyphens and tabs indicate the width of a column.  
+
| Insert Row
 +
| Inserts a row below the selected row.
  
For example, this character sequence:
+
|-
 +
| Insert Column
 +
| Inserts a column after the selected column.
  
+-----------------+---------------+------+
+
|-
 +
| Delete Row
 +
| Deletes the selected row(s) from the table.
  
creates a table like this:
+
|-
 +
| Delete Column
 +
| Deletes the selected column(s) from the table.
  
[[Image:WG9-x.png|AutoTable]]
+
|-
 +
| AutoFormat
 +
| Opens the AutoFormat dialog box where you can select among several predefined formatting sets. Each set is characterized by its own fonts, shading, and borders styles. You can also select '''AutoFormat''' from the Insert Table dialog box.
  
'''Note:''' This function can be disabled or enabled in '''Tools > AutoCorrect'''. On the ''Options'' tab, deselect or select the '''Create table''' check box. This function does not operate when creating nested tables.
+
|-
 +
| Table Properties
 +
| Opens the Table Format dialog box where you can modify various properties for the table—for example: name, alignment, spacing, column width, borders, and background.
 +
 
 +
|-
 +
| Sort
 +
| Opens the Sort dialog box where you can specify the sort criteria for the selected cells.
 +
 
 +
|-
 +
| Sum
 +
| Activates the sum function. Refer to [[Documentation/OOoAuthors User Manual/Writer Guide/Using spreadsheet functions in a table|Using spreadsheet functions in a table]] for an example of using this function.
 +
 
 +
|}
  
'''Caution:''' Always be careful when using tabs that you (a) know how wide they are set and (b) make sure that the tabs are set to the same values if used with other documents or by other users.
 
  
 
{{Manual}}
 
{{Manual}}
 +
[[Category: Writer Guide (Documentation)]]

Latest revision as of 09:02, 20 January 2009


Table commands are located in the main Table menu and on the Table toolbar, shown in Figure 1. Table 1 describes the functions of these commands and icons.

TableToolbar.png
Table toolbar:
1 Table 2 Line Style 3 Line Color (of the border) 4 Borders 5 Background Color 6 Merge Cells 7 Split Cells 8 Optimize 9 Top 10 Center (vertical) 11 Bottom 12 Insert Row 13 Insert Column 14 Delete Row 15 Delete Column 16 AutoFormat 17 Table Properties 18 Sort 19 Sum

When you create a table or select an existing table, the Table toolbar may be displayed automatically. You can manually display the Table toolbar by clicking View > Toolbars > Table. The toolbar can float on top of the main Writer window (as above) or it can be docked along any side of the window.

Table 1: Functions of the icons on the Table toolbar

Icon Name Description
Table Opens the Insert Table dialog box where you can set up and insert a table into the document, name the table for use with the Navigator, and set some options. You can also use the mouse to click the arrow at the right, drag to select the number of rows and columns to include in the table, and then release the mouse button on the last (lower right) cell.
Line Style Opens the Border Style toolbar where you can modify the style of the border line.
Line Color (of the border) Opens the Border Color toolbar where you can modify the color of the border.
Borders Opens the Borders toolbar where you can select which sides should have a border.
Background Color Opens the Background toolbar where you can select the background color.
Merge Cells Combines the selected cells into a single cell. Refer to Merging and splitting cells for an example of using this button.
Split Cells Opens the Split Cell dialog box where you can define how to split a cell. Refer to Merging and splitting tables for an example of using this button.
Optimize Opens the Optimize toolbar where you can distribute the columns or rows evenly or optimize the row height or column width.
Top Aligns the contents of the selected cells to the top of the cell.
Center (vertical) Aligns the contents of the selected cells to the center of the cell.
Bottom Aligns the contents of the selected cells to the bottom of the cell.
Insert Row Inserts a row below the selected row.
Insert Column Inserts a column after the selected column.
Delete Row Deletes the selected row(s) from the table.
Delete Column Deletes the selected column(s) from the table.
AutoFormat Opens the AutoFormat dialog box where you can select among several predefined formatting sets. Each set is characterized by its own fonts, shading, and borders styles. You can also select AutoFormat from the Insert Table dialog box.
Table Properties Opens the Table Format dialog box where you can modify various properties for the table—for example: name, alignment, spacing, column width, borders, and background.
Sort Opens the Sort dialog box where you can specify the sort criteria for the selected cells.
Sum Activates the sum function. Refer to Using spreadsheet functions in a table for an example of using this function.


Content on this page is licensed under the Creative Common Attribution 3.0 license (CC-BY).
Personal tools