<tdwidth="24%"><ahref="http://api.openoffice.org/source/browse/api/odk/examples/basic/text/modifying_text_automatically/"target="_blank"><fontface="Times New Roman, serif">Changing
<tdwidth="24%"valign="top"><ahref="http://api.openoffice.org/source/browse/api/odk/examples/basic/text/modifying_text_automatically/"target="_blank"><fontface="Times New Roman, serif">Changing
Appearance</font></a></td>
Appearance</font></a></td>
<tdwidth="76%">To change the style used for certain words, you can
<tdwidth="76%"valign="top">To change the style used for certain words,
start with the following example. This code searches for the regular
you can start with the following example. This code searches for the
which stands for the text portion the followed by exactly one lowercase
which stands for the text portion the followed by exactly one lowercase
letter. All occurrences of these four letters are then changed to
letter. All occurrences of these four letters are then changed to
be displayed in bold characters. The same happens in the next part
be displayed in bold characters. The same happens in the next part
...
@@ -336,10 +433,10 @@
...
@@ -336,10 +433,10 @@
to italic. In order for this example to work, you must execute it
to italic. In order for this example to work, you must execute it
from an open text document.</td>
from an open text document.</td>
</tr>
</tr>
<tr>
<trbgcolor="#f0f0f0">
<tdwidth="24%"><ahref="http://api.openoffice.org/source/browse/api/odk/examples/basic/text/modifying_text_automatically/"target="_blank"><fontface="Times New Roman, serif">Replacing
<tdwidth="24%"valign="top"><ahref="http://api.openoffice.org/source/browse/api/odk/examples/basic/text/modifying_text_automatically/"target="_blank"><fontface="Times New Roman, serif">Replacing
Text</font></a></td>
Text</font></a></td>
<tdwidth="76%">
<tdwidth="76%"valign="top">
<p>If you regularly receive documents from other people for editing,
<p>If you regularly receive documents from other people for editing,
you might want to make sure that certain words are always written
you might want to make sure that certain words are always written
the same. The next example<br>
the same. The next example<br>
...
@@ -350,10 +447,10 @@
...
@@ -350,10 +447,10 @@
want to read the words from an external file.</p>
want to read the words from an external file.</p>
</td>
</td>
</tr>
</tr>
<tr>
<trbgcolor="#f0f0f0">
<tdwidth="24%"><ahref="http://api.openoffice.org/source/browse/api/odk/examples/basic/text/modifying_text_automatically/"target="_blank"><fontface="Times New Roman, serif">Using
<tdwidth="24%"valign="top"><ahref="http://api.openoffice.org/source/browse/api/odk/examples/basic/text/modifying_text_automatically/"target="_blank"><fontface="Times New Roman, serif">Using
Regular Expressions</font></a></td>
Regular Expressions</font></a></td>
<tdwidth="76%">
<tdwidth="76%"valign="top">
<p>Another application of automatic text modification is related to
<p>Another application of automatic text modification is related to
stylistic questions. Suppose your company’s policy is to avoid
stylistic questions. Suppose your company’s policy is to avoid
the use of certain words. You want to replace these words, but you
the use of certain words. You want to replace these words, but you
...
@@ -370,10 +467,10 @@
...
@@ -370,10 +467,10 @@
for the variants of the words (plural, adjective etc.).</p>
for the variants of the words (plural, adjective etc.).</p>
</td>
</td>
</tr>
</tr>
<tr>
<trbgcolor="#f0f0f0">
<tdwidth="24%"><ahref="http://api.openoffice.org/source/browse/api/odk/examples/basic/text/modifying_text_automatically/"target="_blank"><fontface="Times New Roman, serif">Inserting
<tdwidth="24%"valign="top"><ahref="http://api.openoffice.org/source/browse/api/odk/examples/basic/text/modifying_text_automatically/"target="_blank"><fontface="Times New Roman, serif">Inserting
Bookmarks</font></a></td>
Bookmarks</font></a></td>
<tdwidth="76%">
<tdwidth="76%"valign="top">
<p>The next example does something very similar. This time, however,
<p>The next example does something very similar. This time, however,
we do not<br>
we do not<br>
change the color of the words but insert a bookmark at each of them.
change the color of the words but insert a bookmark at each of them.
...
@@ -389,56 +486,82 @@
...
@@ -389,56 +486,82 @@
inserts this bookmark at the word.</p>
inserts this bookmark at the word.</p>
</td>
</td>
</tr>
</tr>
<tr>
<trbgcolor="#f0f0f0">
<tdwidth="24%"><ahref="http://api.openoffice.org/source/browse/api/odk/examples/basic/text/creating_an_index/"target="_blank"><fontface="Times New Roman, serif">Creating
<tdwidth="24%"valign="top"><ahref="http://api.openoffice.org/source/browse/api/odk/examples/basic/text/creating_an_index/"target="_blank"><fontface="Times New Roman, serif">Creating
an Index</font></a></td>
an Index</font></a></td>
<tdwidth="76%">Indices for text documents can be created manually in
<tdwidth="76%"valign="top">Indices for text documents can be created
StarWriter by clicking on the words that shall appear in the index.
manually in StarWriter by clicking on the words that shall appear
If the document is large or if you have to generate indices for several
in the index. If the document is large or if you have to generate
documents, this task should be automated.</td>
indices for several documents, this task should be automated.</td>
</tr>
</tr>
<tr>
<trbgcolor="#f0f0f0">
<tdwidth="24%"><ahref="http://api.openoffice.org/source/browse/api/odk/examples/basic/sheet/"target="_blank"><fontface="Times New Roman, serif">Adapting
<tdwidth="24%"valign="top"><ahref="http://api.openoffice.org/source/browse/api/odk/examples/basic/sheet/"target="_blank"><fontface="Times New Roman, serif">Adapting
to Euroland</font></a></td>
to Euroland</font></a></td>
<tdwidth="76%">Most of the member of the European Union will abandon
<tdwidth="76%"valign="top">Most of the member of the European Union
their old currency in favor of the new Euro in 2001. This requires
will abandon their old currency in favor of the new Euro in 2001.
modifications to all programs using the old currencies. Since the
This requires modifications to all programs using the old currencies.
exchange rates for the old currencies have been fixed at the end of
Since the exchange rates for the old currencies have been fixed at
1999, one can already convert old data. The following program does
the end of 1999, one can already convert old data. The following program
this for all values in a table that are formatted with the currency
does this for all values in a table that are formatted with the currency
string DM.</td>
string DM.</td>
</tr>
</tr>
<tr>
<trbgcolor="#f0f0f0">
<tdwidth="24%"><ahref="http://api.openoffice.org/source/browse/api/odk/examples/basic/drawing/"target="_blank"><fontface="Times New Roman, serif">Import/Export
<tdwidth="24%"valign="top"><ahref="http://api.openoffice.org/source/browse/api/odk/examples/basic/drawing/"target="_blank"><fontface="Times New Roman, serif">Import/Export
of ASCII Files</font></a></td>
of ASCII Files</font></a></td>
<tdwidth="76%">You can use the drawing facilities of StarOffice API
<tdwidth="76%"valign="top">You can use the drawing facilities of StarOffice
to generate a picture from ASCII input. One application would be a
API to generate a picture from ASCII input. One application would
hierarchical representation of a directory listing, based on textual
be a hierarchical representation of a directory listing, based on
data.</td>
textual data.</td>
</tr>
</tr>
<tr>
<trbgcolor="#f0f0f0">
<tdwidth="24%"><ahref="http://api.openoffice.org/source/browse/api/odk/examples/basic/stock_quotes_updater/"target="_blank"><fontface="Times New Roman, serif">Stock
<tdwidth="24%"valign="top"><ahref="http://api.openoffice.org/source/browse/api/odk/examples/basic/stock_quotes_updater/"target="_blank"><fontface="Times New Roman, serif">Stock
Quotes Updater</font></a></td>
Quotes Updater</font></a></td>
<tdwidth="76%">If you want to display stock charts for certain companies,
<tdwidth="76%"valign="top">If you want to display stock charts for
you can fire up your browser every day, go to Yahoo, look up the quote
certain companies, you can fire up your browser every day, go to Yahoo,
and copy it by hand into a table. Or you can use a program that does
look up the quote and copy it by hand into a table. Or you can use
all this automatically. The following example relies on the sheet
a program that does all this automatically. The following example
module. It uses URLs to obtain the current stock quotes. The quotes
relies on the sheet module. It uses URLs to obtain the current stock
are displayed in sheets, one for each company. We show a line diagram
quotes. The quotes are displayed in sheets, one for each company.
and the numerical values for this company on every sheet. The functionality
We show a line diagram and the numerical values for this company on
is hidden in the three subroutines <fontface="Courier New, Courier, mono">GetValue()</font>,
every sheet. The functionality is hidden in the three subroutines
<fontface="Courier New, Courier, mono">UpdateValue()</font>, and
and <fontface="Courier New, Courier, mono">UpdateChart()</font>.</td>
</tr>
</tr>
<tr>
<trbgcolor="#f0f0f0">
<tdwidth="24%"><ahref="http://api.openoffice.org/source/browse/api/odk/examples/basic/forms_and_controls/"target="_blank"><fontface="Times New Roman, serif">Forms
<tdwidth="24%"valign="top"><ahref="http://api.openoffice.org/source/browse/api/odk/examples/basic/forms_and_controls/"target="_blank"><fontface="Times New Roman, serif">Forms
and Controls</font></a></td>
and Controls</font></a></td>
<tdwidth="76%">The example document Burger Factory offers you some
<tdwidth="76%"valign="top">The example document Burger Factory offers
forms and controls, which you can use to order your desired burger
you some forms and controls, which you can use to order your desired
type, beverage, topping, and sauce. By hitting the button "Order
burger type, beverage, topping, and sauce. By hitting the button "Order