In order to connect the following client programs to the running office server, before running
those programs you should stop the Quickstarter if running and should invoke the office with
the following command:
You can also customize the mentioned host and port to your needs.
Example |
Description |
Text Document Examples |
BookmarkInsertion |
This application connects to the office server and gets the
multi service factory. An empty text document will be opened and an example text will be
entered. Afterwards, some bookmarks will be inserted.
|
HardFormatting |
This program connects to the office server and gets the
multi service factory. Furthermore, an empty text document will be opened, an example text
will be entered, some text attributes will be inspected, and the
PropertyState will be checked from the selection.
|
SWriter |
The program connects to the office server and gets the
multi service factory. An empty text document will be created, some text will be entered,
and a text table, a colored text, and text frame will be inserted.
|
StyleCreation |
The example connects to the office server and gets the
multi service factory. An empty text document will be opened, a new paragraph style will
be created, and applied.
|
StyleInitialization |
The program connects to the office server and gets the
multi service factory. Thereafter, an empty text document will be opened and an example
text will be entered. The paragraph collection will be used, in order to apply a different
paragraph style on the paragraphs.
|
TextDocumentStructure |
The application connects to the office server and gets the
multi service factory. An empty text document will be opened, an enumeration of all
paragraphs and an enumeration of all text portions will be created.
|
TextReplace |
The example connects to the office server and gets the
multi service factory. An empty text document will be created, an example text will be
inserted, and some English spelled words will be replaced with US spelled words.
|
GraphicsInserter |
The GraphicsInserter creates a graphics object on an empty text document by setting its
position, width, height, and URL.
|
WriterSelector |
This class gives you information on the selected objects (text range, text frame, or graphics)
at an OpenOffice.org Server.
|
Spreadsheet Document Examples |
CalcAddins |
This component adds new functions to the spreadsheet application. After registering the
component, the inserted functions can be found with help of the functions autopilot.
The new functions are assigned to the category Add-in.
|
ChartTypeChange |
This class loads an OpenOffice.org 1.1 Beta 2 Calc document and changes the type of the embedded chart.
|
EuroAdaption |
The application connects to the office server and gets the
multi service factory, opens an empty Calc document, enters an example text, sets the
number format to DM, changes the number format to EUR (Euro), and uses the DM/EUR factor on
each cell with content.
|
SCalc |
The program connects to the office server and gets the
multi service factory. Then an empty calc document will be opened, cell styles will be
created, some data will be inserted into the sheets, and the created cell styles will be
applied. Finally, a 3D chart will be inserted.
|
Drawing Document Examples |
SDraw |
This program connects to the office server and gets the
multi service factory. Afterwards, an empty text document will be created and some shapes
will be inserted on the draw page.
|
Document Handling Examples |
DocumentConverter |
The program offers a service that converts arbitrary documents to a favored document
type.
|
DocumentLoader |
The DocumentLoader can open a new or an existing document.
|
DocumentPrinter |
The DocumentPrinter allows you to print the favored pages of a specified document on
your favored printer.
|
DocumentSaver |
The DocumentSaver shows how to save a document and how you can change the type of
your document.
|
UNO component Examples |
Inspector |
The Instance Inspector is primarily an auxiliary tool for the developer, which can present
information about an object of the Star Office API at run-time. Depending on the object
to be inspected, appropriate methods, interfaces, services, and attributes can be displayed
to the developer. The methods, interfaces, services and attributes are represented in a
predictable tree. If the attributes contained in an object are to be examined, the
appropriate nodes in the tree can be expanded with the help of the mouse. For each non
primitive object, five categories are offered to the user, as long as those are available
with that object.
|
MinimalComponent |
This class provides a minimal UNO component. You can take this class as a base for your own
components. By extensions of this class it is possible to also extend the function range of
the Office.
|
PropTest |
Contains a component that provides property set interfaces by means of inheriting
com.sun.star.lib.uno.helper.ProperterSet.
|
ToDo |
For every to-do listed in a spreadsheet document, this component calculates the start date,
day of week of the start date, the end date, and the day of week of the end date.
All calculations are dependent upon the values of "Needed Days", "Due Date"
and "Status". The columns "Needed Days" and "Status" are
mandatory. The first to-do should be placed in row nine. The date to start the calculation
should be placed in cell C6. The private holidays should be placed in cell K4/K5 and below.
All rows will be calculated up to the first empty cell in the first column. If a cell in the
column "Due Date" is colored red, you should take a look at your entries.
|
Other Examples |
ConverterServlet |
This servlet shows how to convert arbitrary documents on a remotely running office server.
The converted document will be pushed from the web server to the client browser. Please see
the README file for further information.
|
NotesAccess |
This class creates a spreadsheet document and fills it with existing values of documents
from a Lotus Notes database. You need the Notes.jar from Notes/Domino for this example.
You can download it from http://www.servlets.com/cos/index.html and then please copy
it into your $(OFFICE_CLASSES_DIR) directory.
|