3 "Getting Started" Manual
3 "Getting Started" Manual
with
OpenOffice.org
Authors
Magnus Adielsson Thomas Astleitner
Richard Barnes Agnes Belzunce
Chris Bonde Daniel Carrera
JiHui Choi Richard Detwiler
Laurent Duperval Spencer E. Harpe
Regina Henschel Peter Hillier-Brook
John Kane Stefan A. Keel
Michael Kotsarinis Peter Kupfer
Ian Laurenson Dan Lewis
Alan Madden Michel Pinquier
Andrew Pitonyak Carol Roberts
Iain Roberts Gary Schnabl
Robert Scott Janet Swisher
Jim Taylor Alex Thurgood
Barbara M. Tobias Jean Hollis Weber
Linda Worthington Michele Zarri
Feedback
Please direct any comments or suggestions about this document to:
[email protected]
Calc (spreadsheet)
Calc has all of the advanced analysis, charting, and decision-making
features expected from a high-end spreadsheet. It includes over 300
functions for financial, statistical, and mathematical operations, among
others. The Scenario Manager provides “what if” analyses. Calc
generates 2-D and 3-D charts, which can be integrated into other OOo
documents. You can also open and work with Microsoft Excel
workbooks and save them in Excel format. Calc can export
spreadsheets to Adobe’s PDF and to HTML.
Base (database)
Base provides tools for day-to-day database work within a simple
interface. It can create and edit forms, reports, queries, tables, views,
and relations, so that managing a connected database is much the
same as in other popular database applications. Base provides many
new features, such as the ability to analyze and edit relationships from
a diagram view. Base incorporates HSQLDB as its default relational
database engine. It can also use dBASE, Microsoft Access, MySQL, or
Oracle, or any ODBC-compliant or JDBC-compliant database. Base also
provides support for a subset of ANSI-92 SQL.
Minimum requirements
OpenOffice.org 3 requires one of the following operating systems:
• Microsoft Windows 2000 (Service Pack 2 or higher), XP, or
newer
• GNU/Linux Kernel version 2.4 and glibc 2.3.2 or newer
• Mac OS X 10.4.x, X11 required; Mac OS X 10.5+ without X11
• Solaris 10 OS or higher
Some OpenOffice.org features (wizards and the HSQLDB database
engine) require that the Java Runtime Environment (JRE) be installed
on your computer. Although OOo will work without Java support, some
features will not be available. You can download OOo for some
operating systems with or without JRE included. If you have a slow
machine and do not often need the features requiring JRE, you can try
to disable it to speed up the loading of the program.
For a more detailed (and up-to-date) listing of requirements, see the
OpenOffice.org website.
Help system
OOo comes with an extensive Help system. This is your first line of
support for using OOo.
To display the full Help system, press F1 or select OpenOffice.org
Help from the Help menu. In addition, you can choose whether to
activate Tips, Extended tips, and the Help Agent (using Tools >
Options > OpenOffice.org > General).
If Tips are enabled, place the mouse pointer over any of the icons to
see a small box (“tooltip”) with a brief explanation of the icon’s
function. For a more detailed explanation, select Help > What's This?
and hold the pointer over the icon.
There is more than one way to start OOo from the command line,
depending on whether you have installed a customized version or the
standard download from the OOo website.
If you installed using the download on the OOo website, you can start
Writer by typing at the command line:
soffice -writer
or
swriter
Writer will start and create a new document. Likewise, you can start
other OOo components from the command line:
To see a list of options you can use when starting Writer at the
command line, type:
soffice -?
Below is a list of some of the more popular options.
Option Description
-help Get a complete list of options.
-nologo Do not show the startup screen.
-show <odp-file> Start presentation immediately.
-view <documents ...> Open documents in viewer (read-only) mode.
-minimized Start OOo minimized.
-norestore Suppress restart/restore after fatal errors.
-invisible No startup screen, no default document, and
no UI. This is useful for third-party
applications that use functionality provided
by OOo.
Menu bar
The Menu bar is located across the top of the OOo window, just below
the Title bar. When you choose one of the menus listed below, a
submenu drops down to show commands.
• File contains commands that apply to the entire document such
as Open, Save, and Export as PDF.
• Edit contains commands for editing the document such as Undo:
xxx (where xxx is the command to undo) and Find & Replace. It
also contains commands to cut, copy, and paste selected parts of
your document.
• View contains commands for controlling the display of the
document such as Zoom and Web Layout.
• Insert contains commands for inserting elements into your
document such as Header, Footer, and Picture.
• Format contains commands, such as Styles and Formatting and
AutoCorrect, for formatting the layout of your document.
• Table shows all commands to insert and edit a table in a text
document.
• Tools contains functions such as Spelling and Grammar,
Customize, and Options.
• Window contains commands for the display window.
• Help contains links to the OpenOffice.org Help file, What’s This?,
and information about the program. See “How to get help“ on
page 15.
Toolbars
OOo has several types of toolbars: docked, floating, and tear-off.
Docked toolbars can be moved to different locations or made to float,
and floating toolbars can be docked.
Floating toolbars
OOo includes several additional context-sensitive toolbars, whose
defaults appear as floating toolbars in response to the cursor’s current
position or selection. For example, when the cursor is in a table, a
floating Table toolbar appears, and when the cursor is in a numbered
or bullet list, the Bullets and Numbering toolbar appears. You can dock
these toolbars to the top, bottom, or side of the window, if you wish
(see “Moving toolbars” above).
Customizing toolbars
You can customize toolbars in several ways, including choosing which
icons are visible and locking the position of a docked toolbar. You can
also add icons and create new toolbars, as described in Chapter 14.
To access a toolbar’s customization options, use the down-arrow at the
end of the toolbar or on its title bar (see Figure 6).
Status bar
The status bar is located at the bottom of the workspace. It provides
information about the document and convenient ways to quickly
change some features. It is similar in Writer, Calc, Impress, and Draw,
although each component includes some component-specific items.
Under Microsoft Windows you can use either the OOo Open and
Note Save As dialogs or the ones provided by Microsoft Windows.
See “Using the Open and Save As dialogs” on page 30.
Saving documents
To save a new document, do one of the following:
• Press Control+S.
• Choose File > Save from the menu bar.
• Click the Save button on the main toolbar.
When the Save As dialog appears, enter the file name, verify the file
type (if applicable), and click Save.
Password protection
To protect an entire document from being viewable without a
password, use the option on the Save As dialog to enter a password.
This option is only available for files saved in OpenDocument formats
or the older OpenOffice.org 1.x formats.
1) On the Save As dialog, select the Save with password option,
and then click Save. You will receive a prompt (Figure 10).
2) Type the same password in both fields, and then click OK. If the
passwords match, the document is saved password protected. If
the passwords do not match, you receive the prompt to enter the
password again.
click the List Box On/Off icon . Click this icon again to show the
list box.
The Navigator provides several convenient ways to move around a
document and find items in it:
• When a category is showing the list of objects in it, double-click
on an object to jump directly to that object’s location in the
document.
Objects are much easier to find if you have given them names
when creating them, instead of keeping OOo’s default graphics1,
graphics2, Table1, Table2, and so on—which may not correspond
to the position of the object in the document.
If you only want to see the content in a certain category, highlight
the category and click the Content View icon . Until you click
the icon again, only the objects of that category will be displayed.
• Click the Navigation icon (second icon from the left at the
top of the Navigator) to display the Navigation toolbar (Figure
13). Here you can pick one of the categories and use the
Previous and Next icons to move from one item to the next. This
is particularly helpful for finding items like bookmarks and
indexes, which can be difficult to see.
The names of the icons (shown in the tooltips) change to match
the selected category; for example, Next Graphic or Next
Bookmark.
Caution Not saving your document could result in the loss of recently
made changes, or worse still, your entire file.
Closing OpenOffice.org
To close OOo completely, choose File > Exit, or close the last open
document as described in “Closing a document” above.
If all the documents have been saved, OOo closes immediately. If any
documents have been modified but not saved, a warning message
appears. Follow the procedure in “Closing a document” to save or
discard your changes.
The Back button has the same effect on all pages of the
Note Options dialog. It resets the options to the values that were in
place when you opened OpenOffice.org.
General options
The options on the OpenOffice.org – General page are described below.
Help - Tips
When Tips is active, one or two words will appear when you hold the
mouse pointer over an icon or field, without clicking.
Help - Extended tips
When Extended tips is active, a brief description of the function of a
particular icon or menu command or a field on a dialog appears
when you hold the mouse pointer over that item.
Open/Save dialogs
To use the standard Open and Save dialogs for your operating
system, deselect the Use OpenOffice.org dialogs option. When
this option is selected, the Open and Save dialogs supplied with
OpenOffice.org will be used. See Chapter 1 (Introducing
OpenOffice.org) for more about the OOo Open and Save dialogs.
This book uses the OOo Open and Save dialogs in illustrations.
Document status
If this option is selected, then the next time you close the document
after printing, the print date is recorded in the document properties
as a change and you will be prompted to save the document again,
even if you did not make any other changes.
Year (two digits)
Specifies how two-digit years are interpreted. For example, if the
two-digit year is set to 1930, and you enter a date of 1/1/30 or later
into your document, the date is interpreted as 1/1/1930 or later. An
“earlier” date is interpreted as being in the following century; that
is, 1/1/20 is interpreted as 1/1/2020.
View options
The options on the OpenOffice.org – View page affect the way the
document window looks and behaves. Some of these options are
described below. Set them to suit your personal preferences.
Figure 22. Font list (Left) With preview; (Right) Without preview
Font Lists - Show font history
Causes the last five fonts you have assigned to the current document
are displayed at the top of the font list.
Graphics output – Use hardware acceleration
Directly accesses hardware features of the graphical display adapter
to improve the screen display. Not supported on all operating
systems and OOo distributions.
Graphics output – Use anti-aliasing
Enables and disables anti-aliasing, which makes the display of most
graphical objects look smoother and with fewer artifacts. Not
supported on all operating systems and OOo distributions.
Mouse positioning
Specifies if and how the mouse pointer will be positioned in newly
opened dialogs.
Middle mouse button
Defines the function of the middle mouse button.
• Automatic scrolling – dragging while pressing the middle
mouse button shifts the view.
• Paste clipboard – pressing the middle mouse button inserts the
contents of the “Selection clipboard” at the cursor position.
The “Selection clipboard” is independent of the normal clipboard
that you use by Edit > Copy/Cut/Paste or their respective
Print options
On the OpenOffice.org – Print page, set the print options to suit your
default printer and your most common printing method.
In the Printer warnings section near the bottom of the page (Figure
23), you can choose whether to be warned if the paper size or
orientation specified in your document does not match the paper size
or orientation available for your printer. Having these warnings turned
on can be quite helpful, particularly if you work with documents
produced by people in other countries where the standard paper size is
different from yours.
Path options
On the OpenOffice.org – Paths page, you can change the location of
files associated with, or used by, OpenOffice.org to suit your working
situation. In a Windows system, for example, you might want to store
documents by default somewhere other than My Documents.
To make changes, select an item in the list shown in Figure 24 and
click Edit. On the Select Paths dialog (not shown), add or delete
folders as required, and then click OK to return to the Options dialog.
Note that some items can have at least two paths listed: one to a
shared folder (which might be on a network) and one to a user-specific
folder (normally on the user’s personal computer).
Font options
You can define replacements for any fonts that might appear in your
documents. If you receive from someone else a document containing
fonts that you do not have on your system, OpenOffice.org will
substitute fonts for those it does not find. You might prefer to specify a
different font from the one the program chooses.
On the OpenOffice.org – Fonts page (Figure 27):
1) Select the Apply Replacement Table option.
Security options
Use the OpenOffice.org – Security page (Figure 28) to choose security
options for saving documents and for opening documents that contain
macros.
Macro security
Click the Macro Security button to open the Macro Security dialog
(not shown here), where you can adjust the security level for
executing macros and specify trusted sources.
File sharing options for this document
Select the Open this document in read-only mode option to
restrict this document to be opened in read-only mode only. This
option protects the document against accidental changes. It is still
possible to edit a copy of the document and save that copy with the
same name as the original.
Select the Record changes option to enable recording changes.
This is the same as Edit > Changes > Record. To allow other users
of this document to apply changes, but prevent them from disabling
change recording, click the Protect buton and enter a password.
Appearance options
Writing, editing, and (especially) page layout are often easier when you
can see the page margins (text boundaries), the boundaries of tables
and sections (in Writer documents), page breaks in Calc, grid lines in
Draw or Writer, and other features. In addition, you might prefer to use
colors that are different from OOo’s defaults for such items as note
indicators or field shadings.
On the OpenOffice.org – Appearance page (Figure 30), you can specify
which items are visible and the colors used to display various items.
Accessibility options
Accessibility options include whether to allow animated graphics or
text, how long help tips remain showing, some options for high
contrast display, and a way to change the font for the user interface of
the OpenOffice.org program (see Figure 31).
Accessibility support relies on Sun Microsystems Java technology for
communications with assistive technology tools. See “Java options“
below. The Support assistive technology tools option is not shown on
all OOo installations. See Assistive Tools in OpenOffice.org in the Help
for other requirements and information.
Select or deselect the options as required.
Java options
If you install or update a Java Runtime Environment (JRE) after you
install OpenOffice.org, or if you have more than one JRE installed on
your computer, you can use the OpenOffice.org – Java options page
(Figure 32) to choose the JRE for OOo to use.
Improvement program
On the OpenOffice.org – Improvement Program page, you can choose
whether or not to participate in the OpenOffice.org Improvement
Program, which collects anonymous statistics about how you use OOo.
Although OOo can open files in the .docx, .xlsx, and .pptx
Note formats produced by Microsoft Office 2007, it cannot save in
those formats. This capability is planned for a future release.
Font sizes
Use these fields to define the respective font sizes for the HTML
<font size=1> to <font size=7> tags, if they are used in the HTML
pages. (Many pages no longer use these tags.)
Applying styles
OpenOffice.org provides several ways for you to select styles to apply.
Select More... at the bottom of the list to open the Styles and
Tip Formatting window.
Modifying styles
OpenOffice.org provides several ways to modify styles (both the
predefined styles and custom styles that you create):
• Changing a style using the Style dialog
• Updating a style from a selection
• Use AutoUpdate (paragraph and frame styles only)
• Load or copy styles from another document or template
Caution Make sure that there are unique properties in this paragraph.
For example, if there are two different font sizes or font styles,
that particular property will remain the same as before.
3) In the Styles and Formatting window, select the style you want to
update (single-click, not double-click), then long-click on the
arrow next to the New Style from Selection icon and click on
Update Style.
Using AutoUpdate
AutoUpdate applies to paragraph and frame styles only. If the
AutoUpdate option is selected on the Organizer page of the Paragraph
Style or Frame Style dialog, applying direct formatting to a paragraph
or frame using this style in your document automatically updates the
style itself.
Writer
Select some text and drag it to the Styles and Formatting window. If
Paragraph Styles are active, the paragraph style will be added to the
list. If Character Styles are active, the character style will be added
to the list.
Calc
Drag a cell selection to the Styles and Formatting window to create
cell styles.
Draw/Impress
Select and drag drawing objects to the Styles and Formatting
window to create graphics styles.
To copy styles from a file that is not open, click the File button.
Tip When you return to this dialog, both lists show the selected file
as well as all the currently open documents.
3) Open the folders and find the templates from and to which you
want to copy. Double-click on the name of the template or
document, and then double-click the Styles icon to show the list of
individual styles (Figure 50).
4) To copy a style, hold down the Ctrl key and drag the name of the
style from one list to the other.
Caution If you do not hold down the Control key when dragging, the
style will be moved from one list to the other. The style will
be deleted from the list you are dragging it from.
5) Repeat for each style you want to copy. If the receiving template
or document hasmany styles, you may not see any change unless
you scroll down in the list. When you are finished, click Close.
Deleting styles
You cannot remove (delete) any of OOo’s predefined styles from a
document or template, even if they are not in use.
You can remove any user-defined (custom) styles; but before you do,
you should make sure the styles are not in use. If an unwanted style is
in use, you will want to replace it with a substitute style.
To delete unwanted styles, right-click on them (one at a time) in the
Styles and Formatting window and click Delete on the pop-up menu.
If the style is in use, you receive a warning message.
Make sure the style is not in use before deletion. Otherwise,
Caution all objects with that style will return to the default style and
retain their formatting as manual formatting. This can be a
problem in a long document.
If the style is not in use, you receive a confirmation message; click Yes.
Creating a template
You can create your own templates in two ways: from a document, and
using a wizard.
Editing a template
You can edit a template’s styles and content, and then, if you wish, you
can reapply the template’s styles to documents that were created from
that template. (Note that you can only reapply styles. You cannot
reapply content.)
To edit a template:
1) From the main menu, choose File > Templates > Organize. The
Template Management dialog opens (see Figure 49).
2) In the box on the left, double-click the folder that contains the
template that you want to edit. A list of all the templates
contained in that folder appears underneath the folder name.
3) Select the template that you want to edit.
4) Click the Commands button and choose Edit from the drop-
down menu.
5) Edit the template just as you would any other document. To save
your changes, choose File > Save from the main menu.
4) Click the Run BASIC icon, then close the Basic window.
5) Save the document.
Next time when you open this document you will have the
update from template feature back.
Method 1
This method includes any graphics and wording (such as legal notices)
that exists in the new template, as well as including styles. If you don’t
want this material, you need to delete it.
1) Use File > New > Templates and Documents. Choose the
template you want. If the template has unwanted text or graphics
in it, delete them.
2) Open the document you want to change. (It opens in a new
window.) Press Control+A to select everything in the document.
Paste into the blank document created in step 1.
3) Update the table of contents, if there is one. Save the file.
Deleting a template
You cannot delete templates supplied with OOo or installed using the
Extension Manager; you can only delete templates that you have
created or imported.
To delete a template:
1) In the Template Management dialog, double-click the folder that
contains the template you want to delete. A list of the templates
contained in that folder appears underneath the folder name.
2) Click the template that you want to delete.
3) Click the Commands button and choose Delete from the drop-
down menu. A message box appears and asks you to confirm the
deletion. Click Yes.
Importing a template
If the template that you want to use is in a different location, you must
import it into an OOo template folder.
To import a template into a template folder:
1) In the Template Management dialog, select the folder into which
you want to import the template.
2) Click the Commands button and choose Import Template from
the drop-down menu. A standard file browser window opens.
3) Find and select the template that you want to import and click
Open. The file browser window closes and the template appears
in the selected folder.
4) If you want, type a new name for the template, and then press
Enter.
Page number
Shows the current page number, the sequence number of the
current page (if different), and the total number of pages in the
document. For example, if you restarted page numbering at 1 on the
third page, its page number is 1 and its sequence number is 3.
If any bookmarks have been defined in the document, a right-click
on this field pops up a list of bookmarks; click on the required one.
To jump to a specific page in the document, double-click on this
field. The Navigator opens. Click in the Page Number field and type
the sequence number of the required page. After a brief delay, the
display jumps to the selected page.
Page style
Shows the style of the current page. To change the page style, right-
click on this field. A list of page styles pops up; choose a different
style by clicking on it.
To edit the current page style, double-click on this field. The Page
Style dialog opens.
Language
Shows the language for the selected text.
Click to open a menu where you can choose another language for
the selected text or for the paragraph where the cursor is located.
You can also choose None (Do not check spelling) to exclude the
text from a spelling check or choose More... to open the Character
dialog.
Insert mode
Click to toggle between Insert and Overwrite modes when typing.
Selection mode
Click to toggle between STD (Standard), EXT (Extend), ADD (Add)
Digital signature
If the document has been digitally signed, an icon shows here.
You can double-click the icon to view the certificate.
Section or object information
When the cursor is on a section, heading, or list item, or when an
object (such as a picture or table) is selected, information about that
item appears in this field. Double-clicking in this area opens a
relevant dialog box. For details, consult the Help or the Writer Guide.
View layout
Click an icon to change between single page, side-by-side, and book
layout views (Figure 62). You can edit the document in any view.
Use Replace All with caution; otherwise, you may end up with
Caution some hilarious (and highly embarrassing) mistakes. A mistake
with Replace All might require a manual, word-by-word,
search to fix.
Any changes to the default tab setting will affect the existing
Note default tab stops in any document you open afterward, as well
as tab stops you insert after making the change.
To set the measurement unit and the spacing of default tab stop
intervals, go to Tools > Options > OpenOffice.org Writer >
General.
You can also set or change the measurement unit for rulers in the
current document by right-clicking on the ruler to open a list of units,
as shown in Figure 77. Click on one of them to change the ruler to that
unit. The selected setting applies only to that ruler.
Using AutoCorrect
Writer’s AutoCorrect function has a long list of common misspellings
and typing errors, which it corrects automatically. For example, “hte”
will be changed to “the”.
Formatting text
Formatting paragraphs
You can apply many formats to paragraphs using the buttons on the
Formatting toolbar. Figure 74 shows the Formatting toolbar as a
floating toolbar, customized to show only the buttons for paragraph
formatting. The appearance of the icons may vary with your operating
Formatting characters
You can apply many formats to characters using the buttons on the
Formatting toolbar. Figure 75 shows the Formatting toolbar as a
floating toolbar, customized to show only the buttons for character
formatting.
The appearance of the icons may vary with your operating system and
the selection of icon size and style in Tools > Options >
OpenOffice.org > View.
Hyphenating words
You have several choices regarding hyphenation: let Writer do it
automatically (using its hyphenation dictionaries), insert conditional
hyphens manually where necessary, or don’t hyphenate at all.
Automatic hyphenation
To turn automatic hyphenation of words on or off:
1) Press F11 to open the Styles and Formatting window (Figure 77).
You can also set hyphenation choices through Tools > Options >
Language Settings > Writing Aids. In Options, near the bottom of
the dialog, scroll down to the find the hyphenation settings (Figure 79).
Formatting pages
Writer provides several ways for you to control page layouts: page
styles, columns, frames, tables, and sections. For more information, see
Chapter 4 (Formatting Pages) in the Writer Guide.
Page layout is usually easier if you show text, object, table, and
section boundaries in Tools > Options > OpenOffice.org >
Tip Appearance, and paragraph ends, tabs, breaks, and other
items in Tools > Options > OpenOffice.org Writer >
Formatting Aids.
Numbering pages
To automatically number pages:
1) Insert a header or footer, as described in “Creating headers and
footers” on page 111.
2) Place the cursor in the header or footer where you want the page
number to appear and choose Insert > Fields > Page Number.
The Page Count field inserts the total number of pages in the
document, as shown on the Statistics tab of the document’s
Properties window (File > Properties). If you restart page
Note numbering anywhere in the document, then the total page
count may not be what you want. See Chapter 4 (Formatting
Pages) in the Writer Guide for more information.
Method 2:
1) Insert > Manual break.
2) By default, Page break is selected on the Insert Break dialog
(Figure 80).
3) Choose the required page Style.
4) Select Change page number.
5) Specify the page number to start from, and then click OK.
If you change the margins using the rulers, the new margins
affect the page style and will be shown in the Page Style dialog
Note the next time you open it.
Because the page style is affected, the changed margins apply
to all pages using that style.
Quick printing
Click the Print File Directly icon to send the entire document to
the default printer defined for your computer.
You can change the action of the Print File Directly icon to
send the document to the printer defined for the document
Note instead of the default printer for the computer. Go to Tools >
Options > Load/Save > General and select the Load
printer settings with the document option.
Controlling printing
For more control over printing, use File > Print to display the Print
dialog (Figure 83).
2) Click the Book Preview icon to display left and right pages in
their correct orientation.
3) To print the document from this page view, click the Print page
view icon to open the Print dialog. Choose your options and
click OK to print as usual.
4) To choose margins and other options for the printout, click the
Printing a brochure
You can print a document with two pages on each side of a sheet of
paper, arranged so that when the printed pages are folded in half, the
pages are in the correct order to form a booklet or brochure.
To print a brochure on a single-sided printer:
1) Plan your document so it will look good when printed half size
(choose appropriate margins, font sizes, and so on). Choose File
Printing envelopes
Printing envelopes involves two steps: setup and printing.
To set up an envelope to be printed by itself or with your document:
1) Choose Insert > Envelope from the menu bar.
2) In the Envelope dialog, start with the Envelope tab (Figure 85).
Verify, add, or edit the information in the Addressee and Sender
boxes (the “from” on the envelope).
You can type information directly into the Addressee and Sender
boxes, or use the right-hand drop-down lists to select the
database or table from which you can draw the envelope
information, if desired. See Chapter 11 (Using Mail Merge) in the
Writer Guide for details on how to print envelopes from a
database.
3) On the Format page (Figure 73), verify or edit the positioning of
the addressee and the sender information. The preview area on
the lower right shows the effect of your positioning choices.
To format the text of these blocks, click the Edit buttons to the
right. In the drop-down list you have two choices: Character and
Paragraph.
Using cross-references
If you type in references to other parts of the document, those
references can easily get out of date if you reword a heading, add or
remove figures, or reorganize topics. Replace any typed cross-
references with automatic ones and, when you update fields, all the
references will update automatically to show the current wording or
Title bar
The Title bar, located at the top, shows the name of the current
spreadsheet. When the spreadsheet is newly created, its name is
Untitled X, where X is a number. When you save a spreadsheet for the
first time, you are prompted to enter a name of your choice.
Menu bar
Under the Title bar is the Menu bar. When you choose one of the
menus, a submenu appears with other options. You can modify the
Menu bar, as discussed in Chapter 14 (Customizing OpenOffice.org).
Toolbars
Three toolbars are located under the Menu bar by default: the
Standard toolbar, the Formatting toolbar, and the Formula Bar.
The icons on these toolbars provide a wide range of common
commands and functions. You can also modify these toolbars, as
discussed in Chapter 14 (Customizing OpenOffice.org).
Figure 97. Apply Style, Font Name and Font Size boxes
Formula bar
On the left hand side of the Formula bar (see Figure 98) is a small text
box, called the Name Box, with a letter and number combination in it,
such as D7. This combination, called the cell reference, is the column
letter and row number of the selected cell.
To the right of the Name box are the the Function Wizard, Sum, and
Function buttons.
Clicking the Function Wizard button opens a dialog from which you
can search through a list of available functions This can be very useful
because it also shows how the functions are formatted.
In a spreadsheet the term function includes much more than
mathematical functions. See Chapter 7 in the Calc Guide.
The Sum button inserts a formula into the current cell that totals the
numbers in the cells above the current cell. If there are no numbers
above the current cell, then the cells to the left are placed in the Sum
formula.
Individual cells
The main section of the screen displays the individual cells in the form
of a grid, with each cell being at the intersection of a column and a
row.
At the top of the columns and at the left-hand end of the rows are a
series of gray boxes containing letters and numbers. These are the
column and row headers. The columns start at A and go on to the right,
and the rows start at 1 and go down.
These column and row headers form the cell references that appear in
the Sheet Area box on the Formula Bar (Figure 98). You can turn these
headers off by selecting View > Column & Row Headers.
Sheet tabs
At the bottom of the grid of cells are the sheet tabs, which enable
access to each individual sheet. The visible (active) sheet has a white
tab.
Clicking on another sheet tab displays that sheet and its tab turns
white. You can also select multiple sheet tabs at once by holding down
the Control key while you click the names.
Status bar
At the very bottom of the Calc window is the status bar, which provides
information about the spreadsheet and convenient ways to quickly
change some of its features. Most of the fields are similar to those in
other components of OOo; see Chapter 1 (Introducing OpenOffice.org)
in this book and Chapter 1 (Introducing Calc) in the Calc Guide.
Caution If you do not select Text CSV as the file type when opening the
file, the document opens in Writer, not Calc.
Figure 101: Text Import dialog, with Comma (,) selected as the
separator and double quotation mark (“) as the text delimiter.
Saving spreadsheets
Spreadsheets can be saved in three ways.
4) In the Export of text files dialog (Figure 102), select the options
you want and then click OK.
the Contents icon . Click this icon again to show the list.
The sheet tab arrows that appear in Figure 106 only appear if
Note you have some sheet tabs that can not be seen. Otherwise,
they will appear faded as in Figure 106.
Sheet tabs
Selecting cells
Cells can be selected in a variety of combinations and quantities.
Single cell
Left-click in the cell. The result will look like the left side of Figure
104. You can verify your selection by looking in the Name box.
You can also directly select a range of cells using the Name
box. Click into the Name Box as described in “Using a cell
reference” on page 141. To select a range of cells, enter the
Tip cell reference for the upper left hand cell, followed by a colon
(:), and then the lower right hand cell reference. For example,
to select the range that would go from A3 to C6, you would
enter A3:C6.
Entire sheet
To select the entire sheet, click on the small box between the A column
header and the 1 row header (see Figure 107).
Selecting sheets
You can select either one or multiple sheets. It can be advantageous to
select multiple sheets at times when you want to make changes to
many sheets at once.
Single sheet
Click on the sheet tab for the sheet you want to select. The active sheet
becomes white (see Figure 106).
All sheets
Right-click any one of the sheet tabs and choose Select All Sheets
from the pop-up menu.
Deleting sheets
Sheets can be deleted individually or in groups.
Single sheet
Right-click on the tab of the sheet you want to delete and select
Delete Sheet from the pop-up menu, or chose Edit > Sheet >
Delete from the menu bar.
Multiple sheets
To delete multiple sheets, select them as described earlier, then
either right-click over one of the tabs and select Delete Sheet from
the pop-up menu, or choose Edit > Sheet > Delete from the menu
bar.
Renaming sheets
The default name for the a new sheet is SheetX, where X is a number.
While this works for a small spreadsheet with only a few sheets, it
becomes awkward when there are many sheets.
To give a sheet a more meaningful name, you can:
• Enter the name in the Name box when you create the sheet, or
• Right-click on a sheet tab and choose Rename Sheet from the
pop-up menu; replace the existing name with a better one.
• (New in OOo3.1) Double-click on a sheet tab to pop up the
Rename Sheet dialog.
Viewing Calc
Using zoom
Use the zoom function to change the view to show more or fewer cells
in the window. For more about zoom, see Chapter 1 (Introducing
OpenOfice.org).
You can also split the screen using a menu command. Click in a
Tip cell immediately below and to the right of where you wish the
screen to be split, and choose Window > Split.
Entering numbers
Click in the cell and type in the number using the number keys on
either the main keyboard or the numeric keypad.
To enter a negative number, either type a minus (–) sign in front of it or
enclose it in parentheses (brackets), like this: (1234).
By default, numbers are right-aligned and negative numbers have a
leading minus symbol.
Entering text
Click in the cell and type the text. Text is left-aligned by default.
AutoCorrect changes
Automatic correction of typing errors, replacement of straight
quotation marks by curly (custom) quotes, and starting cell content
with an uppercase (capital letter) are controlled by Tools >
AutoCorrect Options. Go to the Custom Quotes, Options, or
Replace tabs to deactivate any of the features that you do not want.
On the Replace tab, you can also delete unwanted word pairs and
add new ones as required.
AutoInput
When you are typing in a cell, Calc automatically suggests matching
input found in the same column. To turn the AutoInput on and off,
set or remove the check mark in front of Tools > Cell Contents >
AutoInput.
Automatic date conversion
Calc automatically converts certain entries to dates. To ensure that
an entry that looks like a date is interpreted as text, type an
apostrophe at the beginning of the entry. The apostrophe is not
displayed in the cell.
Caution Choices that are not available are grayed out, but you can still
choose the opposite direction from what you intend, which
could cause you to overwrite cells accidentally.
Figure 116: Specifying the start of a fill series (result is in Figure 115)
Click New. The Entries box is cleared. Type the series for the new list
in the Entries box (one entry per line), and then click Add.
Editing data
Editing data is done is in much the same way as it is entered. The first
step is selecting the cell containing the data to be edited.
Formatting data
The data in Calc can be formatting in several ways. It can either be
edited as part of a cell style so that it is automatically applied, or it can
be applied manually to the cell. Some manual formatting can be
applied using toolbar icons. For more control and extra options, select
the appropriate cell or cells, right-click on it, and select Format Cells.
All of the format options are discussed below.
Formatting numbers
Several number formats can be applied to cells by using icons on the
Formatting toolbar. Select the cell, then click the relevant icon.
For more control or to select other number formats, use the Numbers
tab (Figure 126) of the Format Cells dialog.
• Apply any of the data types in the Category list to the data.
• Control the number of decimal places and leading zeros.
• Enter a custom format code.
The Language setting controls the local settings for the different
formats such as the date order and the currency marker.
If the selected cell range does not have column and row
Note headers, AutoFormat is not available.
2) In the Theme Selection dialog, select the theme that you want to
apply to the spreadsheet.
As soon as you select a theme, some of the properties of the
custom styles are applied to the open spreadsheet and are
immediately visible.
3) Click OK. If you wish, you can now go to the Styles and
Formatting window to modify specific styles. These modifications
do not change the theme; they only change the appearance of this
spreadsheet document.
Sorting records
Sorting arranges the visible cells on the sheet. In Calc, you can sort by
up to three criteria, with each criterion applied one after the other.
Sorts are handy when you are searching for a particular item, and
become even more powerful after you have filtered data.
In addition, sorting is often useful when you add new information.
When a list is long, it is usually easier to add new information at the
bottom of the sheet, rather than adding rows in the proper places.
After you have added information, you can then sort it to update the
sheet.
You can sort by highlighting the cells to be sorted, then selecting Data
> Sort. The selected cells can be sorted by the order of information in
up to three columns or rows, in either ascending (A-Z, 1-9) or
descending (Z-A, 9-1) order.
On the Options tab of the Sort dialog, you can choose the following
options:
Case sensitive
If two entries are otherwise identical, one with an upper case letter
is placed before one with a lower case letter in the same position.
Range contains column labels
Does not include the column heading in the sort.
Include formats
A cell's formatting is moved with its contents. If formatting is used
to distinguish different types of cells, then use this option.
Printing
Printing from Calc is the same as printing from other OOo components
(see Chapter 10), but some details are different, especially regarding
preparation for printing.
The Print dialog (Figure 125), reached from File > Print, has some
Calc-specific options: which sheets to print.
3) Select Print only selected sheets. This choice affects the print
preview, export, and printing of your spreadsheet. Click OK.
Caution If you keep the selected sheets selected, when you enter data
on one sheet, you enter data on all sheets at the same time.
This might not be what you want.
Page Order
You can set the order in which pages print. This is especially useful in a
large document; for example, controlling the print order can save time
if you have to collate the document a certain way.
Print
You can specify which details to print. Those details include:
• Row and column headers
• Sheet grid—prints the borders of the cells as a grid
• Notes—prints the notes defined in your spreadsheet on a separate
page, along with the corresponding cell reference
• Objects and graphics
• Charts
• Drawing objects
• Formulas—prints the formulas contained in the cells, instead of
the results
• Zero Values—prints cells with a zero value
Scale
Use the scale features to control the number of pages the data will
print on. This can be useful if a large amount of data needs to be
printed more compactly or, if the reader has poor eyesight, text can be
enlarged when it prints.
• Reduce/Enlarge printout—scales the data in the printout either
larger or smaller. For example if a sheet would normally print out
as four pages (two high and two wide), a scaling of 50% would
print as one page (both width and height are halved).
• Fit print range(s) on number of pages—defines exactly how many
pages the printout will take up. This option will only reduce a
printout, it will not enlarge it. To enlarge a printout, the
reduce/enlarge option must be used.
• Fit print range(s) to width/height—defines how high and wide the
printout will be, in pages.
You can check the print range by using File > Page Preview.
Tip OOo will only display the cells in the print range.
Page breaks
While defining a print range can be a powerful tool, it may sometimes
be necessary to manually tweak Calc’s printout. To do this, you can use
a manual break. A manual break helps to ensure that your data prints
properly. You can insert a horizontal page break above, or a vertical
page break to the left of, the active cell.
Row break
Selecting Row Break creates a page break above the selected cell.
For example, if the active cell is H15, then the break is created
between rows 14 and 15.
To see page break lines more easily on screen, you can change
Tip their color. Choose Tools > Options > OpenOffice.org >
Appearance and scroll down to the Spreadsheet section.
Multiple manual row and column breaks can exist on the same
page. When you want to remove them, you have to remove
each one individually. This may be confusing at times, because
although there may be a column break set on the page, when
you go to Edit > Manual Break, Column break may be
Note grayed out.
In order to remove the break, you have to be in the cell next to
the break. So, for example, if you set the column break while
you are in H15, you can not remove it if you are in cell D15.
However, you can remove it from any cell in column H.
Margin
Changing the size of the left or right margin adjusts how far the
header or footer is from the side of the page.
Spacing
Spacing affects how far above or below the sheet the header or
footer will print. So, if spacing is set to 1.00", then there will be 1
inch between the header or footer and the sheet.
Height
Height affects how big the header or footer will be.
You can remove the Slides pane or Tasks pane from view by
clicking the X in the upper right corner. You can also show or
Tip hide these panes using View > Slide Pane or View > Tasks
Pane.
Slides pane
The Slides pane contains thumbnail pictures of the slides in your
presentation, in the order they will be shown (unless you change the
order). Clicking a slide selects it and places it in the Workspace. While
it is there, you can apply any changes desired to that particular slide.
Layout
Twenty prepackaged layouts are shown. You can choose the one you
want, use it as it is or modify it to your own requirements. At
present it is not possible to create custom layouts.
Table Design
Eleven standard table styles are provided in this pane. You can
further modify the appearance of a table with the selections to show
or hide specific rows and columns, or to apply a banded appearance
to the rows and columns.
Custom Animation
A variety of animations for selected elements of a slide are listed.
Animation can be added to a slide, and it can also be changed or
removed later.
Slide Transition
Fifty-six transitions are available, including No Transition. You can
select the transition speed (slow, medium, fast). You can also choose
between an automatic or manual transition, and how long you want
the selected slide to be shown (automatic transition only).
Workspace
The Workspace has five tabs: Normal, Outline, Notes, Handout, and
Slide Sorter. These five tabs are called View buttons. There are also
many toolbars that can be used during slide creation; they are revealed
by selecting them with View > Toolbars. The Workspace is below the
View buttons. This is where you assemble the various parts of your
selected slide.
Toolbars
The various Impress toolbars can be displayed or hidden by clicking
View > Toolbars and selecting from the menu. You can also select the
icons that you wish to appear on each toolbar. For more information,
refer to Chapter 1 (Introducing OpenOffice.org).
Many of the toolbars in Impress are similar to the toolbars in OOo
Draw. Refer to the Draw Guide for details on the functions available
and how to use them.
Status bar
The Status bar (Figures 138 and 139) is located at the bottom of the
workspace. In addition to fields common to several OOo components, it
includes several Impress-specific fields. For details on the contents and
use of these fields, see Chapter 1 (Introducing OpenOffice.org) in this
book and Chapter 1 (Introducing Impress) in the Impress Guide.
Navigator
The Navigator (Figure 140) displays all objects contained in a
document. It provides another convenient way to move around a
document and find items in it. The Navigator icon is located on the
Standard toolbar. You can also display the Navigator by choosing Edit
> Navigator on the menu bar or pressing Ctrl+Shift+F5.
The Navigator is more useful if you give your slides and objects
(pictures, spreadsheets, and so on) meaningful names, instead of
leaving them as the default “Slide n” and “Shape n” shown in
Figure 140.
Normal view
Normal view is the main view for working with individual slides. Use
this view to format and design and to add text, graphics, and animation
effects.
To place a slide in the Slide Design area of the Normal view, click the
slide thumbnail in the Slides pane or use the Navigator.
To select a slide in the Navigator, scroll down the list until you find it
and then double-click it.
Outline view
Outline view (Figure 141) contains all the slides of the presentation in
their numbered sequence. It shows topic titles, bulleted lists, and
numbered lists for each slide in outline format. Only the text contained
in the default text boxes in each slide is shown, so if your slide includes
other text boxes or drawing objects, the text in these objects is not
displayed. Slide names are also not included.
Notes view
Use the Notes view to add notes to a slide.
1) Click the Notes tab in the Workspace (Figure 142).
2) Select the slide to which you want to add notes.
• Click the slide in the Slide pane, or
• Use the Previous Slide and Next Slide buttons to move to
the desired slide in the Navigator.
3) In the text box below the slide, click on the words Click to add
notes and begin typing.
You can resize the Notes text box using the green resizing handles and
move it by placing the pointer on the border, then clicking and
dragging. To make changes in the text style, press the F11 key to open
the Styles and Formatting window.
Handout view
Handout view is for setting up the layout of your slide for a printed
handout. Click the Handout tab in the workspace, then choose Layouts
in the Tasks pane. Layout contains five choices: 1, 2, 3, 4, 6, or 9 slides
per page (Figure 145).
Planning a presentation
The first thing to do is to decide what you are going to do with the
presentation. For example, putting a group of digital photos together in
a presentation requires very little planning. However, using a
presentation to increase the knowledge of others about your topic
requires much more planning.
You need to ask and answer many questions before you begin creating
a presentation. If you are not acquainted with creating presentations,
the answers will be more general. Those who have created a variety of
presentations in the past will want to have more specific answers.
Who is to see the presentation? How will it be used? What is the
subject matter? What should be in its outline? How detailed should the
outline be? Will an audio file be played? Is animation desirable? How
should the transition between slides be handled? These are some of the
many questions that should be asked, answered, and written down
before creating the presentation. Sound and animation are more
advanced topics and are explained in the Impress Guide.
Again, it is not always necessary at this point to have specific answers
to every question. Making an outline is extremely important. You may
already know exactly what some of the slides will contain. You may
only have a general idea of what you want on some of the slides. That
is alright. You can make some changes as you go. Change your outline
to match the changes you make in your slides.
The important part is that you have a general idea of what you want
and how to get it. Put that information on paper. That makes it much
easier to create the presentation.
If you do not want the wizard to start every time you launch
Impress, select the Do not show this wizard again checkbox.
You can enable it again later if you need under Tools >
Options > OpenOffice.org Impress > General > Wizard,
Tip and select the Start with wizard checkbox.
Leave the Preview checkbox selected, so templates, slide
designs, and slide transitions appear in the preview box as you
choose them.
You might want to accept the default values for both Effect and
Speed unless you are skilled at doing this. Both of these values
Tip can be changed later while working with Slide transitions
and animations. These two are explained in more detail in
Chapter 9 of the Impress Guide.
If you do not know the names for the prepackaged layouts, you
can use the tooltip feature. Position the cursor on an icon in
the Layout section (or on any toolbar icon) and its name will be
displayed in a small rectangle.
If the tooltips are not enabled, you can enable them. From the
Tip
main menu, select Tools > Options > OpenOffice.org >
General > Help and mark the Tips checkbox. If the
Extended tips checkbox is also marked, you will get more
detailed tooltip information, but the tooltip names themselves
will not be provided.
Select a layout in the Layout section of the Tasks pane by clicking on it:
it appears in the Workspace. To create the title, click on “Click to add
title” (assuming the Blank Slide layout was not used) and then type the
title text. Adjustments to the formatting of the title can be done by
pressing the F11 key, right-clicking the Title presentation style entry,
and selecting Modify from the pop-up menu.
If you are using the Title Slide layout, click on Click to add text to add
a subtitle. Proceed as above to make adjustments to the formatting if
required.
Once you have answered these and your own questions, you should
make the necessary changes. This is done most easily in the Slide
Sorter view. If you need one or more new slides, create them using the
steps listed in “Inserting additional slides” on page 198.
OOo uses three terms for this one concept. Master slide, slide
master, and master page all refer to a slide which is used to
Note create other slides. This book uses the term slide master,
except when describing the user interface.
The slide masters you have loaded will also be available the
next time you load the presentation. If you want to delete the
unused slide masters, click the corresponding checkbox in the
Note Slide Design dialog. Due to a bug, if the slide master was not
used in the presentation, it is removed from the list of
available slide masters anyway.
The changes made to one of the slides in Normal view (for example
changes to the bullet point style or the color of the title area and so
on...) will not be overridden by subsequent changes to the slide master.
There are cases, however, where it is desirable to revert a manually
modified element of the slide to the style defined in the slide master: to
do that, select that element and choose Format > Default
Formatting from the menu bar.
Sometimes you may want to try several of the available layouts to see
which one is more suitable for your contents. Applying a layout only
requires that you open the Layouts section of the Tasks pane and
double-click on the new layout. Alternatively you can right-click on the
desired layout thumbnail and select Apply to selected slide from the
pop-up menu.
Pasting text
You can insert text into a text box by copying it from another document
and pasting it into Impress. However, the pasted text will probably not
match the formatting of the surrounding text or that of the other slides
in the presentation. This may be what you want on some occasions,
however in most cases you want to make sure that the presentation
Creating tables
For displaying tabular data, you can insert basic tables directly into
your slides in a number of ways:
• Use the Insert > Table menu option.
With the table selected, the Table toolbar should appear. If it does not,
Rulers
You should see rulers (bars with
numbers) on the upper and left-hand
side of the workspace. These show
the size of a selected object on the
page (see the gray double lines,
highlighted in Figure 156). When no
object is selected, they show the
location of the mouse pointer, which
helps to accurately position drawing Figure 156: Rulers show the
objects. You can also use the rulers size of the selected object
to manage object handles and guide lines, making it easier to position
objects. The page margins in the drawing area are also represented on
the rulers. You can change the margins directly on the rulers by
dragging them with the mouse.
Toolbars
You can display or hide the various Draw toolbars according to your
needs.
To display or hide a toolbar, click View > Toolbars. On the menu that
appears, choose which toolbars you want to display.
Standard toolbar
The Standard toolbar looks like this:
If the selected object is text, the toolbar changes to the one shown
below, which is similar to the Formatting toolbar in Writer.
Drawing toolbar
The Drawing toolbar is the most important toolbar in Draw. It contains
all the necessary functions for drawing various geometric and freehand
shapes and organizing them on the page.
Color Bar
To display the Color Bar, use View > Toolbars > Color Bar. The
toolbar then appears at the bottom of the workspace.
This toolbar lets you rapidly choose the color of the objects in your
drawing. The first box in the panel corresponds to transparency (no
color).
You can access several specialized color palettes in Draw, as well as
change individual colors to your own taste. This is done using the Area
dialog, reached by choosing Format > Area or the pouring can icon on
the Line and Filling toolbar.
On the Area dialog, choose the tab marked Colors (Figure 8).
Options toolbar
The Options toolbar lets you activate or deactivate various drawing
aids. The Options toolbar is not displayed by default. To display it,
select View > Toolbars > Options. The functions of the various icons
are described in Table 2.
Snap to grid
Use this function to move an object exactly to a grid point (see Figure
165). This function can be switched on and off with View > Grid >
Snap to Grid and on the Options toolbar with the icon .
The effect of the Ctrl key depends on the settings of the Snap to
Grid option on the View > Grid menu:
Note Snap to Grid on: Ctrl deactivates the snap option for this
activity.
Snap to Grid off: Ctrl activates the snap option for this activity.
The spacing (resolution) of the grid points can be adjusted under Tools
> Options > OpenOffice.org Draw > Grid. See also Chapter 8 (Tips
and Tricks) in the Draw Guide.
Hold down the Alt key to extend the line symmetrically outward from
the start point (the line extends to each side of the start point equally).
This lets you draw straight lines by starting from the middle of the line.
The line just drawn has all the default attributes, such as color and line
type. To change the line attributes, click on the line to select it and
then use the tools in the Line and Filling toolbar; or for more control,
right-click on the line and choose Line to open the Line dialog.
Drawing an arrow
Arrows are drawn like lines. Draw classifies arrows as a subgroup of
lines: Lines with arrowheads. They are shown in the information field
on the status bar only as lines. Click on the Line Ends with Arrow
icon to draw an arrow.
Starting point
If you first press and hold the Control key and then click on one
of the icons (Line, Rectangle, Ellipse, or Text), an object is
Note drawn automatically in the work area; the size, shape, and color
are all standard values. These attributes can be changed later,
if desired.
Drawing curves
The tools for drawing curves or polygons are on the toolbar that
appears when you click the Curve icon on the Drawing toolbar.
This toolbar contains eight tools (Figure 173).
Polygons
Draw the first line from the start point with the left mouse button
held down. As soon as you release the mouse button, a first corner
point is drawn, and you can move the mouse to see how the second
line will look. Every mouse click sets another corner point. A double-
click ends the drawing. A filled polygon automatically joins the last
point to the first point to close off the figure and fills it with the
current standard fill color. A polygon without filling will not be
closed at the end of the drawing.
Polygon 45°
Just as with ordinary polygons, these will be formed from lines but
with angles of 45 or 90 degrees between them.
Freeform Line
With this tool you can draw just like with a pencil. Press and hold
the left mouse button and move the mouse. It is not necessary to end
the drawing with a double-click. Just release the mouse button and
the drawing is completed. If you have selected Freeform Line, Filled,
the end point is joined automatically to the start point and the object
is filled with the appropriate color.
Writing text
Use the Text tool to write text and select the font, color, size, and
other attributes. Click on an empty space in the workspace to write the
text at that spot or drag an area to write inside the dragged frame.
Press Enter to drop to the next line.
When you have finished typing text, click outside the text frame.
Double-click on the text at any time to edit it.
When you type text, the upper toolbar includes the usual paragraph
attributes: indents, first line, and tab stops.
You can change the style of all or part of the text. The Styles and
Formatting window also works here (select Format > Styles and
Formatting or press F11 to launch), so you can create Graphics styles
that you can reuse for other text frames. Graphics styles affect all of
the text within a text frame. To style parts of the text, use direct
formating with the toolbar.
Basic shapes
The Basic Shapes icon makes available the
range of tools for drawing basic shapes.
If you choose the rectangle tool from this
toolbar, it looks the same as a rectangle drawn
using the Rectangle tool on the Drawing
toolbar. The only differences you will see are in
the information field in the status bar (for
example: shape selected).
Block arrows
The Block Arrows icon opens the Block Arrows
toolbar.
Flowcharts
The tools for drawing flowcharts are accessed by
clicking on the Flowcharts icon .
The creation of flowcharts, organization charts, and
similar planning tools are described in Chapter 9
(Organization Charts, Flow Diagrams, and More) in
the Draw Guide.
Callouts
Use the Callouts icon to open the Callouts
toolbar.
You can add text to all these shapes. See Chapter 2 (Drawing Basic
Shapes) and Chapter 10 (Advanced Draw Techniques) in the Draw
Guide for details.
Direct selection
To select an object, the easiest way is to click directly on it. For objects
that are not filled, click directly on the object's outline to select it.
Selection by framing
You can select several objects by using the mouse to
drag a large rectangle around the objects, as shown.
For this to work, the Select icon on the Drawing
toolbar must be active. Only objects that lie entirely
within the rectangle are selected.
Arranging objects
In a complex drawing, you may have objects stacked up, one on top of
the other, with the result that a particular object is hidden by one or
more other objects above it. You can rearrange the stacking order of
objects (move an object to the front or to the back of the stack) by
selecting the object, clicking Modify > Arrange and selecting the
appropriate Bring Forward or Send Backward option, or by right-
clicking the object and selecting Arrange from the context menu, then
selecting from the list of Bring Forward or Send Backward options.
On the Drawing toolbar, the Arrange tear-off menu on the button
contains the above options. A keyboard shortcut is Shift+Ctrl++ to
bring an object to the top, and Shift+Ctrl+− to send an object to the
bottom.
Draw also provides tools for aligning multiple objects; details are given
in the Draw Guide.
The results differ depending on which handle you use. If you choose a
corner handle, you will resize the object along two axes at the same
time. If you use a side handle, the objects will only be resized along
one axis.
If you press the Shift key at the same time as you carry out the
resizing operation, the size change will be carried out
Note symmetrically with respect to the two axes; this enables you to
keep the aspect (height/length) ratio of the object.
Rotation
Rotating an object lets you move the object around an axis. To do this
dynamically, use the red handles, as you do when changing the size of
the object.
To rotate an object (or a group of objects), drag the red corner handle
points of the selection with the mouse. The mouse cursor takes the
shape of an arc of a circle with an arrow at each end. A dotted outline
of the object being rotated appears and the current angle of rotation is
dynamically shown in the status bar.
Rotations are made about an axis which is displayed as a small symbol.
You can move the axis of rotation with the mouse, as shown in
Figure 177.
If you hold down the Shift key during the rotation, the operation will be
carried out in increments of 15°.
Drawing arrows
Arrowheads (and other line endings, usually referred to
collectively as arrows) are a line property. Select a line and
click on the Arrow Style icon from the Line and Filling
toolbar. This opens the Arrowheads menu.
Several types of arrowheads are available. Each end of the
line can have a different arrowhead (or no arrowhead).
Arrowheads are only applicable to lines. They have no
effect on an object’s border.
In most cases, you will choose one of the standard fill options, which
are all available from the Line and Filling toolbar. You can also define
your own area fills; see Chapter 4 of the Draw Guide for details.
Adding a shadow
In Draw, shadows are considered as an area
property. Click on the Shadow icon on the Line
and Filling toolbar.
You can customize the position, distance, color,
and transparency of shadows using Format >
Area > Shadow or by right-clicking on the
selected object and choosing Area > Shadow.
Adding transparency
You can make objects partly or fully transparent, or even with a
varying degree of transparency (as a gradient).
Using styles
Suppose that you want to apply the same area fill, line thickness, and
border to a set of objects. This repetitive process can be greatly
simplified by the use of styles. Styles allow you to define a formatting
template (a style) and then to apply that style to multiple objects. For
more information about styles, see Chapter 3 (Using Styles and
Templates).
Flip an object
Select an object and click on the Flip icon . You will
see a dashed line through the middle of the object.
If you hold down the Shift key while moving the line, the line will
Note rotate in 45-degree increments.
Mirror copies
Officially, this useful command does not (yet) exist in Draw. It can,
however, be easily emulated.
Move the axis of symmetry to the desired location of the mirror axis.
Copy the object to the clipboard. Flip the object, then click on an
empty area of the Draw screen in order to deselect the object. Paste
from the clipboard to put a copy of the object in its original location
and now you have a mirror copy.
Dynamic gradients
You can control transparency gradients in the same manner as color
gradients. Both types of gradient can be used together. With a
transparency gradient, the direction and degree of an object’s fill color
changes from opaque to transparent (in a regular gradient, the fill
changes from one color to another, but the degree of transparency
remains the same). See Chapter 4 of the Draw Guide for details.
Duplication
Duplication makes copies of an object while applying a set of changes
(such as color or rotation) to the duplicates. The result of a duplication
is a new group.
To start duplication, click on an object or group and choose Edit >
Duplicate. The dialog shown in Figure 180 appears.
The options chosen in
Figure 180 applied to a
blue rectangle produce
the following result.
Combining objects
In contrast to grouping functions, combinations create a new object;
subsequent “un-combining” in the same manner as ungrouping is not
possible. Select a collection of objects, then right-click and choose
Combine from the pop-up menu.
After you have selected more than one object, the Merge, Subtract,
and Intersect functions can be reached in the Modify > Shapes menu
or though the group’s right-click menu under the heading Shapes.
Exporting graphics
To save a Draw image in a foreign format, use File > Export. Draw
can save to many graphic file formats, as listed in Appendix B
(Background Information). You can export the entire file or selected
objects.
You can also export Draw files to HTML, PDF, or Flash. PDF export is
the same as for any part of OpenOffice.org, as described in Chapter 10
(Printing, E-mailing, and Exporting). Flash export creates a .swf file.
HTML export uses a conversion wizard that creates as many web
pages as there are pages in your Draw document. You can optionally
choose to display the pages in frames with a navigator and can set an
index page. For more information, see Chapter 12 (Creating Web
Pages: Saving Documents as HTML Files).
OOo Base uses the HSQL database engine. All of the files
Note created by this engine are kept in one zipped file. The database
forms are included in this zipped file.
Planning a database
The first step in creating a database is to ask yourself many questions.
Write them down, and leave some space between the questions to later
write the answers. At least some of the answers should seem obvious
after you take some time to think.
You may have to go through this process a few times before everything
becomes clear in your mind and on paper. Using a text document for
these questions and answers makes it easier to move the questions
around, add additional questions, or change the answers.
Here are some of the questions and answers I developed before I
created a database for automobile expenses. I had an idea of what I
wanted before I started, but as I began asking questions and listing the
answers, I discovered that I needed additional tables and fields.
What are the fields going to be? My expenses divided into three broad
areas: fuel purchases, maintenance, and vacations. The annual cost for
the car’s license plate and driver’s license every four years did not fit
into any of these. It will be a table of its own: license fees.
What fields fit the fuel purchases area? Date purchased, odometer
reading, fuel cost, fuel quantity, and payment method fit. (Fuel
economy can be calculated with a query.)
Save the new database with the name Automobile. This opens the
Automobile – OpenOffice.org Base window. Figure 183 shows part of
this window.
Every table requires a Primary key field. (What this field does
Caution
will be explained later.) We will use this field to number our
entries and want that number to automatically increase as we
add each entry.
Click Use Wizard to Create Table. This opens the Table Wizard
(Figure 184).
• Artist: Use the Default setting. And since music has artists, set
Entry Required to Yes.
• Date Purchased: Field type: default date setting. Entry required
should be No. (You may not know the date.)
• Format: Only change the Entry Required setting: from No to Yes.
• Notes: No changes are required.
Once tables have been created using the wizard and data has
been entered, editing them should be very limited. Fields can
be added or deleted, but adding a field requires taking the time
to enter the data for that one field for every record having an
entry for that field.
Caution
Deleting a field deletes all the data once contained in that
field. Changing the field type of a field can lead to data being
lost either partially or completely. When creating a new table, it
pays to create the fields with the correct names, length, and
format before you add any data.
Deleting a table removes all of the data contained in every field
of the table. Unless you are sure, do not delete a table.
A shortcut for selecting from the Field Type dropdown list: press
Tip the key for the first letter of the choice. You can cycle through
the choices for a given letter by repeatedly pressing that key.
You must create these tables with the information field listed
first and the ID field listed last. Failure to do so will produce
the wrong results. For my Payment table, I use Name and ID as
Caution my fields, with Dan, Kevin, and Cash being the Name entries.
The corresponding ID entries are 0, 1, 2. When the Name field
is listed first in the table, one of the three names will appear in
the payment field of the Fuel table. If the ID field is listed first,
0, 1, or 2 appear in the payment field instead.
If you have several tables to create with the same fields, design
one table and produce the other tables by cutting and pasting.
Note: (See “Creating a table by copying an existing table” on page
259.)
You can also use the Enter key to move from entry field to entry
Tip field, or use the down arrow key to move from row to row.
Defining relationships
Now that the tables have been created, what are the relationships
between our tables? This is the time to define them based upon the
questions we asked and answered in the beginning.
When on vacation, we want to enter all of our expenses all at one time
each day. Most of these expenses are in the Vacations table, but the
fuel we buy is not. So, we will relate these two tables using the Date
fields. Since the Fuel table may have more than one entry per date,
this relationship between the Vacations and Fuel tables is one to many.
(It is designated 1:n.)
The Vacations table also contains several fields for the type of payment
used. For each field listing the payment type, there is only one entry
from the Payment Type table. This is a one to one relationship: one
field in one table to one entry from the other table. (It is designated
1:1.) Other tables also contain fields for the type of payment. The
relationship between the fields of those tables and the Payment Type
table are also 1:1.
Since the Payment Type table only provides a static list, we will not be
defining a relationship between the Payment Type table and the fields
of the other tables which use the entries of the Payment Type table.
That will be done when the forms are created.
The Fuel and Maintenance tables do not really have a relationship even
though they share similar fields: Date and Odometer.
As you create your own databases, you need to also determine
Tip where tables are related and how.
Modifying a form
We will be moving the controls to different places in the form and
changing the background to a picture. We will also modify the label for
the PaymentType field as well as change the field to a list box.
First, we must decide what we want to change. The discussion will
follow this ten step outline of our planned changes.
To see what the Date field will look like, click the Form Mode
On/Off icon (the second icon from the left in Figure 202). You
Tip can do this any time you want to see the form with the changes
you have made.
If you have the Snap to Grid and Guides when moving icons
Tip selected in the Design Format toolbar, you will see how wide the
field is as you shorten it.
4) Use the same steps to move the rest of the controls to where they
belong.
Step 4: Change the label wording.
Field names have been single words for some time. However, the
labels for the fields in a form can be more than one word. So, we will
change them by editing the text in the label.
Caution When changing the position or size of an entire control, use the
Position and Size dialog or the drag and drop method.
When working with either the label or the field (but not both at
the same time), you can use the Properties dialog to make these
changes when you want to be exact. However, you need to be
careful not to accidentally select the entire control for use with
the Properties dialog or you will apply the exact same values to
both the label and field. For example, if you enter the values for
a new position, both the field and the label moves to the same
position and the field is positioned on top of the label. Then you
have to move each of them to where you want them.
• Repeat these steps for the payment fields for Lunch, Supper,
Motel, Snacks, and Misc. The main form should look like
Figure 209 as far as where the controls are located. It also
shows what the Note control should look like. Those changes
are explained in the next step.
• Close the Properties window.
If you know how to use styles, you can open the Styles and
Formatting window using F11. Right-clicking the Heading 2
Note paragraph style allows you to modify the appearance of all three
headings. See Chapter 6 of the Writer Guide for details.
Insert new
record
Figure 219: View Data Sources navigation buttons
To delete a record, right-click on the gray box to the left of a row to
highlight the entire row, and select Delete Rows to remove the
selected row.
Adding data in table format is a little easier and takes perhaps fewer
steps. Some of the steps will be quite similar.
1) Navigate to the place you want to place the table and click the
location.
2) Control+Click the gray box to the left of each row of the data
source that you want to be a row in your table when the rows are
not consecutive. To select consecutive rows, click the gray box to
the left of the top desired row and Shift+click the bottom desired
row.
3) Click the Data to text icon to open the Insert Database Columns
dialog (Figure 222). (The Data to text icon is to the left of the
Data to Fields icon in Figure 221.)
Calc spreadsheets
There are two ways to enter data in a Calc spreadsheet. One enters the
data into the spreadsheet cells. The other creates records in the
spreadsheet just like they are done in creating a form in a database.
While you can directly access the data in the spreadsheet cells, you can
only see the data in the records created in the spreadsheet.
Entering data directly to the spreadsheet cells uses the Data to Text
icon as we did to make a table in a Writer document. But differences
exist in these two situations.
The steps are straightforward.
1) Click the cell of the spreadsheet which you want to be the top left
of your data including the column names.
2) Use F4 to open the database source window and select the table
whose data you want to use.
3) Select the rows of data you want to add to the spreadsheet:
• Click the gray box to the left of the row you want to select if
only selecting one row. That row is highlighted.
• To select multiple rows, hold down the Control key while
clicking the gray box of the rows you need. Those rows are
highlighted.
• To select all the rows, click the gray box in the upper left
corner. All rows are highlighted.
4) Click the Data to text icon to insert the data into the spreadsheet
cells.
5) Save the spreadsheet.
Since we have a subform form, using the Tab key places the cursor in
the first Date field of the subform with the date automatically entered
to match the Date field of the main form.
The FuelCost, FuelQuantity, and Odometer fields are numerical fields.
The Payment field is a dropdown list. Enter the data just as you did in
the main form, and use the Tab key to go to the next field.
When you use the Tab key to leave the Payment field, it goes to the
Date field of the next line and automatically enters the date. Now you
can enter your second set of fuel data for this day.
To move to another record when the form has a subform, click any of
the fields of the main form. In this case, click the Date field of the main
form. Then use the directional arrows at the bottom. There are four of
them from left to right: First Record, Previous Record, Next Record,
and Last Record (Figure 223). To the right of these arrows is the New
Record icon.
To create a new record while in another record in the main form, click
either the Next Record icon or the New Record icon.
The number in the Record box is the number of the record whose
data is shown in the form.
Tip If you know the number of the record you want, you can enter it
into the record box and then press Enter to take you to that
record.
Creating queries
Queries are used to get specific information from a database. Query
results are special tables within the database.
To demonstrate the use of queries, we will use two different methods:
• Using our CD-Collection table, we will create a list of albums by a
particular artist. We will do this using the Wizard.
• The information we might want from the Fuel table includes what
our fuel economy is. We will do this using the Design View.
(Queries that require calculations are best created with the
Design view.)
To change the order of the fields, select the field you want to
Tip move and click the up or down arrow.
Step 8: Overview.
Name the query (suggestion: Query_Artists). To the right of this are
two choices. Select Display Query. Click Finish.
Move the cursor over the bottom edge of the fuel table (Figure
Tip 229) and drag the to make it longer and easier to see all of the
fields in the table.
b) Click End-Reading.
c) Click Add, and then click Close.
Creating reports
Reports provide information found in the database in a useful way. In
this they are similar to queries. Reports are generated from the
database’s tables or queries. They can contain all of the fields of the
table or query or just a selected group of fields. Reports can be static
or dynamic. Static reports contain the data in the selected fields at the
time the report was created. Dynamic reports can be updated to show
the latest data.
For example, a report on expenses for a vacation in the past should
probably be a static report because it is based upon specific data that
does not change. However, a report on the fuel data should probably
be a dynamic report, because this report depends upon data that does
change.
All reports are based upon a single table or query. So you need first to
decide what fields you want to use in the report. If you want to use
fields from different tables, you must first combine these fields in a
single query. Then you can create a report on this query.
For example, a report on vacation expenses includes both fuel costs
and meal costs. These values are contained in fields of two different
tables: Vacations and Fuel. So this report requires creating a query.
Step 3: Grouping
Since we are grouping by the date, use the > button to move the Date
field to the Grouping list. Click Next.
Modifying a report
At the end of the last section, we left the Fuel Statistics report open in
the edit mode (Figure 249). We will be working on that report. These
same steps can be used with any report that you open for editing.
The Author is the name you listed in Tools > Options >
OpenOffice.org > User Data. The date is not correct. The columns
need to be moved to the left to give a better appearance. None of the
numbers are correct, but their only purpose is to show the number of
decimal places.
Step 1: Change the date.
1) Click to the right of the date (4/26/20) so that the cursor is next to
the field. Use the Backspace key to erase the date.
2) Insert > Fields > Date. This places today’s date where the
original date was.
3) Change the date formatting:
a) Double-click the date field you just inserted. The Edit Fields:
Document window opens (Figure 250).
df x −1 2
=ln x tan x (1)
dx
Getting started
To insert an equation, choose Insert > Object > Formula. The
equation editor opens at the bottom of the screen, and the floating
Formula Elements window (called “Selection” before Math 3.2) may
appear. A small box with a gray border also appears in your document,
where the formula will be displayed, as shown in Figure 254.
You can hide or show the Formula Elements window with View
Tip > Formula Elements.
Example 1: 5×4
For this example we will enter a simple formula: 5×4 . On the Formula
Elements window (Figure 256):
1) Select the top-left button of the categories (top) section.
2) Click on the multiplication symbol.
Right-click menu
Another way to access mathematical symbols is to right-click on the
equation editor. This pops up the menu shown in Figure 259. The items
in this menu correspond exactly to those in the Formula Elements
window.
a2 a^2 an a_n
Greek characters
Greek characters ( , , , , etc) are common in mathematical
formulas. These characters are not available in the Formula Elements
window or on the right-click menu. Fortunately, the markup for Greek
characters is simple: Type a % sign followed the name of the character,
in English.
• To write a lowercase character, type the name of the character in
lowercase.
• To write an uppercase character, type the name of the character
in uppercase.
See the table below for some examples.
Lowercase Uppercase
%alpha %ALPHA A
%beta %BETA B
%gamma %GAMMA
%psi %PSI
%phi %PHI
%theta %THETA
Example 2: ≃ 3.14159
For this example we will suppose that:
• We want to enter the above formula (the value of pi rounded to 5
decimal places).
• We know the name of the Greek character (pi).
• But we do not know the markup associated with the ≃ symbol.
Step 1: Type % followed by the text pi. This displays the Greek
character .
Step 2: Open the Formula Elements window (View > Formula
Elements).
Step 3: The ≃ symbol is a relation, so we click on the Relations
button. If you hover the mouse over this button you see the tooltip
Relations (Figure 261).
Figure 262 shows the Formula Elements window after clicking the
Relations button. The symbol we want is circled.
Customizations
Figure 265 shows the result. You can dock the floating window again
by using the same steps. Hold down the Control key and double-click
the window frame.
Formula layout
The most difficult part of using OOo Math comes when writing
complicated formulas. This section provides some advice.
Markup Result
2
2 over x + 1 1
x
2
2 over {x + 1}
x1
Markup Result
x = 3
x=3 y=1
y = 1
x = 3 newline
y = 1
Markup Result
n
sum from k = 1 to n a_k ∑ ak
k =1
int from Re f ∫f
ℜ
∞
sum to infinity 2^{-n} ∑ 2−n
For more details on integrals and sums, see the Math Objects
Note chapter in the Writer Guide.
Rows are separated by two #’s and entries within each row are
Note separated by one #.
The first problem people have with matrices is that brackets do not
scale with the matrix.
Markup Result
( matrix { a # b ## c # d } )
OOo Math provides scalable brackets. That is, the brackets grow in
size to match the size of their contents. Use the commands left( and
right) to make scalable brackets.
Markup Result
matrix{
alignr x+y # {}={} # alignl 2 ## x y = 2
alignr x # {}={} # alignl 2-y x = 2− y
}
Numbering equations
Equation numbering is one of OOo Math’s best hidden features. The
steps are simple, but obscure:
1) Start a new line.
2) Type fn and then press F3.
Now you can double-click on the formula to edit it. For example, here
is the Riemann Zeta function:
∞
1
z = ∑ z (3)
n=1 n
You can reference an equation (“as shown in Equation (2)”) with these
steps:
1) Choose Insert > Cross-reference from the menu bar.
2) On the Cross-references tab (Figure 270), under Type, select Text.
3) Under Selection, select the equation number.
4) Under Format, select Reference.
5) Click Insert.
Done! If you later add more equations to the paper before the
referenced equation, all the equations will automatically renumber and
the cross-references will update.
Quick printing
Click the Print File Directly icon to send the entire document to
the default printer defined for your computer.
You can change the action of the Print File Directly icon to
send the document to the printer defined for the document
Note instead of the default printer for the computer. Go to Tools >
Options > Load/Save > General and select the Load
printer settings with the document option.
Controlling printing
For more control over printing, use File > Print to display the Print
dialog.
On the Print dialog, you can choose:
• Which printer to use (if more than one are installed on your
system) and the properties of the printer—for example,
orientation (portrait or landscape), which paper tray to use, and
what paper size to print on. The properties available depend on
the selected printer; consult the printer’s documentation for
details.
• What pages to print, how many copies to print, and in what order
to print them. Use dashes to specify page ranges and commas or
semicolons to separate ranges; for example: 1, 5, 11–14, 34–40.
Selection is the highlighted part of a page or pages.
• What items to print. Click the Options button to display the
Printer Options dialog.
Selections on the Printer Options dialog are different in Writer, Calc,
Impress, and Draw, but in all cases they apply to this printing of this
document only. For details, see the chapters on the various OOo
components.
To specify default printing options, see Chapter 2 (Setting up
OpenOffice.org) and the chapters on the various OOo components.
Exporting to PDF
OpenOffice.org can export documents to PDF (Portable Document
Format). This industry-standard file format is ideal for sending the file
to someone else to view using Adobe Reader or other PDF viewers.
The process and dialogs are the same for Writer, Calc, Impress, and
Draw, with a few minor differences mentioned in this section.
Range section
• All: Exports the entire document.
• Pages: To export a range of pages, use the format 3-6 (pages 3 to
6). To export single pages, use the format 7;9;11 (pages 7, 9, and
11). You can also export a combination of page ranges and single
pages, by using a format like 3-6;8;10;12.
• Selection: Exports whatever material is selected.
Images section
• Lossless compression: Images are stored without any loss of
quality. Tends to make large files when used with photographs.
Recommended for other kinds of images or graphics.
General section
• PDF/A-1: PDF/A is an ISO standard established in 2005 for long-
term preservation of documents, by embedding all the pieces
necessary for faithful reproduction (such as fonts) while
forbidding other elements (including forms, security, encryption,
and tagged PDF). If you select PDF/A-1, the forbidden elements
are greyed-out (not available).
• Tagged PDF: Exports special tags into the corresponding PDF
tags. Some tags that are exported are table of contents,
hyperlinks, and controls. This option can increase file sizes
significantly.
• Create PDF form - Submit format: Choose the format of
submitting forms from within the PDF file. This setting overrides
the control’s URL property that you set in the document. There is
only one common setting valid for the whole PDF document: PDF
(sends the whole document), FDF (sends the control contents),
HTML, and XML. Most often you will choose the PDF format.
• Export bookmarks: Exports headings in Writer documents, and
page names in Impress and Draw documents, as “bookmarks” (a
table of contents list displayed by some PDF readers, including
Adobe Reader).
• Export comments: Exports comments in Writer and Calc
documents as PDF notes. You may not want this! In Impress,
exports a set of Comments pages following the set of slides.
• Export automatically inserted blank pages: If selected,
automatically inserted blank pages are exported to the PDF. This
is best if you are printing the PDF double-sided. For example,
E-mailing documents
OOo provides several ways to quickly and easily send documents as an
e-mail attachment in one of three formats: OpenDocument (OOo’s
default format), Microsoft Office formats, or PDF.
To send the current document in OpenDocument format:
1) Choose File > Send > Document as E-mail. OpenOffice.org
opens the e-mail program specified in Tools > Options >
Internet > E-mail. The document is attached.
2) In your e-mail program, enter the recipient, subject and any text
you want to add, then send the e-mail.
File > Send > E-mail as OpenDocument Text (or Spreadsheet or
Presentation) has the same effect.
If you choose E-mail as Microsoft [Word, Excel, or Powerpoint],
OOo first creates a file in one of those formats and then opens your e-
mail program with the file attached.
Similarly, if you choose E-mail as PDF, OOo first creates a PDF using
your default PDF settings (as when using the Export Directly as PDF
toolbar button) and then opens your email program with the .PDF file
attached.
At the bottom of the dialog are two options, Preview and Link. Select
Preview to view a thumbnail of the selected image on the right, so you
can verify that you have the correct file. See below for the use of Link.
Caution If the application from which the graphic was copied is closed
before the graphic is pasted into the target, the image stored on
the clipboard could be lost.
Deleting the name of a file from the list in the Gallery does not
Note delete the file from the hard disk or other location.
The value _self for the target frame will work just fine in the vast
Tip majority of occasions. It is therefore not recommended to use
the other choices unless absolutely necessary.
Using Fontwork
With Fontwork you can create graphical text art objects for making
your work more attractive. There are many different settings for text
art objects (line, area, position, size, and more), so you have a large
choice. You will surely find one that fits your document.
Fontwork is available with each component of OOo, but you will notice
small differences in the way that each component displays it.
Line options
Line icon: Opens a dialog with three tabs: Line, Line Styles, Arrow
Styles. Use the Line tab to edit the most common properties of the
line around the selected Fontwork object, by choosing from previously-
defined attributes including line style, line color, and arrow styles. Use
the Lines Styles and Arrow Styles tabs to edit the properties of line
and arrow styles, and define new styles.
Arrow Style icon: Choose from the different arrow styles.
Line Style box: Choose from the available line styles.
Line Width box: Set the width of the line.
Line Color box: Select the color of the line.
Area options
Area icon: Opens a dialog with seven tabs: Area, Shadow,
Transparency, Colors, Gradients, Hatching, Bitmaps.
• Area tab: Choose from the predefined list a color, bitmap,
gradient or hatching pattern to fill the selected object.
Inserting hyperlinks
When you type text (such as a website addresses or URL) that can be
used as a hyperlink, and then press the spacebar or the Enter key, OOo
automatically creates the hyperlink and applying formatting to the text
(usually a color and underlining). If this does not happen, you can
enable this feature using Tools > AutoCorrect Options > Options
and selectingthe URL Recognition option.
If you do not want OOo to convert a specific URL to a hyperlink,
choose Edit > Undo Insert from the menu bar or press Control+Z
immediately after the formatting has been applied.
The top right part of the dialog changes according to the choice made
for the hyperlink type. A full description of all the choices, and their
interactions, is beyond the scope of this chapter. Here is a summary of
the most common choices.
For an Internet type hyperlink, choose the type of hyperlink (choose
between Web, FTP or Telnet), and enter the required web address
(URL).
Editing hyperlinks
To edit a hyperlink, click anywhere in the link test and then open the
Hyperlink dialog by clicking the Hyperlink icon on the Standard
toolbar or choosing Edit > Hyperlink from the menu bar. Make your
changes and click Apply. If you need to edit several hyperlinks, you
can leave the Hyperlink dialog open until you have edited all of them.
Be sure to click Apply after each one. When you are finished, click
Close.
The standard (default) behavior for activating hyperlinks within OOo is
to use Ctrl+click. This behavior can be changed in Tools > Options >
OpenOffice.org > Security > Options, by deselecting the option
Ctrl-click required to follow hyperlinks. If clicking in your links
3) Chose a layout for the web site by clicking on the layout boxes.
Click Next.
7) Choose where to save the file and preview the page if you wish.
Click Finish.
3) Choose the design for all of the pages, either from an existing
design or by creating a new one. If you have not previously saved
a design, the Existing Design choice is not available.
8) Select the color scheme for the web pages. Available schemes
include the document’s existing scheme, one based upon browser
colors, and a completely user-defined scheme. You can save a new
scheme so that it will appear on the first page of the HTML export
wizard.
6) Highlight the newly created module. In the upper left corner, type
the macro name to use, such as “EnterMyname”, and then click
Save to save the macro.
If you followed all of the steps, the Standard library now contains a
module named Recorded, which contains the EnterMyName macro, as
shown in Figure 302. When OOo creates a new module, it
automatically adds the macro named Main; as seen in Figure 302.
There are other methods to run a macro. For example, use Tools >
Macros > Organize Macros > OpenOffice.org Basic to open the
macro organizer, which contains a Run button as well. The author, an
avid macro writer, prefers the macro organizer because the dialog
usually opens faster, but the selection process may be slightly slower.
End Sub
sub EnterMyName
rem -------------------------------------------------------------
rem define variables
dim document as object
dim dispatcher as object
rem -------------------------------------------------------------
rem get access to the document
document = ThisComponent.CurrentController.Frame
rem -------------------------------------------------------------
dim args1(0) as new com.sun.star.beans.PropertyValue
args1(0).Name = "Text"
args1(0).Value = "Andrew Pitonyak"
There are advanced topics that are beyond the scope of this document,
but knowing about them might be of interest:
• You can write a macro so that values can be passed to the
subroutine. The values are called arguments. Recorded macros do
not accept arguments.
Creating a macro
I usually ask two questions before recording a macro:
1) Can the task be written as a simple set of commands?
2) Can the steps be arranged such that the last command leaves the
cursor ready for the next command?
A complicated example
I frequently copy rows and columns of data from a web site and format
them as a table in a text document. First, I copy the table from the web
site to the clipboard. To avoid strange formatting and fonts, I paste the
text into a Writer document as unformatted text. I reformat the text
with tabs between columns so that I can use Table > Convert > Text
to Table to convert to a table.
I inspect the text to see if I can record a macro to format the text
(remember the two questions that I ask). As an example, I copied the
FontWeight constants group from the OpenOffice.org web site. The
I want the first column to contain the numeric value, the second
column the name, and the third column the description. The desired
work is easily accomplished for every row except for DONTKNOW and
NORMAL, which do not contain a numeric value—but I know that the
values are 0 and 100, so I will enter those manually.
The data can be cleaned in multiple ways—all of them easy. The first
example uses keystrokes that assume the cursor is at the start of the
line with the text THIN.
1) Use Tools > Macros > Record Macro to start recording.
2) Press Ctrl+Right Arrow to move the cursor to the start of
“specifies”.
3) Press Backspace twice to remove the tab and the space.
4) Press Tab to add the tab without the space after the constant
name.
5) Press Delete to delete the lower case s and then press S to add an
upper case S.
6) Press Ctrl+Right Arrow twice to move the cursor to the start of
the number.
7) Press Ctrl+Shift+Right Arrow to select and move the cursor
before the % sign.
8) Press Ctrl+C to copy the selected text to the clipboard.
9) Press End to move the cursor to the end of the line.
sub CopyNumToCol1
rem -------------------------------------------------------------
rem define variables
dim document as object
dim dispatcher as object
rem -------------------------------------------------------------
rem get access to the document
document = ThisComponent.CurrentController.Frame
dispatcher = createUnoService("com.sun.star.frame.DispatchHelper")
rem (2) Press Ctrl+Right Arrow to move the cursor to the start of “specifies”.
dispatcher.executeDispatch(document, ".uno:GoToNextWord", "", 0, Array())
rem (3) Press Backspace twice to remove the tab and the space.
dispatcher.executeDispatch(document, ".uno:SwBackspace", "", 0, Array())
rem -------------------------------------------------------------
dispatcher.executeDispatch(document, ".uno:SwBackspace", "", 0, Array())
rem (4) Press Tab to add the tab without the space after the constant name.
dim args4(0) as new com.sun.star.beans.PropertyValue
args4(0).Name = "Text"
args4(0).Value = CHR$(9)
rem (6) Press Ctrl+Right Arrow twice to move the cursor to the number.
dispatcher.executeDispatch(document, ".uno:GoToNextWord", "", 0, Array())
rem -------------------------------------------------------------
dispatcher.executeDispatch(document, ".uno:GoToNextWord", "", 0, Array())
rem (8) Press Ctrl+C to copy the selected text to the clipboard.
dispatcher.executeDispatch(document, ".uno:Copy", "", 0, Array())
rem (9) Press End to move the cursor to the end of the line.
dispatcher.executeDispatch(document, ".uno:GoToEndOfLine", "", 0, Array())
rem (10) Press Backspace twice to remove the two trailing spaces.
dispatcher.executeDispatch(document, ".uno:SwBackspace", "", 0, Array())
rem -------------------------------------------------------------
dispatcher.executeDispatch(document, ".uno:SwBackspace", "", 0, Array())
rem (11) Press Home to move the cursor to the start of the line.
dispatcher.executeDispatch(document, ".uno:GoToStartOfLine", "", 0, Array())
rem (12) Press Ctrl+V to paste the selected number to the start of the line.
dispatcher.executeDispatch(document, ".uno:Paste", "", 0, Array())
rem (14) Press Tab to insert a tab between the number and the name.
dim args17(0) as new com.sun.star.beans.PropertyValue
args17(0).Name = "Text"
args17(0).Value = CHR$(9)
Other options
When the macro recorder is not able to solve a specific problem, the
usual solution is to write code using the OpenOffice.org objects.
Unfortunately, there is a steep learning curve for the OOo objects. It is
Macro organization
In OpenOffice.org, macros are grouped in modules, modules are
grouped in libraries, and libraries are grouped in library containers. A
library is usually used as a major grouping for either an entire
category of macros, or for an entire application. Modules usually split
functionality, such as user interaction and calculations. Individual
macros are subroutines and functions.
Importing macros
The OpenOffice.org Macro Organizer dialog provides functionality to
create, delete, and rename libraries, modules, and dialogs. Select the
library container to use and then click the Import button to import
macro libraries (see Figure 307).
The answers will determine where to store the macro and how to make
it available. For example, you will probably not add a rarely used
macro to a toolbar. To help determine your choices, see Table 4.
Toolbar
Macros can be added to toolbars. For more about modifying toolbars,
see Chapter 14 (Customizing OpenOffice.org).
Menu item
Use Tools > Customize to open the Customize dialog, and select the
Menus tab. You can modify an existing menu, or create new menus that
call macros. For more about modifying menus, see Chapter 14.
Keyboard shortcuts
Use Tools > Customize to open the Customize dialog, and select the
Keyboard tab. Assigning keyboard shortcuts is discussed in Chapter 14.
Use Tools > Customize to open the Customize dialog, and select the
Events tab (see Figure 311). The events in the Customize dialog are
related to the entire application and specific documents. Use the Save
In box to choose OpenOffice.org or a specific document.
Sub AppendHello
Dim oDoc
Dim sTextService$
Dim oCurs
Included material
Many excellent macros are included with OOo. Use Tools > Macros >
Organize Macros > OpenOffice.org Basic to open the Macro dialog.
Expand the Tools library in the OpenOffice.org library container.
Inspect the Debug module—some good examples include
WritedbgInfo(document) and printdbgInfo(sheet).
Online resources
The following links and references contain information regarding
macro programming:
http://user.services.openoffice.org/ (OOo forums, well supported)
http://api.openoffice.org/docs/common/ref/com/sun/star/module-ix.html
(official IDL reference; here you'll find almost every command with a
description)
http://wiki.services.openoffice.org/wiki/Documentation/BASIC_Guide
(official OpenOffice.org BASIC Programming Guide)
http://wiki.services.openoffice.org/wiki/Documentation/DevGuide/Open
Office.org_Developers_Guide (official OpenOffice.org Developers
Guide; contains a detailed explanation)
Customizing toolbars
You can customize toolbars in several ways, including choosing which
icons are visible and locking the position of a docked toolbar, as
described in Chapter 1 (Introducing OpenOffice.org). This section
describes how to create new toolbars and add other icons (commands)
to the list of those available on a toolbar.
To get to the toolbar customization dialog, do any of the following:
• On the toolbar, click the arrow at the end of the toolbar and
choose Customize Toolbar.
• Choose View > Toolbars > Customize from the menu bar.
• Choose Tools > Customize from the menu bar and pick the
Toolbars page (Figure 317).
The new toolbar now appears on the list of toolbars in the Customize
dialog. After creating a new toolbar, you need to add some commands
to it, as described below.
4) Click the arrow icon at the end of the Standard toolbar. In the
drop-down menu, choose Customize Toolbar. The Toolbars page
of the Customize dialog appears (Figure 317). Click Add.
5) On the Add Commands dialog (Figure 320), select Documents in
the Category list, then select Send Default Fax in the Commands
list. Click Add. Now you can see the new icon in the Commands
list.
6) In the Commands list, click the up or down arrow button to
position the new icon where you want it. Click OK and then click
Close.
Your toolbar now has a new icon to send the current document as a
fax.
Installing extensions
To install an extension, follow these steps:
1) Download an extension and save it anywhere on your computer.
2) In OOo, select Tools > Extension Manager from the menu bar.
In the Extension Manager dialog (Figure 322), click Add.
3) A file browser window opens. Find and select the extension you
want to install and click Open. The extension begins installing.
You may be asked to accept a license agreement.
To get extensions that are listed in the repository, you can open
the Extension Manager and click the Get more extensions
Tip here link. You do not need to download them separately as in
step 1 above.
Using extensions
This section describes a few of the more important and popular
extensions to OpenOffice.org. In each case, you need to first install the
extension as described in the previous section.
PDF Import
Enables you to make minor modifications to the text of existing PDF
files when the original source files do not exist or you are unable to
open the source files. (Whenever possible, modify the source and
regenerate the PDF to obtain the best results.)
Presenter Console
Provides extra control over slide shows (presentations); for example,
the presenter has ability to see the upcoming slide, the slide notes, and
a presentation timer—while the audience sees only the current slide.
The Presenter Console displays the elements in three easily
changeable views:
• The first view displays the current slide, including the effects, and
the upcoming slide.
• The second view shows the speaker's notes in large, clear, and
scalable type, plus the current and upcoming slide.
• The third view is a slide sorter view with the slide thumbnails.
From Sun Microsystems. Open source.
Report Builder
Creates stylish, complex database reports from Base. You can define
group and page headers, group and page footers, and calculation
fields. Export your reports into PDF or OpenDocument formats, or
Template Changer
Adds two new items to the File > Templates menu in Writer that
allow you to assign a new template to the current document or to a
folder of documents. All styles and formatting will be loaded from that
template and the document will behave as it was created using that
template. Open source.
Interrupting macros
To terminate a macro that is currently running, press Shift+Ctrl+Q.
What is OpenDocument?
Starting with Version 2.0, OpenOffice.org by default saves documents
in Open Document Format (ODF). OpenOffice.org 3 has adopted
version 1.2 of the OpenDocument standard.
OpenDocument is an XML-based file format for office documents (text
documents, spreadsheets, drawings, presentations and more),
developed at OASIS, an independent, international standards group.
Unlike other file formats, ODF is an open standard. It is publicly
available, royalty-free, and without legal or other restrictions;
therefore ODF files are not tied to a specific office suite and anybody
can build a program that interprets these files. For this reason ODF is
quickly becoming the preferred file format for government agencies,
schools and other companies who prefer not to be too dependent on a
particular software supplier.
Because OOo 3.2 currently requires a superset of the ODF 1.2
specification, it now warns users when ODF 1.2 Extended features
have been used.
The document integrity check now proves whether an ODF document
conforms to the ODF specification (this mainly affects ODF 1.2
documents). If an inconsistency is found, the document is treated as a
broken one, and OpenOffice.org offers to repair the document.
Opening spreadsheets
In addition to OpenDocument formats (.ods and .ots), Calc 3 can open
the formats used by OOo 1.x (.sxc and .stc) and the following
spreadsheet formats:
Microsoft Excel 97/2000/XP (.xls, .xlw, and .xlt)
Microsoft Excel 4.x–5.0/95 (.xls, .xlw, and .xlt)
Microsoft Excel 2003 XML (.xml)
Microsoft Excel 2007 XML (.xlsx, .xlsm, .xlts, .xltm)
Microsoft Excel 2007 binary (.xlsb)
Lotus 1-2-3 (.wk1, .wks, and .123)
Data Interchange Format (.dif)
Rich Text Format (.rtf)
Text CSV (.csv and .txt)
StarCalc formats (.sdc and .vor)
dBASE (.dbf)
SYLK (.slk)
Unified Office Format spreadsheet (.uos, .uof)
.htm and .html files, including Web page queries
Pocket Excel (pxl)
Quattro Pro 6.0 (.wb2)
Saving presentations
In addition to OpenDocument formats (.odp, .otp, and .odg), Impress 3
can save in these formats:
OpenOffice.org 1.x Presentation (.sxi)
OpenOffice.org 1.x Presentation Template (.sti)
Microsoft PowerPoint 97/2000/XP (.ppt and .pps)
Microsoft PowerPoint 97/2000/XP Template (.pot)
StarDraw, StarImpress (.sda, .sdd, and .vor)
Unified Office Format presentation (.uop)
Impress can also export to MacroMedia Flash (.swf) and any of the
graphics formats listed for Draw.
Saving drawings
Draw 3 can only save in the OpenDocument Drawing formats (.odg and
.otg), the OpenOffice.org 1.x formats (.sxd and .std) and StarDraw
format (.sda, .sdd, and .vor).
However, Draw can also export to BMP, EMF, EPS, GIF, JPEG, MET,
PBM, PCT, PGM, PNG, PPM, RAS, SVG, SVM, TIFF, WMF, and XPM.
Index 435
markup 317 Gallery 356
matrix markup 323 grouping 360
right-click menu 316 line options 359
event handling 398 moving and resizing objects 361
export directly as PDF 329 positioning options 360
export HTML 56 same letter heights 357
exporting to PDF 329 toolbar 355, 357
extended tips 37 Form Wizard 267
extension formatting
Sun Report Builder 311 conditional 168
Extension Manager 78, 311 Formatting toolbar 22
extensions 400, 415 formula editor
extensions and addons See: equation editor 319
sources of 15 formula files, opening 429
formula layout 321
F Free Software Foundation (FSF) 427
fax icon, adding to toolbar 126, 411 function key shortcuts 421
fax sending 125
FDF 331 G
fields 205 Gallery
fields adding objects 348
bookmarks 129 copying object into document 347
cross-reference 128 creating a new theme 350
Fields dialog box deleting images 349
References tab 129 deleting objects 349
file locations 43 hide/show 346
file sharing options 46, 47 inserting object as background 347
Fill Format 66 location 350
fill, editing 242 open/close 346
Flash export 373 themes 346
flip an object 243 views (icon/detailed) 346
floating toolbars 22, 23 general options 37
floating window 23 glue points 232
font GNU/Linux
history 41 system requirements 14
ignore settings when importing HTML gradients 244
56 grammar checker 101
options 45 graphic files
preview 41 opening 429
replacement table 45 saving 431
replacements 45 graphic styles 202
sizes for HTML 55 graphics
Fontwork adding from file 342
alignment 358 linking 343
anchoring 360 vector 217
area options 359 graphics styles
attributes 358 formatting text 208
character spacing 358 grid options 225
creating an object 356 grid points 224
editing an object 357 guiding lines 226
Index 437
editing 381 Mozilla plug-in 60
event handling 398 music objects, inserting 213
example 384 MySQL 251
functions 390
IDE 381, 388
N
library container 379 Native Language Project 16
library containers 390 Navigation toolbar 32
menu items 396 Navigator 31, 187
module 379 new document 27
modules 390 non-breaking hyphen 99
organization 390 non-breaking spaces 99
recording 379 Normal view (Impress) 188
REM 382 Notes view (Impress) 189
resources 401 numbered list 209
running 380, 395 numbering equations 325
storage 392 O
subroutines 382, 390
OASIS 14
variables 383
objects
viewing 381
adjusting size 237
writing 400
arranging 237
Mail Merge Wizard
dynamic movement 238
e-mailing Writer document 337
dynamic size modification 238
Mantovani, Paolo 390
framing 236
margins 218
hidden 236
margins (Writer) 113
moving 237
Master Pages 202
rotating 238
master slides 200
selecting several 237
Math formulas, inserting 213
ODF format version, saving 53
mathematical equations 313
ODF plugin (Sun) 93
mathematical markup 317
Office Assistant (Microsoft) 38
mathematical symbols 314
OLE objects, inserting 213
matrix markup (Math) 323
online update options 51
measurement unit 100, 219
OOo Macro Organizer dialog 380
memory options 39
Open and Save As dialogs 30
menu bar 21
Open Source Initiative (OSI) 426, 427
menus
Open/Save dialogs 38
adding commands 407
OpenDocument Format 14, 53
creating 405
opening a document 28
customizing 404
OpenOffice.org Basic Macros dialog 379
modifying 406
Options Bar (Draw) 223
modifying entries 407
orientation of page 85
Microsoft Office file conversion 55
outline level 210
Microsoft Windows
Outline view (Impress) 188
file associations 17
OXT extension 78
Quickstarter 18
system requirements 14 P
Microsoft Word 93 page layout
middle mouse button function 41 different first page 84
mirror copies 243 landscape page 85
mouse positioning 41
Index 439
S special characters 103
save as spelling checker 101
web page 368 spelling options 59
save AutoRecovery information 53 spreadsheet
save original Basic code 54 using as data source 284
save relative URLs 53 spreadsheets
saving files 28 opening 428
scaling factor (user interface) 40 saving 430
scanner 345 saving as CSV 140
screen font antialiasing 40 Standard toolbar 22
security 29 StarBasic 379
security options 46 starting a new document 27
selecting objects 236 starting OpenOffice.org 17
selection clipboard 41 Status Bar (Draw) 186, 219
selection modes 235 Style dialog 68, 69
send backward 237 styles 242
send document as e-mail 336 Apply Style list 66
setup options 36 assigning to shortcut keys 413
shadows 242 AutoUpdate 68
shared extension 416 changing using Style dialog 68
shortcut keys 420, 422 creating by dragging and dropping 70
size optimization 54 creating from selection 69
slanting an object 239 creating new 69
Slide Design dialog 203 creating using Style dialog 69
slide master 200 custom 69
adding text 205 deleting 73
apply 203 description 63, 201
author information 206 Fill Format 66
create 203 formatting text 208
description 201 graphic styles 202
fields 205 linking 69
loading additional 203 loading from template or document 72
modifying 204 modifying 67
slide show presentation styles 202
organizing 214 types supported 63
See: presentation 183 updating from a selection 68
Slide Sorter view (Impress) 190 Styles and Formatting window 65
slides SUB 382
adding text 200 subroutines 390
hide 201 subroutines in macros 382
inserting 198 Sun Microsystems 425
layouts 198 Sun Report Builder 311
master 200, 201 support 15
modifying 200 system font (user interface) 40
Slides pane (Impress) 183 T
snap functions 224 Table Wizard (database) 255
Snap to grid 224 Tasks pane (Impress) 185
Solaris tear-off toolbars 22
system requirements 14 template