examples.html (cdf0e10c) examples.html (ef1ef8e6)
1<html>
2<head>
1<html>
2<head>
3 <title>OpenOffice.org %PRODUCT_RELEASE% SDK - Examples</title>
3 <title>Apache OpenOffice %PRODUCT_RELEASE% SDK - Examples</title>
4 <link rel="stylesheet" type="text/css" href="../docs/sdk_styles.css">
5 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
6 <meta name="author" content="J&uuml;rgen Schmidt">
7 <meta name="created" content="2004-12-14">
8</head>
9
10<body class="sdkbody"><a name="examples"/>
11<table class="table1" cellpadding=0>

--- 21 unchanged lines hidden (view full) ---

33 </td>
34 </tr>
35 <tr>
36 <td>
37 <table class="table3">
38 <tr>
39 <td colspan="3">
40 <p>The SDK provides a rich set of examples in different programming
4 <link rel="stylesheet" type="text/css" href="../docs/sdk_styles.css">
5 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
6 <meta name="author" content="J&uuml;rgen Schmidt">
7 <meta name="created" content="2004-12-14">
8</head>
9
10<body class="sdkbody"><a name="examples"/>
11<table class="table1" cellpadding=0>

--- 21 unchanged lines hidden (view full) ---

33 </td>
34 </tr>
35 <tr>
36 <td>
37 <table class="table3">
38 <tr>
39 <td colspan="3">
40 <p>The SDK provides a rich set of examples in different programming
41 languages (Java, C++, OpenOffice.org %PRODUCT_RELEASE% Basic, OLE) to illustrate the use
41 languages (Java, C++, Apache OpenOffice %PRODUCT_RELEASE% Basic, OLE) to illustrate the use
42 of the API and demonstrate how to benefit from the included word
43 processor, spreadsheet, presentation software, graphics program and
42 of the API and demonstrate how to benefit from the included word
43 processor, spreadsheet, presentation software, graphics program and
44 database of OpenOffice.org %PRODUCT_RELEASE%.<br>
44 database of Apache OpenOffice %PRODUCT_RELEASE%.<br>
45 Some fo the examples need a running office instance listening on a
46 port. If this is necessary you will get further information in the
47 makefiles.</p>
48 <p>Every makefile contains at least one run target to execute an
49 running example, please see the makefile output in the different
50 example directories. Some of the examples which create a component have
51 no run target. In these cases a document is provided which instantiates
52 and runs the component (see the makefile output). Also the Basic

--- 25 unchanged lines hidden (view full) ---

78 <tr valign="top">
79 <td class="content3"><img src="../docs/images/arrow-1.gif"></td>
80 <td><a href="#Cpp_examples" title="link to the C++ examples section">C++ examples</a></td>
81 <td class="content75">Small set of examples which shows the use of
82 the API from C++.</td>
83 </tr>
84 <tr valign="top">
85 <td class="content3"><img src="../docs/images/arrow-1.gif"></td>
45 Some fo the examples need a running office instance listening on a
46 port. If this is necessary you will get further information in the
47 makefiles.</p>
48 <p>Every makefile contains at least one run target to execute an
49 running example, please see the makefile output in the different
50 example directories. Some of the examples which create a component have
51 no run target. In these cases a document is provided which instantiates
52 and runs the component (see the makefile output). Also the Basic

--- 25 unchanged lines hidden (view full) ---

78 <tr valign="top">
79 <td class="content3"><img src="../docs/images/arrow-1.gif"></td>
80 <td><a href="#Cpp_examples" title="link to the C++ examples section">C++ examples</a></td>
81 <td class="content75">Small set of examples which shows the use of
82 the API from C++.</td>
83 </tr>
84 <tr valign="top">
85 <td class="content3"><img src="../docs/images/arrow-1.gif"></td>
86 <td><a href="#Basic_examples" title="link to the OpenOffice.org %PRODUCT_RELEASE% Basic examples section">OpenOffice.org %PRODUCT_RELEASE% Basic examples</a></td>
86 <td><a href="#Basic_examples" title="link to the Apache OpenOffice %PRODUCT_RELEASE% Basic examples section">Apache OpenOffice %PRODUCT_RELEASE% Basic examples</a></td>
87 <td class="content75">Small set of examples which shows the use of
87 <td class="content75">Small set of examples which shows the use of
88 the API from OpenOffice.org %PRODUCT_RELEASE% Basic.</td>
88 the API from Apache OpenOffice %PRODUCT_RELEASE% Basic.</td>
89 </tr>
90 <tr valign="top">
91 <td class="content3"><img src="../docs/images/arrow-1.gif"></td>
92 <td><a href="#OLE_examples" title="link to the OLE examples section">Object Linking and Embedding (OLE) examples</a></td>
93 <td class="content75">Examples which show the use of the API from
94 OLE.</td>
95 </tr>
96 <tr valign="top">

--- 88 unchanged lines hidden (view full) ---

185 <tr>
186 <td class="cell20"><a href="java/Text/" title="link to the source directory of the Java Text examples">GraphicsInserter</a></td>
187 <td class="cell80">The GraphicsInserter creates a graphics object on an
188 empty text document by setting its position, width, height, and URL.</td>
189 </tr>
190 <tr>
191 <td class="cell20"><a href="java/Text/" title="link to the source directory of the Java Text examples">WriterSelector</a></td>
192 <td class="cell80">This class gives you information on the selected
89 </tr>
90 <tr valign="top">
91 <td class="content3"><img src="../docs/images/arrow-1.gif"></td>
92 <td><a href="#OLE_examples" title="link to the OLE examples section">Object Linking and Embedding (OLE) examples</a></td>
93 <td class="content75">Examples which show the use of the API from
94 OLE.</td>
95 </tr>
96 <tr valign="top">

--- 88 unchanged lines hidden (view full) ---

185 <tr>
186 <td class="cell20"><a href="java/Text/" title="link to the source directory of the Java Text examples">GraphicsInserter</a></td>
187 <td class="cell80">The GraphicsInserter creates a graphics object on an
188 empty text document by setting its position, width, height, and URL.</td>
189 </tr>
190 <tr>
191 <td class="cell20"><a href="java/Text/" title="link to the source directory of the Java Text examples">WriterSelector</a></td>
192 <td class="cell80">This class gives you information on the selected
193 objects (text range, text frame, or graphics) at an OpenOffice.org
193 objects (text range, text frame, or graphics) at an Apache OpenOffice
194 Server.</td>
195 </tr>
196 <tbody>
197 </table>
198 </td>
199 </tr>
200 <tr>
201 <td>

--- 7 unchanged lines hidden (view full) ---

209 <td class="cell20"><a href="java/Spreadsheet/" title="link to the source directory of the Java Spreadsheet examples">CalcAddins</a></td>
210 <td class="cell80">This component adds new functions to the spreadsheet
211 application. After registering the component, the inserted functions can
212 be found with help of the functions autopilot. The new functions are
213 assigned to the category <i>Add-in</i>.</td>
214 </tr>
215 <tr>
216 <td class="cell20"><a href="java/Spreadsheet/" title="link to the source directory of the Java Spreadsheet examples">ChartTypeChange</a></td>
194 Server.</td>
195 </tr>
196 <tbody>
197 </table>
198 </td>
199 </tr>
200 <tr>
201 <td>

--- 7 unchanged lines hidden (view full) ---

209 <td class="cell20"><a href="java/Spreadsheet/" title="link to the source directory of the Java Spreadsheet examples">CalcAddins</a></td>
210 <td class="cell80">This component adds new functions to the spreadsheet
211 application. After registering the component, the inserted functions can
212 be found with help of the functions autopilot. The new functions are
213 assigned to the category <i>Add-in</i>.</td>
214 </tr>
215 <tr>
216 <td class="cell20"><a href="java/Spreadsheet/" title="link to the source directory of the Java Spreadsheet examples">ChartTypeChange</a></td>
217 <td class="cell80">This class loads an OpenOffice.org %PRODUCT_RELEASE% Calc document and
217 <td class="cell80">This class loads an Apache OpenOffice %PRODUCT_RELEASE% Calc document and
218 changes the type of the embedded chart.</td>
219 </tr>
220 <tr>
221 <td class="cell20"><a href="java/Spreadsheet/" title="link to the source directory of the Java Spreadsheet examples">EuroAdaption</a></td>
222 <td class="cell80">The application connects to the office server and gets
223 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
224 example text, sets the number format to DM, changes the number format to
225 EUR (Euro), and uses the DM/EUR factor on each cell with content.</td>

--- 67 unchanged lines hidden (view full) ---

293 <tr class="thead">
294 <td class="cell20">UNO Component Examples</td>
295 <td class="cell80">Description</td>
296 </tr>
297 <tr>
298 <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>
299 <td class="cell80">The Object Inspector is primarily an auxiliary tool
300 for the developer, which can present information about an object of the
218 changes the type of the embedded chart.</td>
219 </tr>
220 <tr>
221 <td class="cell20"><a href="java/Spreadsheet/" title="link to the source directory of the Java Spreadsheet examples">EuroAdaption</a></td>
222 <td class="cell80">The application connects to the office server and gets
223 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
224 example text, sets the number format to DM, changes the number format to
225 EUR (Euro), and uses the DM/EUR factor on each cell with content.</td>

--- 67 unchanged lines hidden (view full) ---

293 <tr class="thead">
294 <td class="cell20">UNO Component Examples</td>
295 <td class="cell80">Description</td>
296 </tr>
297 <tr>
298 <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>
299 <td class="cell80">The Object Inspector is primarily an auxiliary tool
300 for the developer, which can present information about an object of the
301 OpenOffice.org %PRODUCT_RELEASE% API at run-time. Depending on the object to be inspected,
301 Apache OpenOffice %PRODUCT_RELEASE% API at run-time. Depending on the object to be inspected,
302 appropriate methods, interfaces, services, and attributes can be displayed
303 to the developer. The methods, interfaces, services and attributes are
304 represented in a predictable tree. If the attributes contained in an
305 object are to be examined, the appropriate nodes in the tree can be
306 expanded with the help of the mouse. For each non primitive object, five
307 categories are offered to the user, as long as those are available with
308 that object. The Object Inspector is currently available as a NetBeans project
309 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>

--- 145 unchanged lines hidden (view full) ---

455 <tr>
456 <td class="content1"><img class="nothing8" src="../docs/images/nada.gif"></td>
457 <td>
458 <table class="table2">
459 <tr>
460 <td>
461 <table class="table3">
462 <tr>
302 appropriate methods, interfaces, services, and attributes can be displayed
303 to the developer. The methods, interfaces, services and attributes are
304 represented in a predictable tree. If the attributes contained in an
305 object are to be examined, the appropriate nodes in the tree can be
306 expanded with the help of the mouse. For each non primitive object, five
307 categories are offered to the user, as long as those are available with
308 that object. The Object Inspector is currently available as a NetBeans project
309 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>

--- 145 unchanged lines hidden (view full) ---

455 <tr>
456 <td class="content1"><img class="nothing8" src="../docs/images/nada.gif"></td>
457 <td>
458 <table class="table2">
459 <tr>
460 <td>
461 <table class="table3">
462 <tr>
463 <td colspan="2" class="head1"><a name="Basic_examples">OpenOffice.org %PRODUCT_RELEASE% Basic examples</td>
463 <td colspan="2" class="head1"><a name="Basic_examples">Apache OpenOffice %PRODUCT_RELEASE% Basic examples</td>
464 <td align="right">
465 <a href="#examples" title="link to the examples overview"><img class="navigate" src="../docs/images/nav_up.png"></a>
466 <a href="../index.html" title="link to the SDK start page"><img class="navigate" src="../docs/images/nav_home.png"></a>
467 </td>
468 </tr>
469 <tr>
470 <td colspan="3">
464 <td align="right">
465 <a href="#examples" title="link to the examples overview"><img class="navigate" src="../docs/images/nav_up.png"></a>
466 <a href="../index.html" title="link to the SDK start page"><img class="navigate" src="../docs/images/nav_home.png"></a>
467 </td>
468 </tr>
469 <tr>
470 <td colspan="3">
471 <p>The example programs are embedded in OpenOffice.org %PRODUCT_RELEASE% documents in the
472 samples directory. To view or edit the OpenOffice.org %PRODUCT_RELEASE% Basic source,
471 <p>The example programs are embedded in Apache OpenOffice %PRODUCT_RELEASE% documents in the
472 samples directory. To view or edit the Apache OpenOffice %PRODUCT_RELEASE% Basic source,
473 select the appropriate document and then select Tools-&gt;Macro.</p>
474 <p>Most of the examples are stand-alone, but two of them (Creating an
475 Index and Import/Export of ASCII Files) have an associated data file
476 identified by a .txt file name suffix).</p>
477 <p>Some of the examples are also available in Java, you can find them in
478 the <a href="#Java_examples" title="link to the Java examples section">
479 Java section</a>.</p>
480 </td>

--- 5 unchanged lines hidden (view full) ---

486 <td>
487 <table class="table4">
488 <tbody>
489 <tr class="thead">
490 <td class="cell20">Example</td>
491 <td class="cell80">Description</td>
492 </tr>
493 <tr>
473 select the appropriate document and then select Tools-&gt;Macro.</p>
474 <p>Most of the examples are stand-alone, but two of them (Creating an
475 Index and Import/Export of ASCII Files) have an associated data file
476 identified by a .txt file name suffix).</p>
477 <p>Some of the examples are also available in Java, you can find them in
478 the <a href="#Java_examples" title="link to the Java examples section">
479 Java section</a>.</p>
480 </td>

--- 5 unchanged lines hidden (view full) ---

486 <td>
487 <table class="table4">
488 <tbody>
489 <tr class="thead">
490 <td class="cell20">Example</td>
491 <td class="cell80">Description</td>
492 </tr>
493 <tr>
494 <td class="cell20"><a href="basic/text/modifying_text_automatically/" title="link to the source directory of the OpenOffice.org %PRODUCT_RELEASE% Basic text/modifying_text_automatically examples">Changing Appearance</a></td>
494 <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>
495 <td class="cell80"> To change the style used for certain words, you can
496 start with the following example. This code searches for the regular
497 expression <code>the[a-z]</code>, which stands for the text portion the
498 followed by exactly one lowercase letter. All occurrences of these four
499 letters are then changed to bold characters. The same happens in the next
500 part of the program, this time changing the appearance of
501 <code>all[a-z]</code> to italic. In order for this example to work, you
502 must execute it from an open text document.</td>
503 </tr>
504 <tr>
495 <td class="cell80"> To change the style used for certain words, you can
496 start with the following example. This code searches for the regular
497 expression <code>the[a-z]</code>, which stands for the text portion the
498 followed by exactly one lowercase letter. All occurrences of these four
499 letters are then changed to bold characters. The same happens in the next
500 part of the program, this time changing the appearance of
501 <code>all[a-z]</code> to italic. In order for this example to work, you
502 must execute it from an open text document.</td>
503 </tr>
504 <tr>
505 <td class="cell20"><a href="basic/text/modifying_text_automatically/" title="link to the source directory of the OpenOffice.org %PRODUCT_RELEASE% Basic text/modifying_text_automatically examples">Replacing Text</a></td>
505 <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>
506 <td class="cell80">If you regularly receive documents from other people
507 for editing, you might want to make sure that certain words are always
508 written the same. The next example illustrates this by forcing certain
509 words to be spelled in American English.<br>
510 In order for this example to work, you must execute it from an open text
511 document. For a real world application, it is a good idea to read the
512 words from an external file.</td>
513 </tr>
514 <tr>
506 <td class="cell80">If you regularly receive documents from other people
507 for editing, you might want to make sure that certain words are always
508 written the same. The next example illustrates this by forcing certain
509 words to be spelled in American English.<br>
510 In order for this example to work, you must execute it from an open text
511 document. For a real world application, it is a good idea to read the
512 words from an external file.</td>
513 </tr>
514 <tr>
515 <td class="cell20"><a href="basic/text/modifying_text_automatically/" title="link to the source directory of the OpenOffice.org %PRODUCT_RELEASE% Basic text/modifying_text_automatically examples">Using Regular Expressions</a></td>
515 <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>
516 <td class="cell80">Another application of automatic text modification is
517 related to stylistic questions. Suppose your company&#146;s policy is to
518 avoid the use of certain words. You want to replace these words, but you
519 cannot do that automatically because you have to find the appropriate
520 replacement, which depends on the context. So instead of deleting or
521 replacing the offending words automatically, you change their color to
522 make them stand out during a subsequent manual review process.<br>
523 The following example handles two kinds of unwanted wordings: those
524 which are absolutely forbidden and must be replaced by something else,
525 and those which are considered bad style. A subroutine is responsible
526 for the changes. It can be used to make all words in a list appear in a
527 certain color in the text document. To keep the lists short, we use
528 regular expressions which provide for the variants of the words
529 (plural, adjective etc.).</td>
530 </tr>
531 <tr>
516 <td class="cell80">Another application of automatic text modification is
517 related to stylistic questions. Suppose your company&#146;s policy is to
518 avoid the use of certain words. You want to replace these words, but you
519 cannot do that automatically because you have to find the appropriate
520 replacement, which depends on the context. So instead of deleting or
521 replacing the offending words automatically, you change their color to
522 make them stand out during a subsequent manual review process.<br>
523 The following example handles two kinds of unwanted wordings: those
524 which are absolutely forbidden and must be replaced by something else,
525 and those which are considered bad style. A subroutine is responsible
526 for the changes. It can be used to make all words in a list appear in a
527 certain color in the text document. To keep the lists short, we use
528 regular expressions which provide for the variants of the words
529 (plural, adjective etc.).</td>
530 </tr>
531 <tr>
532 <td class="cell20"><a href="basic/text/modifying_text_automatically/" title="link to the source directory of the OpenOffice.org %PRODUCT_RELEASE% Basic text/modifying_text_automatically examples">Inserting Bookmarks</a></td>
532 <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>
533 <td class="cell80">
534 <p>The next example does something very similar. This time, however, we
535 do not change the color of the words but insert a bookmark at each of
536 them. You can thus use the StarOffice navigator to jump directly from
537 word to word. Bookmarks must first be created using
538 <code>createInstance()</code>. They are then inserted with
539 <code>insertTextContent()</code> at the current text range.</p>
540 <p>The main difference to the preceding example is the For loop in
541 <code>markList()</code>. Instead of changing the color of the current
542 word, it creates a new bookmark, oBookmark, whose name is the current
543 word with an integer appended. It then inserts this bookmark at the
544 word.</td>
545 </tr>
546 <tr>
533 <td class="cell80">
534 <p>The next example does something very similar. This time, however, we
535 do not change the color of the words but insert a bookmark at each of
536 them. You can thus use the StarOffice navigator to jump directly from
537 word to word. Bookmarks must first be created using
538 <code>createInstance()</code>. They are then inserted with
539 <code>insertTextContent()</code> at the current text range.</p>
540 <p>The main difference to the preceding example is the For loop in
541 <code>markList()</code>. Instead of changing the color of the current
542 word, it creates a new bookmark, oBookmark, whose name is the current
543 word with an integer appended. It then inserts this bookmark at the
544 word.</td>
545 </tr>
546 <tr>
547 <td class="cell20"><a href="basic/text/creating_an_index/" title="link to the source directory of the OpenOffice.org %PRODUCT_RELEASE% Basic text/create_index example">Creating an Index</a></td>
547 <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>
548 <td class="cell80">Indices for text documents can be created manually in
548 <td class="cell80">Indices for text documents can be created manually in
549 OpenOffice.org %PRODUCT_RELEASE% Writer by clicking on the words that should appear in the
549 Apache OpenOffice %PRODUCT_RELEASE% Writer by clicking on the words that should appear in the
550 index. If the document is large, or if you have to generate indices for
551 several documents, this task should be automated.</td>
552 </tr>
553 <tr>
550 index. If the document is large, or if you have to generate indices for
551 several documents, this task should be automated.</td>
552 </tr>
553 <tr>
554 <td class="cell20"><a href="basic/sheet/" title="link to the source directory of the OpenOffice.org %PRODUCT_RELEASE% Basic sheet example">Adapting to Euroland</a></td>
554 <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>
555 <td class="cell80">Most of the members of the European Union will abandon
556 their old currency in favor of the new Euro in 2001. This requires
557 modifications to all programs using the old currencies. Since the exchange
558 rates for the old currencies have been fixed at the end of 1999, one can
559 already convert old data. The following program does this for all values
560 in a table that are formatted with the currency string DM.</td>
561 </tr>
562 <tr>
555 <td class="cell80">Most of the members of the European Union will abandon
556 their old currency in favor of the new Euro in 2001. This requires
557 modifications to all programs using the old currencies. Since the exchange
558 rates for the old currencies have been fixed at the end of 1999, one can
559 already convert old data. The following program does this for all values
560 in a table that are formatted with the currency string DM.</td>
561 </tr>
562 <tr>
563 <td class="cell20"><a href="basic/drawing/" title="link to the source directory of the OpenOffice.org %PRODUCT_RELEASE% Basic drawing example">Import/Export of ASCII Files</a></td>
563 <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>
564 <td class="cell80">You can use the drawing facilities of StarOffice API
565 to generate a picture from ASCII input. One application would be a
566 hierarchical representation of a directory listing, based on textual
567 data.</td>
568 </tr>
569 <tr>
564 <td class="cell80">You can use the drawing facilities of StarOffice API
565 to generate a picture from ASCII input. One application would be a
566 hierarchical representation of a directory listing, based on textual
567 data.</td>
568 </tr>
569 <tr>
570 <td class="cell20"><a href="basic/stock_quotes_updater/" title="link to the source directory of the OpenOffice.org %PRODUCT_RELEASE% Basic stock_quotes_updater example">Stock Quotes Updater</a></td>
570 <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>
571 <td class="cell80">If you want to display stock charts for certain
572 companies, you can open up your browser every day, go to a search engine,
573 look up the quote and copy it by hand into a table. Or you can use a
574 program that does all this automatically. The following example relies on
575 the sheet module. It uses URLs to obtain the current stock quotes. The
576 quotes are displayed in sheets, one for each company. We show a line
577 diagram and the numerical values for this company on every sheet. The
578 functionality is hidden in the three subroutines <code>GetValue()</code>,
579 <code>UpdateValue()</code>, and <code>UpdateChart()</code>.</td>
580 </tr>
581 <tr>
571 <td class="cell80">If you want to display stock charts for certain
572 companies, you can open up your browser every day, go to a search engine,
573 look up the quote and copy it by hand into a table. Or you can use a
574 program that does all this automatically. The following example relies on
575 the sheet module. It uses URLs to obtain the current stock quotes. The
576 quotes are displayed in sheets, one for each company. We show a line
577 diagram and the numerical values for this company on every sheet. The
578 functionality is hidden in the three subroutines <code>GetValue()</code>,
579 <code>UpdateValue()</code>, and <code>UpdateChart()</code>.</td>
580 </tr>
581 <tr>
582 <td class="cell20"><a href="basic/forms_and_controls/" title="link to the source directory of the OpenOffice.org %PRODUCT_RELEASE% Basic forms_and_controls example">Forms and Controls</a></td>
582 <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>
583 <td class="cell80">The example document Burger Factory offers some forms
584 and controls, which you can use to order your desired burger type,
585 beverage, topping, and sauce. By hitting the button
586 &quot;Order now!&quot;, your order will be placed.</td>
587 </tr>
588 <tbody>
589 </table>
590 </td>

--- 141 unchanged lines hidden (view full) ---

732 <td colspan="3"><img class="nothing30" src="../docs/images/nada.gif"></td>
733 </tr>
734 <tr>
735 <td colspan="3"><img class="line" src="../docs/images/sdk_line-1.gif"></td>
736 </tr>
737 <tr>
738 <td colspan="3">
739 <div class="centertext">
583 <td class="cell80">The example document Burger Factory offers some forms
584 and controls, which you can use to order your desired burger type,
585 beverage, topping, and sauce. By hitting the button
586 &quot;Order now!&quot;, your order will be placed.</td>
587 </tr>
588 <tbody>
589 </table>
590 </td>

--- 141 unchanged lines hidden (view full) ---

732 <td colspan="3"><img class="nothing30" src="../docs/images/nada.gif"></td>
733 </tr>
734 <tr>
735 <td colspan="3"><img class="line" src="../docs/images/sdk_line-1.gif"></td>
736 </tr>
737 <tr>
738 <td colspan="3">
739 <div class="centertext">
740 <p><img class="oraclelogo" src="../docs/images/odk-footer-logo.gif" title="Sponsored by Oracle" alt="Oracle Logo" />
741 Copyright &copy; 2010, Oracle and/or its affiliates. All rights reserved. Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.<p>
740 <p><img class="apachelogo" src="../docs/images/odk-footer-logo.gif" title="Apache Feather" alt="Apache Feather" />
741 Copyright &copy; 2011 The Apache Software Foundation, Licensed under the Apache License, Version 2.0. Apache, the Apache feather logo, Apache OpenOffice and OpenOfifce.org are trademarks of The Apache Software Foundation. Other names may be trademarks of their respective owners.<p>
742 </div>
743 </td>
744 </tr>
745</table>
746<map name="Map">
742 </div>
743 </td>
744 </tr>
745</table>
746<map name="Map">
747 <area shape="rect" coords="10,68,93,105" href="http://www.oracle.com">
747 <area shape="rect" coords="10,68,400,105" href="http://www.openoffice.org">
748</map>
749</body>
750</html>
748</map>
749</body>
750</html>