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