OpenOffice.org
- Instance Inspector - Installation
Last modified: Wed 29 Aug 2001 13:06:06
Installation process
- Because the Inspector is a component you will need the Office Developer
Kit. The Office
Developer Kit (ODK) is a set of tools, libraries, jar files, header files
and IDL files which are necessary to develop components for the OpenOffice.org
using the OpenOffice API and the OpenOffice.org component technology UNO (Universal
Network Objects). Also, the ODK comes with all source files for the Inspector.
So, please download the ODK first.
If you already have an ODK and only want to get the latest version of the
Inspector, you should take a look on the web page http://api.openoffice.org/source/browse/api/odk/examples/java/Inspector/.
Replace all older files in the directory Inspector.
- OpenOffice.org
should be installed already on your system.
- In order to install the component InstanceInspector automatically, please
set an OFFICE_PROGRAM_PATH environment variable to a valid office installation
(e.g. setenv OFFICE_PROGRAM_PATH /usr/local/user/office60/program).
- A GNU make version 1.79.1 or later is required in order to build the example.
GNU make is available from http://www.gnu.org,
it can be ftped via ftp://ftp.gnu.org/gnu/make
.
- Make sure, the GNU-make-executable and Java is included in your PATH variable.
Switch to e.g. the Inspector subdirectory and type make. You will then get
help what to do to build the example on your platform.
- Now, after the successful execution of the GNU-make, the generated file
and component InstanceInspector.jar is registered
and resides in the directory <OFFICE_PROGRAM_PATH>/classes .
- If you want to test the Inspector, you should launch your OpenOffice.org
with the command
soffice "-accept=socket,host=localhost,port=8100;urp"
and use the command printed by the GNU-make.
- Alternatively you could create a new Basic Macro (Tools/Macro/New) with
your OpenOffice.org:
REM ***** BASIC *****
Sub Main
REM create a new Instance Inspector
objectInstanceInspector = createUnoService("org.OpenOffice.InstanceInspector")
REM inspect the current document
objectInstanceInspector.inspect( ThisComponent )
End Sub
|
- If the component is registered and integrated into OpenOffice.org you can
use the Inspector in your favorite programming language (C++, C, Basic, Java).
Copyright
© 2000 - 2001 Bertram Nolte
Permission
is granted to copy, distribute and/or modify this document under the
terms of the GNU Free Documentation License, Version 1.1 or any later
version published by the Free Software Foundation; with no Invariant
Sections, with no Front-Cover Texts, and with no Back-Cover Texts. A
copy of the license is available at
http://www.fsf.org/copyleft/fdl.html