402 IT - ClassX 2 22
402 IT - ClassX 2 22
2|Page
SESSION 1: CREATE AND APPLY STYLES IN THE DOCUMENT
A style is a set of formats that you can apply to selected pages, text, frames, and other
elements in your document to quickly change their appearance. When you apply a
style, you apply a whole group of formats at the same time.
Styles are logical attributes. Using styles means that you stop saying “font size 14pt,
Times New Roman, bold, centered”, and you start saying “Title” because you have
defined the “Title” style to have those characteristics. In other words, styles mean that
you shift the emphasis from what the text (or page, or other element) looks like, to
what the text is.
Styles help improve consistency in a document. They also make major formatting
changes easy. For example, you may decide to change the indentation of all
paragraphs, or change the font of all titles. For a long document, this simple task can
be prohibitive. Styles make the task easy.
OpenOffice.org supports the following types of styles:
• Page styles include margins, headers and footers, borders and backgrounds. In
Calc, page styles also include the sequence for printing sheets.
• Paragraph styles control all aspects of a paragraph’s appearance, such as text
alignment, tab stops, line spacing, and borders, and can include character
formatting.
• Character styles affect selected text within a paragraph, such as the font and size
of text, or bold and italic formats.
• Frame styles are used to format graphic and text frames, including wrapping type,
borders, backgrounds, and columns.
• Numbering styles apply similar alignment, numbering or bullet characters, and
fonts to numbered or bulleted lists.
• Cell styles include fonts, alignment, borders, background, number formats (for
example, currency, date, number), and cell protection.
• Graphics styles in drawings and presentations include line, area, shadowing,
transparency, font, connectors, dimensioning, and other attributes.
3|Page
• Presentation styles include attributes for font, indents, spacing, alignment, and
tabs.
Applying styles
OpenOffice.org provides several ways for you to select styles to apply.
1) Click the Styles and Formatting icon located at the left-hand end of the object
bar, or click Format > Styles and Formatting, or press F11.
The Styles and Formatting window shows the types of styles available for the
OpenOffice (OpenOffice.org) component you are using.
Figure 1.1 shows the window for Writer, with Page Styles visible.
Figure1.1: The Styles and Formatting window for Writer, showing paragraph styles
You can move this window to a convenient position on the screen or dock it to an edge
(hold down the Ctrl key and drag it by the title bar to where you want it docked).
2) Click on one of the icons at the top left of the Styles and Formatting window to display
a list of styles in a particular category.
3) To apply an existing style (except for character styles), position the insertion point in
the paragraph, frame, or page, and then double-click on the name of the style in one
of these lists. To apply a character style, select the characters first.
4|Page
Using Fill Format mode
Fill format mode is used to apply a style to many different areas quickly without having
to go back to the Styles and Formatting window and double-click every time. This
method is quite useful when you need to format many scattered paragraphs, cells, or
other items with the same style.
1) Open the Styles and Formatting window and select the style you want to apply.
5|Page
Figure 1.2: Naming a new style created from a selection
4. In the Create Style dialog, type a name for the new style. The list shows the names
of existing custom styles of the selected type. Click OK to save the new style.
Modifying Styles
OpenOffice.org provides several ways to modify styles (both the predefined styles and
custom styles that you create):
• Updating a style from a selection
• Load or copy styles from another document or template
Any changes you make to a style are effective only in the current document. To change
styles in more than one document, you need to change the template or copy the styles
into the other documents.
6|Page
Updating A Style From A Selection
Figure 1.4. Copying styles from a template into the open document
7|Page
3. On the Load Styles dialog (Figure 1.4), find and select the template you want to
copy styles from.
4. Select the categories of styles to be copied. Select Overwrite if you want the styles
being copied to replace any styles of the same names in the document you are
copying them into.
5. Click OK to copy the styles. You will not see any change on screen.
To copy the styles from another document, click the From File button to open a
window from which you can select the required document.
ACTIVITY
1. Write your resume/ Bio Data and apply different styles on it,
2. Create a pamphlet on Cyber Awareness. Apply different styles on it
QUESTIONS
Relevant Knowledge
Images can be added to a document in several ways: by inserting an image file, directly
from a graphics program or a scanner, or from the Open Office Gallery.
8|Page
Drag and Drop
1. Open a file browser window and locate the image you want to insert.
2. Drag the image into the Writer document and drop it where you want it to appear.
A faint vertical line marks where the image will be dropped.
This method embeds (saves a copy of) the image file in the Writer document. To link
the file instead of embedding it, hold down the Control+Shift keys while dragging the
image.
1. Click in the Open Office document where you want the image to appear.
2. Choose Insert > Picture > From File from the menu bar.
3. On the Insert Picture dialog (see Figure 1.5), navigate to the file to be inserted,
select it, and click Open.
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.
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.
10 | P a g e
1. To open the Gallery, click on the Gallery icon (located in the right side of the
Standard toolbar) or choose Tools > Gallery from the menu bar.
2. Navigate through the Gallery to find the desired picture.
3. To insert the picture, click and drag it from the Gallery into the Writer document. You
can also right-click on the picture and choose Insert>Copy.
Figure 1.6 shows an example of an image dragged from the Gallery.
By default, the Gallery is docked above the Writer workspace. To expand the Gallery,
position the pointer over the line that divides it from the top of the workspace. When
the pointer changes to parallel lines with arrows, click and drag downward. The
workspace resizes in response.
11 | P a g e
To expand the Gallery without affecting the workspace, undock it so it floats over the
workspace. To do so, hold down the Control key and double-click on the upper part
of the Gallery next to the View icons. Double-click in the same area while holding
down the Control key to dock it again (restore it to its position over the workspace).
When the Gallery is docked, to hide it and view the full Writer workspace, click the in
the middle of the thin bar separating the Gallery from the workspace.
To close the Gallery, choose Tools > Gallery to uncheck the Gallery entry, or click
on the Gallery icon again.
Modifying An Image
When you insert a new image, you may need to modify it to suit the document. Here
we will discuss the use of the Picture toolbar, resizing, cropping, and a workaround to
rotate a picture.
Graphics mode
You can change color images to grayscale by selecting the image and then selecting
Grayscale from the Graphics mode list.
Cropping Images
When you are only interested in a section of the image for the purpose of your
document, you may wish to crop (cut off) parts of it. To start cropping the image, right
click on it and select Picture from the pop-up menu. In the Picture dialog box, select
the Crop page (see Figure 1.7).
When Keep scale is selected (default), cropping the image does not change the scale
of the picture.
When Keep image size is selected, cropping produces enlargement (for positive
cropping values), shrinking (for negative cropping values), or distortion of the image
so that the image size remains constant.
The image is cropped by the amount entered in these boxes. For example, a value of
3cm in the Left box cuts 3 cm from the left side of the picture.
• When Keep scale is selected, the size of the image also changes, so in this example
the width will be reduced by 3 cm.
• When Keep image size is selected, the remaining part of the image is enlarged
(when you enter positive values for cropping) or shrunk (when you enter negative
values for cropping) so that the width and height of the image remains unchanged.
Resizing an Image
The inserted image might not fit perfectly into the document if it is too big or too small.
In these cases, you can use Writer to resize the image.
1. Click the picture, if necessary, to show the green resizing handles.
2. Position the pointer over one of the green resizing handles. The pointer changes
shape giving a graphical representation of the direction of the resizing.
15 | P a g e
3. Click and drag to resize the picture.
4. Release the mouse button when satisfied with the new size.
The corner handles resize both the width and the height of the graphic object
simultaneously, while the other four handles only resize one dimension at a time.
To retain the original proportions of the graphic, Shift+click one of the corner handles,
then drag. Be sure to release the mouse button before releasing the Shift key.
Be aware that re-sizing a bit-mapped (raster) image will adversely affect the
resolution, causing some degree of blurring. It is better to externally size your picture
correctly before insertion into your presentation, if possible.
Figure 1.8 shows three examples of an image inserted into a document and resized.
Figure 1.8. Three examples of resized images, plus the original image
16 | P a g e
For more accurate resizing, use either the Crop page of the Picture dialog box (Figure
1.7) or, for images, the Type page of the Picture dialog box. On the Crop page you
can adjust the following settings:
Scale Width and Height: specify in percentages the scaling of the picture. The size
of the image changes accordingly. For a scaled resizing, both values should be
identical.
Image size: specify the size of the image in your preferred unit of measurement.
The image enlarges or shrinks accordingly.
Original size button: when clicked, restores the image to its original size.
In the Type page of the Picture dialog box, select the Relative option to toggle
between percentage and actual dimension. For a scaled resizing, select the Keep ratio
option. As for the Crop page, clicking on the Original Size button restores the original
image size.
Rotating a Picture
Writer does not provide a tool for rotating a picture; however, there is a simple
workaround:
1. Open a new Draw or Impress document (File > New > Drawing or File > New >
Presentation).
2. Insert the image you want to rotate. You can use any of the mechanisms described
in “Error! Reference source not found.” on page Error! Bookmark not
defined., although there are some slight variations in the position of the menu
entries and icons.
3. Select the image, then in the Drawing toolbar (shown by default at the bottom of
the window in Impress and Draw), select the Rotate icon from the Effects tear-
off toolbar .
4. Rotate the image as desired. Use the red handles at the corners of the picture and
move the mouse in the direction you wish to rotate. By default the picture rotates
around its center (indicated by a black crosshair), but you can change the pivot
point by moving the black crosshair to the desired rotation center.
17 | P a g e
To restrict the rotation angle to multiples of 15 degrees keep the Shift key pressed
while rotating the image.
5. Select the rotated picture by pressing Ctrl+A, then copy the image to the clipboard
with Ctrl+C.
6. Finish by going back to the location of the Writer document where the image is to
be inserted and pressing Ctrl+V.
a drawing-functions pointer .
3. Move the cross-hair pointer to the place in the document where you want the
graphic to appear and then click-and-drag to create the drawing object. Release the
mouse button. The selected drawing function remains active, so you can draw
another object of the same type.
18 | P a g e
4. To cancel the selected drawing function, press the Esc key or click on the Select
icon (the arrow) on the Drawing toolbar.
5. You can now change the properties (fill color, line type and weight, anchoring, and
others) of the drawing object using either the Drawing Object Properties toolbar or
the choices and dialog boxes reached by right-clicking on the drawing object.
Set or Change Properties For Drawing Objects
To set the properties for a drawing object before you draw it:
19 | P a g e
You can also specify the position and size, rotation, and slant and corner radius
properties of the drawing object:
1. Right-click on the drawing object and then click Position and Size from the pop-
up menu. The Position and Size dialog box is displayed.
2. Choose any properties, as required.
The same considerations for resizing an image apply also to resizing an object. Select
the object, click on one of the eight handles around it and drag it to its new position.
For a scaled resizing, select one of the corner handles and keep the Shift key pressed
while dragging the handle to its new position.
Select Format > Object > Position and Size from the menu bar.
Use the Position and Size dialog box to set the width and height independently.
If the Keep ratio option is selected, then the two dimensions change so that the
proportion is maintained, allowing for a scaled resizing.
1. Select one object, then hold down the Shift key and select the others you want to
include in the group. The bounding box expands to include all the selected objects.
2. With the objects selected, hover the mouse pointer over one of the objects and
choose Format > Group > Group from the menu bar or right-click and choose
Group > Group from the pop-up menu.
You cannot include an embedded or linked graphic in a group with drawing objects.
When you add a graphic to a text document, you need to choose how to position it
with respect to the text and other graphics. The positioning of graphics is often rather
20 | P a g e
time consuming and may be very frustrating for both inexperienced and experienced
users. As Writer is a word processor rather than a desktop publishing program, there
are some limitations to the flexibility in positioning images and it takes time to get
things exactly as you would like them.
Positioning of a graphic is controlled by four settings:
1. Arrangement refers to the placement of a graphic on an imaginary vertical axis.
Arrangement controls how graphics are stacked upon each other or relative to the
text.
2. Alignment refers to the vertical or horizontal placement of a graphic in relation to
the chosen anchor point.
3. Anchoring refers to the reference point for the graphics. This point could be the
page, or frame where the object is, a paragraph, or even a character. An image
always has an anchor point.
4. Text wrapping refers to the relation of graphics to the surrounding text, which may
wrap around the graphic on one or both sides, be overprinted behind or in front of
the graphic, or treat the graphic as a separate paragraph or character.
The settings can be accessed in a number of ways, depending on the nature of the
graphics:
1. From the Format menu, where you can find Alignment, Arrange, Wrap, and
Anchor (both for images and drawing objects).
2. From the pop-up menu displayed when you right-click on the graphic.
3. From the Object toolbar shown in Figure 1.11.
4. For images, from the Type and Wrapping pages of the Picture dialog box. Note
that you cannot control the arrangement using the dialog box. To open the
Picture dialog box, click on the image to select it and then choose Format >
Picture or right-click on the graphic and choose Picture on the pop-up menu.
5. For drawing objects, from the Position and Size page of the Position and Size
dialog box. To open the Position and Size dialog box, click on the drawing
object to select it and then choose Format > Object > Position and Size or right-
21 | P a g e
click on the graphic and choose Position and Size on the pop-up menu. Note
that you can only control the alignment and anchoring.
22 | P a g e