xref: /aoo42x/main/odk/examples/examples.html (revision f0795d1b)
1122c3632SJürgen Schmidt<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
2122c3632SJürgen Schmidt<!--
3122c3632SJürgen Schmidt#**************************************************************
4122c3632SJürgen Schmidt#
5122c3632SJürgen Schmidt#  Licensed to the Apache Software Foundation (ASF) under one
6122c3632SJürgen Schmidt#  or more contributor license agreements.  See the NOTICE file
7122c3632SJürgen Schmidt#  distributed with this work for additional information
8122c3632SJürgen Schmidt#  regarding copyright ownership.  The ASF licenses this file
9122c3632SJürgen Schmidt#  to you under the Apache License, Version 2.0 (the
10122c3632SJürgen Schmidt#  "License"); you may not use this file except in compliance
11122c3632SJürgen Schmidt#  with the License.  You may obtain a copy of the License at
12122c3632SJürgen Schmidt#
13122c3632SJürgen Schmidt#    http://www.apache.org/licenses/LICENSE-2.0
14122c3632SJürgen Schmidt#
15122c3632SJürgen Schmidt#  Unless required by applicable law or agreed to in writing,
16122c3632SJürgen Schmidt#  software distributed under the License is distributed on an
17122c3632SJürgen Schmidt#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
18122c3632SJürgen Schmidt#  KIND, either express or implied.  See the License for the
19122c3632SJürgen Schmidt#  specific language governing permissions and limitations
20122c3632SJürgen Schmidt#  under the License.
21122c3632SJürgen Schmidt#
22122c3632SJürgen Schmidt#**************************************************************
23122c3632SJü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">
2899eb6ac2SMatthias Seidel  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
29cdf0e10cSrcweir  <meta name="author" content="J&uuml;rgen Schmidt">
30cdf0e10cSrcweir  <meta name="created" content="2004-12-14">
31cdf0e10cSrcweir</head>
32cdf0e10cSrcweir
332f8a5df7SMatthias Seidel<body class="sdkbody"><a name="examples"></a>
34cdf0e10cSrcweir<table class="table1" cellpadding=0>
350f3543aaSMatthias Seidel  <tr style="background-image:url(../docs/images/sdk_head-2.png); background-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>
9180295734SMatthias Seidel              <td class="content75">The <a href="https://wiki.openoffice.org/wiki/Documentation/DevGuide" 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>
1092f8a5df7SMatthias Seidel              <td><a href="#Basic_examples" title="link to the Apache OpenOffice Basic examples section">Apache OpenOffice Basic examples</a></td>
110cdf0e10cSrcweir              <td class="content75">Small set of examples which shows the use of
1112f8a5df7SMatthias Seidel			  the API from Apache OpenOffice 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>
1422f8a5df7SMatthias Seidel			<td colspan="2" class="head1"><a name="Java_examples"></a>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>
299d353e71eSTsutomu Uchino		  <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>
32199eb6ac2SMatthias Seidel		  <td class="cell20"><a href="https://wiki.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
33299eb6ac2SMatthias Seidel		  only because of major code changes. Please see the <a href="https://wiki.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
34399eb6ac2SMatthias Seidel		  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.PropertySet</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;
351907636efSMatthias Seidel		  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>
355907636efSMatthias Seidel		  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>
37480295734SMatthias Seidel		  <a href="https://wiki.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>
37580295734SMatthias Seidel		  <a href="https://wiki.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>
37680295734SMatthias Seidel		  <a href="https://wiki.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>
3982f8a5df7SMatthias Seidel			<td colspan="2" class="head1"><a name="Cpp_examples"></a>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>
427d353e71eSTsutomu Uchino		  <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>
44506006ce9SAriel Constenla-Haile		  </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>
45006006ce9SAriel Constenla-Haile		  </tr>
45106006ce9SAriel Constenla-Haile          <tr>
45206006ce9SAriel Constenla-Haile          <td class="cell20"><a href="cpp/StatusbarController/" title="link to the source directory of the C++ StatusbarController example">StatusbarController</a></td>
45306006ce9SAriel Constenla-Haile          <td class="cell80">These examples show how to implement a StatusbarController to add functionality in the status bar.</td>
45406006ce9SAriel Constenla-Haile          </tr>
455cdf0e10cSrcweir		  <tbody>
456cdf0e10cSrcweir		  </table>
457cdf0e10cSrcweir		  </td>
458cdf0e10cSrcweir		</tr>
459cdf0e10cSrcweir        <tr>
460cdf0e10cSrcweir          <td>
461cdf0e10cSrcweir          <table class="table3">
462cdf0e10cSrcweir		  <tr>
463cdf0e10cSrcweir		  <td  colspan="3">
464cdf0e10cSrcweir		  <p>Additional information:</p>
465cdf0e10cSrcweir		  <p>
46680295734SMatthias Seidel		  <a href="https://wiki.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>
46780295734SMatthias Seidel		  <a href="https://wiki.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>
468cdf0e10cSrcweir		  <a href="../docs/cpp/ref/index.html" title="link to the C++ API reference">C++ reference</a>
469cdf0e10cSrcweir		  </p>
470cdf0e10cSrcweir		  </td>
471cdf0e10cSrcweir		  </tr>
472cdf0e10cSrcweir		  </table>
473cdf0e10cSrcweir          </td>
474cdf0e10cSrcweir        </tr>
475cdf0e10cSrcweir      </table>
476cdf0e10cSrcweir    </td>
477cdf0e10cSrcweir    <td class="content1"><img class="nothing8" src="../docs/images/nada.gif"></td>
478cdf0e10cSrcweir  </tr>
479cdf0e10cSrcweir  <tr>
480cdf0e10cSrcweir    <td colspan="3"><img class="line" src="../docs/images/sdk_line-1.gif"></td>
481cdf0e10cSrcweir  </tr>
482cdf0e10cSrcweir  <tr>
483cdf0e10cSrcweir    <td class="content1"><img class="nothing8" src="../docs/images/nada.gif"></td>
484cdf0e10cSrcweir    <td>
485cdf0e10cSrcweir      <table class="table2">
486cdf0e10cSrcweir        <tr>
487cdf0e10cSrcweir          <td>
488cdf0e10cSrcweir          <table class="table3">
489cdf0e10cSrcweir		  <tr>
4902f8a5df7SMatthias Seidel			<td colspan="2" class="head1"><a name="Basic_examples"></a>Apache OpenOffice Basic examples</td>
491cdf0e10cSrcweir			<td align="right">
492cdf0e10cSrcweir		      <a href="#examples" title="link to the examples overview"><img class="navigate" src="../docs/images/nav_up.png"></a>
493cdf0e10cSrcweir		      <a href="../index.html" title="link to the SDK start page"><img class="navigate" src="../docs/images/nav_home.png"></a>
494cdf0e10cSrcweir		  </td>
495cdf0e10cSrcweir		  </tr>
496cdf0e10cSrcweir		  <tr>
497cdf0e10cSrcweir		  <td  colspan="3">
498ef1ef8e6SJürgen Schmidt		  <p>The example programs are embedded in Apache OpenOffice %PRODUCT_RELEASE% documents in the
4992f8a5df7SMatthias Seidel		  samples directory. To view or edit the Apache OpenOffice Basic source,
500cdf0e10cSrcweir		  select the appropriate document and then select Tools-&gt;Macro.</p>
501cdf0e10cSrcweir		  <p>Most of the examples are stand-alone, but two of them (Creating an
502cdf0e10cSrcweir		  Index and Import/Export of ASCII Files) have an associated data file
503cdf0e10cSrcweir		  identified by a .txt file name suffix).</p>
504cdf0e10cSrcweir		  <p>Some of the examples are also available in Java, you can find them in
505cdf0e10cSrcweir		  the <a href="#Java_examples" title="link to the Java examples section">
506cdf0e10cSrcweir		  Java section</a>.</p>
507cdf0e10cSrcweir		  </td>
508cdf0e10cSrcweir		  </tr>
509cdf0e10cSrcweir		  </table>
510cdf0e10cSrcweir          </td>
511cdf0e10cSrcweir        </tr>
512cdf0e10cSrcweir		<tr>
513cdf0e10cSrcweir		  <td>
514cdf0e10cSrcweir		  <table class="table4">
515cdf0e10cSrcweir		  <tbody>
516cdf0e10cSrcweir		  <tr class="thead">
517cdf0e10cSrcweir		  <td class="cell20">Example</td>
518cdf0e10cSrcweir		  <td class="cell80">Description</td>
519cdf0e10cSrcweir		  </tr>
520cdf0e10cSrcweir		  <tr>
521ef1ef8e6SJü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>
522cdf0e10cSrcweir		  <td class="cell80"> To change the style used for certain words, you can
523cdf0e10cSrcweir		  start with the following example. This code searches for the regular
524cdf0e10cSrcweir		  expression <code>the[a-z]</code>, which stands for the text portion the
525cdf0e10cSrcweir		  followed by exactly one lowercase letter. All occurrences of these four
526cdf0e10cSrcweir		  letters are then changed to bold characters. The same happens in the next
527cdf0e10cSrcweir		  part of the program, this time changing the appearance of
528cdf0e10cSrcweir		  <code>all[a-z]</code> to italic. In order for this example to work, you
529cdf0e10cSrcweir		  must execute it from an open text document.</td>
530cdf0e10cSrcweir		  </tr>
531cdf0e10cSrcweir		  <tr>
532ef1ef8e6SJü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>
533cdf0e10cSrcweir		  <td class="cell80">If you regularly receive documents from other people
534cdf0e10cSrcweir		  for editing, you might want to make sure that certain words are always
535cdf0e10cSrcweir		  written the same. The next example illustrates this by forcing certain
536cdf0e10cSrcweir		  words to be spelled in American English.<br>
537cdf0e10cSrcweir          In order for this example to work, you must execute it from an open text
538cdf0e10cSrcweir		  document. For a real world application, it is a good idea to read the
539cdf0e10cSrcweir		  words from an external file.</td>
540cdf0e10cSrcweir		  </tr>
541cdf0e10cSrcweir		  <tr>
542ef1ef8e6SJü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>
543cdf0e10cSrcweir		  <td class="cell80">Another application of automatic text modification is
544cdf0e10cSrcweir		  related to stylistic questions. Suppose your company&#146;s policy is to
545cdf0e10cSrcweir		  avoid the use of certain words. You want to replace these words, but you
546cdf0e10cSrcweir		  cannot do that automatically because you have to find the appropriate
547cdf0e10cSrcweir		  replacement, which depends on the context. So instead of deleting or
548cdf0e10cSrcweir		  replacing the offending words automatically, you change their color to
549cdf0e10cSrcweir		  make them stand out during a subsequent manual review process.<br>
550cdf0e10cSrcweir		  The following example handles two kinds of unwanted wordings: those
551cdf0e10cSrcweir		  which are absolutely forbidden and must be replaced by something else,
552cdf0e10cSrcweir		  and those which are considered bad style. A subroutine is responsible
553cdf0e10cSrcweir		  for the changes. It can be used to make all words in a list appear in a
554cdf0e10cSrcweir		  certain color in the text document. To keep the lists short, we use
555cdf0e10cSrcweir		  regular expressions which provide for the variants of the words
556cdf0e10cSrcweir		  (plural, adjective etc.).</td>
557cdf0e10cSrcweir		  </tr>
558cdf0e10cSrcweir		  <tr>
559ef1ef8e6SJü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>
560cdf0e10cSrcweir		  <td class="cell80">
561cdf0e10cSrcweir		  <p>The next example does something very similar. This time, however, we
562cdf0e10cSrcweir		  do not change the color of the words but insert a bookmark at each of
563cdf0e10cSrcweir		  them. You can thus use the StarOffice navigator to jump directly from
564cdf0e10cSrcweir		  word to word. Bookmarks must first be created using
565cdf0e10cSrcweir		  <code>createInstance()</code>. They are then inserted with
566cdf0e10cSrcweir		  <code>insertTextContent()</code> at the current text range.</p>
567cdf0e10cSrcweir		  <p>The main difference to the preceding example is the For loop in
568cdf0e10cSrcweir		  <code>markList()</code>. Instead of changing the color of the current
569cdf0e10cSrcweir		  word, it creates a new bookmark, oBookmark, whose name is the current
570cdf0e10cSrcweir		  word with an integer appended. It then inserts this bookmark at the
571cdf0e10cSrcweir		  word.</td>
572cdf0e10cSrcweir		  </tr>
573cdf0e10cSrcweir		  <tr>
574ef1ef8e6SJü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>
575cdf0e10cSrcweir		  <td class="cell80">Indices for text documents can be created manually in
576ef1ef8e6SJürgen Schmidt		  Apache OpenOffice %PRODUCT_RELEASE% Writer by clicking on the words that should appear in the
577cdf0e10cSrcweir		  index. If the document is large, or if you have to generate indices for
578cdf0e10cSrcweir		  several documents, this task should be automated.</td>
579cdf0e10cSrcweir		  </tr>
580cdf0e10cSrcweir		  <tr>
581ef1ef8e6SJü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>
582907636efSMatthias Seidel		  <td class="cell80">Most of the members of the European Union have abandoned
583907636efSMatthias Seidel		  their old currency in favor of the Euro in 2001. This requires
584cdf0e10cSrcweir		  modifications to all programs using the old currencies. Since the exchange
585cdf0e10cSrcweir		  rates for the old currencies have been fixed at the end of 1999, one can
586907636efSMatthias Seidel		  simply convert old data. The following program does this for all values
587907636efSMatthias Seidel		  in a table that is formatted with the currency string DM.</td>
588cdf0e10cSrcweir		  </tr>
589cdf0e10cSrcweir		  <tr>
590ef1ef8e6SJü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>
591cdf0e10cSrcweir		  <td class="cell80">You can use the drawing facilities of StarOffice API
592cdf0e10cSrcweir		  to generate a picture from ASCII input. One application would be a
593cdf0e10cSrcweir		  hierarchical representation of a directory listing, based on textual
594cdf0e10cSrcweir		  data.</td>
595cdf0e10cSrcweir		  </tr>
596cdf0e10cSrcweir		  <tr>
597ef1ef8e6SJü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>
598cdf0e10cSrcweir		  <td class="cell80">If you want to display stock charts for certain
599cdf0e10cSrcweir		  companies, you can open up your browser every day, go to a search engine,
600cdf0e10cSrcweir		  look up the quote and copy it by hand into a table. Or you can use a
601cdf0e10cSrcweir		  program that does all this automatically. The following example relies on
602cdf0e10cSrcweir		  the sheet module. It uses URLs to obtain the current stock quotes. The
603cdf0e10cSrcweir		  quotes are displayed in sheets, one for each company. We show a line
604cdf0e10cSrcweir		  diagram and the numerical values for this company on every sheet. The
605cdf0e10cSrcweir		  functionality is hidden in the three subroutines <code>GetValue()</code>,
606cdf0e10cSrcweir		  <code>UpdateValue()</code>, and <code>UpdateChart()</code>.</td>
607cdf0e10cSrcweir		  </tr>
608cdf0e10cSrcweir		  <tr>
609ef1ef8e6SJü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>
610cdf0e10cSrcweir		  <td class="cell80">The example document Burger Factory offers some forms
611cdf0e10cSrcweir		  and controls, which you can use to order your desired burger type,
612cdf0e10cSrcweir		  beverage, topping, and sauce. By hitting the button
613cdf0e10cSrcweir		  &quot;Order now!&quot;, your order will be placed.</td>
614cdf0e10cSrcweir		  </tr>
615cdf0e10cSrcweir		  <tbody>
616cdf0e10cSrcweir		  </table>
617cdf0e10cSrcweir		  </td>
618cdf0e10cSrcweir		</tr>
619cdf0e10cSrcweir        <tr>
620cdf0e10cSrcweir          <td>
621cdf0e10cSrcweir          <table class="table3">
622cdf0e10cSrcweir		  <tr>
623cdf0e10cSrcweir		  <td  colspan="3">
6242f8a5df7SMatthias Seidel		  Additional information: <a href="https://wiki.openoffice.org/wiki/Documentation/DevGuide/ProUNO/Basic/OpenOffice.org_Basic" title="link to the &quot;Apache OpenOffice Basic language binding&quot; chapter in the Developer's Guide">Apache OpenOffice Basic language binding</a>
625cdf0e10cSrcweir		  </td>
626cdf0e10cSrcweir		  </tr>
627cdf0e10cSrcweir		  </table>
628cdf0e10cSrcweir          </td>
629cdf0e10cSrcweir        </tr>
630cdf0e10cSrcweir		</table>
631cdf0e10cSrcweir    </td>
632cdf0e10cSrcweir    <td class="content1"><img class="nothing8" src="../docs/images/nada.gif"></td>
633cdf0e10cSrcweir  </tr>
634cdf0e10cSrcweir  <tr>
635cdf0e10cSrcweir    <td colspan="3"><img class="line" src="../docs/images/sdk_line-1.gif"></td>
636cdf0e10cSrcweir  </tr>
637cdf0e10cSrcweir  <tr>
638cdf0e10cSrcweir    <td class="content1"><img class="nothing8" src="../docs/images/nada.gif"></td>
639cdf0e10cSrcweir    <td>
640cdf0e10cSrcweir      <table class="table2">
641cdf0e10cSrcweir        <tr>
642cdf0e10cSrcweir          <td>
643cdf0e10cSrcweir          <table class="table3">
644cdf0e10cSrcweir		  <tr>
6452f8a5df7SMatthias Seidel			<td colspan="2" class="head1"><a name="OLE_examples"></a>Object Linking and Embedding (OLE) examples</td>
646cdf0e10cSrcweir			<td align="right">
647cdf0e10cSrcweir		      <a href="#examples" title="link to the examples overview"><img class="navigate" src="../docs/images/nav_up.png"></a>
648cdf0e10cSrcweir		      <a href="../index.html" title="link to the SDK start page"><img class="navigate" src="../docs/images/nav_home.png"></a>
649cdf0e10cSrcweir		  </td>
650cdf0e10cSrcweir		  </tr>
651cdf0e10cSrcweir		  </table>
652cdf0e10cSrcweir          </td>
653cdf0e10cSrcweir        </tr>
654cdf0e10cSrcweir		<tr>
655cdf0e10cSrcweir		  <td>
656cdf0e10cSrcweir		  <table class="table4">
657cdf0e10cSrcweir		  <tbody>
658cdf0e10cSrcweir		  <tr class="thead">
659cdf0e10cSrcweir		  <td class="cell20">Example</td>
660cdf0e10cSrcweir		  <td class="cell80">Description</td>
661cdf0e10cSrcweir		  </tr>
662cdf0e10cSrcweir		  <tr>
663cdf0e10cSrcweir		  <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>
664cdf0e10cSrcweir		  <td class="cell80">The ActiveX control shows an example of access to UNO
665cdf0e10cSrcweir		  through COM technology. It requires a properly installed StarOffice
666cdf0e10cSrcweir		  version 6.0 or OpenOffice 1.0 or newer. This is a Lite ActiveX control
667cdf0e10cSrcweir		  so it can be used only in containers that allow the use of such controls.
668cdf0e10cSrcweir		  It can be activated with an &lt;OBJECT&gt; tag from a html-page to embed
669cdf0e10cSrcweir		  a document. Without any parameters a new writer document will be opened
670cdf0e10cSrcweir		  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>
671cdf0e10cSrcweir		  Note: This example works only under windows and if you don't use the MS
672cdf0e10cSrcweir		  .Net C++ compiler please check the makefile and take notice of the
673cdf0e10cSrcweir		  comments.</td>
674cdf0e10cSrcweir		  </tr>
675cdf0e10cSrcweir		  <tr>
676cdf0e10cSrcweir		  <td class="cell20"><a href="OLE/vbscript/" title="link to the source directory of the VBScript example using the OLE bridge">WriterDemo</a></td>
677cdf0e10cSrcweir		  <td class="cell80">This Visual Basic Script creates an empty text
678cdf0e10cSrcweir		  document and inserts text, a table, and a text frame.</td>
679cdf0e10cSrcweir		  </tr>
680cdf0e10cSrcweir		  <tbody>
681cdf0e10cSrcweir		  </table>
682cdf0e10cSrcweir		  </td>
683cdf0e10cSrcweir		</tr>
684cdf0e10cSrcweir        <tr>
685cdf0e10cSrcweir          <td>
686cdf0e10cSrcweir          <table class="table3">
687cdf0e10cSrcweir		  <tr>
688cdf0e10cSrcweir		  <td  colspan="3">
68980295734SMatthias Seidel		  Additional information: <a href="https://wiki.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>
690cdf0e10cSrcweir		  </td>
691cdf0e10cSrcweir		  </tr>
692cdf0e10cSrcweir		  </table>
693cdf0e10cSrcweir          </td>
694cdf0e10cSrcweir        </tr>
695cdf0e10cSrcweir      </table>
696cdf0e10cSrcweir    </td>
697cdf0e10cSrcweir    <td class="content1"><img class="nothing8" src="../docs/images/nada.gif"></td>
698cdf0e10cSrcweir  </tr>
699cdf0e10cSrcweir  <tr>
700cdf0e10cSrcweir    <td colspan="3"><img class="line" src="../docs/images/sdk_line-1.gif"></td>
701cdf0e10cSrcweir  </tr>
702cdf0e10cSrcweir  <tr>
703cdf0e10cSrcweir    <td class="content1"><img class="nothing8" src="../docs/images/nada.gif"></td>
704cdf0e10cSrcweir    <td>
705cdf0e10cSrcweir      <table class="table2">
706cdf0e10cSrcweir        <tr>
707cdf0e10cSrcweir          <td>
708cdf0e10cSrcweir          <table class="table3">
709cdf0e10cSrcweir		  <tr>
7102f8a5df7SMatthias Seidel			<td colspan="2" class="head1"><a name="CLI_examples"></a>Common Language Infrastructure (CLI) examples</td>
711cdf0e10cSrcweir			<td align="right">
712cdf0e10cSrcweir		      <a href="#examples" title="link to the examples overview"><img class="navigate" src="../docs/images/nav_up.png"></a>
713cdf0e10cSrcweir		      <a href="../index.html" title="link to the SDK start page"><img class="navigate" src="../docs/images/nav_home.png"></a>
714cdf0e10cSrcweir		  </td>
715cdf0e10cSrcweir		  </tr>
716cdf0e10cSrcweir		  </table>
717cdf0e10cSrcweir          </td>
718cdf0e10cSrcweir        </tr>
719cdf0e10cSrcweir		<tr>
720cdf0e10cSrcweir		  <td>
721cdf0e10cSrcweir		  <table class="table4">
722cdf0e10cSrcweir		  <tbody>
723cdf0e10cSrcweir		  <tr class="thead">
724cdf0e10cSrcweir		  <td class="cell20">Example</td>
725cdf0e10cSrcweir		  <td class="cell80">Description</td>
726cdf0e10cSrcweir		  </tr>
727cdf0e10cSrcweir		  <tr>
728cdf0e10cSrcweir		  <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>
729cdf0e10cSrcweir		  <td class="cell80">This example is written in C# and shows how Spreadsheet
730cdf0e10cSrcweir		  documents are created and filled with content. This example actually
731cdf0e10cSrcweir		  consists of three separate executables, SpreadsheetSample.exe,
732cdf0e10cSrcweir		  GeneralTableSample.exe, ViewSample.exe.</td>
733cdf0e10cSrcweir		  </tr>
734cdf0e10cSrcweir		  <tr>
735cdf0e10cSrcweir		  <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>
736cdf0e10cSrcweir		  <td class="cell80">This example is written in VB.NET. It creates a text
737cdf0e10cSrcweir		  document and inserts text, a table, and a text frame.</td>
738cdf0e10cSrcweir		  </tr>
739cdf0e10cSrcweir		  <tbody>
740cdf0e10cSrcweir		  </table>
741cdf0e10cSrcweir		  </td>
742cdf0e10cSrcweir		</tr>
743cdf0e10cSrcweir        <tr>
744cdf0e10cSrcweir          <td>
745cdf0e10cSrcweir          <table class="table3">
746cdf0e10cSrcweir		  <tr>
747cdf0e10cSrcweir		  <td  colspan="3">
74880295734SMatthias Seidel		  Additional information: <a href="https://wiki.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>
749cdf0e10cSrcweir		  </td>
750cdf0e10cSrcweir		  </tr>
751cdf0e10cSrcweir		  </table>
752cdf0e10cSrcweir          </td>
753cdf0e10cSrcweir        </tr>
754cdf0e10cSrcweir      </table>
755cdf0e10cSrcweir    </td>
756cdf0e10cSrcweir    <td class="content1"><img class="nothing8" src="../docs/images/nada.gif"></td>
757cdf0e10cSrcweir  </tr>
758cdf0e10cSrcweir  <tr>
759cdf0e10cSrcweir    <td colspan="3"><img class="nothing30" src="../docs/images/nada.gif"></td>
760cdf0e10cSrcweir  </tr>
761cdf0e10cSrcweir  <tr>
762cdf0e10cSrcweir    <td colspan="3"><img class="line" src="../docs/images/sdk_line-1.gif"></td>
763cdf0e10cSrcweir  </tr>
764cdf0e10cSrcweir  <tr>
765cdf0e10cSrcweir    <td colspan="3">
766cdf0e10cSrcweir      <div class="centertext">
76764c3c3eeSMatthias Seidel	<p><img class="apachelogo" src="../docs/images/sdk-footer-logo.png" title="Apache Logo" alt="Apache Logo">
768*f0795d1bSmseidel            Copyright &copy; 2011-2024 The Apache Software Foundation, Licensed under the Apache License, Version 2.0. Apache, the Apache feather logo, Apache OpenOffice and OpenOffice.org are trademarks of The Apache Software Foundation. Other names may be trademarks of their respective owners.<p>
769cdf0e10cSrcweir      </div>
770cdf0e10cSrcweir    </td>
771cdf0e10cSrcweir  </tr>
772cdf0e10cSrcweir</table>
773cdf0e10cSrcweir<map name="Map">
774a02e2aebSMatthias Seidel  <area shape="rect" coords="25,100,385,25" href="https://www.openoffice.org">
775cdf0e10cSrcweir</map>
776cdf0e10cSrcweir</body>
777cdf0e10cSrcweir</html>
778