Chapter 7. Working with Documents

Red Hat Enterprise Linux includes several tools for managing all of your documents. Whether you are preparing for a presentation, writing a formal letter, or opening a document from an email attachment, Red Hat Enterprise Linux has a tool that suits your needs.

7.1. The Suite

Productivity suites are collections of applications designed to save time and assist users at work, at school, and at home. Usually, productivity suites are graphical and include such applications as word processors, spreadsheets, and presentation utilities. The applications that comprise a productivity suite are integrated — which means that you can, for example, write a document with an embedded chart created by the spreadsheet application as well as a slide from a graphical presentation application. Integration of the software that make up a productivity suite helps you to give impact to your presentations, lectures, or printed collateral.

Red Hat Enterprise Linux includes a powerful business productivity suite called, which incorporates several complementary applications into one integrated package. Using is much faster and easier than learning complex tags and code to format your documents and presentations. It allows you complete control over the layout and content of your documents and lets you see the results as you edit it. This real-time, visual form of document formatting is called what you see is what you get (or WYSIWYG) editing.

7.1.1. Features

The suite contains several applications for creating and editing documents, spreadsheets, business presentations, and artwork. It includes templates, forms, and wizards for creating basic professional documents and presentations quickly. If you have ever worked with or received .doc or .xls files, you know they are commonly associated with the Microsoft Office suite. The suite is able to read, edit, and create files in several formats, including files which are commonly associated with Microsoft Office. Table 7-1 shows the many different types of files you can use and tasks you can accomplish with the suite.

ApplicationFile CompatibilityDocument Types Writer .sxw, .sdw, .doc, .rtf, .txt, .htm/.html Formal letters, business forms, school papers, resumes, newsletters, reports Calc .sxc, .dbf, .xls, .sdc, .slk, .csv, .htm/.html Spreadsheets, charts, tables, graphs, personnel directories, address books, budgets, simple databases Impress .sxi, .ppt, .sxd, .sdd Business and academic presentations, Web presentations, lectures, slide shows Draw .sxd, .sda; export files to several image formats, including .jpg, .bmp, .gif, and .png Illustrations, line drawings, clip art, organizational charts

Table 7-1. Features

As you can see, the suite has many file compatibility features, and allows you to accomplish several tasks for academic, business, or home use. The following sections shows you how to use the suite.

7.1.2. Writer

Writing documents using is similar to other word processing applications you may have used before. A word processor is like a text editor but has several additional features that allow you to format, design, and print your documents without the need to memorize complex formatting tags or codes. Writer is a powerful word processor that features WYSIWYG formatting — what you see in the Writer window is exactly what you get if you printed the document or if you gave the document file to someone else for them to view. Figure 7-1 shows Writer in action:

Figure 7-1. Writer

To start Writer from your desktop panel, choose Main Menu => Office => Writer; to start it from a shell prompt, type oowriter.

The main interface is the document editing area (the white space in the middle of the window) where you can add and edit text. At the top of the window are various functions collected into toolbars that let you choose your fonts, letter sizes, justification (aligning the text of your document to the left, center, or right margins), and more. There is also a text box that enables you to specify the exact location of a document on your machine and load the document into the editing area. There are also buttons for opening, saving, and printing documents, as well as buttons for creating new documents (which opens up a new window with a blank document for you to add content).

Along the left side of the window, there is a toolbar with buttons for checking your spelling, toggling the automatic highlighting of misspelled words, keyword and phrase searching, and other convenient editing functions. If you hover the mouse cursor over a toolbar button, a pop-up Tip is displayed with a brief explanation of the button's functionality. You can display more detailed Tips by clicking the Help menu and choosing Extended Tips.

You can immediately begin typing text into the document editing area at any time using the default settings. To save your text, click the Save button , which opens the pop-up file browser. You can choose the file format from the File type drop down menu at the bottom of the browser window. The default file type is appropriate for files that you are working on exclusively with applications. However, for files that you need to distribute to Microsoft Office users, or if you are editing a file that was sent as an email attachment with the .doc extension, you can save the file as a Microsoft Word file type that others are able to open in Microsoft Word.

While Writer is useful for general document editing, you can also add objects such as images, illustrations, charts, and tables to your document to complement your text or give impact to your documents. To add an image to the document, select Insert => Graphics => From File, and choose the image from the pop-up file browser. The image appears where you placed your cursor and can be made larger or smaller by clicking on the resizing borders around the image. Figure 7-2 shows an image added to a document.

Figure 7-2. Adding an Image to Your Document

Once you have created your document, you can save it in any format that you wish. Consult Table 7-1 for available file formats. Note that you can also export your document to HTML or PDF format, formats which can be read by almost every computer with a Web browser (such as Mozilla) or PDF viewer application (such as xpdf or Adobe Acrobat Reader).

7.1.3. Calc

From large enterprises to home offices, professionals in every industry use spreadsheets for keeping records, creating business charts, and manipulating data. Calc is a software spreadsheet application that allows you to enter and manipulate data cells organized in columns and rows. A cell is a container for individual pieces of data, such as a quantity, label, or mathematical formula. You can perform calculations on groups of cells (such as adding or subtracting a column of cells) or create charts based on the quantities contained in a group of cells. You can even incorporate spreadsheet data into your documents for a professional touch.

To start Calc from the desktop panel, select Main Menu => Office => Calc. To start Calc from a shell prompt, type oocalc.

Figure 7-3 shows Calc in action.

Figure 7-3. Calc Calc allows you to enter and manipulate personal or business data. For example, you can create a personal budget by entering data descriptions (such as rent, groceries, and utilities) into column A and the quantities of those data descriptions in column B. Calc allows you to enter the data either in the cell itself by double clicking the cell and typing your information or by using the Input Line (the text box on the toolbar). Then you can run a formula on column B to come up with a total. Calc has several preset functions and calculations (such as =SUM() for addition/multiplication, =quotient() for division, and =subtotal()for preparing receipts). For detailed information about creating functions for calculating your numerical data in Calc, refer to the documentation by selecting Help => Contents.

If you need to create charts or graphs for class or business presentations, has several chart and graph templates available. Highlight the areas you would like to chart, then click Insert => Chart.... In the Chart window, the data ranges you choose is shown in the text box for you to customize further if desired. Click Next to display the many different charts and graphs you can create using your data. Choose the style you want, and click Create. The graph is displayed anchored within the spreadsheet window. You can move it anywhere on the screen for printing, or you can save the graph as an object that you can then embed in Writer documents or Impress presentations.

Figure 7-4. Creating Charts with Calc

You can save spreadsheets created with Calc in several file formats, including the native .sxc as well as Microsoft Office compatible .xls formats. Additionally, you can export rendered charts and graphs to several image file formats and integrate them with document files, webpages, and presentations.

For more information about using Calc, refer to the help page located in Help => Contents from the file menus.

7.1.4. Impress

Visual aids can give your presentations an added impact that catches your audience's attention and keeps them interested. Impress is a graphical tool that can help you make a more convincing presentation.

To start Impress from the graphical desktop, select Main Menu => Office => Impress. To start Impress from a shell prompt, type ooimpress. Impress features a step-by-step automated presentation wizard called AutoPilot that allows you to create presentations from a collection of default style templates. You can make slides with itemized lists, outlines, or images. You can even import charts and graphs created by Calc into a slide.

Figure 7-5 shows Impress in action.

Figure 7-5. Impress

When you first start Impress, you are presented with the AutoPilot. You can choose the style of your slides, the medium with which you present your slides (plain paper, transparent paper for overhead projectors, slides, or a display monitor), and any animated visual effects you want to apply to the slides if you run presentations from your computer.

Figure 7-6. Impress AutoPilot Wizard

Once you have chosen your preferences with AutoPilot tool, you can choose the type of slide you want to create. You can select a pre-formatted slide from the list or start with a blank slide and customize the layout yourself. To add new slides to your presentation, click Insert Slide... in the floating toolbar, and a pop-up window appears allowing you to choose the layout of the new slide. You can have as many slides in your presentation as you need.

You can also preview your presentation at any point by selecting Slide Show => Slide Show from the file menus. The presentation is presented in full screen, which you can exit by cycling through every slide until you reach the end or by pressing the [Esc] key at any point in the slide show.

Your presentation can be saved in several file formats. You can save in the native Impress format (for example, mypresentation.sxi), the Microsoft PowerPoint format (mypresentation.ppt), or StarImpress format (mypresentation.sdd). You can also print your presentation to plain or transparent paper formats by clicking File => Print from the file menu.

To learn more about Impress, click Help => Contents from the file menus.

7.1.5. Draw

If you want to create graphics for your documents and presentations, you can use Draw. Using your mouse as a you would a pen or a paintbrush, Draw allows you to make illustrations and save them in several formats that you can add to printed documents, place on websites, or attach to emails.

To start Draw from the desktop panel, click Main Menu => Office => Draw. To start Draw from a shell prompt, type oodraw.

Figure 7-7 Shows Draw in action.

Figure 7-7. Draw

If you are familiar with illustration and graphics applications such as The GIMP (refer to Chapter 10 Working with Images for more information), notice that Draw has some of the same basic functions. There are toolbars for creating straight and curved lines, basic shapes such as squares and circles, 3D objects such as cones and cubes, and more. You can create images and fill them with the color of your choice using the Area Style/Filling drop-down menu on the main toolbar. You can additionally insert text into your illustrations. Draw also allows you to open and import images and modify them with the tools provided.

When you complete your illustration or image modifications, you can save the file in one of several native file formats or export your work to several popular formats such as .jpg or .png. Refer to Table 7-1 for the complete list of compatible image file formats.

For more information on using Draw, refer to the documentation located at Help => Contents from the file menus.