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