OpenOffice.org BASIC Guide - OpenOffice.org wiki
OpenOffice.org BASIC Guide - OpenOffice.org wiki
OpenOffice.org BASIC Guide - OpenOffice.org wiki
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
8<br />
C H A P T E R 8<br />
8 Drawings and Presentations<br />
This chapter provides an introduction to the macro-controlled creation and editing of drawings and presentations.<br />
The first section describes the structure of drawings, including the basic elements that contain drawings. The<br />
second section addresses more complex editing functions, such as grouping, rotating, and scaling objects. The<br />
third section deals with presentations.<br />
Information about creating, opening, and saving drawings can be found in Working With Documents.<br />
The Structure of Drawings<br />
Pages<br />
Tip - A Draw (or Impress) document is composed of pages, also called slides. What is written here also<br />
applies to Impress documents.<br />
<strong>OpenOffice</strong>.<strong>org</strong> does not limit the number of pages in a drawing document. You can design each page separately.<br />
There is also no limit to the number of drawing elements that you can add to a page.<br />
The pages of a drawing document are available through the DrawPages container. You can access individual<br />
pages either through their number or their name. If a document has one page and this is called Slide 1, then the<br />
following examples are identical.<br />
Example 1: access by means of the number (numbering begins with 0)<br />
Dim Doc As Object<br />
Dim Page As Object<br />
Doc = ThisComponent<br />
Page = Doc.DrawPages(0)<br />
Note – The expression Doc.DrawPages(0) is a Basic simplification of the API call :<br />
Doc.getDrawPages.getByIndex(0)<br />
Example 2: access by means of the name<br />
Dim Doc As Object<br />
Dim Page As Object<br />
Doc = ThisComponent<br />
Page = Doc.DrawPages.getByName("Slide 1")<br />
111