0400DG33 DrawGuideOOo
0400DG33 DrawGuideOOo
org 3
Draw Guide
Drawing Vector Graphics in OpenOffice.org
Copyright
This document is Copyright © 2005–2011 by its contributors as listed below. You may
distribute it and/or modify it under the terms of either the GNU General Public
License (http://www.gnu.org/licenses/gpl.html), version 3 or later, or the Creative
Commons Attribution License (http://creativecommons.org/licenses/by/3.0/), version
3.0 or later. All trademarks in this guide belong to their legitimate owners.
Contributors
Agnes Belzunce Daniel Carrera Martin Fox
Thomas Hackert Regina Henschel Peter Hillier-Brook
Jared Kobos Hazel Russman Gary Schnabl
Bernd Schukat Wolfgang Uhlig Jean Hollis Weber
Claire Wood Linda Worthington
Feedback
Please direct any comments or suggestions about this document to: odfauthors-
[email protected]
Acknowledgments
Several chapters in this book are based on an original French document written for
OpenOffice.org 1.x by Michel Pinquier (translated into English by Alex Thurgood) and
previous content revised by Jim Taylor. The chapters were revised for OOo 2.0 by
Linda, Daniel, Jean, and Agnes, and later translated into German by Bernd, Regina,
and Wolfgang. The German revisions were then translated into English and revised
for OOo 3.3 by Martin Fox.
Rulers
You should see rulers (bars with numbers) on the upper and left-hand sides of the
workspace. If they are not visible, you can enable them by selecting them from the
View menu (View > Ruler).
The rulers show the size of a selected object on the page (see the gray double lines,
highlighted in Figure 2). When no object is selected, they show the location of the
mouse pointer, which helps to position drawing objects more accurately.
You can also use the rulers 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.
Status bar
The Status bar is located at the bottom of the Draw window and includes several
Draw-specific fields, as identified in Figures 4 and 5.
The Information field shows which action is being carried out, or which object type is
selected.
The sizes are given in the current measurement unit (not to be confused
with the ruler units). This unit is defined in Tools > Options >
Note OpenOffice.org Draw > General, where you can also change the scale of
the page. Another way to change the scale is to double-click on the
number shown in the status bar.
• If an object is selected, the left number pair shows the X,Y coordinates of the
upper-left corner, and the right number pair displays the size of the object, as
seen in Figure 4. These numbers do not relate to the object itself, but to the
selection outline, which is the smallest possible rectangle that can contain the
visible part or parts of the object; see also Chapter 3 (Working with Objects
and Object Points).
• When an object is selected, a double-click on this field opens the Position and
Size dialog, which is described in detail in Chapter 4 (Changing Object
Attributes).
In the Indicator field, an asterisk (*) is shown whenever any change is made to the
document but not yet saved to disk.
If you wish to digitally sign the document, a double-click or right-click in the
Signature field brings up the signature box. Note that a document must be saved at
least once before it can be signed. After it is signed, an indicator is present in this
field.
The Slide field shows the sequence number for the current drawing page, in addition
to the total number of pages that you created so far. This is useful when your drawing
has a number of pages. If you select an object, the field enclosed by parentheses
shows the layer in which the object resides within the drawing. In the example of
Figure 5, the object is on the Layout layer of Slide 1, and there is a total number of
one slide so far.
The Page style field shows which template is being used.
The vertical bar in the middle of the Zoom slider represents a zoom factor of 100%.
To change the view magnification, drag the Zoom slider, or click on the + and – signs,
or right-click on the zoom level percent to pop up a list of magnification values from
which to choose. Double-clicking on the zoom level percent to open the Zoom &
View Layout dialog.
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.
You can also select the icons that you wish to appear on the toolbars. To change the
visible icons on any toolbar, click the arrow at the right-hand end of that toolbar and
Standard toolbar
The Standard toolbar is the same for all OpenOffice.org components and is not
described in detail here.
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 for
organizing them on the page. It is described in detail in Chapter 2 (Drawing Basic
Shapes).
In the example above, the available functions enable you to change the color, style,
and width of the line drawn or the fill color, style, and other properties of an object.
The object must first be selected with a mouse click. If the selected object is a text
frame, the buttons for line style and fill color are changed to Invisible by default. You
can change them to something else if you want.
Color bar
To display the Color bar, use View > Toolbars > Color Bar. The toolbar then
appears at the bottom of the workspace and displays the current color palette.
Options toolbar
The Options toolbar lets you activate or deactivate various drawing aids. The Options
Bar is not one of the toolbars displayed by default. To display it, select View >
Toolbars > Options.
The options are described in the table below and in greater detail in other chapters of
the Draw Guide.
Table 1: Functions on the Options toolbar
Icon Function
Snap to guides
Simple handles
Large handles
When a toolset is made into a floating toolbar, the icon on the existing
toolbar remains in the toolbar and always shows the last command you
Note used. This means that the icon you see on your screen may differ from the
icon shown in this Guide.
Each toolbar has a different list of functions. For details, see Chapter 14
(Customizing OpenOffice.org) in the Getting Started guide. That chapter also
describes how to customize menus.
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 instead of the default
Note printer for the computer. Go to Tools > Options > Load/Save >
General and select the Load printer settings with the document
option.
The options selected on the Print dialog apply to this printing of this
document only.
Note To specify default printing settings for OpenOffice.org, go to Tools >
Options > OpenOffice.org – Print and Tools > Options >
OpenOffice.org Draw – Print.
The Print dialog has four tabs, from which you can choose a range of options, as
described in the following sections.
3) In the Page sides section, select whether to print all pages or only some pages.
4) Click the Print button.
In addition to printing a full document, you can choose to print individual pages,
ranges of pages, or a selection of a document.
Printing a brochure
In Writer, Impress, and Draw, 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.
Plan your document so it will look good when printed half size; choose
Tip appropriate margins, font sizes, and so on. You may need to experiment.
9) On the Print dialog, in the Page sides section, select Front sides / right pages
option from the Include drop down box.
10) Click the Print button.
Tip If your printer can print double-sided automatically, choose All pages.
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.
Click the Export Directly as PDF icon to export the entire document using your
default PDF settings. You are asked to enter the file name and location for the PDF
file, but you do not get a chance to choose a page range, the image compression, or
other options.
The content of the exported file will depend on the element(s) selected
on the page. No selection results in the entire image being exported. For
Note most export formats only the image on the current page will be
exported.
E-mailing documents
OpenOffice.org provides several ways to send documents quickly and easily as an e-
mail attachment in one of three formats: OpenDocument (OpenOffice.org’s default
format), Microsoft Office formats, or PDF.
Custom shapes
Draw 3 offers the ability to create custom shapes. These correspond to autoshapes in
Microsoft Office.
The two types of shapes differ in their properties and are dealt with separately in the
relevant chapter of this guide. The main differences relate to the behavior of 3D
objects and text handling. Beginners can safely ignore both for the present.
Text frames in Draw 3 have their own geometric format.
When you draw a basic shape or select one for editing, the Information
field in the status bar changes to reflect the action taken or in progress:
Note Line created, Text frame xxyy selected, TextEdit: Paragraph 1, Row 1,
Column 8 and so on.
Figure 19 shows part of the Drawing toolbar with the icons needed in the following
sections. The Text icon is also included.
Click on the Line icon on the Drawing toolbar and place the mouse pointer at the
point where you want to start the line (see Figure 20). Drag the mouse while keeping
the mouse button pressed. Release the mouse button at the point where you want to
end the line. A blue selection handle appears at each end of the line, showing that
this is the currently selected object.
Holding down the Shift key while you draw a line restricts the angle of the line to a
multiple of 45 degrees (0, 45, 90, 135, and so on).
This is the default behavior of the Shift key. However, if you have used
Caution Tools > Options > OpenOffice.org Draw > Grid to set Snap position
to When creating or moving objects, the action of the Shift key is the
opposite: lines will always be at a multiple of 45 degrees unless the
Shift key is pressed.
Keeping the Ctrl key pressed while drawing a line enables the end of the line to snap
to the nearest grid point.
The effect of the Ctrl key depends on the settings of the Snap to Grid
Caution
option on the View->Grid menu:
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).
Holding down the Alt key while drawing a line results in the line extending outwards
symmetrically in both directions from the start point. This lets you draw lines by
starting from the middle of the line.
The line just drawn has all the standard line attributes, such as color and line style.
To change any of these properties, select the line by clicking on it, then right-click
and select Line.
While you are working with a line (or any other element), you can use the information
field on the status bar to monitor the activity. A description of the current activity or
selection is shown when you are working with elements. Figure 21 shows two
examples.
Drawing an arrow
Arrows are drawn like lines. Draw classifies arrows as a subgroup of lines: lines with
arrowheads. The information field on the status bar shows them only as lines. Click
on the small black triangle on the Lines and Arrows icon on the Drawing
toolbar to open a toolbar with ten tools for drawing lines and arrows (Figure 22).
(Alternatively View > Toolbars > Arrows opens the toolbar as a floating toolbar.) In
both cases, the last-used command will be stored on the toolbar to make it quicker to
call it up again: click directly on the symbol to repeat the last used command chosen
from this toolbar.
After drawing the line, you can change the arrow style by clicking on the Arrow
button in the Line and Filling toolbar and choose from 13 arrow start and end
options.
9 10
Draw considers squares to be rectangles with sides of equal length. Hold down the
Shift key to draw a square. Hold down the Alt key while dragging with the mouse to
create a rectangle with its center (rather than a corner) at the start point (where you
first clicked the mouse).
If you first press and hold the Ctrl key down and then click on one of the
icons for Line, Rectangle, Ellipse or Text, a standard sized object is
drawn automatically in the work area: the size, shape, and color are all
Note standard values. These attributes can be changed later, if desired. This
only works if the icon has no associated toolbar—no arrow on the right
side of the icon.
4) On the Customize dialog, ensure that the checkbox by the new Ellipse
command is selected, and then use the up and down arrow buttons to move it
to the desired position on the toolbar.
5) To remove the simple Ellipse icon from the Drawing toolbar, click to highlight
it in the Customize dialog, and press the Delete key (or click the Modify
button and choose Delete from the drop-down menu).
6) Click OK to complete the process.
You should now see this Ellipse icon on the Drawing toolbar. If you use this
icon instead of the standard Ellipse icon, all the extended ellipse functions are
available. Clicking on the black arrow by the icon opens the floating Circles and
Ovals toolbar (Figure 26).
Release the mouse button and move the cursor to the position where
you want the arc to start. In the status bar, you can measure the
actual angle in degrees. Single-click this point; the circle (or ellipse)
disappears and moving the mouse creates the arc. Again, the status
bar shows the current angle.
When you have drawn the arc to the length you want, click once
more. The drawing of the arc is complete.
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 27).
Hovering the mouse pointer over this icon gives a tooltip of Curve. If you
Note convert the icon to a floating toolbar, however, the title is Lines, as
shown in Figure 27.
If you move the mouse cursor over one of the icons, a tooltip pops up with a
description of the function. For a more detailed description of the handling of Bézier
curves (curves and filled curves), see Chapter 10 (Advanced Draw Techniques).
• 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; move the mouse to see how subsequent lines 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 450: Like ordinary polygons, these are formed from lines but with
angles of only 45 or 90 degrees between them.
Gluepoints
All Draw objects have associated invisible gluepoints, which become visible when you
choose any of the connectors under the Connectors icon on the Drawing
toolbar and then move the mouse pointer over the object.
Most objects have four gluepoints, as shown in Figure 28. You can add more
gluepoints, and customize gluepoints, using the toolbar of the same name (Figure
29).
Gluepoints are not the same as the little blue or green “handles” of an object. The
handles are for moving or changing the shape of an object, as described in Chapter 3
(Working with Objects and Object Points), but the gluepoints are used to “glue” a
connector to an object.
For a more detailed description of the use of gluepoints, see Chapter 9 (Organization
Charts, Flow Diagrams, and More).
Connectors
Connectors are lines or arrows whose ends automatically dock to a gluepoint of an
object. Connectors are especially useful in drawing organization charts, flow
diagrams, and mind-maps. Even when objects are moved or reordered, the
connectors remain attached.
Figure 30 shows two Draw objects and a connector.
Draw offers a range of different connectors and connector functions. Open the
floating Connectors toolbar by clicking on the arrow next to the Connector icon
(Figure 31).
Straight Connector Ends with Arrow Curved Connector Ends with Arrow
For a more detailed description of the use of connectors, see Chapter 9 (Organization
Charts, Flow Diagrams, and More).
Figure 32 shows part of the Drawing toolbar with the icons referred to in the
following sections. Clicking on the arrow next to the icon opens a floating toolbar
with the relevant work tools.
The use of all these tools is similar to that of the Rectangle tool, even
Tip though they produce different geometric shapes.
Basic shapes
The Basic Shapes icon makes available a range
of tools for drawing basic shapes, including a rectangle
tool identical to the one on the main toolbar.
The only differences you will see are in the information
field in the status bar (in this case “Shape selected”
rather than “Rectangle selected”).
Symbol shapes
The Symbol Shapes icon gives you an array of
tools for drawing various symbols.
Block arrows
The Block Arrows icon opens the Block Arrows
toolbar.
Callouts
Use the Callouts icon , to open the Callouts
toolbar.
You can add text to all these shapes. See “Using text elements in Draw objects” on
page 37.
The text tool is activated by clicking on the Text icon for horizontal text or the
Vertical Text icon for vertical script (to be able see the icon and use this latter
option, you must check Enabled for Asian languages under Tools > Options >
The text frame grows with the text. You can insert a line break with the Shift+Enter
key combination. The Enter key begins a new paragraph. Neither line breaks nor new
paragraphs terminate the text frame.
Observe the information field in the status bar: it shows that you are editing text and
also provides details about the current cursor location—paragraph, line, and column
numbers.
Text properties can also be changed during text input. Any changes will be reflected
from the cursor position onwards (Figure 35).
changed
Figure 35: Changing text properties
After choosing the Text icon, you can also draw a frame with the mouse to contain
future text. You can move the frame only after typing some text in it. Line breaks are
inserted automatically at the right edge of the frame when the text fills the frame
Text input
in a fixed frame –
the text wraps
automatically
If the Double-click to edit Text icon on the Options toolbar is active, you can
start editing an object by double-clicking on it (or by pressing F2). In the middle of
the Draw object, a black bar indicates the text cursor; start typing to input text. The
status bar shows “Text Edit” at the lower left and the position of the cursor within the
text.
Text can contain paragraphs, and these can be in the form of bulleted or numbered
lists. To begin a new line without beginning a new paragraph, use the key
combination Shift+Enter (as in text documents). To end the text input, click next to
the object or press the Esc key.
Selection modes
There are three selection modes:
1) Moving and changing size
2) Editing
3) Rotating points
To set the default mode (1 or 2) for selecting objects, click on the Points button
on the Drawing toolbar.
In standard mode (when you begin a new drawing), the Points
button is not active, and the default mode is for selections to be
moved or changed in size; these selections are indicated by
small green squares.
• Choose the Points button from the Drawing toolbar to switch from simple
selection mode to Points mode. You can also use the keyboard shortcut F8
(Points). See “Editing object points” on page 48 for details on using Points
mode.
Selecting objects
Direct selection
The easiest way to select an object is to click directly on it. For objects that are not
filled, click on the object’s outline to select it. One click selects; a second click
deselects. To select or deselect more than one object, hold the shift button down
while clicking.
Selection by framing
You can also select several objects at once by using the mouse to
drag a large rectangle around the objects with the Select button,
as shown. For this to work, the icon on the Drawing toolbar
must be active.
Only objects that lie entirely within the rectangle will be selected.
To select an object that is covered by another object using the keyboard, use the Tab
key to cycle through the objects, stopping at the object you wish to select. To cycle
through the objects in reverse order, press Shift+Tab. This is a very quick way to
reach the object you want, but it may not be practical if you have a large number of
objects in your drawing.
When you click on the selected object, its outline will appear briefly through the
objects covering it.
In the illustration to the right, the square located beneath the
circle was selected in this way (the circle has been made
semi-transparent in order to show the square).
Arranging objects
In a complex drawing, several objects may be stacked on top of one another. To
rearrange the stacking order (move an object to the front or to the back of the stack),
select the object, click Modify > Arrange and choose Bring Forward or Send
Backward. Or right-click the object, choose Arrange from the context menu, then
choose Bring Forward or Send Backward.
These options are also available from the Arrange tear-off toolbar accessible from the
For example, when you are resizing an object, the object information fields show
which object is selected, the current position in X/Y coordinates, and object
dimensions (width x height). The information changes as the mouse is moved. The
units of measurement are those selected under Tools > Options > OpenOffice.org
Draw > General.
To drop the object at its new location, release the mouse button. The new position
appears immediately in the Status Bar.
If you press the Shift key while resizing an object, the change in size will
Note be carried out symmetrically with respect to the two axes, so that the
aspect ratio of the object remains the same.
Figure 40: The Information field during dynamic size modification of objects
In the case of a rectangle, the new size is shown as percentages of the original x and
y dimensions. For a line, much more information is given: the absolute change in x
and y coordinates of the end point being moved, together with the current length and
bearing of the modified line. These are updated dynamically as the end point is
moved (see Figure 40).
This is the only place where the exact start and end angles of an arc or the length
and bearing of a sloping line are shown. This information enables you to size the
object with considerable accuracy.
Modifying an arc
The beginning and end points of an arc can be modified. Select the arc and click on
the Points icon on the Drawing toolbar to enter the Edit points mode (described
later in this chapter). In this mode, the handles on the selection frame change—two
larger blue handles appear at the beginning and end points of the arc. When the
mouse hovers over one of these points the cursor will change to a hand.
If you click and hold the mouse button when the hand cursor appears, moving the
mouse will change the location of the start or end point of the arc. The actual
coordinates are shown in the Status Bar (see lower left graphic in Figure 40.
Rotating
To rotate an object (or a group of objects), drag a red corner handle point 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. This is
normally located at the midpoint of the object, but you can move the axis of rotation
with the mouse to any location you like, even outside the object.
If you hold down the Shift key during the rotation, the operation will be carried out in
increments of 15° (subject to whether Snap position is set to When creating or
moving objects under Tools > Options > OpenOffice.org Draw > Grid).
In current versions of Draw, basic shapes can be sheared and slanted. The
effect however will probably be different to that obtained when a classic
Note object has the same slant or shear applied to it, particularly when the
mouse is used to create the effect.
The slant axis is the point directly opposite the midpoint handle to be used for
shearing the object. This point stays fixed in location; the other sides and edges move
in relation to it as the mouse is dragged (make sure that the icon is showing
before dragging).
Figure 43 shows how the vertices move in relation to each other during the shearing
process. The circles represent the path of the vertices. The inclination axis is the
bottom vertex of the triangle (the slanting handle used is the midpoint of the upper
enclosing frame). All points on the figure will move through the same angle
irrespective of the final shape. The actual angle is shown in the status bar.
The triangle in Figure 43 was produced with the (unfilled) polygon tool
Note and then Close Object was selected from the context menu.
This tool can be used to produce perspective drawings. The series of pictures in
Figure 44 shows the method of constructing a cuboid or rectangular prism. To
shorten the edges leading from front to back, reduce the length before you distort the
height or width of the surface.
As with rotation, you can make the slanting occur in steps of 15° by pressing the
Shift key while moving the handle.
Position is defined as an X,Y coordinate relative to a fixed point (the base point),
typically located at the upper left of the drawing area. If desired, you can temporarily
change this base point to make positioning or dimensioning simpler (click on the
radio button corresponding to the location of the base point in either of the two
selection windows on the right side of the dialog—upper for positioning or lower for
dimensioning). The possible base point positions correspond to the handles on the
selection frame plus a central point. The change in position lasts only as long as you
have the dialog open; when you close this dialog, Draw resets the base point to the
standard position.
The Keep ratio checkbox is very useful. Click it to keep the ratio of width
Tip to height fixed while you change the size of an object.
Either or both the size and position can be protected so that they cannot be
inadvertently changed. Check the appropriate boxes to achieve this.
Tip You cannot move an object? Check to see if the position is protected!
Corner radius
Slant
You can shear both the older, classic Draw objects and the newer Shape objects.
Enter the slant angle in the box marked Slant Angle.
1 Bézier curves were invented by Pierre Bézier, an engineer working with the Renault car
manufacturer, who developed the technique in the 1960s. The technology was intended to
make modeling the surface of vehicles easier.
Examples
The other buttons in the Edit Points Toolbar are described here in relation to working
examples. The following examples start from a filled circle. As mentioned earlier, in
order to use Edit Points mode, you first need to convert the object to a curve.
You will notice that after the conversion, the handles located in the corners of the
rectangle have disappeared. This behavior is normal in that the handles which are
used in the Edit Points mode are located along the outline or trace of the drawn
object.
Caution
If you just click, the new point will not be
added.
You can change some properties from the Line and Filling toolbar. To see more
options, select the object and right-click on the object and choose Line from the
context menu. This opens the Line dialog.
You can also edit these properties from the Line dialog. They are on the first tab, left
column (see Figure 69). From the Line dialog you can also change the line’s
transparency. Figure 71 illustrates different degrees of transparency.
arrows) are a line property. Select a line and click on the Arrow Style icon.
This opens the Arrowheads menu.
There are several types of arrowheads available. Each end of the line can have a
different arrowhead (or no arrowhead).
In the Line dialog (Figure 69), Arrow styles on the right-hand side contains a number
of options to fine tune the arrow properties. If Synchronize ends is selected, both
line endings will have the same appearance. The Center option places the center of
the arrow over the end point of the line. If this option is not selected, the line ends at
the far edge of the arrow. The following sketch illustrates the difference.
Check the box Use shadow to enable this feature. The properties shown—position,
distance, color, and transparency—may be independently adjusted to your choice and
the results seen in the preview window. You can also click on the Filling icon on
the Line and Filling toolbar—next to the area fill functions – to get a basic shadow.
The first step is to draw a curve with the shape you want for the arrowhead.
Select the curve, open the Line dialog, and go to the Arrow Styles page. Click on
Add, enter a name for the arrow style and click OK (see Figure 77).
Now you can access the new style from the Arrow style list (Figure 78) or the
Arrowheads dialog (Figure 72).
A gradient works by creating a smooth transition from one color to another. First, you
need to choose two colors (Figure 88).
Then choose a type of gradient. There are several available (Linear, Axial, Radial, and
so on) and each has up to four different options to specify it in detail. For example, a
radial gradient has a center you can specify (Figure 89).
If the imported image seems to be very small in the preview (Figure 92)
you probably forgot to select the image before you exported it. In that
Tip case, the exported image would be the whole page with a (small) drawing
on it.
Customizing shadows
First, select the object you want to apply a custom shadow to. Open the Area dialog
and go to the Shadow tab (Figure 94). There you can customize the shadow’s
position, distance and color.
Adding transparency
You can make objects partly or fully transparent, or even a with a varying degree of
transparency (as a gradient). On the Transparency page (Figure 96), choose
Transparency (for a uniform transparency) or Gradient for a gradient transparency.
Click on the Styles and Formatting icon on the Line and Filling toolbar or
press the F11 key to open the Styles and Formatting window (Figure 98). This
window can be docked to the left or right side of the main Draw window, if you wish.
Applying a style
Once the new style is defined, you can apply it to other objects. Select another object
and double-click on the style name you defined. The new object will acquire the area
fill and line properties of that style.
icon . Alternatively click the Styles and Formatting icon or press F11, right-click
the style you wish to modify and select Modify. Edit the properties you want to
change and click OK to finish.
Special effects
First make sure that the Drawing toolbar is selected (View > Toolbars > Drawing).
On the Drawing toolbar, locate the Effects icon . Click on the arrow next to that
icon. This opens a submenu with all the special effect tools (see Figure 99).
The tools are described in the following sections with the exception of the 3D rotation
tool, which is described in Chapter 7 (Working with 3D Objects).
Rotating an object
Click on the Effects icon to select the Rotate tool. Then select an object. The
selected object will have red handles instead of the usual green handles.
Then, grab any one of the eight green handles and move it
across to the other side of the dashed line. The new position of
the figure is shown faintly until the mouse is released.
If you press the Shift key while moving the line, the line will rotate in 45-
Note 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.
Distort an object
Select an object and click on the Distort icon . Draw will ask if you want to
transform the object to a curve. This is a necessary step before distortion, so click
Yes. Then you can move the object handles to stretch it.
The corner handles distort, as shown in Figure 101. The midpoint handles distort the
figure either horizontally (handle on vertical side of figure) or vertically (handle on
horizontal side of figure).
Select an object and click on the Set to Circle (slant) icon. Draw will ask if you
want to transform the object to a curve. This is a necessary step before distortion, so
click Yes. Then you can move the object handles to give a pseudo three-dimensional
slant perspective.
a gradient fill from the Line and Filling toolbar. The Gradient icon is now
active. When you click on the gradient icon, a dashed line connecting two squares
appears on the object, just as it does for a transparency gradient.
In both cases, click outside the object to set the gradient.
If the transparency and gradient icons are not visible, you can display
them using View > Toolbars > Mode.
Moving the squares will have different effects, depending on the type of
Note
gradient. For example, for a linear gradient, the start and end squares of
the gradient will always be situated to either side of the center point of
the object.
The three examples in Figure 104 demonstrate how the type and degree of
transparency can be controlled.
To select multiple objects, click on each object while holding down the
Tip Shift key or click the Select icon (on the Drawing toolbar) and draw a
rectangle around the objects.
Grouping objects
To leave this mode, right-click and choose Exit group or double-click outside the
group.
Nesting groups
You can create “nested” groups, or groups of groups. In this case, Draw keeps the
initial group hierarchy. If you ungroup a group made of other groups, you are left
with individual groups that you can then ungroup further, until only single objects
remain.
Combining objects
In contrast to grouping functions, combinations create a new object; it is not possible
to edit an individual constituent afterwards. Select a collection of objects, then right-
click and choose Combine from the pop-up menu or use the keyboard shortcut
Control+Shift+K. The result of this operation is shown in Figure 108.
You can reorder objects before combining them so that they are further
Tip back or further forward: right-click on the object and select Arrangement
from the pop-up menu. See also “Aids for positioning objects” on page 83.
Connecting lines
Lines may be connected by selecting them and using Modify > Connect. The
connections established are based on joining the ends of pairs of lines with minimum
separation. Once a group of lines is connected, you can “close” the remaining gap by
selecting the line, right-clicking and choosing Close Object. The resultant object is
filled with the default fill. If you modified the line properties (color, weight) these are
retained in the resulting polygon.
Subtract
When you subtract, the front object is subtracted from the
object behind it.
Intersect
When you intersect two objects, you get only the area
covered by both objects.
Tip For more information on moving objects to the front or back, see page 83.
Practical example
The following example shows how you can use the merge functions to create a
complex shape—a knife with a wooden handle.
1) Draw an ellipse and then a rectangle overlapping half
of its width.
2) Select both shapes, right-click, and choose Shapes > Subtract from the pop-
up menu. The result should resemble the shape to the right:
3) Draw another rectangle and put it over the top half of the ellipse. Then
subtract again.
5) The knife blade is now complete. To make the handle, draw a rectangle and an
ellipse as shown.
Figure 110: Subtracting objects: the result varies depending on which object is in
front.
If you imagine several objects stacked one on top of the other, the one referred to as
“Front” is the one on top of the stack. The one referred to as “Back” is the one on the
very bottom of the stack.
First select an object, then on the Drawing toolbar, long-click on the Arrange icon
to open the Position toolbar. This toolbar can be torn off and made to float.
Click first on the object you want to change in position. Next click on the icon
and then move the mouse over the other object. The mouse cursor changes
reverses the order of the selected objects (this option is grayed out if only
one object is selected).
Aligning objects
Select two objects and long-click on on the Drawing toolbar to open the Align
toolbar. This toolbar can be torn off and made to float. The tools help you position
objects with respect to each other.
Align left.
Center horizontally.
Align top.
Center vertically.
Align bottom.
If you have selected only one object, clicking the various buttons on the Align toolbar
positions the object in relation to the drawing page.
Vertical distribution
None. Does not distribute the objects vertically.
Top. The top edges of the objects are evenly spaced from one another.
Center. The vertical centers of the objects are evenly spaced from one another.
Spacing. The vertical spacing between the objects is evenly distributed.
Bottom. The bottom edges of the objects are evenly spaced from one another.
Figure 114 shows four objects before distribution of horizontal spacing.
Figure 115: After distribution: change to equal horizontal spacing, no vertical change
bar or click the icon on the Draw toolbar. Draw possesses import filters for many
different vector and raster graphics formats. If your file has a nonstandard extension,
you must choose the format explicitly when importing it.
If you select the Preview option in the Insert picture dialog (Figure 116), Draw
shows a preview of the picture in the box on the right-hand side. This makes it much
easier to choose the picture you want and to see whether Draw can import a file of
this format.
Figure 116: Inserting a picture; notice Link and Preview options in lower left of
dialog
Scanning
With most scanners you can directly insert a scanned picture into a document.
Scanned images are embedded in the document in PNG format.
Make sure that the scanner is supported by the SANE system if you are running a
Linux (or other UNIX-like) operating system, or TWAIN if you are using Windows, and
that it is already configured on the machine on which OpenOffice.org is running. If
more than one scanner or equivalent device is present, you can select the source
from Insert > Picture > Scan > Select Source.
Choose the slides or objects you want to insert; for multiple selections, press the
Control or Shift key while clicking on the items. Click OK to insert the selected items.
If the inserted object was named in the source document, it keeps its original name
unless the name already exists in the current document. In that case you must give
the object a new name before it is inserted. To rename an inserted object, right-click
and choose Name from the pop-up menu. Renaming has the advantage that the
object is then listed in the Navigator.
You can choose whether to embed or link the selected page or object.
Exporting graphics
Draw saves drawings by default in the *.ODG format. Some programs cannot open
these files. To use the drawings in other programs, you can export the graphics in
various formats. Choose File > Export and then in the File format pull-down list
select the desired format (see Figure 119).
The actual number of pixels used is determined by the screen resolution set up by the
operating system and the Drawing scale factor set in Tools > Options >
OpenOffice.org Draw > General. This is a limitation of the current user interface;
it is possible to set other resolutions using macros.
Embedded raster graphics, or objects that have been converted to a bitmap or
Metafile (from the context menu Convert > To Bitmap / To Metafile) may
subsequently be saved as a picture; from the context menu choose Save as Picture.
This saves the picture without Draw-specific additions such as text elements, borders,
or shadows and without the possibility of setting any of the options available when
exporting.
Draw objects can easily be imported into Writer, Calc, or Impress documents. For
objects used often, this is most simply done by storing them in the Gallery or by using
the clipboard. As Writer and Calc do not possess the same range of tools available
within Draw, it makes sense to use Draw to produce a complex drawing and then to
copy it into the other OOo application. A link to single drawing objects is not possible,
but you can incorporate Draw documents in the other modules as linked OLE objects.
The following table explains the individual functions on the Picture toolbar and
illustrates their use with examples.
Opens the Filter toolbar, which is described in “The graphic
Filter filter toolbar” on page 98.
Graphics Mode Use the Graphics mode menu to change the display of the
graphic from normal color to grayscale, black and white, or a
watermark. This setting affects only the display and printing of
the picture; the picture itself remains unchanged.
Line Opens the Line dialog. In this context, line refers to the outline
of the border. See also Chapter 4 (Changing Object Attributes).
Area Opens the Area dialog. Here you can edit color, gradient,
hatching and fills of the background area that contains the
graphic—not the graphic itself. To see the background, you
must set the transparency of the graphic to a suitably high
value.
Shadow Use this tool to set a shadow effect around the graphic.
Crop Use this function to crop (trim) an image. When you click on
this icon, crop marks appear on the image (Figure 123). Drag
one or more of these marks to crop the picture to your desired
size. For more accurate cropping, see “Cropping” below.
Cropping
More control and accuracy over cropping functions are available via the Format
menu. Click Format > Crop Picture and the dialog box in Figure 124 will appear.
The fields Left, Right, Top, and Bottom establish the amount to be trimmed off the
appropriate edge.
In addition to cropping, you can also enlarge or reduce the size of the graphic by
changing the percentage scaling values. The new dimensions of the graphic are
shown in the Image Size width and height boxes, which can also be directly adjusted.
In Figure 124 you can see that 2 cm from the left side and 1 cm from the top, bottom,
and right side will be trimmed from the original object. The preview pane shows the
location of the new edges of the graphic. In addition both height and width have been
scaled down by 28%.
Any changes made in the Crop dialog change only the view of the
Caution picture. The original picture is not changed. If you want to export a
cropped graphic, you must do it through File > Export. If you use the
option Save as Picture from the context menu, the changes are not
exported.
Remove noise compares every pixel with its neighbors and replaces the
extreme values (those that deviate in color by a large amount from a mean
value) by a pixel with a mean color value. The amount of picture
information does not increase, but because there are fewer contrast
changes our brains can better recognize the resulting graphic. This filter
tends to make the picture also a little more smooth.
Posterize reduces the number of colors in the picture. The fewer colors,
the more flat the picture appears. In the right hand picture below the
number of colors was reduced to 8. The results of this filter are not always
good.
Charcoal sketch makes the picture appear as if it had been drawn with
charcoal. The outlines are in black and the original colors are suppressed.
Mosaic takes groups of pixels and converts them into a single color
rectangular tile. The whole picture appears to be a mosaic. The center and
right pictures below had an element resolution of 5 pixels. The picture on
the right also had the Enhance edges option selected; with the greater
contrast at the edges, it appears to be a little sharper.
If your picture is linked, filters are applied only to the current view. The
stored picture is not changed. When you close the document, all
filtering is lost. You should ensure that you export the picture to create
Caution a copy with all the filters applied (File > Export).
If you have embedded the graphic in the document, all filters are
applied directly on the embedded graphic and cannot be undone in a
subsequent session. If you do not want to retain a filter, you must use
Edit > Undo to return to an earlier state of editing. After you save and
close the document, the filter effects are permanent.
If you receive such a picture, you can recreate the transparency with the eyedropper
tool.
Open the Eyedropper dialog with Tools >
Eyedropper and click on the picture to be
edited.
The dialog does not close automatically, so you can carry out further color
replacements. Mark first the field for the Source color and choose again the color
with the eyedropper. Close the dialog with Ctrl+F4 or the Close icon on the window
border. Draw uses a separate Alpha channel for transparency so that pixels of
different colors can be made transparent.
It is also possible to carry out the operation in reverse to change a transparent area
to a color. Select nothing in the graphic but choose the Transparency option at the
lower left of the dialog and the replacement color at the lower right.
Original
0% smallest value
20%
40%
80%
Color depth
It is possible to reduce the color depth in OOo. The tools are available but you must
create a separate menu and add the tools to the menu if you wish to have them
available (refer to OOo help if you are not sure how to do this). To find the tools, click
on Tools > Customize, Toolbars, and Add (Command). The commands are in the
category Modify, at the top of the list.
1 bit threshold
Conversion
Convert to a polygon
Select the picture so you see the green handles. From the context menu or from the
Modify menu, choose Convert > to Polygon. This command converts areas of the
same color into small filled polygons. The total image becomes a vector graphic and
can be resized with no loss of image quality or distortion of text. The resulting format
will be a Metafile.
Number of colors
Draw considers between 8 and 32 colors in the conversion. The picture can, however,
contain fewer colors than 8. For every color occurring in the picture, Draw creates a
polygon, which may consist of several disconnected parts. These polygons are then
filled with the relevant color.
The algorithm used to reduce the number of colors in the picture to the number
specified is not yet optimal. For this reason you may prefer to try reducing the
number of colors by changing the color depth or with the Posterize filter (page 100)
from the Graphic Filter toolbar (page 98).
Point reduction
Polygons will only be created if they have a size greater than the value given in this
setting. The section of the picture below, highly magnified, shows that with a larger
point count small flecks of color—typical of irregular color patterns—simply
disappear.
2 Pixel 3 Pixel
Fill holes
Point reduction can result in small areas or “holes” which are not covered by a
polygon. If the Fill holes option is marked, additional square, tiled areas are created
with a background color the same as the hole. The Tile size option allows the width
in pixels of the width of these square areas to be preset.
Here the picture is transformed with the The effect below was generated from the
Poster filter, but this time with a point picture to the left (posterized and
reduction of 4 pixels and a tile size of vectorized); the polygons were split with
16 pixels. Modify > Break, and a number (in this
case 6) of the (foreground) polygons
were deleted until the resulting
background was achieved.
If you next ‘split’ the existing Metafile (Modify > Split), access is gained to
individual polygons. To be able to operate on these together you should immediately
group them after splitting.
With this vectorized form of the image, you can carry out operations familiar from
classic drawing programs, for example a curved warping operation. For such
transformations, it is much less effort to use a conversion with background tiles so
that the edges of the picture are straight.
Other options are in Tools > Options > OpenOffice.org > Print (see Figure 127).
They relate to page options (scaling) and other printing variables. They affect the size
of the print file and the time taken to print the document. With most modern systems
you can simply accept the defaults. As different operating systems and printers have
their own requirements, you need to tailor the settings to your particular site
conditions. Refer to the Help file for more information.
Creating 3D bodies
You can produce 3D bodies in three ways: extrusion, body rotation, and using ready
made objects. In this chapter, these methods are called Variation 1, 2, and 3. Two
further variations, extruding Basic Shapes and converting text to 3D, are also
described.
Variation 1: Extrusion
First, draw one of the common Draw objects, for example a square/rectangle,
circle/ellipse or a text box using the or icons on the Drawing toolbar.
Next, choose Modify > Convert > To 3D (or right-click on the object and choose
Convert > To 3D, or click the icon) to produce a 3D object from the 2D surface.
The icon is not usually visible on the Drawing toolbar. To make it visible, select
Visible Buttons from the toolbar menu at the right-hand end of the toolbar and click
on the icon to make it visible.
The procedure by which parallel surfaces are moved to create a 3D object is known
as extrusion. In this case the 2D surface is moved forwards “out of” the drawing
level. At the same time the object is slightly tilted and central projection turned on so
that one can better recognize the object. Draw uses a default value for the extrusion
(the body depth) based on the size of the 2D object. The value can be changed after
the extrusion; see “Editing 3D objects” on page 116).
Method 1. Click the icon in the Drawing toolbar (this icon also usually needs to
be made visible) or choose Modify > Convert > To 3D Rotation object. With this
rotation method, the axis of rotation coincides with the left edge of the enclosing
selection rectangle, through the green rectangle handles.
Method 2. Click the icon on the Effects pull-down menu on the Drawing toolbar.
This icon can also be accessed from the Mode menu, accessible from View >
Toolbars > Mode. Notice that this icon lacks the curved red arrow of the fixed-axis
rotation icon.
With this method, you can change the location of the rotation axis, which appears as
a dotted line with two white circular endpoints.
Click one of the white endpoints and drag it so that the axis moves to the desired
position. You may need to move both ends to achieve this. The outline shows how the
figure will be rotated. When you click on the figure again, the rotation is carried out
and the new 3D body is produced.
If you add the icon to the Drawing toolbar, the 3D Object bar will be available
as a pull-down menu or as a floating toolbar.
3D scenes
Variations 1–3 all produce a result known as a 3D scene. If you click on a 3D scene,
the status bar text shows 3D scene selected. Such a scene is actually a group of
objects.
If you constructed the scene using one of the above methods, it consists of the 3D
body as a single element. 3D scenes can, however, be extended to include other 3D
objects, as described in “Combining objects in 3D scenes” on page 134.
As mentioned in Chapter 6 (Editing Pictures), you can access individual elements of
the group using Modify > Enter group or the context menu. The status bar text
then changes and shows the type of each individual element selected, for example
Sphere selected or Extrusion object selected.
Producing 3D shapes
Since the release of Version 2.0 of OpenOffice.org, Draw contains a type of drawing
object known as a (Basic) Shape. A special method of extrusion exists for these
shapes.
You use the Basic Shapes toolbar (or another shape toolbar) to produce 2D surfaces.
Shapes such as cylinders or cubes are technically possible but not very useful,
because they produce curiously curved images. If you have drawn a shape, the last
icon on the Drawing toolbar is active. A click on this icon can transform a 2D
surface into a 3D object (see Figure 133).
Extrusion of a shape does not create a new object type but just changes the shape’s
appearance. All the object’s properties and settings are retained. You can use this
button to toggle between a 2D and a 3D view. The actual object properties and
settings are not lost in the switching operation from one view to another.
The first icon corresponds to the icon on the Drawing toolbar. This icon also
works as a toggle switch. After changing to 2D, the 3D-Settings toolbar is again
hidden. To change the object back to 3D, you must use the icon on the Drawing
toolbar.
Variation 5: Fontwork
For text you can also use the shapes from the Fontwork Gallery. These produce a
similar type of extrusion objects to those from Variation 4.
To open the Fontwork Gallery, use the icon on the Drawing toolbar.
If you save a document with extruded shapes in the older *.sxw format,
Note the shapes will be converted to 3D scenes.
Rotating 3D objects
The three axes are not shown directly, but the symbol indicates their intersection
point.
If you want to … You must ...
... rotate the object ... put the mouse cursor over the object. With the left
about the X or Y axis. mouse key pressed you can now rotate the object as you
wish. Moving one of the red points at the middle of an
edge allows you to rotate the object about only one axis.
Note that the cursor initially has the shape for a (2D)
shearing movement but pressing the mouse button
changes it to a rotation cursor.
... rotate the object ... move the handle on one of the corner points with the
about the Z axis. left mouse button pressed. Rotation about the Z axis is
independent of the setting of the rotation angle in the
dialog Position and Size.
... move the axis ... simply drag the Symbol to the desired location. The
intersection point. point is located by default in the middle of the object.
If you cannot see 3D Effects on the pop-up menu you probably have a
Tip 3D object extruded from a basic shape by clicking on the icon for
Extrusion On/Off on the Drawing Toolbar.
The dialog can be docked in a similar manner to the Navigator or Template windows.
The possible settings are arranged in various thematic categories on separate pages,
accessible through the buttons at the top of the window, which act in a similar way to
tabs. To apply the settings you have altered, click the Assign button . This applies
all the changes you have made to the object on the other pages of the dialog as well
as the current one.
Only the selected effects are assigned to the object. There is no object
conversion; thus a cylinder cannot be transformed into a ring through
Note the application of a 3D effect. However, it is possible to change the
appearance to resemble a wooden or metal body. By the assignment of
a 3D effect, 2D objects are transformed into 3D objects.
The first two buttons correspond to the menu commands Modify > Convert > To 3D
/ To 3D Rotation Object. When the Effects dialog for a 3D object is called up, these
buttons are inactive. Selecting a 2D object activates them. The third icon switches a
perspective view of the object on or off.
With a central projection parallel edges are shown as meeting at some common point
in the distance, as shown on the button symbol. Parallel projection retains all parallel
edges as parallel, a procedure often used to produce oblique figures in school. The
switching process is carried out on the entire 3D scene.
With central projection (see Figure 140), Draw creates the object with three
vanishing points. The parameters for central projection are set (indirectly) through
the camera settings on the Shading dialog page.
The Horizontal and Vertical Segments parameters define the number of segments out
of which Draw builds spheres and rotation objects2. For rotation objects, the
horizontal segments are more important. The vertical segments influence the degree
of edge rounding.
In Figure 147 the left sphere is made up of 10 horizontal and vertical segments while
the right sphere has 25 segments. More segments give a smoother surface, but it will
take longer to generate the figure on the screen. By default, spheres and
hemispheres are constructed with 24 segments. For a square pyramid you need four
horizontal segments.
These are properties belonging to individual objects. If you use the setting for
segments on a 3D scene, all the objects contained in the scene are modified
accordingly.
If you extrude an unfilled circle or intersecting lines with a filling the result may not
be what you expect. In this case the Double-Sided tool, on the lower part of the
dialog page, may be able to help. It changes the line properties of an object from
invisible to continuous and so enables all edges to be seen. Otherwise it may happen
that some surfaces receive no filling (see Figure 148). For lines without filling the
effect is switched on by default and cannot be switched off. This is also a property of
single objects.
2 To reduce both calculation time and data storage, circles are often constructed as regular
polygons. If you cut a sphere or cylinder of 10 segments through the middle you end up
with a 20-cornered cut section (10-cornered for a hemisphere).
Use the buttons in the section Normals to modify the normals of a 3D object.
A Normal is a straight line which is perpendicular to the surface of an object (in the
same way that a vector, starting from an inner point and extending outwards, is at
right angles to the surface of the object at the point where it exits). Figure 149 shows
some normals extending outwards from a sphere made up of 10 segments.
Using normals, the display of the object surface and the variation in colors, textures
and lighting can be controlled, influencing directly how the surface of the object is
rendered.
The first three icons (in Figure 141) work as “either-or” switches. Only one of the
effects can be active at a given time; an effect can be switched off by clicking on one
of the other icons.
The settings belong to individual objects, not scenes; every object can have its own
setting. The rest of the icons are normal toggle “on-off” switches. The following
effects are available:
Flat: The surface of the 3D object will be divided into single polygons, whose
edges are clearly recognizable. Every polygon is generated with a uniform
color.
Invert Normals: This results in a reversal of the lighting direction. The inside
of the body then becomes the outside. This property is particular to each
individual object.
Double sided illumination: The lighting is also computed for the inside of the
object. In other cases the lighting value for the outside is simply transferred
to the inner side. This property is of interest for open objects. It is a property
of the 3D scene and affects all objects in the scene.
The following table shows the linkage between double-sided illumination and inverted
normals.
3D Effects - Shading
The Shading page offers functions for shading the object surface, adding shadows
and choosing camera settings.
Shading is a rendering method involving a consideration of lighting ratios, which is
used to produce curved 3D surfaces. The surfaces are broken down into small
triangular segments. Draw offers three methods to produce this effect: Flat, Phong
and Gouraud. The setting selected applies to all objects in the 3D scene.
• Gouraud is a relatively quick method. It determines the color value for the
segment corners and calculates the color value for every pixel through linear
interpolation. The segment edges are still recognizable, but significantly less so than
with the flat method. The Gouraud method considers only light reflection on diffuse,
reflecting surfaces (dispersal).
In Figure 152 the left sphere was rendered with flat shading, the middle with Phong
and the right with Gouraud. The quality of the flat method is clearly inferior to the
other two. The difference between Phong and Gouraud is small. With the Gouraud
method the segments can be very faintly seen and rendered objects have a slightly
less “shine” than with the Phong method.
With the the Shadow button you can provide a 3D object with a shadow. By
changing the Surface angle you can influence the form of the shadow (see Figure
153). The left sphere has a surface angle of 0° (the paper represents a perpendicular
surface behind the object) while the right sphere has a surface angle of 45°. With 90°
the paper would be directly under the object.
a b c d
Distance: 0.81 cm 3.81 cm 0.81 cm 0.81 cm
Focal length: 10 cm 10 cm 5 cm 15 cm
3D Effects - Illumination
On the Illumination page (see Figure 155) you define how a 3D object is lit. The
settings apply to all objects in a scene.
You can light a scene with a maximum of eight individual Light sources at the same
time. For each of these sources, the light color and position relative to the scene can
be set. The light sources are represented by eight small light bulbs. When you select
this page, the first bulb “lights up” . At least one light source must be active;
otherwise the rendering and shading functions cannot function correctly.
Each symbol functions like a multi-function press switch. With the first mouse click
the bulb is selected and with the second click the settings mode for this light source
is activated (see Figure 156). A third click deactivates the light source.
In the selection list next to the symbols you can choose the color of the active light
source. If desired, click the button to open a color palette dialog, where you can
define your own color and also adjust the brightness. For the first light source, it is
best to retain the neutral color value (default is white); with several light sources it is
advisable to reduce the brightness.
In the lower right corner of the menu the light source location and orientation is
depicted. With the vertical slider bar you can adjust the lighting angle; with the
horizontal bar the light is rotated about the object. Alternatively you can click on the
light point and drag the point as you please (see Figure 157). Click on the small
square in the bottom right (circled) to change the preview image from a sphere to a
cube.
To apply the changed settings to the selected object, click on the the Assign button
.
The use of additional light sources can result in some interesting effects.
In Figure 158 the ring has the lighting settings from Figure 155 with the standard
color white. In addition it was lit with magenta, and also from the left underside with
yellow. The number and position of the light sources is shown in the window at the
lower right. The three light sources in use can be recognized by the “lit” symbols .
To see the effect of a particular lighting effect you can also temporarily turn it off.
With an object selected, clicking on a “lit” symbol turns it off . This new setting
must then be applied (assigned) to the scene. With a further mouse click on the light
source, the effect can be switched back on and then re-assigned.
You can also change the settings for the Ambient lighting. The selection of properties
(lighting color, brightness, and so on) is carried out in same way as for light sources.
3D Effects - Textures
Textures are raster graphics (bitmaps) which can be used as an object property for
the surface of an object. Every object in a 3D scene can have its own texture.
You can set a raster graphic as a texture for a 3D object in the same way as for a 2D
object (Format > Area > Bitmaps or right-click on the object > Area > Bitmaps) –
as is the case for Gradient and Hatching. More details are found in Chapter 4
(Changing Object Attributes).
If the Fill setting on the Area dialog is Color, then the Texture page is inactive.
Change it to Bitmap to activate the Texture page for 3D objects. If the texture is not
tiled or stretched and is smaller than the object, then the remainder of the area will
have the color of the Object color property on the Material page.
In the first row of the page (Figure 159) are two Type switches allowing you to
choose between black and white or color for the texture (see Figure 160).
With the two switches in the row Mode you can control whether the texture of the
selected objects is rendered with light and shadows (Switch 2) or not (Switch 1); see
Figure 161. Appropriate lighting and shading adjustments allow the graphic object to
be more realistically rendered.
Projection X / Y
With one of these three buttons you can determine how the texture for this
coordinate axis should be projected onto the object. The default setting, Object
specific, usually gives the best result. Examples of the use of each button are shown
below.
The texture is automatically adjusted for a best fit
Object specific
with the form and size of the object.
The texture is projected parallel to the axis of the
Parallel
object. It is mirrored on the rear side of the object.
The axis of the texture pattern is wrapped around
Circular
the object.
For a rotation body, the turning axis is the Z axis and the wrapping is the X direction;
for an extrusion body, the extrusion direction is the Z axis and the extruded surface is
the X direction. Depending on how the object was produced, different positions of the
texture result.
Projection Y
(Difference is small)
Projection Y
(Difference is small)
The Filter button switches on and off a soft-focus filter. It can often remove slight
faults and errors in the texture.
3D Effects - Material
On this page you can assign the appearance of different materials to the 3D object.
With the individual color parameters, additional effects can be produced. The
meaning of these parameters corresponds to those on the Illumination dialog page.
Materials and textures can be combined with one another. Settings only simulate
materials and it is sometimes a matter of trial and error to achieve the desired result.
Do not use too high a brightness value for individual colors. These are
Tip all additive and it is easy to end up with a totally white “colored” area.
Metallic surfaces and glass are not so well simulated, because the impression of
these materials is produced through reflection. Such simulation cannot (at the
moment) be calculated by OpenOffice.org.
Depth
left: 0.3cm (user defined)
right: 1cm (selection)
Direction
The examples show “columns” at right angles to
the drawing surface.
left: 5 cm depth, Parallel projection
Middle: 10 cm depth, Perspective
right: Infinity, Perspective
Surface
Only four built-in variations are possible. At
present only Wireframe and Matt are correctly
rendered.
left: Wireframe
right: Matt
You can also choose a gradient, hatching, or
bitmap for the surface; these are only applied to
the extruded surface—the sides remain in the
color of the object.
3D Color
Here you can choose the color of the sides of the
extruded surface.
The symbol shows the color of the most recently
chosen shape object.
Hello Jean
larger extrusion depth than the background.
You can enter a zoom factor in the Variable field, select 100%, or use one of the three
other choices. (The three options on the right hand side of the dialog are not
available in Draw; they are active only for text documents.)
• Optimal: The drawing or selected object (not the page) is enlarged so that it
just fits in the Draw page area.
• Fit width and height: The drawing page edges are set to show the entire page
within the Draw page area. This is the same effect as choosing “Entire Page”
from the right-click menu on the status bar.
• Fit width: The right and left page edges are set to the vertical edges of the
Draw page area.
Figure 170: Zoom values – Fit width and height, Fit width, and Optimal
Zoom in. Enlarges the monitor picture. First click on the button, then on
the object. Alternatively, drag to create a zoom “window”.
Zoom out. Makes the monitor picture smaller. Just click on the button.
Allows the whole drawing to be moved inside the Draw window, using the
mouse.
Snap to grid
Use this function to move an object exactly to a grid point. This function can be
switched on and off with View > Grid > Snap to Grid and on the Options toolbar
Resolution: sets the horizontal and vertical distance between two grid points.
Subdivisions: determines how many steps there are between adjacent grid points.
Intermediate steps make it possible to have a larger separation between two grid
points, so the drawing remains clearer. Objects can snap to intermediate points in
exactly the same way as to grid points.
The snap field settings are largely self-explanatory. One important setting is the Snap
range. Grid points and snap lines are both visual help elements that are managed
separately by Draw. If you have activated a snap function and then move an object,
In Draw the names of the buttons in the Options toolbar are Display
Note Guides and Snap to Guides when what is actually meant is Display
Snap line and Snap to Snap line.
If you have activated this function, you can position objects exactly. Horizontal and
vertical snap lines can be used together. Snap lines are not active immediately after
inserting them but are turned on (or off) using the Display Guides icon or with
the View menu. If the snap line is no longer needed you can hide it (or subsequently
Draw > View > Guides when moving, or by clicking the icon on the Options
toolbar.
Drawing to scale
In Draw a drawing is made on a predefined drawing area or canvas. This will usually
be in the Letter or A4 format depending on your locale settings, and will be output to
some “standard” printer that you have set up on your computer (usually referred to
as the default printer). Depending on the actual size of the drawn objects, it is often
necessary or convenient to reduce or enlarge the drawing by some scaling value. You
can specify the scale that you wish to use under Tools > Options > OpenOffice.org
Draw > General.
The scale and selected unit of measurement are automatically reflected in the rulers,
the window position and the window size. Scale settings can be stored permanently
in a template that you can then use for new drawings.
The scale you use has no effect on the basic drawing operations. Draw will
automatically calculate the necessary values (for example, dimension lines). The grid
spacing is independent of drawing scale as the grid is not a drawing element but only
an optical drawing aid.
To change to a layer, click on its tab. Everything that is drawn will be placed on the
currently selected layer. The Controls layer is for control elements such as icons and
pull-down menus and is not usually used for ordinary drawing elements. The
Dimension Lines layer is used whenever you insert a dimension line on a drawing
(unless the layer is made invisible). Use Insert > Layer to insert a new layer into a
drawing (Figure 183).
On the Insert Layer dialog you can specify the following properties:
• Visible: If this property is not activated, the layer will not be shown (the layer
is removed from the stack).
• Printable: If this property is not activated, the layer will not be printed. This is
useful if you use a ‘draft’ layer for guides or annotations that you use in
making the drawing but should not appear in the final output.
• Locked: All objects on this layer are protected from deletion, editing, or
moving. No additional objects can be added to a protected layer. This property
is useful when a base plan is to be protected while adding a new layer with
other details.
Right-click on a layer tab to bring up a menu where you can insert or delete a layer,
rename an existing layer, or modify a layer. You can change the names of the user-
defined layers; the default layer names cannot be changed.
If you choose Modify the dialog is similar to Figure 183, but you cannot edit the
Name. You can edit the Title and Description and change the properties of the layer
(Visible, Printable, Locked).
Figure 185 shows the finished floor plan. In addition, a chest of drawers has been
added.
The body of the chest is drawn on the Layout layer; the pulled-out drawer and the
open doors are drawn as a group and put on a separate user-defined layer (Layer4 in
our example). Figure 186 shows how this is done. Making the layer with the drawers
and doors visible or hidden will show them open and closed (see Figure 187). Hidden
layers are shown with a colored tab.
If you copy a drawing object to the Clipboard or into the Gallery, all
Caution layers other than the three standard layers (Layout, Controls and
Dimension Lines) are lost. Furthermore all objects are pasted into the
Layout layer. The reconstruction of layers is much easier if you
assemble objects on a layer into a group before copying.
To return to normal mode, click the Close Master View button or View > Normal.
You can edit background pages just like normal pages. With Format > Page >
Background you can set the color, pattern, or background picture. These settings
are specific to each background page. In the Master view, you can set the size and
orientation of the page; such settings apply to all pages.
If you insert drawing objects on a background page, they are visible on all pages that
use this background. This a convenient way, for example, to place a logo on every
page.
Master pages are organized in layers just like normal pages. The layers of normal
pages are associated with the layer of the same name on the Master page.
Accordingly the layers Layout/Control/Dimension Lines are considered to be a unit
and the Master page layer Background objects is associated with them.
With Insert > Fields you can insert the date, time, page number, author and
filename. No other fields are available. With page number you cannot insert a fixed
page number but only a variable; the actual number appears on the page itself and is
determined by the position of the page. The number is automatically adjusted if the
page is subsequently moved.
If the Exchange background page option is selected, the selected background page
will be used on all pages of the document, not just on the currently active page.
The Delete unused backgrounds option deletes any backgrounds (as shown in the
Slide Design dialog) that have not been assigned to a page.
Click the Load button to open the Load Slide Design dialog. From here you can load
previously prepared background pages. All Draw and Impress templates can be used
for this purpose. Note, however, that using Impress templates will bring in only the
background and not the other elements prepared in Impress.
Individual color tones are produced by using different values of the base colors. The
color value can be any integer value between 0 and 255. As an example, Red 3 has a
red value of 184, a green value of 71 and a blue value of 0 in the RGB model. The
CMYK color model uses percentages (in this case 0%, 44%, 72%, and 28%
respectively).
Change these values to manipulate the color tone. Either enter a number directly or
use the spinners on the right side of each field. The change in color will be shown in
the lower color field (see Figure 191). Click the Modify button to apply and store the
new setting.
To add a new color to the current palette, enter a new name in the Name field and set
the desired color values. Click Add. The new color will be added to the end of the
palette and stored in the currently active palette.
You can also delete colors from a palette. Select the color from the Color pull-down
menu and click on the Delete button, then on OK to confirm the change.
The color wheel to the right illustrates the HSB color model.
This model defines the color tone in terms of three
parameters: Hue (possible values from 0 to 359), Saturation
(possible values from 0 to 100) and Brightness (possible values from 0 to 100) is
Method 2
You can select a new color by clicking on a point in the color window at the upper
right of the dialog. The chosen color is shown in a black frame which can be dragged
with the mouse. If this color is not quite right, you can fine tune it as described above
in Method 1 by changing the color values.
As you drag the small square you will see the value
change in the number fields. The CMYK and RGB are
more or less self explanatory. To make the HSB model a
little clearer, some additional comments are necessary.
To better understand the working of the HSB model,
move the frame from left to right and top to bottom. You
will see that the Hue and Saturation values swing
between their maximum and minimum (hue by
horizontal movement and saturation by vertical
movement), but the brightness remains the same (see
figure at left). This latter can only be adjusted by
entering a value into the number field.
Method 3
The left color window is divided like a chess board into 8 x 8 individual fields, each
with a different color. Most important are the colors in each of the corner fields. The
color red changes stepwise to green in the first row, and stepwise to yellow in the
first column. The color green in the last column changes stepwise to blue.
This window thus contains a stepwise change between each of the four main colors in
the corner points. If you hover the mouse over a square the RGB value is shown as a
tooltip. For example, the yellow corner field (lower left) has RGB values of 255, 255
and 0 (full red, full green and no blue).
Click on this yellow field. A frame appears. If you click the --> arrow under the color
windows the selected color is assigned.
You can change the color spread in this window to a more specific range by changing
one or more of the corner fields. Click on the corner you want to change, then select
the preferred color from the right color window with the mouse and/or set it using
the number fields. Now click on the <-- arrow; the new color will be assigned to the
corner square you selected and the overall appearance of the window changes
accordingly.
Duplication
Duplication makes copies of an object while
applying a set of changes (such as color or
rotation) to the duplicates.
To start duplication, click on an object or group
and choose Edit > Duplicate. The Duplicate
dialog (Figure 195) appears.
Choose the number of copies, their separation (placement), rotation, and so on. The
choices above applied to a blue rectangle produce the result shown in Figure 194.
On the dialog choose the number of increments (transition steps). You probably want
to have Cross-fade attributes and Same orientation both checked. The end result is
shown in Figure 196.
Select (the object we want in front), right-click and choose Arrange > Bring to
Front (or press Ctrl+Shift+plus). Or select (the object we want behind), right-
click and choose Arrange > Send to Back or press Ctrl+Shift+minus.
Before you begin, prepare a setup page or draft, with snap lines, to assist in drawing
the various hierarchies, responsibility paths, and typical boxes that you will use in
drawing the chart.
Place and dimension the individual boxes according to the size of the overall chart.
The exact size (particularly width), position, and color will be fixed later. It is
sometimes easier to draw only one box per level; later you can copy and paste this
box and then move the copies to the desired positions. Using styles can also be
helpful; see the relevant section in Chapter 4 (Changing Object Attributes).
You can also select one or more boxes and use Edit > Duplicate to make copies (see
Figure 201). The spacing of the duplicated objects relative to the original can be
controlled using the placement fields for the X and Y axes. Note that positive values
for X and Y are to the right and downwards from the original object.
Which replication technique you use is up to you. The draft for the example in this
chapter should look similar to that in Figure 202.
The next step is to add text to the boxes. It is easiest to insert it as a text element
within the box as described in Chapter 2 (Drawing Basic Shapes). Activate the
icon on the Options toolbar and then double-click the box to enter text into it.
Alternatively, select the box and press F2. You should then see a blinking cursor in
the box and the Text Formatting toolbar should be visible.
Set the text formatting and type the text. Depending on the length and format of the
text, you may need to adjust the size of the box and the spacing to neighboring boxes
or else change the formatting of the text to fit the box. Adjustments can be made
initially with the mouse and then fine-tuned with the Position and Size dialog.
Now set up the fill colors and save the drawing. The connections between the boxes
are not drawn with ordinary lines but with Draw’s connectors. How to draw these
connectors and add text to them is described in “Glue points and connectors” starting
on page 164.
Drawing connectors—basics
When you choose a connector from the toolbar, the mouse pointer changes to .
As you move the cursor over an object, the available connection points (also referred
to as glue points) become visible. To connect two shapes, move the mouse cursor
over a glue point, click and hold down the left mouse button to establish the first
point, and then drag the mouse cursor (left button still pressed) to the other glue
point and release the mouse button. The ends of the line are now docked and the
connection is established (see Figure 207).
You can also attach the beginning or the end of a connector to the middle of an
object. This is useful when the final position of the object is not yet determined. When
you move the object, Draw automatically selects the optimal location for the
connector ends (see Figure 208).
The following briefly describes the function of each button on this toolbar.
Use this button to insert a new glue point into an object you have drawn. If
the object is filled, you can place a glue point anywhere inside the object or
on its frame. With unfilled objects you can place a glue point only on the
outside frame but you can then drag it inside the object provided that the
Glue Points icon on the Drawing toolbar is still active .
The glue points that you add remain visible as long as
the Glue Points icon is active. They appear as small blue
crosses. A selected glue point has a gray square behind
the cross. You can move a selected glue point with the
mouse or delete it with the Del key.
Use these four buttons to choose one or more directions permitted for a
connector to join to a particular glue point.
Activate Glue Points and then choose the direction. If, for example, you
activate only the button, every connector will be forced to come to that
glue point from the left side.
If you are in glue point editing mode and you add another direction to a glue
point (for example by activating the button), Draw tries to optimize the
length of the connector. For the example above, the connection inside the
circle would change as shown below.
If the Glue Point Relative button is active (as it is by default) the glue point
will move when you change the size of the object, as shown below.
These buttons determine how the horizontal position of a glue point changes
when you resize the object containing the glue point. You can choose
whether the glue point remains at a fixed distance from the left edge of the
object, from a vertical line through the middle, or from the right edge of the
object when you change the size of the object. If the width of the object
becomes less than that distance, the glue point is attached to the object
frame.
The following example shows what happens when an object’s width is
changed and the glue point is set to be a fixed distance to the left frame.
4) In the list of commands under Toolbar Content, move the Fontwork icon to
the location you want by using the up/down arrows, and then click OK.
To write slanting text, follow these steps:
1) Add the text to the connector as described earlier. The anchor location of the
text is not important at this stage.
2) Select the object with the text (in this case the connector) and click on the
Fontwork icon to open the Fontwork dialog.
3) To make the text lie along the inclined line, click the Rotate icon and set the
distance to the line you wish.
The Fontwork dialog provides many other possibilities for manipulating text. You can,
for example, rotate the text 180 degrees with the Orientation icon (which was
done in the example above) or place the text under the line by assigning a negative
value to the spacing between text and line.
In addition, you can use the Fontwork dialog to generate curved text that follows the
shape of a curved line. Experiment a little to investigate some of the possibilities.
Figure 217: Setting the position and dimension of the upper input
Use the same method to draw the remaining two leads. For positioning the input
leads, fix the right end points; for the output lead, fix the left one. The first wire lies
1.5 mm below the upper edge of the block. The leads have a 5 mm spacing between
them. The following table shows the relevant coordinates of the upper corner points
and the leads.
left (X/Y) [mm] right (X/Y) [mm] Input 1 (X/Y) [mm] Output (X/Y) [mm]
For the lower input lead, increase the Y coordinate of Input 1 by 5 mm to 11.5.
The AND gate block is almost finished. We can use it as the basis for all the other
gates. Use Edit > Duplicate to ensure uniformity of shape and size, so that the
drawing gives a good visual impression
Because we want to copy the block vertically downwards, use a Placement on the X
Axis of 0 mm and on the Y Axis 15 mm.
For the INVERTER or NOT gate the connection leads must be amended. Move one
input and one output lead to the middle of the block and delete the superfluous input
lead.
Draw the missing circle for negation with a diameter of 2 mm, place it by eye in the
center and then position it and dimension the connections from the Position and Size
dialog as described above.
You can copy the circle to the Clipboard and then paste it as many times as you need,
positioning it and adjusting the lead lengths as above.
A wiring diagram also needs a symbol to show a connection point. Draw a filled circle
for this.
Next add text to the symbols (&, =1 etc.). Activate the icon on the Options
Toolbar. Double-clicking a symbol will now put you in a special text input mode. This
integrates the text as an element in the object (see also Chapter 2 of this guide). You
will find the OR symbol (≤) in the list of special characters (Insert > Special
Characters).
It is probably a good idea to create a group for each type of gate. This will make it
easier to use them in a diagram. Your diagram should now resemble Figure 215; save
it to disk.
If you want, you can add a name to each of the gate symbols (AND, OR ...). Use a
separate layer to add this text so that you can switch it off when necessary.
You can place glue points at the end of each connection lead. This will simplify the
actual “wiring up” later when you add in the connectors.
The glue points on the connection leads must be placed exactly at the ends of the
lines (otherwise the wires will not be properly aligned). Unfortunately you cannot set
the position of glue points using numerical values. It is necessary to do it by hand.
Select the block on which you want to insert a glue point. Click the Insert Glue
Point icon . It is now activated and appears with a different background. The
mouse cursor changes to a small cross and you can set the first glue point. Click the
mouse at the desired location. If the point is not exactly where you want it, move it by
dragging with the mouse.
When you are satisfied with the location, click on the Glue Points toolbar the icon
with the exit direction you want (left, right, top or bottom). The selected icon now has
a different (lighter or darker) background. Set the exit direction of the input
connection leads to the left and the output leads to the right.
When you have set a glue point at the end of each gate’s connection lead, you can
copy it into the Gallery.
Zoom in on very small graphics before you try to move them so that the
Tip crossed arrow symbol can be clearly seen.
When you have placed all the symbols in the Gallery they can be titled. Right-click on
a symbol, choose Title from the menu and type the symbol name (AND, OR).
The symbol library is available to all OOo modules, for all users who have the
permission/rights to access it. Making the drawing collection available as a Draw file
is the simplest way to distribute a symbol library to other users. After opening the
drawing, other users can easily transfer the drawing objects into their own Gallery, as
described above.
After drawing the two signal leads, you begin the hardest part. With grouped objects
the snap function works only on points on the outside contours. The only way to work
with these blocks as a unit, however, is as a grouped object. The input and output
leads must lie precisely on grid points if the connecting lines are to be exactly
horizontal or vertical.
Position two horizontal guiding lines (A, B) on the grid with Y=4.0 cm and Y=6.0 cm.
With Snap to Grid active, this should be no problem. With an INVERTER gate the
input and output leads lie in the middle of the block, 4 mm below the upper edge. In
order that the input and output are docked to the guiding line, the upper edges of the
INVERTER gate must be positioned (for a 5 mm grid spacing) at Y=4.1 cm and Y=6.1
cm. Right-click on the guiding line, select Edit guiding line from the context menu
and set the guiding lines to 4.1 cm and 6.1 cm.
In order that the blocks lie exactly underneath each other, insert vertical guiding
lines at X=5.0 cm (INVERTER gate) and X=8.0 cm (AND gate).
Now open the Gallery and drag the Inverter gate into approximately 0.64, the
position desired. If the function Snap to guiding line is still active, you will be able to
accurately position both blocks in the correct location. Your diagram should now look
like Figure 223.
To position the two last gates, you need to set the following additional guiding lines: a
vertical line with X=11 cm and two horizontal lines (C,D) at Y=5.5 cm and Y=7.5 cm
respectively. Shift the horizontal lines C and D each 1.5mm upwards (so that Y=5.35
cm and Y=7.35 cm).
Drag the OR and the last AND gate from the gallery and position them as in Figure
225.
Dimensioning a drawing
The dimensioning style Dimension Line is always linked and stored with
the current work page. All the changes that you make apply only to this
Note page. New drawings are started with the standard properties of Draw.
If you want to use the amended style for future drawings, save the page
as an additional template.
Dimensioning objects
In this exercise you will dimension some logic blocks (see Figure 229). They are used
here to demonstrate the technique; you can use your own drawing or fetch a picture
from the Gallery.
So that Draw can clearly recognize the edges to be measured, you should set a
number of guide lines delineating the edges. The previous sections explain how to do
this. To place the guide lines exactly and easily, change the resolution of the Grid.
Suitable values for this work are a resolution of 5 mm and a subdivision of 4 points.
With this setting you should have a snap to grid function with 1 mm point separation.
We will begin by dimensioning the NOT gate. For this block we want the total width
(18 mm) and the width of the block itself (8 mm) to have dimension lines. The first
step is to add guide lines to delimit the dimension lines. With Snap to grid activated,
you can position these quite accurately (see Figure 230a). Be sure that the function
Snap to guide lines is active and zoom in to the part of the block to be dimensioned.
The block should not be selected.
After clicking the Dimension Line icon, the mouse cursor changes into a small cross.
As we activated the option Dimension Line – Measure below Object, the dimensioning
should be made in a counterclockwise direction. Place the mouse cursor at the left
dimensioning point. Press the left mouse button and drag the mouse to the right
dimensioning point. Release the mouse button. If you press the Shift key while
dragging the mouse, you will restrain the dimensioning line in a horizontal (or
vertical) direction (see Figure 230b).
In the same way you can draw a vertical dimension line on the AND gate. The
dimensioning of the NEGATION symbol should also be simple to accomplish, but it is
important that for such small components you zoom in enough to accurately position
the lines.
Text animation
On the Text Animation tab, you can set how the text moves within the object frame.
Such effects are interesting mainly for documents that are to be shown on the screen.
They are therefore more commonly used in the Impress module. For printed text they
do not make any real sense and are not dealt with further in this guide.
Text
On the Text tab, you can determine the behavior of the text block in relation to the
border of the drawing object. The same settings can be altered—as manual
formatting—under the Text... command in the Format menu or in the context menu.
The type of drawing object determines which settings are active and what effect they
have on the text. Shapes behave differently to other drawing objects. To experiment
with the settings, use objects with rounded edges so that differences in spacing and
alignment show up better.
Anchoring text
To try out the different settings possible for text anchors, start by drawing an ellipse
from the Drawing or Basic Shapes toolbars , change into Text edit mode by
double-clicking on the ellipse and write several (not too long) lines of text. Repeat
with an ellipse from the Circles and Ovals toolbar (a classical drawing object). This
toolbar is not available by default; you must customize the Drawing toolbar to add it.
If you checked the option Full width, the text block is always centered horizontally.
The area of the text block is maximized; here it extends either to the edge of the
figure or object frame or (when not that wide) to the width that is necessary to fit the
longest line. The difference becomes clear if you position the text on the left, but you
set single lines through hand formatting to be aligned on the right.
In the examples below, the first line of text was shortened to “First line with”,
spacings were set to 0 and text anchor to middle left.
Resize shape to fit text: Watch out! If you turn on this option
it is not possible to undo the size
changes – whether by using the
Undo function on the menu or by
switching off the option in the
dialog.
Fit to frame:
The text is widened and compressed
so that it fills out to the object
frames.
Adjust to contour:
All the text is contained within the
figure. It is split over several lines if
necessary. Any text which does not
fit in the figure is not shown, but is
still retained.
Note that even if you have activated
hyphenation, words will be split
without regard to the hyphenation
rules.
Unlike drawing objects, text frames and callouts support automatic line breaks and
you can switch on automatic hyphenation under Tools > Language > Hyphenation.
Non-breaking dashes and protected separators are however not available. For a
manual line break, use (as elsewhere) the key combination Shift+Enter.
With the text and callout icons ( and ) you can create text frames and
callouts with vertical text. You need to activate Enhanced language support >
Enabled for Asian languages in Tools > Options > Language Settings >
Languages. Text frames can be rotated like drawing objects, but it is not possible to
rotate callouts.
Text frames and callouts do not have a separate text element, but you still use the
Text dialog to set formatting properties. As soon as you have input text, the upper
three settings on the left side become active (Figure 235). The settings for Spacing to
Borders and Text anchors in the lower window area function in a similar manner to
normal drawing objects and are not dealt with further here.
Fit to frame
The text is widened or compressed so it fits
within the entire object frame. This effect is
the same as with normal drawing objects.
Fontwork Gallery
Click the icon to open the Fontwork Gallery (Figure 236) which you can use to
insert an eye-catching caption to an image. Fontwork drawing objects belong to the
shape category. The Gallery contains a selection of popular text forms.
You are not limited to these samples; you can subsequently edit and customize the
chosen caption type. Proceed as follows.
Choose a caption type from the Gallery and click
OK. The caption is then inserted into the middle
of your document.
Use the green handles to drag and resize the
caption.
Insert
Use Insert > Object > OLE Object to open the dialog as shown in Figure 237. Use
the Create new option to embed the OLE object in the Draw document. With the
Create from file option, you can choose whether the object should be embedded or
linked. With a linked file any change in the stored file will be shown in Draw and
conversely: any change you make in Draw will be stored in the file on disk.
If you have decided to embed the object you can still create an independent text
document from the OLE object. For this use the Save Copy as command from the
context menu.
Editing mode
As soon as you click on OK, the object is created and opens in editing mode. You can
recognize this mode by the gray frame around the object and the small black handles.
Take special note of the toolbars. These are no longer those of the Draw module but
of the Writer module. Input the text and format it almost the same as if you were in
Writer itself. You now have available all the format styles from Writer.
Click outside the object to leave editing mode. Double-click on the object or use Edit
> Object > Edit to change again into editing mode.
In an embedded Writer OLE object, you can connect to further “sub” OLE objects. In
current versions of Draw, this is possible only if you open the embedded object as a
standalone object in Writer. Similarly you cannot edit a linked Writer “sub” OLE
object directly in Draw; you must open it as a text document in Writer. This limitation
can be illustrated by the use of formulas. Such formulas are technically OLE objects
that belong to the Math module. To use mathematical formulas inside flowing text,
save the text in a separate text document and insert it as a linked OLE object in
Draw. Inserting graphics from a file is however possible within the OLE environment
in Writer.
Object mode
Click on an object to enter object mode, recognizable by the presence of the green
handles. In object mode you remain in the Draw module.
Possibly you noticed that in edit mode there is no Zoom. Set the size of the OLE
object on the Draw page in Object mode from the Position and Size dialog. In the left-
hand image of Figure 240 the object was inserted at the original size, in the right-
hand image the size was reduced. If you change the size, take care that the option
Keep ratio is checked or else the object will become distorted. Line and Area
properties are not available for OLE objects, nor is it possible to rotate objects as
with text frames.
OLE objects can be overlaid just like other drawing objects. In Figure 241 a drawing
object from the basic shapes menu has been placed behind the OLE object.
The page with the text document has the background property set to transparent. If
you change the background color of the OLE object in Edit mode, it will also show in
the Draw document.
The Format menu has the entries Area and Line grayed out because they are not
usable, but the menu entries Paragraph, Character, Text, and Bullets and Numbering
are all available. These relate not to the text object which you are currently editing
but rather to a separate independent text element within the object, which you can
open by pressing F2. (This is similar to the way that pictures are linked with an OLE
object.) The double-click, which opens the text element in images, does not work here
because it puts you into the OLE object’s edit mode. Whether it makes sense to use a
text element within text like this is questionable!
Bézier curves are very useful for experimenting with the shape and form of curves. In
point mode you can change the curve alignment by dragging the points with the
mouse. The curve leaves the starting point P0 in the direction of the control point P1
and arrives at the end point P3 from the direction of the control point P2. These
directions are shown in Draw by blue lines. The more distant a control is from its
starting or end point the smaller the curvature at that point. If a control point lies
directly on one of these points, it has no influence on the curve.
After drawing a curve using the icon from the Draw toolbar or with the Edit
points command from the context menu, you can switch to point mode from which
you edit individual points on the curve. Points on the curve are shown with a square
handle ; the control points with a round handle . The starting point of a curve
appears somewhat larger than the other points. When you hover the mouse over a
curve point the mouse cursor changes to - over a control point it changes to .
In point mode the toolbar Edit Points should appear. If not, turn it on from View >
Toolbars > Edit Points.
You can switch on the option All control points in Bézier editor under Tools >
Options > OpenOffice.orgDraw > View. The default is to see the control points
and guide lines only when a point is marked by clicking on it. By holding the Shift key
down as you mark, you can select and mark several points at the same time. A
marked point is shown a little darker .
To generate a closed curve, select the curve and click on the Close Bézier icon
on the Edit Points toolbar, or right-click and select Close object from the context
menu.
Corner points
This is the only common point between two segments which are otherwise
independent of each other. It is likely that the curve has a kink at this point
(depending on the angle of the tangents, the lines from the corner point to each
control point; see Figure 242).
If you cannot see the control point for a segment, try changing the
point type from Corner point to Smooth transition and then back again.
Note This often forces a redraw and you can then see both control points of
the common corner point.
Figure 245: Close curve – start and end points are corner points (left),
smooth or symmetric points (right)
starting point of the curve. After a short time the Convert to curve icon on the
Edit Points toolbar becomes active. It starts in the “out” position. Click the icon to
turn on the function. The straight line is transformed into a Bézier curve. The type of
the segment end point remains as it was. Using this function you can convert one side
of a polygon or a part of a polyline into a Bézier curve.
point of the straight segment. After a short time the Convert to curve icon on
the Edit Points toolbar becomes active. It starts in the “in” position. Click the icon to
turn off the function. The Bézier curve segment is transformed into a straight line.
The type of the segment end point remains as it was. If all segments are straight
lines, Draw converts the object to a polygon or a polyline.
Freehand lines
You can also produce a curved line from a Bézier curve using the freehand line tool
. This tool automatically inserts anchor points and control points to render the
curve as close as possible to the original Bézier curve.
Place the mouse cursor at the beginning point and keep the mouse button pressed
until you reach the end of the curve. As soon as you release the mouse button, the
curve is complete.
Connecting curves
To join curves together, select them and use Modify > Connect. A connection is only
possible with open curves. If you use this tool on closed curves, they are first opened
and an additional end point inserted at the starting point. A straight line is used to
connect the curves.
The behavior of connected curves cannot (at present) be modified. It is not obvious in
advance how the transition properties of the connected curves are calculated, nor
which end points will be connected. It is therefore a good idea to work on a copy and
try out the effect with different positions of the end points of the individual curves. To
avoid changes to a shape, first set the property of the new connection point to the
type Corner point.
Index 203
curved text 170 as a raster graphic 93
curves 49 as a vector graphic 93
closing 199 as PDF 22
combining closed curves 201 directly as PDF 22
connecting 201 graphics 92
converting to 199 to other formats 22
customizing toolbars 17 extrusion 112
eyedropper 101
D
delete points 52 F
delete unused backgrounds 153 fields 152
Dimension Line style 180 file formats 92
dimension lines fill color, creating 65
editing 182 fill holes 106
placing 182 fill properties 63
dimensioning 180, 181 fill, editing 63
display grid 141 filter toolbar 98
distance camera parameter 125 fit width and height 139
distorting an image 74 flat normal effect 122
distributing space between objects 86 flat shading 124
dithering 104 flip an object 73
double-sided illumination 123 floating toolbar 16
Double-Sided tool 121 flowchart (flow diagram) 162, 164
dragging and dropping 91 focal length 125
drawing Fontwork dialog 169
arcs 31 Fontwork Gallery 115, 191
arrows 27 freehand line 200
banners 35 front, bring object to 158
block arrows 34
callouts 35 G
circles 29 Gallery 175
connectors 32 Gamma value 96
curves 31 geometry - 3D effects 119
ellipses 29 Glue Point Relative button 167
flowcharts 35 glue points 32
miscellaneous shapes 34 editing 166
polygons 31 Glue Points toolbar 175
rectangles 28 inserting 166
squares 28 setting 174
stars 35 Gouraud shading 124
straight lines 26 gradient fill 64
symbols 34 gradients 76
drawing to scale 146 fill 66
Drawing toolbar 12 transparency 76
duplicate 157, 160 graphic filter toolbar 98
dynamic gradients 76 graphics mode 95
dynamic size modification 43 grayscale 104
grayscale printing 109
E grid 15
e-mailing documents 23 grid points 140, 141
Edit Points toolbar 50 grid settings 141, 148
editing objects in a group 80 grouping objects 79
effects 54, 72, 157 guide distance 180
effects menu 113 guide lines 15, 145
embedding graphics 90 guide overhang 180
exchange background page 153
exporting
Index 205
reducing color depth 103 straight connectors 165
relief filter 101 styles 71
remove noise 99 subtracting objects 82
removing links to files 90 symbol library 176
renaming objects 95 symmetric transition 50, 198
RGB colors 96, 154
rotating 3D objects 116 T
rotating an object 44, 72 tangents 50
rotation angle of 3D bodies 121 templates 153
rotation mode 54 text anchors 168, 184
rounding of 3D object 119 text animation 183
rulers 9 text frames 186
text in drawings
S addition to draw objects 37
scale drawings 172 dynamic frames 35
scaled depth of 3D object 120 fixed frames 36
segments of 3D bodies 121 text styles 183
selecting objects 40 textures of 3D objects 128
selection mode 39, 40 threshold, apply 104
send backward 41 tile size 106
send document as e-mail 23 tolerance parameter 103
send to back 84 toolbars 11
set in circle (perspective) 74 basic shapes 34
set to circle (slant) 75 block arrows 34
shading of 3D objects 123 callouts 35
shadow effect 96 circles and ovals 30
shadows 65, 69 connectors 32
shadows of 3D objects 125 curves 31
sharpen image 99 drawing 25
slanting text 169 Edit Points 49, 50
Slide Design dialog 152 flowcharts 35
slides 150 lines and arrows 27
smooth image 98 stars and banners 35
smooth transition 50, 198 symbol shapes 34
snap functions 15, 140 text formatting 36
snap lines transition points 198
definition 143 transparency 70, 95, 96, 102, 137
editing 144
inserting using coordinates 144 U
inserting with mouse 143 ungrouping 79
snap points 143
snap range 142 V
snap to grid 141 vectorize 105, 108
snap to object frame 145 vertical distribution of objects 87
snap to object points 145 vertical text 188
snap to page edge 144
solarization filter 99 W
spacing settings 187 wiring diagram 172
spacing to borders 168 workplace 8
special effects 72 Writer OLE object 193
specular color 132
spherical normal effect 123 Z
split curve 52 zoom 11
standard connectors 165 Zoom toolbar 140, 175
Standard toolbar 12 zoom value 139
Status bar 10