xref: /aoo42x/main/odk/examples/examples.html (revision 122c3632)
1*122c3632SJürgen Schmidt<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
2*122c3632SJürgen Schmidt<!--
3*122c3632SJürgen Schmidt#**************************************************************
4*122c3632SJürgen Schmidt#
5*122c3632SJürgen Schmidt#  Licensed to the Apache Software Foundation (ASF) under one
6*122c3632SJürgen Schmidt#  or more contributor license agreements.  See the NOTICE file
7*122c3632SJürgen Schmidt#  distributed with this work for additional information
8*122c3632SJürgen Schmidt#  regarding copyright ownership.  The ASF licenses this file
9*122c3632SJürgen Schmidt#  to you under the Apache License, Version 2.0 (the
10*122c3632SJürgen Schmidt#  "License"); you may not use this file except in compliance
11*122c3632SJürgen Schmidt#  with the License.  You may obtain a copy of the License at
12*122c3632SJürgen Schmidt#
13*122c3632SJürgen Schmidt#    http://www.apache.org/licenses/LICENSE-2.0
14*122c3632SJürgen Schmidt#
15*122c3632SJürgen Schmidt#  Unless required by applicable law or agreed to in writing,
16*122c3632SJürgen Schmidt#  software distributed under the License is distributed on an
17*122c3632SJürgen Schmidt#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
18*122c3632SJürgen Schmidt#  KIND, either express or implied.  See the License for the
19*122c3632SJürgen Schmidt#  specific language governing permissions and limitations
20*122c3632SJürgen Schmidt#  under the License.
21*122c3632SJürgen Schmidt#
22*122c3632SJürgen Schmidt#**************************************************************
23*122c3632SJürgen Schmidt -->
24cdf0e10cSrcweir<html>
25cdf0e10cSrcweir<head>
26ef1ef8e6SJürgen Schmidt  <title>Apache OpenOffice %PRODUCT_RELEASE% SDK - Examples</title>
27cdf0e10cSrcweir  <link rel="stylesheet" type="text/css" href="../docs/sdk_styles.css">
28cdf0e10cSrcweir  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
29cdf0e10cSrcweir  <meta name="author" content="J&uuml;rgen Schmidt">
30cdf0e10cSrcweir  <meta name="created" content="2004-12-14">
31cdf0e10cSrcweir</head>
32cdf0e10cSrcweir
33cdf0e10cSrcweir<body class="sdkbody"><a name="examples"/>
34cdf0e10cSrcweir<table class="table1" cellpadding=0>
35cdf0e10cSrcweir  <tr style="background-image:url(../docs/images/sdk_head-2.png); backgorund-position: bottom; ">
36cdf0e10cSrcweir    <td class="background" colspan="3" align="left"><img src="../docs/images/sdk_head-1.png" width="800" height="120" usemap="#Map" border="0"></td>
37cdf0e10cSrcweir  </tr>
38cdf0e10cSrcweir  <tr>
39cdf0e10cSrcweir    <td colspan="3"><img  class="nothing10" src="../docs/images/nada.gif"></td>
40cdf0e10cSrcweir  </tr>
41cdf0e10cSrcweir  <tr>
42cdf0e10cSrcweir    <td class="content1"><img class="nothing8" src="../docs/images/nada.gif"></td>
43cdf0e10cSrcweir    <td>
44cdf0e10cSrcweir      <table class="table2">
45cdf0e10cSrcweir	    <tr>
46cdf0e10cSrcweir		  <td colspan="3"><img class="nothing1" src="../docs/images/nada.gif"></td>
47cdf0e10cSrcweir        </tr>
48cdf0e10cSrcweir        <tr>
49cdf0e10cSrcweir          <td>
50cdf0e10cSrcweir          <table class="table3">
51cdf0e10cSrcweir		  <tr>
52cdf0e10cSrcweir			<td colspan="2" class="head1">Examples</td>
53cdf0e10cSrcweir			<td align="right"><a href="../index.html" title="link to the SDK start page"><img class="navigate" src="../docs/images/nav_home.png"></a></td>
54cdf0e10cSrcweir		  </tr>
55cdf0e10cSrcweir		  </table>
56cdf0e10cSrcweir          </td>
57cdf0e10cSrcweir        </tr>
58cdf0e10cSrcweir        <tr>
59cdf0e10cSrcweir          <td>
60cdf0e10cSrcweir          <table class="table3">
61cdf0e10cSrcweir		  <tr>
62cdf0e10cSrcweir          <td colspan="3">
63cdf0e10cSrcweir            <p>The SDK provides a rich set of examples in different programming
64ef1ef8e6SJürgen Schmidt			languages (Java, C++, Apache OpenOffice %PRODUCT_RELEASE% Basic, OLE) to illustrate the use
65cdf0e10cSrcweir			of the API and demonstrate how to benefit from the included word
66cdf0e10cSrcweir			processor, spreadsheet, presentation software, graphics program and
67ef1ef8e6SJürgen Schmidt			database of Apache OpenOffice %PRODUCT_RELEASE%.<br>
68cdf0e10cSrcweir            Some fo the examples need a running office instance listening on a
69cdf0e10cSrcweir			port. If this is necessary you will get further information in the
70cdf0e10cSrcweir			makefiles.</p>
71cdf0e10cSrcweir			<p>Every makefile contains at least one run target to execute an
72cdf0e10cSrcweir			running example, please see the makefile output in the different
73cdf0e10cSrcweir			example directories. Some of the examples which create a component have
74cdf0e10cSrcweir			no run target. In these cases a document is provided which instantiates
75cdf0e10cSrcweir			and runs the component (see the makefile output). Also the Basic
76cdf0e10cSrcweir			examples provide documents which use and shows the implemented
77cdf0e10cSrcweir			functionality.</p>
78cdf0e10cSrcweir          </td>
79cdf0e10cSrcweir		  </tr>
80cdf0e10cSrcweir		  <tr>
81cdf0e10cSrcweir            <td><img class="line" src="../docs/images/sdk_line-1.gif"></td>
82cdf0e10cSrcweir		  </tr>
83cdf0e10cSrcweir		  </table>
84cdf0e10cSrcweir        </tr>
85cdf0e10cSrcweir        <tr>
86cdf0e10cSrcweir          <td>
87cdf0e10cSrcweir          <table class="table3">
88cdf0e10cSrcweir            <tr valign="top">
89cdf0e10cSrcweir              <td class="content3"><img src="../docs/images/arrow-1.gif"></td>
90cdf0e10cSrcweir              <td><a href="DevelopersGuide/examples.html" title="link to the Developer's Guide examples overview page">Developer's Guide examples</a></td>
91cdf0e10cSrcweir              <td class="content75">The <a href="http://wiki.services.openoffice.org/wiki/Documentation/DevGuide/OpenOffice.org_Developers_Guide" title="link to the Developer's Guide in the Wiki">Developer's Guide</a> comes
92cdf0e10cSrcweir			  with a rich set of examples which demonstrate the use of the API in
93cdf0e10cSrcweir			  the different application areas.</td>
94cdf0e10cSrcweir            </tr>
95cdf0e10cSrcweir            <tr valign="top">
96cdf0e10cSrcweir              <td class="content3"><img src="../docs/images/arrow-1.gif"></td>
97cdf0e10cSrcweir              <td><a href="#Java_examples" title="link to the Java examples section">Java examples</a></td>
98cdf0e10cSrcweir              <td class="content75">Set of simple and more complex examples which
99cdf0e10cSrcweir			  shows the use of the API from Java.</td>
100cdf0e10cSrcweir            </tr>
101cdf0e10cSrcweir            <tr valign="top">
102cdf0e10cSrcweir              <td class="content3"><img src="../docs/images/arrow-1.gif"></td>
103cdf0e10cSrcweir              <td><a href="#Cpp_examples" title="link to the C++ examples section">C++ examples</a></td>
104cdf0e10cSrcweir              <td class="content75">Small set of examples which shows the use of
105cdf0e10cSrcweir			  the API from C++.</td>
106cdf0e10cSrcweir            </tr>
107cdf0e10cSrcweir            <tr valign="top">
108cdf0e10cSrcweir              <td class="content3"><img src="../docs/images/arrow-1.gif"></td>
109ef1ef8e6SJürgen Schmidt              <td><a href="#Basic_examples" title="link to the Apache OpenOffice %PRODUCT_RELEASE% Basic examples section">Apache OpenOffice %PRODUCT_RELEASE% Basic examples</a></td>
110cdf0e10cSrcweir              <td class="content75">Small set of examples which shows the use of
111ef1ef8e6SJürgen Schmidt			  the API from Apache OpenOffice %PRODUCT_RELEASE% Basic.</td>
112cdf0e10cSrcweir            </tr>
113cdf0e10cSrcweir            <tr valign="top">
114cdf0e10cSrcweir              <td class="content3"><img src="../docs/images/arrow-1.gif"></td>
115cdf0e10cSrcweir              <td><a href="#OLE_examples" title="link to the OLE examples section">Object Linking and Embedding (OLE) examples</a></td>
116cdf0e10cSrcweir              <td class="content75">Examples which show the use of the API from
117cdf0e10cSrcweir			  OLE.</td>
118cdf0e10cSrcweir            </tr>
119cdf0e10cSrcweir            <tr valign="top">
120cdf0e10cSrcweir              <td class="content3"><img src="../docs/images/arrow-1.gif"></td>
121cdf0e10cSrcweir              <td><a href="#CLI_examples" title="link to the CLI examples section">Common Language Infrastructure (CLI) examples</a></td>
122cdf0e10cSrcweir              <td class="content75">Examples which show the use of the API from
123cdf0e10cSrcweir			  the CLI.</td>
124cdf0e10cSrcweir            </tr>
125cdf0e10cSrcweir		  </table>
126cdf0e10cSrcweir        </tr>
127cdf0e10cSrcweir      </table>
128cdf0e10cSrcweir    </td>
129cdf0e10cSrcweir    <td class="content1"><img class="nothing8" src="../docs/images/nada.gif"></td>
130cdf0e10cSrcweir  </tr>
131cdf0e10cSrcweir  <tr>
132cdf0e10cSrcweir    <td colspan="3"><img class="line" src="../docs/images/sdk_line-1.gif"></td>
133cdf0e10cSrcweir  </tr>
134cdf0e10cSrcweir  <tr>
135cdf0e10cSrcweir    <td class="content1"><img class="nothing8" src="../docs/images/nada.gif"></td>
136cdf0e10cSrcweir    <td>
137cdf0e10cSrcweir      <table class="table2">
138cdf0e10cSrcweir        <tr>
139cdf0e10cSrcweir          <td>
140cdf0e10cSrcweir          <table class="table3">
141cdf0e10cSrcweir		  <tr>
142cdf0e10cSrcweir			<td colspan="2" class="head1"><a name="Java_examples">Java examples</td>
143cdf0e10cSrcweir			<td align="right">
144cdf0e10cSrcweir		      <a href="#examples" title="link to the examples overview"><img class="navigate" src="../docs/images/nav_up.png"></a>
145cdf0e10cSrcweir		      <a href="../index.html" title="link to the SDK start page"><img class="navigate" src="../docs/images/nav_home.png"></a>
146cdf0e10cSrcweir		  </td>
147cdf0e10cSrcweir		  </tr>
148cdf0e10cSrcweir		  </table>
149cdf0e10cSrcweir          </td>
150cdf0e10cSrcweir        </tr>
151cdf0e10cSrcweir		<tr>
152cdf0e10cSrcweir		  <td>
153cdf0e10cSrcweir		  <table class="table4">
154cdf0e10cSrcweir		  <tbody>
155cdf0e10cSrcweir		  <tr class="thead">
156cdf0e10cSrcweir		  <td class="cell20">Text Document Examples</td>
157cdf0e10cSrcweir		  <td class="cell80">Description</td>
158cdf0e10cSrcweir		  </tr>
159cdf0e10cSrcweir		  <tr>
160cdf0e10cSrcweir		  <td class="cell20"><a href="java/Text/" title="link to the source directory of the Java Text examples">BookmarkInsertion</a></td>
161cdf0e10cSrcweir		  <td class="cell80">This application connects to the office server and
162cdf0e10cSrcweir		  gets the <a href="../docs/common/ref/com/sun/star/lang/XMultiComponentFactory.html" title="link into the IDL reference to the interface com.sun.star.lang.XMultiComponentFactory"> multi component factory</a>. An empty text document will be opened
163cdf0e10cSrcweir		  and an example text will be entered. Afterwards, some bookmarks will be
164cdf0e10cSrcweir		  inserted.</td>
165cdf0e10cSrcweir		  </tr>
166cdf0e10cSrcweir		  <tr>
167cdf0e10cSrcweir		  <td class="cell20"><a href="java/Text/" title="link to the source directory of the Java Text examples">HardFormatting</a></td>
168cdf0e10cSrcweir		  <td class="cell80">This program connects to the office server and gets
169cdf0e10cSrcweir		  the <a href="../docs/common/ref/com/sun/star/lang/XMultiComponentFactory.html" title="link into the IDL reference to the interface com.sun.star.lang.XMultiComponentFactory"> multi component factory</a>. Furthermore, an empty text document will be
170cdf0e10cSrcweir		  opened, an example text will be entered, some text attributes will be
171cdf0e10cSrcweir		  inspected, and the <a href="../docs/common/ref/com/sun/star/beans/PropertyState.html" title="link into the IDL reference to the enum com.sun.star.beans.PropertyState"> PropertyState</a> will be checked from the selection.</td>
172cdf0e10cSrcweir		  </tr>
173cdf0e10cSrcweir		  <tr>
174cdf0e10cSrcweir		  <td class="cell20"><a href="java/Text/" title="link to the source directory of the Java Text examples">SWriter</a></td>
175cdf0e10cSrcweir		  <td class="cell80">The program connects to the office server and gets the
176cdf0e10cSrcweir          <a href="../docs/common/ref/com/sun/star/lang/XMultiComponentFactory.html" title="link into the IDL reference to the interface com.sun.star.lang.XMultiComponentFactory"> multi component factory</a>. An empty text document will be created, some
177cdf0e10cSrcweir		  text will be entered, and a text table, a colored text, and text frame
178cdf0e10cSrcweir		  will be inserted.</td>
179cdf0e10cSrcweir		  </tr>
180cdf0e10cSrcweir		  <tr>
181cdf0e10cSrcweir		  <td class="cell20"><a href="java/Text/" title="link to the source directory of the Java Text examples">StyleCreation</a></td>
182cdf0e10cSrcweir		  <td class="cell80">The example connects to the office server and gets the
183cdf0e10cSrcweir          <a href="../docs/common/ref/com/sun/star/lang/XMultiComponentFactory.html" title="link into the IDL reference to the interface com.sun.star.lang.XMultiComponentFactory"> multi component factory</a>. An empty text document will be opened, a new
184cdf0e10cSrcweir		  paragraph style will be created, and applied.</td>
185cdf0e10cSrcweir		  </tr>
186cdf0e10cSrcweir		  <tr>
187cdf0e10cSrcweir		  <td class="cell20"><a href="java/Text/" title="link to the source directory of the Java Text examples">StyleInitialization</a></td>
188cdf0e10cSrcweir		  <td class="cell80">The program connects to the office server and gets the
189cdf0e10cSrcweir          <a href="../docs/common/ref/com/sun/star/lang/XMultiComponentFactory.html" title="link into the IDL reference to the interface com.sun.star.lang.XMultiComponentFactory"> multi component factory</a>. Thereafter, an empty text document will be
190cdf0e10cSrcweir		  opened and an example text will be entered. The paragraph collection will
191cdf0e10cSrcweir		  be used, in order to apply a different paragraph style on the
192cdf0e10cSrcweir		  paragraphs.</td>
193cdf0e10cSrcweir		  </tr>
194cdf0e10cSrcweir		  <tr>
195cdf0e10cSrcweir		  <td class="cell20"><a href="java/Text/" title="link to the source directory of the Java Text examples">TextDocumentStructure</a></td>
196cdf0e10cSrcweir		  <td class="cell80">The application connects to the office server and gets
197cdf0e10cSrcweir		  the <a href="../docs/common/ref/com/sun/star/lang/XMultiComponentFactory.html" title="link into the IDL reference to the interface com.sun.star.lang.XMultiComponentFactory"> multi component factory</a>. An empty text document will be opened, an
198cdf0e10cSrcweir		  enumeration of all paragraphs and an enumeration of all text portions
199cdf0e10cSrcweir		  will be created.</td>
200cdf0e10cSrcweir		  </tr>
201cdf0e10cSrcweir		  <tr>
202cdf0e10cSrcweir		  <td class="cell20"><a href="java/Text/" title="link to the source directory of the Java Text examples">TextReplace</a></td>
203cdf0e10cSrcweir		  <td class="cell80">The example connects to the office server and gets the
204cdf0e10cSrcweir          <a href="../docs/common/ref/com/sun/star/lang/XMultiComponentFactory.html" title="link into the IDL reference to the interface com.sun.star.lang.XMultiComponentFactory"> multi component factory</a>. An empty text document will be created, an
205cdf0e10cSrcweir		  example text will be inserted, and some English spelled words will be
206cdf0e10cSrcweir		  replaced with US spelled words.</td>
207cdf0e10cSrcweir		  </tr>
208cdf0e10cSrcweir		  <tr>
209cdf0e10cSrcweir		  <td class="cell20"><a href="java/Text/" title="link to the source directory of the Java Text examples">GraphicsInserter</a></td>
210cdf0e10cSrcweir		  <td class="cell80">The GraphicsInserter creates a graphics object on an
211cdf0e10cSrcweir		  empty text document by setting its position, width, height, and URL.</td>
212cdf0e10cSrcweir		  </tr>
213cdf0e10cSrcweir		  <tr>
214cdf0e10cSrcweir		  <td class="cell20"><a href="java/Text/" title="link to the source directory of the Java Text examples">WriterSelector</a></td>
215cdf0e10cSrcweir		  <td class="cell80">This class gives you information on the selected
216ef1ef8e6SJürgen Schmidt		  objects (text range, text frame, or graphics) at an Apache OpenOffice
217cdf0e10cSrcweir		  Server.</td>
218cdf0e10cSrcweir		  </tr>
219cdf0e10cSrcweir		  <tbody>
220cdf0e10cSrcweir		  </table>
221cdf0e10cSrcweir		  </td>
222cdf0e10cSrcweir		</tr>
223cdf0e10cSrcweir		<tr>
224cdf0e10cSrcweir		  <td>
225cdf0e10cSrcweir		  <table class="table4">
226cdf0e10cSrcweir		  <tbody>
227cdf0e10cSrcweir		  <tr class="thead">
228cdf0e10cSrcweir		  <td class="cell20">Spreadsheet Document Examples</td>
229cdf0e10cSrcweir		  <td class="cell80">Description</td>
230cdf0e10cSrcweir		  </tr>
231cdf0e10cSrcweir		  <tr>
232cdf0e10cSrcweir		  <td class="cell20"><a href="java/Spreadsheet/" title="link to the source directory of the Java Spreadsheet examples">CalcAddins</a></td>
233cdf0e10cSrcweir		  <td class="cell80">This component adds new functions to the spreadsheet
234cdf0e10cSrcweir		  application. After registering the component, the inserted functions can
235cdf0e10cSrcweir		  be found with help of the functions autopilot. The new functions are
236cdf0e10cSrcweir		  assigned to the category <i>Add-in</i>.</td>
237cdf0e10cSrcweir		  </tr>
238cdf0e10cSrcweir		  <tr>
239cdf0e10cSrcweir		  <td class="cell20"><a href="java/Spreadsheet/" title="link to the source directory of the Java Spreadsheet examples">ChartTypeChange</a></td>
240ef1ef8e6SJürgen Schmidt		  <td class="cell80">This class loads an Apache OpenOffice %PRODUCT_RELEASE% Calc document and
241cdf0e10cSrcweir		  changes the type of the embedded chart.</td>
242cdf0e10cSrcweir		  </tr>
243cdf0e10cSrcweir		  <tr>
244cdf0e10cSrcweir		  <td class="cell20"><a href="java/Spreadsheet/" title="link to the source directory of the Java Spreadsheet examples">EuroAdaption</a></td>
245cdf0e10cSrcweir		  <td class="cell80">The application connects to the office server and gets
246cdf0e10cSrcweir		  the <a href="../docs/common/ref/com/sun/star/lang/XMultiComponentFactory.html" title="link into the IDL reference to the interface com.sun.star.lang.XMultiComponentFactory"> multi component factory</a>, opens an empty Calc document, enters an
247cdf0e10cSrcweir		  example text, sets the number format to DM, changes the number format to
248cdf0e10cSrcweir		  EUR (Euro), and uses the DM/EUR factor on each cell with content.</td>
249cdf0e10cSrcweir		  </tr>
250cdf0e10cSrcweir		  <tr>
251cdf0e10cSrcweir		  <td class="cell20"><a href="java/Spreadsheet/" title="link to the source directory of the Java Spreadsheet examples">SCalc</a></td>
252cdf0e10cSrcweir		  <td class="cell80">The program connects to the office server and gets the
253cdf0e10cSrcweir          <a href="../docs/common/ref/com/sun/star/lang/XMultiComponentFactory.html" title="link into the IDL reference to the interface com.sun.star.lang.XMultiComponentFactory"> multi component factory</a>. Then an empty calc document will be opened,
254cdf0e10cSrcweir		  cell styles will be created, some data will be inserted into the sheets,
255cdf0e10cSrcweir		  and the created cell styles will be applied. Finally, a 3D chart will be
256cdf0e10cSrcweir		  inserted.</td>
257cdf0e10cSrcweir		  </tr>
258cdf0e10cSrcweir		  <tbody>
259cdf0e10cSrcweir		  </table>
260cdf0e10cSrcweir		  </td>
261cdf0e10cSrcweir		</tr>
262cdf0e10cSrcweir		<tr>
263cdf0e10cSrcweir		  <td>
264cdf0e10cSrcweir		  <table class="table4">
265cdf0e10cSrcweir		  <tbody>
266cdf0e10cSrcweir		  <tr class="thead">
267cdf0e10cSrcweir		  <td class="cell20">Drawing Document Examples</td>
268cdf0e10cSrcweir		  <td class="cell80">Description</td>
269cdf0e10cSrcweir		  </tr>
270cdf0e10cSrcweir		  <tr>
271cdf0e10cSrcweir		  <td class="cell20"><a href="java/Drawing/" title="link to the source directory of the Java Drawing examples">SDraw</a></td>
272cdf0e10cSrcweir		  <td class="cell80">This program connects to the office server and gets
273cdf0e10cSrcweir		  the <a href="../docs/common/ref/com/sun/star/lang/XMultiComponentFactory.html" title="link into the IDL reference to the interface com.sun.star.lang.XMultiComponentFactory"> multi component factory</a>. Afterwards, an empty text document will
274cdf0e10cSrcweir		  be created and some shapes will be inserted on the draw page.</td>
275cdf0e10cSrcweir		  </tr>
276cdf0e10cSrcweir		  <tbody>
277cdf0e10cSrcweir		  </table>
278cdf0e10cSrcweir		  </td>
279cdf0e10cSrcweir		</tr>
280cdf0e10cSrcweir		<tr>
281cdf0e10cSrcweir		  <td>
282cdf0e10cSrcweir		  <table class="table4">
283cdf0e10cSrcweir		  <tbody>
284cdf0e10cSrcweir		  <tr class="thead">
285cdf0e10cSrcweir		  <td class="cell20">Document Handling Examples</td>
286cdf0e10cSrcweir		  <td class="cell80">Description</td>
287cdf0e10cSrcweir		  </tr>
288cdf0e10cSrcweir		  <tr>
289cdf0e10cSrcweir		  <td class="cell20"><a href="java/DocumentHandling/" title="link to the source directory of the Java DocumentHandling examples">DocumentConverter</a></td>
290cdf0e10cSrcweir		  <td class="cell80">The program offers a service that converts arbitrary
291cdf0e10cSrcweir		  documents to a favored document type.</td>
292cdf0e10cSrcweir		  </tr>
293cdf0e10cSrcweir		  <tr>
294cdf0e10cSrcweir		  <td class="cell20"><a href="java/DocumentHandling/" title="link to the source directory of the Java DocumentHandling examples">DocumentLoader</a></td>
295cdf0e10cSrcweir		  <td class="cell80">The <i>DocumentLoader</i> can open a new or an
296cdf0e10cSrcweir		  existing document.</td>
297cdf0e10cSrcweir		  </tr>
298cdf0e10cSrcweir		  <tr>
299cdf0e10cSrcweir		  <td class="cell20"><a href="java/DocumentHandling/"title="link to the source directory of the Java DocumentHandling examples">DocumentPrinter</a></td>
300cdf0e10cSrcweir		  <td class="cell80">The <i>DocumentPrinter</i> allows you to print the
301cdf0e10cSrcweir		  favored pages of a specified document on your favored printer.</td>
302cdf0e10cSrcweir		  </tr>
303cdf0e10cSrcweir		  <tr>
304cdf0e10cSrcweir		  <td class="cell20"><a href="java/DocumentHandling/" title="link to the source directory of the Java DocumentHandling examples">DocumentSaver</a></td>
305cdf0e10cSrcweir		  <td class="cell80">The DocumentSaver shows how to save a document and
306cdf0e10cSrcweir		  how you can change the type of your document.</td>
307cdf0e10cSrcweir		  </tr>
308cdf0e10cSrcweir		  <tbody>
309cdf0e10cSrcweir		  </table>
310cdf0e10cSrcweir		  </td>
311cdf0e10cSrcweir		</tr>
312cdf0e10cSrcweir		<tr>
313cdf0e10cSrcweir		  <td>
314cdf0e10cSrcweir		  <table class="table4">
315cdf0e10cSrcweir		  <tbody>
316cdf0e10cSrcweir		  <tr class="thead">
317cdf0e10cSrcweir		  <td class="cell20">UNO Component Examples</td>
318cdf0e10cSrcweir		  <td class="cell80">Description</td>
319cdf0e10cSrcweir		  </tr>
320cdf0e10cSrcweir		  <tr>
321cdf0e10cSrcweir		  <td class="cell20"><a href="http://wiki.services.openoffice.org/wiki/Object_Inspector" title="link to the Object Inspector project page in the wiki">Object Inspector</a></td>
322cdf0e10cSrcweir		  <td class="cell80">The Object Inspector is primarily an auxiliary tool
323cdf0e10cSrcweir		  for the developer, which can present information about an object of the
324ef1ef8e6SJürgen Schmidt		  Apache OpenOffice %PRODUCT_RELEASE% API at run-time. Depending on the object to be inspected,
325cdf0e10cSrcweir		  appropriate methods, interfaces, services, and attributes can be displayed
326cdf0e10cSrcweir		  to the developer. The methods, interfaces, services and attributes are
327cdf0e10cSrcweir		  represented in a predictable tree. If the attributes contained in an
328cdf0e10cSrcweir		  object are to be examined, the appropriate nodes in the tree can be
329cdf0e10cSrcweir		  expanded with the help of the mouse. For each non primitive object, five
330cdf0e10cSrcweir		  categories are offered to the user, as long as those are available with
331cdf0e10cSrcweir		  that object. The Object Inspector is currently available as a NetBeans project
332cdf0e10cSrcweir		  only because of major code changes. Please see the <a href="http://wiki.services.openoffice.org/wiki/Object_Inspector" title="link to the Object Inspector project page in the wiki">project page</a> for further details.</td>
333cdf0e10cSrcweir		  </tr>
334cdf0e10cSrcweir		  <tr>
335cdf0e10cSrcweir		  <td class="cell20"><a href="java/MinimalComponent/" title="link to the source directory of the Java MinimalComponent example">MinimalComponent</a></td>
336cdf0e10cSrcweir		  <td class="cell80">This class provides a minimal UNO component. You can
337cdf0e10cSrcweir		  take this class as a base for your own components. By extensions of this
338cdf0e10cSrcweir		  class it is possible to also extend the function range of the Office.</td>
339cdf0e10cSrcweir		  </tr>
340cdf0e10cSrcweir		  <tr>
341cdf0e10cSrcweir		  <td class="cell20"><a href="java/PropertySet/" title="link to the source directory of the Java PropertySet example">PropTest</a></td>
342cdf0e10cSrcweir		  <td class="cell80">Contains a component that provides property set
343cdf0e10cSrcweir		  interfaces by means of inheriting <a href="../docs/java/ref/com/sun/star/lib/uno/helper/PropertySet.html" title="link into the Java UNO reference to the PropertySet helper class">com.sun.star.lib.uno.helper.ProperterSet</a>.</td>
344cdf0e10cSrcweir		  </tr>
345cdf0e10cSrcweir		  <tr>
346cdf0e10cSrcweir		  <td class="cell20"><a href="java/ToDo/" title="link to the source directory of the Java ToDo example">ToDo</a></td>
347cdf0e10cSrcweir		  <td class="cell80">For every to-do listed in a spreadsheet document, this
348cdf0e10cSrcweir		  component calculates the start date, day of week of the start date, the
349cdf0e10cSrcweir		  end date, and the day of week of the end date. All calculations are
350cdf0e10cSrcweir		  dependent upon the values of &quot;Needed Days&quot;, &quot;Due Date&quot;
351cdf0e10cSrcweir          and &quot;Status&quot;. The columns &quot;Needed Days&quot; and
352cdf0e10cSrcweir		  &quot;Status&quot; are mandatory. The first to-do should be placed in
353cdf0e10cSrcweir		  row nine. The date to start the calculation should be placed in cell C6.
354cdf0e10cSrcweir		  The private holidays should be placed in cell K4/K5 and below.<br>
355cdf0e10cSrcweir          All rows will be calculated up to the first empty cell in the first
356cdf0e10cSrcweir		  column. If a cell in the column &quot;Due Date&quot; is colored red,
357cdf0e10cSrcweir		  you should take a look at your entries.</td>
358cdf0e10cSrcweir		  </tr>
359cdf0e10cSrcweir		  <tr>
360cdf0e10cSrcweir		  <td class="cell20"><a href="java/EmbedDocument/EmbeddedObject" title="link to the source directory of the Java EmbeddedObject example">EmbeddedObject</a></td>
361cdf0e10cSrcweir		  <td class="cell80">Contains a component that provides an example of embedded object implementation.</td>
362cdf0e10cSrcweir		  </tr>
363cdf0e10cSrcweir		  <tbody>
364cdf0e10cSrcweir		  </table>
365cdf0e10cSrcweir		  </td>
366cdf0e10cSrcweir		</tr>
367cdf0e10cSrcweir        <tr>
368cdf0e10cSrcweir          <td>
369cdf0e10cSrcweir          <table class="table3">
370cdf0e10cSrcweir		  <tr>
371cdf0e10cSrcweir		  <td  colspan="3">
372cdf0e10cSrcweir		  <p>Additional information:</p>
373cdf0e10cSrcweir		  <p>
374cdf0e10cSrcweir		  <a href="http://wiki.services.openoffice.org/wiki/Documentation/DevGuide/WritingUNO/Simple_Component_in_Java" title="link to the &quot;Simple component in Java&quot; chapter in the Developer's Guide">How to write a UNO component in Java</a><br>
375cdf0e10cSrcweir		  <a href="http://wiki.services.openoffice.org/wiki/Documentation/DevGuide/ProUNO/Java/Java_Language_Binding" title="link to the &quot;Java UNO Language Bnding&quot; chapter in the Developer's Guide">Java UNO Language Binding</a><br>
376cdf0e10cSrcweir		  <a href="http://wiki.services.openoffice.org/wiki/Documentation/DevGuide/WritingUNO/Debugging" title="link to the &quot;Debugging Java components&quot; chapter in the Developer's Guide">Debugging Java components</a><br>
377cdf0e10cSrcweir		  </p>
378cdf0e10cSrcweir		  </td>
379cdf0e10cSrcweir		  </tr>
380cdf0e10cSrcweir		  </table>
381cdf0e10cSrcweir          </td>
382cdf0e10cSrcweir        </tr>
383cdf0e10cSrcweir      </table>
384cdf0e10cSrcweir    </td>
385cdf0e10cSrcweir    <td class="content1"><img class="nothing8" src="../docs/images/nada.gif"></td>
386cdf0e10cSrcweir  </tr>
387cdf0e10cSrcweir  <tr>
388cdf0e10cSrcweir    <td colspan="3"><img class="line" src="../docs/images/sdk_line-1.gif"></td>
389cdf0e10cSrcweir  </tr>
390cdf0e10cSrcweir  <tr>
391cdf0e10cSrcweir    <td class="content1"><img class="nothing8" src="../docs/images/nada.gif"></td>
392cdf0e10cSrcweir    <td>
393cdf0e10cSrcweir      <table class="table2">
394cdf0e10cSrcweir        <tr>
395cdf0e10cSrcweir          <td>
396cdf0e10cSrcweir          <table class="table3">
397cdf0e10cSrcweir		  <tr>
398cdf0e10cSrcweir			<td colspan="2" class="head1"><a name="Cpp_examples">C++ examples</td>
399cdf0e10cSrcweir			<td align="right">
400cdf0e10cSrcweir		      <a href="#examples" title="link to the examples overview"><img class="navigate" src="../docs/images/nav_up.png"></a>
401cdf0e10cSrcweir		      <a href="../index.html" title="link to the SDK start page"><img class="navigate" src="../docs/images/nav_home.png"></a>
402cdf0e10cSrcweir		  </td>
403cdf0e10cSrcweir		  </tr>
404cdf0e10cSrcweir		  <tr>
405cdf0e10cSrcweir		  <td  colspan="3">
406cdf0e10cSrcweir		  The DocumentLoader example needs a running office server, before
407cdf0e10cSrcweir		  running this program you should invoke the office with the following
408cdf0e10cSrcweir		  command:
409cdf0e10cSrcweir		  <blockquote>
410cdf0e10cSrcweir		  <code>soffice &quot;-accept=socket,host=localhost,port=2083;urp;StarOffice.ServiceManager&quot;</code>
411cdf0e10cSrcweir		  </blockquote>
412cdf0e10cSrcweir		  You can also customize the mentioned host and port to your needs.
413cdf0e10cSrcweir		  </td>
414cdf0e10cSrcweir		  </tr>
415cdf0e10cSrcweir		  </table>
416cdf0e10cSrcweir          </td>
417cdf0e10cSrcweir        </tr>
418cdf0e10cSrcweir		<tr>
419cdf0e10cSrcweir		  <td>
420cdf0e10cSrcweir		  <table class="table4">
421cdf0e10cSrcweir		  <tbody>
422cdf0e10cSrcweir		  <tr class="thead">
423cdf0e10cSrcweir		  <td class="cell20">Example</td>
424cdf0e10cSrcweir		  <td class="cell80">Description</td>
425cdf0e10cSrcweir		  </tr>
426cdf0e10cSrcweir		  <tr>
427cdf0e10cSrcweir		  <td class="cell20"><a href="cpp/DocumentLoader/"title="link to the source directory of the C++ DocumentLoader example">DocumentLoader</a></td>
428cdf0e10cSrcweir		  <td class="cell80">This component works the same as the appropriate Java
429cdf0e10cSrcweir		  example, but is implemented in C++.</td>
430cdf0e10cSrcweir		  </tr>
431cdf0e10cSrcweir		  <tr>
432cdf0e10cSrcweir		  <td class="cell20"><a href="cpp/counter/" title="link to the source directory of the C++ counter example">Counter</a></td>
433cdf0e10cSrcweir		  <td class="cell80">This demo shows how to implement a very simple UNO
434cdf0e10cSrcweir		  component and how to access the UNO component from an executable.</td>
435cdf0e10cSrcweir		  </tr>
436cdf0e10cSrcweir		  <tr>
437cdf0e10cSrcweir		  <td class="cell20"><a href="cpp/remoteclient/" title="link to the source directory of the C++ remoteclient example">Remote client</a></td>
438cdf0e10cSrcweir		  <td class="cell80">The 'uno' program is used to export an arbitrary
439cdf0e10cSrcweir		  service to other processes. In this example the com.sun.star.uno.Pipe
440cdf0e10cSrcweir		  service (which is built in io-module) is exported. The client component
441cdf0e10cSrcweir		  implements the <a href="../docs/common/ref/com/sun/star/lang/XMain.html" title="link into the IDL reference to the interface com.sun.star.lang.XMain">
442cdf0e10cSrcweir		  com.sun.star.lang.XMain</a> interface. In the run method, it connects to
443cdf0e10cSrcweir		  the servers process and retrieves an instance and does some calls on the
444cdf0e10cSrcweir		  instance.</td>
445cdf0e10cSrcweir		  </tr>
446cdf0e10cSrcweir		  <tr>
447cdf0e10cSrcweir		  <td class="cell20"><a href="cpp/complextoolbarcontrols/" title="link to the source directory of the C++ complextoolbarcontrols example">complextoolbarcontrols</a></td>
448cdf0e10cSrcweir		  <td class="cell80">This example shows how to create a toolbar add-on with complex toolbar controls.
449cdf0e10cSrcweir		  It shows how to use an Image Button, a Combo Box, a Spin Field, an Edit Field, a Dropdown Box, a Toggle Dropdown Button and a normal Dropdown Button</td>
450cdf0e10cSrcweir		  </tr>
451cdf0e10cSrcweir		  <tbody>
452cdf0e10cSrcweir		  </table>
453cdf0e10cSrcweir		  </td>
454cdf0e10cSrcweir		</tr>
455cdf0e10cSrcweir        <tr>
456cdf0e10cSrcweir          <td>
457cdf0e10cSrcweir          <table class="table3">
458cdf0e10cSrcweir		  <tr>
459cdf0e10cSrcweir		  <td  colspan="3">
460cdf0e10cSrcweir		  <p>Additional information:</p>
461cdf0e10cSrcweir		  <p>
462cdf0e10cSrcweir		  <a href="http://wiki.services.openoffice.org/wiki/Documentation/DevGuide/WritingUNO/C%2B%2B/C%2B%2B_Component" title="link to the &quot;How to write a UNO component in C++&quot; chapter in the Developer's Guide">How to write a UNO component in C++</a><br>
463cdf0e10cSrcweir		  <a href="http://wiki.services.openoffice.org/wiki/Documentation/DevGuide/ProUNO/C%2B%2B/C%2B%2B_Language_Binding" title="link to the &quot;C++ UNO Language Binding&quot; chapter in the Developer's Guide">C++ UNO Language Binding</a><br>
464cdf0e10cSrcweir		  <a href="../docs/cpp/ref/index.html" title="link to the C++ API reference">C++ reference</a>
465cdf0e10cSrcweir		  </p>
466cdf0e10cSrcweir		  </td>
467cdf0e10cSrcweir		  </tr>
468cdf0e10cSrcweir		  </table>
469cdf0e10cSrcweir          </td>
470cdf0e10cSrcweir        </tr>
471cdf0e10cSrcweir      </table>
472cdf0e10cSrcweir    </td>
473cdf0e10cSrcweir    <td class="content1"><img class="nothing8" src="../docs/images/nada.gif"></td>
474cdf0e10cSrcweir  </tr>
475cdf0e10cSrcweir  <tr>
476cdf0e10cSrcweir    <td colspan="3"><img class="line" src="../docs/images/sdk_line-1.gif"></td>
477cdf0e10cSrcweir  </tr>
478cdf0e10cSrcweir  <tr>
479cdf0e10cSrcweir    <td class="content1"><img class="nothing8" src="../docs/images/nada.gif"></td>
480cdf0e10cSrcweir    <td>
481cdf0e10cSrcweir      <table class="table2">
482cdf0e10cSrcweir        <tr>
483cdf0e10cSrcweir          <td>
484cdf0e10cSrcweir          <table class="table3">
485cdf0e10cSrcweir		  <tr>
486ef1ef8e6SJürgen Schmidt			<td colspan="2" class="head1"><a name="Basic_examples">Apache OpenOffice %PRODUCT_RELEASE% Basic examples</td>
487cdf0e10cSrcweir			<td align="right">
488cdf0e10cSrcweir		      <a href="#examples" title="link to the examples overview"><img class="navigate" src="../docs/images/nav_up.png"></a>
489cdf0e10cSrcweir		      <a href="../index.html" title="link to the SDK start page"><img class="navigate" src="../docs/images/nav_home.png"></a>
490cdf0e10cSrcweir		  </td>
491cdf0e10cSrcweir		  </tr>
492cdf0e10cSrcweir		  <tr>
493cdf0e10cSrcweir		  <td  colspan="3">
494ef1ef8e6SJürgen Schmidt		  <p>The example programs are embedded in Apache OpenOffice %PRODUCT_RELEASE% documents in the
495ef1ef8e6SJürgen Schmidt		  samples directory. To view or edit the Apache OpenOffice %PRODUCT_RELEASE% Basic source,
496cdf0e10cSrcweir		  select the appropriate document and then select Tools-&gt;Macro.</p>
497cdf0e10cSrcweir		  <p>Most of the examples are stand-alone, but two of them (Creating an
498cdf0e10cSrcweir		  Index and Import/Export of ASCII Files) have an associated data file
499cdf0e10cSrcweir		  identified by a .txt file name suffix).</p>
500cdf0e10cSrcweir		  <p>Some of the examples are also available in Java, you can find them in
501cdf0e10cSrcweir		  the <a href="#Java_examples" title="link to the Java examples section">
502cdf0e10cSrcweir		  Java section</a>.</p>
503cdf0e10cSrcweir		  </td>
504cdf0e10cSrcweir		  </tr>
505cdf0e10cSrcweir		  </table>
506cdf0e10cSrcweir          </td>
507cdf0e10cSrcweir        </tr>
508cdf0e10cSrcweir		<tr>
509cdf0e10cSrcweir		  <td>
510cdf0e10cSrcweir		  <table class="table4">
511cdf0e10cSrcweir		  <tbody>
512cdf0e10cSrcweir		  <tr class="thead">
513cdf0e10cSrcweir		  <td class="cell20">Example</td>
514cdf0e10cSrcweir		  <td class="cell80">Description</td>
515cdf0e10cSrcweir		  </tr>
516cdf0e10cSrcweir		  <tr>
517ef1ef8e6SJürgen Schmidt		  <td class="cell20"><a href="basic/text/modifying_text_automatically/" title="link to the source directory of the Apache OpenOffice %PRODUCT_RELEASE% Basic text/modifying_text_automatically examples">Changing Appearance</a></td>
518cdf0e10cSrcweir		  <td class="cell80"> To change the style used for certain words, you can
519cdf0e10cSrcweir		  start with the following example. This code searches for the regular
520cdf0e10cSrcweir		  expression <code>the[a-z]</code>, which stands for the text portion the
521cdf0e10cSrcweir		  followed by exactly one lowercase letter. All occurrences of these four
522cdf0e10cSrcweir		  letters are then changed to bold characters. The same happens in the next
523cdf0e10cSrcweir		  part of the program, this time changing the appearance of
524cdf0e10cSrcweir		  <code>all[a-z]</code> to italic. In order for this example to work, you
525cdf0e10cSrcweir		  must execute it from an open text document.</td>
526cdf0e10cSrcweir		  </tr>
527cdf0e10cSrcweir		  <tr>
528ef1ef8e6SJürgen Schmidt		  <td class="cell20"><a href="basic/text/modifying_text_automatically/" title="link to the source directory of the Apache OpenOffice %PRODUCT_RELEASE% Basic text/modifying_text_automatically examples">Replacing Text</a></td>
529cdf0e10cSrcweir		  <td class="cell80">If you regularly receive documents from other people
530cdf0e10cSrcweir		  for editing, you might want to make sure that certain words are always
531cdf0e10cSrcweir		  written the same. The next example illustrates this by forcing certain
532cdf0e10cSrcweir		  words to be spelled in American English.<br>
533cdf0e10cSrcweir          In order for this example to work, you must execute it from an open text
534cdf0e10cSrcweir		  document. For a real world application, it is a good idea to read the
535cdf0e10cSrcweir		  words from an external file.</td>
536cdf0e10cSrcweir		  </tr>
537cdf0e10cSrcweir		  <tr>
538ef1ef8e6SJürgen Schmidt		  <td class="cell20"><a href="basic/text/modifying_text_automatically/" title="link to the source directory of the Apache OpenOffice %PRODUCT_RELEASE% Basic text/modifying_text_automatically examples">Using Regular Expressions</a></td>
539cdf0e10cSrcweir		  <td class="cell80">Another application of automatic text modification is
540cdf0e10cSrcweir		  related to stylistic questions. Suppose your company&#146;s policy is to
541cdf0e10cSrcweir		  avoid the use of certain words. You want to replace these words, but you
542cdf0e10cSrcweir		  cannot do that automatically because you have to find the appropriate
543cdf0e10cSrcweir		  replacement, which depends on the context. So instead of deleting or
544cdf0e10cSrcweir		  replacing the offending words automatically, you change their color to
545cdf0e10cSrcweir		  make them stand out during a subsequent manual review process.<br>
546cdf0e10cSrcweir		  The following example handles two kinds of unwanted wordings: those
547cdf0e10cSrcweir		  which are absolutely forbidden and must be replaced by something else,
548cdf0e10cSrcweir		  and those which are considered bad style. A subroutine is responsible
549cdf0e10cSrcweir		  for the changes. It can be used to make all words in a list appear in a
550cdf0e10cSrcweir		  certain color in the text document. To keep the lists short, we use
551cdf0e10cSrcweir		  regular expressions which provide for the variants of the words
552cdf0e10cSrcweir		  (plural, adjective etc.).</td>
553cdf0e10cSrcweir		  </tr>
554cdf0e10cSrcweir		  <tr>
555ef1ef8e6SJürgen Schmidt		  <td class="cell20"><a href="basic/text/modifying_text_automatically/" title="link to the source directory of the Apache OpenOffice %PRODUCT_RELEASE% Basic text/modifying_text_automatically examples">Inserting Bookmarks</a></td>
556cdf0e10cSrcweir		  <td class="cell80">
557cdf0e10cSrcweir		  <p>The next example does something very similar. This time, however, we
558cdf0e10cSrcweir		  do not change the color of the words but insert a bookmark at each of
559cdf0e10cSrcweir		  them. You can thus use the StarOffice navigator to jump directly from
560cdf0e10cSrcweir		  word to word. Bookmarks must first be created using
561cdf0e10cSrcweir		  <code>createInstance()</code>. They are then inserted with
562cdf0e10cSrcweir		  <code>insertTextContent()</code> at the current text range.</p>
563cdf0e10cSrcweir		  <p>The main difference to the preceding example is the For loop in
564cdf0e10cSrcweir		  <code>markList()</code>. Instead of changing the color of the current
565cdf0e10cSrcweir		  word, it creates a new bookmark, oBookmark, whose name is the current
566cdf0e10cSrcweir		  word with an integer appended. It then inserts this bookmark at the
567cdf0e10cSrcweir		  word.</td>
568cdf0e10cSrcweir		  </tr>
569cdf0e10cSrcweir		  <tr>
570ef1ef8e6SJürgen Schmidt		  <td class="cell20"><a href="basic/text/creating_an_index/" title="link to the source directory of the Apache OpenOffice %PRODUCT_RELEASE% Basic text/create_index example">Creating an Index</a></td>
571cdf0e10cSrcweir		  <td class="cell80">Indices for text documents can be created manually in
572ef1ef8e6SJürgen Schmidt		  Apache OpenOffice %PRODUCT_RELEASE% Writer by clicking on the words that should appear in the
573cdf0e10cSrcweir		  index. If the document is large, or if you have to generate indices for
574cdf0e10cSrcweir		  several documents, this task should be automated.</td>
575cdf0e10cSrcweir		  </tr>
576cdf0e10cSrcweir		  <tr>
577ef1ef8e6SJürgen Schmidt		  <td class="cell20"><a href="basic/sheet/" title="link to the source directory of the Apache OpenOffice %PRODUCT_RELEASE% Basic sheet example">Adapting to Euroland</a></td>
578cdf0e10cSrcweir		  <td class="cell80">Most of the members of the European Union will abandon
579cdf0e10cSrcweir		  their old currency in favor of the new Euro in 2001. This requires
580cdf0e10cSrcweir		  modifications to all programs using the old currencies. Since the exchange
581cdf0e10cSrcweir		  rates for the old currencies have been fixed at the end of 1999, one can
582cdf0e10cSrcweir		  already convert old data. The following program does this for all values
583cdf0e10cSrcweir		  in a table that are formatted with the currency string DM.</td>
584cdf0e10cSrcweir		  </tr>
585cdf0e10cSrcweir		  <tr>
586ef1ef8e6SJürgen Schmidt		  <td class="cell20"><a href="basic/drawing/" title="link to the source directory of the Apache OpenOffice %PRODUCT_RELEASE% Basic drawing example">Import/Export of ASCII Files</a></td>
587cdf0e10cSrcweir		  <td class="cell80">You can use the drawing facilities of StarOffice API
588cdf0e10cSrcweir		  to generate a picture from ASCII input. One application would be a
589cdf0e10cSrcweir		  hierarchical representation of a directory listing, based on textual
590cdf0e10cSrcweir		  data.</td>
591cdf0e10cSrcweir		  </tr>
592cdf0e10cSrcweir		  <tr>
593ef1ef8e6SJürgen Schmidt		  <td class="cell20"><a href="basic/stock_quotes_updater/" title="link to the source directory of the Apache OpenOffice %PRODUCT_RELEASE% Basic stock_quotes_updater example">Stock Quotes Updater</a></td>
594cdf0e10cSrcweir		  <td class="cell80">If you want to display stock charts for certain
595cdf0e10cSrcweir		  companies, you can open up your browser every day, go to a search engine,
596cdf0e10cSrcweir		  look up the quote and copy it by hand into a table. Or you can use a
597cdf0e10cSrcweir		  program that does all this automatically. The following example relies on
598cdf0e10cSrcweir		  the sheet module. It uses URLs to obtain the current stock quotes. The
599cdf0e10cSrcweir		  quotes are displayed in sheets, one for each company. We show a line
600cdf0e10cSrcweir		  diagram and the numerical values for this company on every sheet. The
601cdf0e10cSrcweir		  functionality is hidden in the three subroutines <code>GetValue()</code>,
602cdf0e10cSrcweir		  <code>UpdateValue()</code>, and <code>UpdateChart()</code>.</td>
603cdf0e10cSrcweir		  </tr>
604cdf0e10cSrcweir		  <tr>
605ef1ef8e6SJürgen Schmidt		  <td class="cell20"><a href="basic/forms_and_controls/" title="link to the source directory of the Apache OpenOffice %PRODUCT_RELEASE% Basic forms_and_controls example">Forms and Controls</a></td>
606cdf0e10cSrcweir		  <td class="cell80">The example document Burger Factory offers some forms
607cdf0e10cSrcweir		  and controls, which you can use to order your desired burger type,
608cdf0e10cSrcweir		  beverage, topping, and sauce. By hitting the button
609cdf0e10cSrcweir		  &quot;Order now!&quot;, your order will be placed.</td>
610cdf0e10cSrcweir		  </tr>
611cdf0e10cSrcweir		  <tbody>
612cdf0e10cSrcweir		  </table>
613cdf0e10cSrcweir		  </td>
614cdf0e10cSrcweir		</tr>
615cdf0e10cSrcweir        <tr>
616cdf0e10cSrcweir          <td>
617cdf0e10cSrcweir          <table class="table3">
618cdf0e10cSrcweir		  <tr>
619cdf0e10cSrcweir		  <td  colspan="3">
620cdf0e10cSrcweir		  Additional information: <a href="http://wiki.services.openoffice.org/wiki/Documentation/DevGuide/ProUNO/Basic/OpenOffice.org_Basic" title="link to the &quot;OpenOffice.org %PRODUCT_RELEASE% Basic language binding&quot; chapter in the Developer's Guide">OpenOffice.org %PRODUCT_RELEASE% Basic language binding</a>
621cdf0e10cSrcweir		  </td>
622cdf0e10cSrcweir		  </tr>
623cdf0e10cSrcweir		  </table>
624cdf0e10cSrcweir          </td>
625cdf0e10cSrcweir        </tr>
626cdf0e10cSrcweir		</table>
627cdf0e10cSrcweir    </td>
628cdf0e10cSrcweir    <td class="content1"><img class="nothing8" src="../docs/images/nada.gif"></td>
629cdf0e10cSrcweir  </tr>
630cdf0e10cSrcweir  <tr>
631cdf0e10cSrcweir    <td colspan="3"><img class="line" src="../docs/images/sdk_line-1.gif"></td>
632cdf0e10cSrcweir  </tr>
633cdf0e10cSrcweir  <tr>
634cdf0e10cSrcweir    <td class="content1"><img class="nothing8" src="../docs/images/nada.gif"></td>
635cdf0e10cSrcweir    <td>
636cdf0e10cSrcweir      <table class="table2">
637cdf0e10cSrcweir        <tr>
638cdf0e10cSrcweir          <td>
639cdf0e10cSrcweir          <table class="table3">
640cdf0e10cSrcweir		  <tr>
641cdf0e10cSrcweir			<td colspan="2" class="head1"><a name="OLE_examples">Object Linking and Embedding (OLE) examples</td>
642cdf0e10cSrcweir			<td align="right">
643cdf0e10cSrcweir		      <a href="#examples" title="link to the examples overview"><img class="navigate" src="../docs/images/nav_up.png"></a>
644cdf0e10cSrcweir		      <a href="../index.html" title="link to the SDK start page"><img class="navigate" src="../docs/images/nav_home.png"></a>
645cdf0e10cSrcweir		  </td>
646cdf0e10cSrcweir		  </tr>
647cdf0e10cSrcweir		  </table>
648cdf0e10cSrcweir          </td>
649cdf0e10cSrcweir        </tr>
650cdf0e10cSrcweir		<tr>
651cdf0e10cSrcweir		  <td>
652cdf0e10cSrcweir		  <table class="table4">
653cdf0e10cSrcweir		  <tbody>
654cdf0e10cSrcweir		  <tr class="thead">
655cdf0e10cSrcweir		  <td class="cell20">Example</td>
656cdf0e10cSrcweir		  <td class="cell80">Description</td>
657cdf0e10cSrcweir		  </tr>
658cdf0e10cSrcweir		  <tr>
659cdf0e10cSrcweir		  <td class="cell20"><a href="OLE/activex/" title="link to the source directory of the activex plugin example using the OLE bridge">ActiveX Control</a></td>
660cdf0e10cSrcweir		  <td class="cell80">The ActiveX control shows an example of access to UNO
661cdf0e10cSrcweir		  through COM technology. It requires a properly installed StarOffice
662cdf0e10cSrcweir		  version 6.0 or OpenOffice 1.0 or newer. This is a Lite ActiveX control
663cdf0e10cSrcweir		  so it can be used only in containers that allow the use of such controls.
664cdf0e10cSrcweir		  It can be activated with an &lt;OBJECT&gt; tag from a html-page to embed
665cdf0e10cSrcweir		  a document. Without any parameters a new writer document will be opened
666cdf0e10cSrcweir		  for editing. For more details please see the <a href="OLE/activex/README.txt" title="link to the README file of the activex example">README</a>.<br>
667cdf0e10cSrcweir		  Note: This example works only under windows and if you don't use the MS
668cdf0e10cSrcweir		  .Net C++ compiler please check the makefile and take notice of the
669cdf0e10cSrcweir		  comments.</td>
670cdf0e10cSrcweir		  </tr>
671cdf0e10cSrcweir		  <tr>
672cdf0e10cSrcweir		  <td class="cell20"><a href="OLE/vbscript/" title="link to the source directory of the VBScript example using the OLE bridge">WriterDemo</a></td>
673cdf0e10cSrcweir		  <td class="cell80">This Visual Basic Script creates an empty text
674cdf0e10cSrcweir		  document and inserts text, a table, and a text frame.</td>
675cdf0e10cSrcweir		  </tr>
676cdf0e10cSrcweir		  <tbody>
677cdf0e10cSrcweir		  </table>
678cdf0e10cSrcweir		  </td>
679cdf0e10cSrcweir		</tr>
680cdf0e10cSrcweir        <tr>
681cdf0e10cSrcweir          <td>
682cdf0e10cSrcweir          <table class="table3">
683cdf0e10cSrcweir		  <tr>
684cdf0e10cSrcweir		  <td  colspan="3">
685cdf0e10cSrcweir		  Additional information: <a href="http://wiki.services.openoffice.org/wiki/Documentation/DevGuide/ProUNO/Bridge/Automation_Bridge" title="link to the &quot;Automation Language Binding&quot; chapter in the Developer's Guide">Automation Language Binding</a>
686cdf0e10cSrcweir		  </td>
687cdf0e10cSrcweir		  </tr>
688cdf0e10cSrcweir		  </table>
689cdf0e10cSrcweir          </td>
690cdf0e10cSrcweir        </tr>
691cdf0e10cSrcweir      </table>
692cdf0e10cSrcweir    </td>
693cdf0e10cSrcweir    <td class="content1"><img class="nothing8" src="../docs/images/nada.gif"></td>
694cdf0e10cSrcweir  </tr>
695cdf0e10cSrcweir  <tr>
696cdf0e10cSrcweir    <td colspan="3"><img class="line" src="../docs/images/sdk_line-1.gif"></td>
697cdf0e10cSrcweir  </tr>
698cdf0e10cSrcweir  <tr>
699cdf0e10cSrcweir    <td class="content1"><img class="nothing8" src="../docs/images/nada.gif"></td>
700cdf0e10cSrcweir    <td>
701cdf0e10cSrcweir      <table class="table2">
702cdf0e10cSrcweir        <tr>
703cdf0e10cSrcweir          <td>
704cdf0e10cSrcweir          <table class="table3">
705cdf0e10cSrcweir		  <tr>
706cdf0e10cSrcweir			<td colspan="2" class="head1"><a name="CLI_examples">Common Language Infrastructure (CLI)  examples</td>
707cdf0e10cSrcweir			<td align="right">
708cdf0e10cSrcweir		      <a href="#examples" title="link to the examples overview"><img class="navigate" src="../docs/images/nav_up.png"></a>
709cdf0e10cSrcweir		      <a href="../index.html" title="link to the SDK start page"><img class="navigate" src="../docs/images/nav_home.png"></a>
710cdf0e10cSrcweir		  </td>
711cdf0e10cSrcweir		  </tr>
712cdf0e10cSrcweir		  </table>
713cdf0e10cSrcweir          </td>
714cdf0e10cSrcweir        </tr>
715cdf0e10cSrcweir		<tr>
716cdf0e10cSrcweir		  <td>
717cdf0e10cSrcweir		  <table class="table4">
718cdf0e10cSrcweir		  <tbody>
719cdf0e10cSrcweir		  <tr class="thead">
720cdf0e10cSrcweir		  <td class="cell20">Example</td>
721cdf0e10cSrcweir		  <td class="cell80">Description</td>
722cdf0e10cSrcweir		  </tr>
723cdf0e10cSrcweir		  <tr>
724cdf0e10cSrcweir		  <td class="cell20"><a href="CLI/CSharp/Spreadsheet/" title="link to the source directory of the Spreadsheet example using the CLI-UNO bridge">Spreadsheet Example</a></td>
725cdf0e10cSrcweir		  <td class="cell80">This example is written in C# and shows how Spreadsheet
726cdf0e10cSrcweir		  documents are created and filled with content. This example actually
727cdf0e10cSrcweir		  consists of three separate executables, SpreadsheetSample.exe,
728cdf0e10cSrcweir		  GeneralTableSample.exe, ViewSample.exe.</td>
729cdf0e10cSrcweir		  </tr>
730cdf0e10cSrcweir		  <tr>
731cdf0e10cSrcweir		  <td class="cell20"><a href="CLI/VB.NET/WriterDemo/" title="link to the source directory of the WriterDeom example using the CLI-UNO bridge">WriterDemo</a></td>
732cdf0e10cSrcweir		  <td class="cell80">This example is written in VB.NET. It creates a text
733cdf0e10cSrcweir		  document and inserts text, a table, and a text frame.</td>
734cdf0e10cSrcweir		  </tr>
735cdf0e10cSrcweir		  <tbody>
736cdf0e10cSrcweir		  </table>
737cdf0e10cSrcweir		  </td>
738cdf0e10cSrcweir		</tr>
739cdf0e10cSrcweir        <tr>
740cdf0e10cSrcweir          <td>
741cdf0e10cSrcweir          <table class="table3">
742cdf0e10cSrcweir		  <tr>
743cdf0e10cSrcweir		  <td  colspan="3">
744cdf0e10cSrcweir		  Additional information: <a href="http://wiki.services.openoffice.org/wiki/Documentation/DevGuide/ProUNO/CLI/CLI_Language_Binding" title="link to the &quot;CLI-UNO Language Binding&quot; chapter in the Developer's Guide">CLI-UNO Language Binding</a>
745cdf0e10cSrcweir		  </td>
746cdf0e10cSrcweir		  </tr>
747cdf0e10cSrcweir		  </table>
748cdf0e10cSrcweir          </td>
749cdf0e10cSrcweir        </tr>
750cdf0e10cSrcweir      </table>
751cdf0e10cSrcweir    </td>
752cdf0e10cSrcweir    <td class="content1"><img class="nothing8" src="../docs/images/nada.gif"></td>
753cdf0e10cSrcweir  </tr>
754cdf0e10cSrcweir  <tr>
755cdf0e10cSrcweir    <td colspan="3"><img class="nothing30" src="../docs/images/nada.gif"></td>
756cdf0e10cSrcweir  </tr>
757cdf0e10cSrcweir  <tr>
758cdf0e10cSrcweir    <td colspan="3"><img class="line" src="../docs/images/sdk_line-1.gif"></td>
759cdf0e10cSrcweir  </tr>
760cdf0e10cSrcweir  <tr>
761cdf0e10cSrcweir    <td colspan="3">
762cdf0e10cSrcweir      <div class="centertext">
763ef1ef8e6SJürgen Schmidt	<p><img class="apachelogo" src="../docs/images/odk-footer-logo.gif" title="Apache Feather" alt="Apache Feather" />
764ef1ef8e6SJürgen Schmidt            Copyright &copy; 2011 The Apache Software Foundation, Licensed under the Apache License, Version 2.0. Apache, the Apache feather logo, Apache OpenOffice and OpenOfifce.org are trademarks of The Apache Software Foundation. Other names may be trademarks of their respective owners.<p>
765cdf0e10cSrcweir      </div>
766cdf0e10cSrcweir    </td>
767cdf0e10cSrcweir  </tr>
768cdf0e10cSrcweir</table>
769cdf0e10cSrcweir<map name="Map">
770ef1ef8e6SJürgen Schmidt  <area shape="rect" coords="10,68,400,105" href="http://www.openoffice.org">
771cdf0e10cSrcweir</map>
772cdf0e10cSrcweir</body>
773cdf0e10cSrcweir</html>
774