Apache OpenOffice

From Apache OpenOffice Wiki
Jump to: navigation, search

PDF Icon.gif Download as a PDF or ODT

中文 This guide provides an introduction to programming with Apache OpenOffice Basic. 中文 To get the most out of this book, you should be familiar with other programming languages. 中文 Extensive examples are provided to help you quickly develop your own Apache OpenOffice Basic programs.

中文 This guide divides information about Apache OpenOffice administration into several chapters. 中文 The first three chapters introduce you to Apache OpenOffice Basic:

中文 These chapters provide an overview of Apache OpenOffice Basic and should be read by anyone who intends to write Apache OpenOffice Basic programs. 中文 The remaining chapters describe the individual components of the Apache OpenOffice API in more detail and can be read selectively as required:

Apache OpenOffice

中文 测试The Apache OpenOffice Basic programming language has been developed especially for Apache OpenOffice and is firmly integrated in the Office package.

中文 As the name suggests, Apache OpenOffice Basic is a programming language from the Basic family. Anyone who has previously worked with other Basic languages — in particular with Visual Basic or Visual Basic for Applications (VBA) from Microsoft — will quickly become accustomed to Apache OpenOffice Basic. Large sections of the basic constructs of Apache OpenOffice Basic are compatible with Visual Basic.

The Apache OpenOffice Basic programming language can be divided into four components:

  • The language of Apache OpenOffice Basic: Defines the elementary linguistic constructs, for example, for variable declarations, loops, and functions.
  • The runtime library: Provides standard functions which have no direct reference to Apache OpenOffice, for example, functions for editing numbers, strings, date values, and files.
  • The Apache OpenOffice API (Application Programming Interface): Permits access to Apache OpenOffice documents and allows these to be created, saved, modified, and printed.
  • The Dialog Editor: Creates personal dialog windows and provides scope for the adding of control elements and event handlers.

Documentation note.png Apache OpenOfficeApache OpenOfficeApache OpenOfficeApache OpenOffice

Apache OpenOffice

The scope of application for Apache OpenOffice Basic begins where the standard functions of Apache OpenOffice end. Routine tasks can therefore be automated in Apache OpenOffice Basic, links can be made to other programs — for example to a database server — and complex activities can be performed at the press of a button by using predefined scripts.

Apache OpenOffice Basic offers complete access to all Apache OpenOffice functions, supports all functions, modifies document types, and provides options for creating personal dialog windows.

Apache OpenOffice

Apache OpenOffice Basic can be used by any Apache OpenOffice user without any additional programs or aids. Even in the standard installation, Apache OpenOffice Basic has all the components needed to create its own Basic macros, including:

  • The integrated development environment (IDE) which provides an editor for creating and testing macros.
  • The interpreter, which is needed to run Apache OpenOffice Basic macros.
  • The interfaces to various Apache OpenOffice applications, which allow for direct access to Office documents.


The components of the Apache OpenOffice API that are discussed in this guide were selected based on their practical benefits for the Apache OpenOffice Basic programmer. In general, only parts of the interfaces are discussed. 有关详细图像,请参见 《API参考

Documentation/DevGuide/OpenOffice.org_Developers_GuideApache OpenOfficeAnyone who is already familiar with Apache OpenOffice Basic programming can find additional information in the Developer's Guide on Apache OpenOffice Basic and Apache OpenOffice programming.

Apache OpenOfficeApache OpenOfficeApache OpenOfficeApache OpenOffice

Content on this page is licensed under the Public Documentation License (PDL).
Personal tools