22.01.2015 Views

OpenOffice.org Macros Explained - LibreOffice-NA.US

OpenOffice.org Macros Explained - LibreOffice-NA.US

OpenOffice.org Macros Explained - LibreOffice-NA.US

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

9.2.3. Dynamic Link Libraries....................................................................................201<br />

9.2.4. Calling external applications.............................................................................202<br />

9.2.5. Dynamic Data Exchange...................................................................................203<br />

9.3. User input and output................................................................................................204<br />

9.3.1. Simple output.....................................................................................................205<br />

9.3.2. Multi­line output................................................................................................206<br />

9.3.3. Prompting for input...........................................................................................208<br />

9.4. Error­related routines................................................................................................209<br />

9.5. Miscellaneous routines..............................................................................................211<br />

9.6. Partition.....................................................................................................................214<br />

9.7. Inspection and identification of variables.................................................................216<br />

9.8. Routines you should not use and other curiosities....................................................222<br />

9.9. Routines I do not understand.....................................................................................223<br />

Conclusion.........................................................................................................................224<br />

10. Universal Network Objects.............................................................................................225<br />

10.1. Base types and structures........................................................................................226<br />

10.2. UNO interface.........................................................................................................228<br />

10.3. UNO service............................................................................................................229<br />

10.4. Context....................................................................................................................231<br />

10.5. Inspecting Universal Network Objects...................................................................232<br />

10.6. Use Object or Variant..............................................................................................237<br />

10.7. Comparing UNO variables......................................................................................237<br />

10.8. Built­in global UNO variables................................................................................239<br />

10.9. Creating UNO values for OOo internals.................................................................242<br />

10.10. Finding objects and properties..............................................................................243<br />

10.11. UNO listeners........................................................................................................244<br />

10.11.1. Your first listener...........................................................................................245<br />

10.11.2. A complete listener: selection change listener..............................................245<br />

10.12. Creating a UNO dialog..........................................................................................248<br />

10.13. Conclusion.............................................................................................................251<br />

11. The Dispatcher................................................................................................................252<br />

11.1. The environment.....................................................................................................252<br />

11.1.1. Two different methods to control OOo...........................................................252<br />

11.1.2. Finding dispatch commands............................................................................254<br />

11.1.2.1. Use the WIKI...........................................................................................254<br />

11.1.2.2. Probe the interface...................................................................................254<br />

11.1.2.3. Read source code.....................................................................................257<br />

11.2. Writing a macro using the dispatcher......................................................................257<br />

11.3. Conclusion...............................................................................................................257<br />

12. StarDesktop.....................................................................................................................258<br />

12.1. The Frame service...................................................................................................258<br />

v

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!