1*cdf0e10cSrcweir<html> 2*cdf0e10cSrcweir<head> 3*cdf0e10cSrcweir <title>OpenOffice.org %PRODUCT_RELEASE% SDK - Developer's Guide Examples</title> 4*cdf0e10cSrcweir <link rel="stylesheet" type="text/css" 5*cdf0e10cSrcweir href="../../docs/sdk_styles.css"> 6*cdf0e10cSrcweir <meta http-equiv="Content-Type" 7*cdf0e10cSrcweir content="text/html; charset=iso-8859-1"> 8*cdf0e10cSrcweir <meta name="author" content="Jürgen Schmidt"> 9*cdf0e10cSrcweir <meta name="created" content="2004-12-14"> 10*cdf0e10cSrcweir</head> 11*cdf0e10cSrcweir<body class="sdkbody"> 12*cdf0e10cSrcweir<a name="examples"></a> 13*cdf0e10cSrcweir<table class="table1" cellpadding="0"> 14*cdf0e10cSrcweir <tbody> 15*cdf0e10cSrcweir <tr style="background-image:url(../../docs/images/sdk_head-2.png); backgorund-position: bottom; "> 16*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> 17*cdf0e10cSrcweir </tr> 18*cdf0e10cSrcweir <tr> 19*cdf0e10cSrcweir <td colspan="3"><img class="nothing10" 20*cdf0e10cSrcweir src="../../docs/images/nada.gif"></td> 21*cdf0e10cSrcweir </tr> 22*cdf0e10cSrcweir <tr> 23*cdf0e10cSrcweir <td class="content1"><img class="nothing8" 24*cdf0e10cSrcweir src="../../docs/images/nada.gif"></td> 25*cdf0e10cSrcweir <td> 26*cdf0e10cSrcweir <table class="table2"> 27*cdf0e10cSrcweir <tbody> 28*cdf0e10cSrcweir <tr> 29*cdf0e10cSrcweir <td colspan="3"><img class="nothing1" 30*cdf0e10cSrcweir src="../../docs/images/nada.gif"></td> 31*cdf0e10cSrcweir </tr> 32*cdf0e10cSrcweir <tr> 33*cdf0e10cSrcweir <td> 34*cdf0e10cSrcweir <table class="table3"> 35*cdf0e10cSrcweir <tbody> 36*cdf0e10cSrcweir <tr> 37*cdf0e10cSrcweir <td colspan="2" class="head1">Developer's Guide 38*cdf0e10cSrcweirExamples</td> 39*cdf0e10cSrcweir <td align="right"> <a href="../examples.html" 40*cdf0e10cSrcweir title="link to the examples overview"><img class="navigate" 41*cdf0e10cSrcweir src="../../docs/images/nav_left.png"></a> <a href="../../index.html" 42*cdf0e10cSrcweir title="link to the SDK start page"><img class="navigate" 43*cdf0e10cSrcweir src="../../docs/images/nav_home.png"></a></td> 44*cdf0e10cSrcweir </tr> 45*cdf0e10cSrcweir </tbody> 46*cdf0e10cSrcweir </table> 47*cdf0e10cSrcweir </td> 48*cdf0e10cSrcweir </tr> 49*cdf0e10cSrcweir <tr> 50*cdf0e10cSrcweir <td> 51*cdf0e10cSrcweir <table class="table3"> 52*cdf0e10cSrcweir <tbody> 53*cdf0e10cSrcweir <tr> 54*cdf0e10cSrcweir <td colspan="3"> 55*cdf0e10cSrcweir <p>The <a 56*cdf0e10cSrcweir href="http://doc.services.openoffice.org/wiki/index.php/Documentation/DevGuide/OpenOffice.org_Developers_Guide" 57*cdf0e10cSrcweir title="link to the Developer's Guide in the Wiki">Developer's Guide</a> 58*cdf0e10cSrcweircomes with a wide range of examples from all application areas which 59*cdf0e10cSrcweirshows the use of the API in the context of the different functional 60*cdf0e10cSrcweirareas. Furthermore the examples can be used as a first starting point 61*cdf0e10cSrcweirto modify an existing example to their own needs.</p> 62*cdf0e10cSrcweir <p>Some fo the examples need a running office 63*cdf0e10cSrcweirinstance listening on a port. If this is necessary you will get further 64*cdf0e10cSrcweirinformation in the makefiles.</p> 65*cdf0e10cSrcweir <p>All examples marked with a <img 66*cdf0e10cSrcweir src="../../docs/images/bluball.gif"> are executable and be started 67*cdf0e10cSrcweirusing a run target in the makefile. The name of the binary (C++) can 68*cdf0e10cSrcweirdiffer compared to the source file, please see the run target in the 69*cdf0e10cSrcweirappropriate makefile. Some of the examples which create a component 70*cdf0e10cSrcweirhave no run target. In these cases a document is provided which 71*cdf0e10cSrcweirinstantiates and runs the component (see the makefile output). Also the 72*cdf0e10cSrcweirBasic examples provide documents which use and shows the implemented 73*cdf0e10cSrcweirfunctionality. The database and forms examples need a running database, 74*cdf0e10cSrcweirplease see the description below. But note that is not described in 75*cdf0e10cSrcweirdetail how to create a working data source (see the office help).</p> 76*cdf0e10cSrcweir </td> 77*cdf0e10cSrcweir </tr> 78*cdf0e10cSrcweir <tr> 79*cdf0e10cSrcweir <td><img class="line" 80*cdf0e10cSrcweir src="../../docs/images/sdk_line-1.gif"></td> 81*cdf0e10cSrcweir </tr> 82*cdf0e10cSrcweir </tbody> 83*cdf0e10cSrcweir </table> 84*cdf0e10cSrcweir </td> 85*cdf0e10cSrcweir </tr> 86*cdf0e10cSrcweir <tr> 87*cdf0e10cSrcweir <td> 88*cdf0e10cSrcweir <table class="table3"> 89*cdf0e10cSrcweir <tbody> 90*cdf0e10cSrcweir <tr valign="top"> 91*cdf0e10cSrcweir <td class="content3"><img 92*cdf0e10cSrcweir src="../../docs/images/arrow-1.gif"></td> 93*cdf0e10cSrcweir <td><a href="#FirstSteps" 94*cdf0e10cSrcweir title="link to the First Steps examples">First Steps</a></td> 95*cdf0e10cSrcweir <td class="content4"></td> 96*cdf0e10cSrcweir <td class="content3"><img 97*cdf0e10cSrcweir src="../../docs/images/arrow-1.gif"></td> 98*cdf0e10cSrcweir <td><a href="#ProfessionalUNO" 99*cdf0e10cSrcweir title="link to the Professional UNO examples">Professional UNO</a></td> 100*cdf0e10cSrcweir <td class="content10"></td> 101*cdf0e10cSrcweir <td class="content3"><img 102*cdf0e10cSrcweir src="../../docs/images/arrow-1.gif"></td> 103*cdf0e10cSrcweir <td><a href="#Components" 104*cdf0e10cSrcweir title="link to the Components examples">Writing UNO components</a></td> 105*cdf0e10cSrcweir </tr> 106*cdf0e10cSrcweir <tr valign="top"> 107*cdf0e10cSrcweir <td class="content3"><img 108*cdf0e10cSrcweir src="../../docs/images/arrow-1.gif"></td> 109*cdf0e10cSrcweir <td><a href="#OfficeDevelopment" 110*cdf0e10cSrcweir title="link to the Office Development examples">Office Development</a></td> 111*cdf0e10cSrcweir <td class="content4"></td> 112*cdf0e10cSrcweir <td class="content3"><img 113*cdf0e10cSrcweir src="../../docs/images/arrow-1.gif"></td> 114*cdf0e10cSrcweir <td><a href="#Text" title="link to the Text examples">Text 115*cdf0e10cSrcweirDocuments</a></td> 116*cdf0e10cSrcweir <td class="content10"></td> 117*cdf0e10cSrcweir <td class="content3"><img 118*cdf0e10cSrcweir src="../../docs/images/arrow-1.gif"></td> 119*cdf0e10cSrcweir <td><a href="#Spreadsheet" 120*cdf0e10cSrcweir title="link to the Spreadsheet examples">Spreadsheet Documents</a></td> 121*cdf0e10cSrcweir </tr> 122*cdf0e10cSrcweir <tr valign="top"> 123*cdf0e10cSrcweir <td class="content3"><img 124*cdf0e10cSrcweir src="../../docs/images/arrow-1.gif"></td> 125*cdf0e10cSrcweir <td><a href="#Drawing" 126*cdf0e10cSrcweir title="link to the Drawing And Presentation examples">Drawing and 127*cdf0e10cSrcweirPresentation Documents</a></td> 128*cdf0e10cSrcweir <td class="content4"></td> 129*cdf0e10cSrcweir <td class="content3"><img 130*cdf0e10cSrcweir src="../../docs/images/arrow-1.gif"></td> 131*cdf0e10cSrcweir <td><a href="#Charts" 132*cdf0e10cSrcweir title="link to the Charts examples">Charts</a></td> 133*cdf0e10cSrcweir <td class="content10"></td> 134*cdf0e10cSrcweir <td class="content3"><img 135*cdf0e10cSrcweir src="../../docs/images/arrow-1.gif"></td> 136*cdf0e10cSrcweir <td><a href="#BasicandDialogs" 137*cdf0e10cSrcweir title="link to the Basic And Dialogs examples">OpenOffice.org %PRODUCT_RELEASE% Basic and 138*cdf0e10cSrcweirDialogs</a></td> 139*cdf0e10cSrcweir </tr> 140*cdf0e10cSrcweir <tr valign="top"> 141*cdf0e10cSrcweir <td class="content3"><img 142*cdf0e10cSrcweir src="../../docs/images/arrow-1.gif"></td> 143*cdf0e10cSrcweir <td><a href="#Database" 144*cdf0e10cSrcweir title="link to the Database examples">Database Access</a></td> 145*cdf0e10cSrcweir <td class="content4"></td> 146*cdf0e10cSrcweir <td class="content3"><img 147*cdf0e10cSrcweir src="../../docs/images/arrow-1.gif"></td> 148*cdf0e10cSrcweir <td><a href="#Forms" 149*cdf0e10cSrcweir title="link to the Forms examples">Forms</a></td> 150*cdf0e10cSrcweir <td class="content10"></td> 151*cdf0e10cSrcweir <td class="content3"><img 152*cdf0e10cSrcweir src="../../docs/images/arrow-1.gif"></td> 153*cdf0e10cSrcweir <td><a href="#UniversalContentBroker%28UCB%29" 154*cdf0e10cSrcweir title="link to the Universal Content Broker examples">Universal 155*cdf0e10cSrcweirContent Broker (UCB)</a></td> 156*cdf0e10cSrcweir </tr> 157*cdf0e10cSrcweir <tr valign="top"> 158*cdf0e10cSrcweir <td class="content3"><img 159*cdf0e10cSrcweir src="../../docs/images/arrow-1.gif"></td> 160*cdf0e10cSrcweir <td><a href="#Configuration" 161*cdf0e10cSrcweir title="link to the Configuration examples">Configuration Management</a></td> 162*cdf0e10cSrcweir <td class="content4"></td> 163*cdf0e10cSrcweir <td class="content3"><img 164*cdf0e10cSrcweir src="../../docs/images/arrow-1.gif"></td> 165*cdf0e10cSrcweir <td><a href="#OfficeBean" 166*cdf0e10cSrcweir title="link to the OOoBean examples">Office Bean</a></td> 167*cdf0e10cSrcweir <td class="content10"></td> 168*cdf0e10cSrcweir <td class="content3"><img 169*cdf0e10cSrcweir src="../../docs/images/arrow-1.gif"></td> 170*cdf0e10cSrcweir <td><a href="#Accessibility" 171*cdf0e10cSrcweir title="link to the Accessibility examples">Accessibility</a></td> 172*cdf0e10cSrcweir </tr> 173*cdf0e10cSrcweir <td class="content3"><img 174*cdf0e10cSrcweir src="../../docs/images/arrow-1.gif"></td> 175*cdf0e10cSrcweir <td><a href="#ScriptingFramework" title="link to the Scripting Framework examples">Scripting Framework</a></td> 176*cdf0e10cSrcweir <td class="content4"></td> 177*cdf0e10cSrcweir <td class="content3"><img 178*cdf0e10cSrcweir src="../../docs/images/arrow-1.gif"></td> 179*cdf0e10cSrcweir <td><a href="#GraphicalUserInterfaces" title="link to the Graphical UserInterfaces examples">Graphical User Interfaces</a></td> 180*cdf0e10cSrcweir <td class="content10"></td> 181*cdf0e10cSrcweir <td class="content3"></td> 182*cdf0e10cSrcweir <td></td> 183*cdf0e10cSrcweir <tr> 184*cdf0e10cSrcweir </tr> 185*cdf0e10cSrcweir </tbody> 186*cdf0e10cSrcweir </table> 187*cdf0e10cSrcweir </td> 188*cdf0e10cSrcweir </tr> 189*cdf0e10cSrcweir </tbody> 190*cdf0e10cSrcweir </table> 191*cdf0e10cSrcweir </td> 192*cdf0e10cSrcweir <td class="content1"><img class="nothing8" 193*cdf0e10cSrcweir src="../../docs/images/nada.gif"></td> 194*cdf0e10cSrcweir </tr> 195*cdf0e10cSrcweir <tr> 196*cdf0e10cSrcweir <td colspan="3"><img class="line" 197*cdf0e10cSrcweir src="../../docs/images/sdk_line-1.gif"></td> 198*cdf0e10cSrcweir </tr> 199*cdf0e10cSrcweir <tr> 200*cdf0e10cSrcweir <td class="content1"><img class="nothing8" 201*cdf0e10cSrcweir src="../../docs/images/nada.gif"></td> 202*cdf0e10cSrcweir <td> 203*cdf0e10cSrcweir <table class="table2"> 204*cdf0e10cSrcweir <tbody> 205*cdf0e10cSrcweir <tr> 206*cdf0e10cSrcweir <td> 207*cdf0e10cSrcweir <table class="table3"> 208*cdf0e10cSrcweir <tbody> 209*cdf0e10cSrcweir <tr> 210*cdf0e10cSrcweir <td colspan="2" class="head1"><a name="FirstSteps">FirstSteps 211*cdf0e10cSrcweirexamples</a></td> 212*cdf0e10cSrcweir <td align="right"> <a href="#examples" 213*cdf0e10cSrcweir title="link to the Developer's Guide examples overview"><img 214*cdf0e10cSrcweir class="navigate" src="../../docs/images/nav_up.png"></a> <a 215*cdf0e10cSrcweir href="../../index.html" title="link to the SDK start page"><img 216*cdf0e10cSrcweir class="navigate" src="../../docs/images/nav_home.png"></a> </td> 217*cdf0e10cSrcweir </tr> 218*cdf0e10cSrcweir </tbody> 219*cdf0e10cSrcweir </table> 220*cdf0e10cSrcweir </td> 221*cdf0e10cSrcweir </tr> 222*cdf0e10cSrcweir <tr> 223*cdf0e10cSrcweir <td> 224*cdf0e10cSrcweir <table class="table4"> 225*cdf0e10cSrcweir <tbody> 226*cdf0e10cSrcweir <tr class="thead"> 227*cdf0e10cSrcweir <td class="cell20">Text Document Examples</td> 228*cdf0e10cSrcweir <td class="cell80">Description</td> 229*cdf0e10cSrcweir </tr> 230*cdf0e10cSrcweir <tr> 231*cdf0e10cSrcweir <td class="cell20"><img 232*cdf0e10cSrcweir src="../../docs/images/bluball.gif"> <a 233*cdf0e10cSrcweir href="./FirstSteps/FirstUnoContact.java" 234*cdf0e10cSrcweir title="link to FirstSteps/FirstUnoContact.java">FirstUnoContact</a></td> 235*cdf0e10cSrcweir <td class="cell80">Shows how to initialize UNO and 236*cdf0e10cSrcweirget a remote office service manager from a running OpenOffice.org %PRODUCT_RELEASE% in a 237*cdf0e10cSrcweirdifferent process space.</td> 238*cdf0e10cSrcweir </tr> 239*cdf0e10cSrcweir <tr> 240*cdf0e10cSrcweir <td class="cell20"><img 241*cdf0e10cSrcweir src="../../docs/images/bluball.gif"> <a 242*cdf0e10cSrcweir href="./FirstSteps/FirstLoadComponent.java" 243*cdf0e10cSrcweir title="link to FirstSteps/FirstLoadComponent.java">FirstLoadComponent</a></td> 244*cdf0e10cSrcweir <td class="cell80">Demonstrates how to load a 245*cdf0e10cSrcweircomponent into OpenOffice.org %PRODUCT_RELEASE% by a Java application.</td> 246*cdf0e10cSrcweir </tr> 247*cdf0e10cSrcweir <tr> 248*cdf0e10cSrcweir <td class="cell20"><img 249*cdf0e10cSrcweir src="../../docs/images/bluball.gif"> <a 250*cdf0e10cSrcweir href="./FirstSteps/HelloTextTableShape.java" 251*cdf0e10cSrcweir title="link to FirstSteps/HelloTextTableShape.java">HelloTextTableShape</a></td> 252*cdf0e10cSrcweir <td class="cell80">Performs some generic text and 253*cdf0e10cSrcweirshape operations on a text document, a spreadsheet document and a 254*cdf0e10cSrcweirdrawing document.</td> 255*cdf0e10cSrcweir </tr> 256*cdf0e10cSrcweir </tbody> 257*cdf0e10cSrcweir </table> 258*cdf0e10cSrcweir </td> 259*cdf0e10cSrcweir </tr> 260*cdf0e10cSrcweir </tbody> 261*cdf0e10cSrcweir </table> 262*cdf0e10cSrcweir </td> 263*cdf0e10cSrcweir <td class="content1"><img class="nothing8" 264*cdf0e10cSrcweir src="../../docs/images/nada.gif"></td> 265*cdf0e10cSrcweir </tr> 266*cdf0e10cSrcweir <tr> 267*cdf0e10cSrcweir <td colspan="3"><img class="line" 268*cdf0e10cSrcweir src="../../docs/images/sdk_line-1.gif"></td> 269*cdf0e10cSrcweir </tr> 270*cdf0e10cSrcweir <tr> 271*cdf0e10cSrcweir <td class="content1"><img class="nothing8" 272*cdf0e10cSrcweir src="../../docs/images/nada.gif"></td> 273*cdf0e10cSrcweir <td> 274*cdf0e10cSrcweir <table class="table2"> 275*cdf0e10cSrcweir <tbody> 276*cdf0e10cSrcweir <tr> 277*cdf0e10cSrcweir <td> 278*cdf0e10cSrcweir <table class="table3"> 279*cdf0e10cSrcweir <tbody> 280*cdf0e10cSrcweir <tr> 281*cdf0e10cSrcweir <td colspan="2" class="head1"><a 282*cdf0e10cSrcweir name="ProfessionalUNO">Professional UNO examples1</a></td> 283*cdf0e10cSrcweir <td align="right"> <a href="#examples" 284*cdf0e10cSrcweir title="link to the Developer's Guide examples overview"><img 285*cdf0e10cSrcweir class="navigate" src="../../docs/images/nav_up.png"></a> <a 286*cdf0e10cSrcweir href="../../index.html" title="link to the SDK start page"><img 287*cdf0e10cSrcweir class="navigate" src="../../docs/images/nav_home.png"></a> </td> 288*cdf0e10cSrcweir </tr> 289*cdf0e10cSrcweir </tbody> 290*cdf0e10cSrcweir </table> 291*cdf0e10cSrcweir </td> 292*cdf0e10cSrcweir </tr> 293*cdf0e10cSrcweir <tr> 294*cdf0e10cSrcweir <td> 295*cdf0e10cSrcweir <table class="table4"> 296*cdf0e10cSrcweir <tbody> 297*cdf0e10cSrcweir <tr class="thead"> 298*cdf0e10cSrcweir <td class="cell20">Lifetime Examples</td> 299*cdf0e10cSrcweir <td class="cell80">Description</td> 300*cdf0e10cSrcweir </tr> 301*cdf0e10cSrcweir <tr> 302*cdf0e10cSrcweir <td class="cell20"><img 303*cdf0e10cSrcweir src="../../docs/images/bluball.gif"> <a 304*cdf0e10cSrcweir href="./ProfUNO/Lifetime/MyUnoObject.java" 305*cdf0e10cSrcweir title="link to ProfUNO/Lifetime/MyUnoObject.java">MyUnoObject</a></td> 306*cdf0e10cSrcweir <td class="cell80">Shows that it depends on the 307*cdf0e10cSrcweirimplementation of the Java VM whether finalize() will be called or not.</td> 308*cdf0e10cSrcweir </tr> 309*cdf0e10cSrcweir <tr> 310*cdf0e10cSrcweir <td class="cell20"><img 311*cdf0e10cSrcweir src="../../docs/images/bluball.gif"> <a 312*cdf0e10cSrcweir href="./ProfUNO/Lifetime/object_lifetime.cxx" 313*cdf0e10cSrcweir title="link to ProfUNO/Lifetime/object_lifetime.java">object_lifetime.cxx 314*cdf0e10cSrcweir(ProfUnoLifetime)</a></td> 315*cdf0e10cSrcweir <td class="cell80">Shows the UNO reference counting 316*cdf0e10cSrcweirmechanism in C++.</td> 317*cdf0e10cSrcweir </tr> 318*cdf0e10cSrcweir </tbody> 319*cdf0e10cSrcweir </table> 320*cdf0e10cSrcweir </td> 321*cdf0e10cSrcweir </tr> 322*cdf0e10cSrcweir <tr> 323*cdf0e10cSrcweir <td> 324*cdf0e10cSrcweir <table class="table4"> 325*cdf0e10cSrcweir <tbody> 326*cdf0e10cSrcweir <tr class="thead"> 327*cdf0e10cSrcweir <td class="cell20">Interprocess Connection Example</td> 328*cdf0e10cSrcweir <td class="cell80">Description</td> 329*cdf0e10cSrcweir </tr> 330*cdf0e10cSrcweir <tr> 331*cdf0e10cSrcweir <td class="cell20"><img 332*cdf0e10cSrcweir src="../../docs/images/bluball.gif"> <a 333*cdf0e10cSrcweir href="./ProfUNO/InterprocessConn/ConnectionAwareClient.java" 334*cdf0e10cSrcweir title="link to ProfUNO/InterprocessConn/ConnectionAwareClient/.java">ConnectionAwareClient</a></td> 335*cdf0e10cSrcweir <td class="cell80">Implements a client which is aware 336*cdf0e10cSrcweirof losing connection to OpenOffice.org %PRODUCT_RELEASE%.</td> 337*cdf0e10cSrcweir </tr> 338*cdf0e10cSrcweir <tr> 339*cdf0e10cSrcweir <td class="cell20"><img 340*cdf0e10cSrcweir src="../../docs/images/bluball.gif"> <a 341*cdf0e10cSrcweir href="./ProfUNO/InterprocessConn/UrlResolver.java" 342*cdf0e10cSrcweir title="link to ProfUNO/InterProcessConn/UrlResolver.java">UrlResolver</a></td> 343*cdf0e10cSrcweir <td class="cell80">Builds a connection to 344*cdf0e10cSrcweirOpenOffice.org %PRODUCT_RELEASE% using the URL given on the command line. This example 345*cdf0e10cSrcweirshows the usage of <a 346*cdf0e10cSrcweir href="../../docs/common/ref/com/sun/star/bridge/XUnoUrlResolver.html" 347*cdf0e10cSrcweir title="link to the reference documentation of com.sun.star.bridge.XUnoResolver"><code>XUnoUrlResolver</code></a>.</td> 348*cdf0e10cSrcweir </tr> 349*cdf0e10cSrcweir </tbody> 350*cdf0e10cSrcweir </table> 351*cdf0e10cSrcweir </td> 352*cdf0e10cSrcweir </tr> 353*cdf0e10cSrcweir <tr> 354*cdf0e10cSrcweir <td> 355*cdf0e10cSrcweir <table class="table4"> 356*cdf0e10cSrcweir <tbody> 357*cdf0e10cSrcweir <tr class="thead"> 358*cdf0e10cSrcweir <td class="cell20">C++ Binding Examples</td> 359*cdf0e10cSrcweir <td class="cell80">Description</td> 360*cdf0e10cSrcweir </tr> 361*cdf0e10cSrcweir <tr> 362*cdf0e10cSrcweir <td class="cell20"><img 363*cdf0e10cSrcweir src="../../docs/images/bluball.gif"> <a 364*cdf0e10cSrcweir href="./ProfUNO/CppBinding/office_connect.cxx" 365*cdf0e10cSrcweir title="link to ProfUNO/CppBinding/office_connect.java">office_connect.cxx</a></td> 366*cdf0e10cSrcweir <td class="cell80">Builds a connection to 367*cdf0e10cSrcweirOpenOffice.org %PRODUCT_RELEASE% using C++.</td> 368*cdf0e10cSrcweir </tr> 369*cdf0e10cSrcweir <tr> 370*cdf0e10cSrcweir <td class="cell20"><img 371*cdf0e10cSrcweir src="../../docs/images/bluball.gif"> <a 372*cdf0e10cSrcweir href="./ProfUNO/CppBinding/string_samples.cxx" 373*cdf0e10cSrcweir title="link to ProfUNO/Cppbinding/string_samples.java">string_samples.cxx</a></td> 374*cdf0e10cSrcweir <td class="cell80">Demonstrates usage of RTL string 375*cdf0e10cSrcweirclasses <a href="../../docs/cpp/ref/names/rtl/c-OString.html" 376*cdf0e10cSrcweir title="link to the reference documentation of rtl::OString"><code>OString</code></a>, 377*cdf0e10cSrcweir <a href="../../docs/cpp/ref/names/rtl/c-OUString.html" 378*cdf0e10cSrcweir title="link to the reference documentation of rtl::OUString"><code>OUString</code></a> 379*cdf0e10cSrcweirand <a href="../../docs/cpp/ref/names/rtl/c-OUStringBuffer.html" 380*cdf0e10cSrcweir title="link to the reference documentation of rtl::OUStringBuffer"><code>OUStringBuffer</code></a>.</td> 381*cdf0e10cSrcweir </tr> 382*cdf0e10cSrcweir </tbody> 383*cdf0e10cSrcweir </table> 384*cdf0e10cSrcweir </td> 385*cdf0e10cSrcweir </tr> 386*cdf0e10cSrcweir <tr> 387*cdf0e10cSrcweir <td> 388*cdf0e10cSrcweir <table class="table4"> 389*cdf0e10cSrcweir <tbody> 390*cdf0e10cSrcweir <tr class="thead"> 391*cdf0e10cSrcweir <td class="cell20">SimpleBootstrap Java Example</td> 392*cdf0e10cSrcweir <td class="cell80">Description</td> 393*cdf0e10cSrcweir </tr> 394*cdf0e10cSrcweir <tr> 395*cdf0e10cSrcweir <td class="cell20"><img 396*cdf0e10cSrcweir src="../../docs/images/bluball.gif"> <a 397*cdf0e10cSrcweir href="./ProfUNO/SimpleBootstrap_java/SimpleBootstrap_java.java" 398*cdf0e10cSrcweir title="link to ProfUNO/SimpleBootstrap_java/SimpleBootstrap_java.java">SimpleBootstrap_java.java</a></td> 399*cdf0e10cSrcweir <td class="cell80">Shows the transparent use of 400*cdf0e10cSrcweiroffice UNO components from Java. The remote office component context is 401*cdf0e10cSrcweirobtained by using the <code>com.sun.star.comp.helper.Bootstrap.bootstrap()</code> 402*cdf0e10cSrcweirmethod, which bootstraps the component context from a UNO installation.</td> 403*cdf0e10cSrcweir </tr> 404*cdf0e10cSrcweir <tr> 405*cdf0e10cSrcweir <td class="cell20"><a 406*cdf0e10cSrcweir href="./ProfUNO/SimpleBootstrap_java/manifest.mf" 407*cdf0e10cSrcweir title="link to ProfUNO/SimpleBootstrap_java/manifest.mf"> manifest.mf</a></td> 408*cdf0e10cSrcweir <td class="cell80">Contains the additional manifest 409*cdf0e10cSrcweirfile entries.</td> 410*cdf0e10cSrcweir </tr> 411*cdf0e10cSrcweir </tbody> 412*cdf0e10cSrcweir </table> 413*cdf0e10cSrcweir </td> 414*cdf0e10cSrcweir </tr> 415*cdf0e10cSrcweir 416*cdf0e10cSrcweir <tr> 417*cdf0e10cSrcweir <td> 418*cdf0e10cSrcweir <table class="table4"> 419*cdf0e10cSrcweir <tbody> 420*cdf0e10cSrcweir <tr class="thead"> 421*cdf0e10cSrcweir <td class="cell20">SimpleBootstrap C++ Example</td> 422*cdf0e10cSrcweir <td class="cell80">Description</td> 423*cdf0e10cSrcweir </tr> 424*cdf0e10cSrcweir <tr> 425*cdf0e10cSrcweir <td class="cell20"><img 426*cdf0e10cSrcweir src="../../docs/images/bluball.gif"> <a 427*cdf0e10cSrcweir href="./ProfUNO/SimpleBootstrap_cpp/SimpleBootstrap_cpp.cxx" 428*cdf0e10cSrcweir title="link to ProfUNO/SimpleBootstrap_cpp/SimpleBootstrap_cpp.cxx">SimpleBootstrap_cpp.cxx</a></td> 429*cdf0e10cSrcweir <td class="cell80">Shows the transparent use of 430*cdf0e10cSrcweiroffice UNO components from C++. The remote office component context is 431*cdf0e10cSrcweirobtained by using the <code>::cppu::bootstrap()</code> function, which 432*cdf0e10cSrcweirbootstraps the component context from a UNO installation.</td> 433*cdf0e10cSrcweir </tr> 434*cdf0e10cSrcweir </tbody> 435*cdf0e10cSrcweir </table> 436*cdf0e10cSrcweir </td> 437*cdf0e10cSrcweir </tr> 438*cdf0e10cSrcweir <tr> 439*cdf0e10cSrcweir <td> 440*cdf0e10cSrcweir <table class="table4"> 441*cdf0e10cSrcweir <tbody> 442*cdf0e10cSrcweir <tr class="thead"> 443*cdf0e10cSrcweir <td class="cell20">Deployment Features</td> 444*cdf0e10cSrcweir <td class="cell80">Description</td> 445*cdf0e10cSrcweir </tr> 446*cdf0e10cSrcweir <tr> 447*cdf0e10cSrcweir <td class="cell20"> <a 448*cdf0e10cSrcweir href="./Components/SimpleLicense/description.xml" 449*cdf0e10cSrcweir title="link to Components/SimpleLicense/description.xml">description.xml</a></td> 450*cdf0e10cSrcweir <td class="cell80">Demonstrates how license files can be embedded, so that they are shown to the user during installation.</td> 451*cdf0e10cSrcweir </tr> 452*cdf0e10cSrcweir </tbody> 453*cdf0e10cSrcweir </table> 454*cdf0e10cSrcweir </td> 455*cdf0e10cSrcweir </tr> 456*cdf0e10cSrcweir 457*cdf0e10cSrcweir 458*cdf0e10cSrcweir </tbody> 459*cdf0e10cSrcweir </table> 460*cdf0e10cSrcweir </td> 461*cdf0e10cSrcweir <td class="content1"><img class="nothing8" 462*cdf0e10cSrcweir src="../../docs/images/nada.gif"></td> 463*cdf0e10cSrcweir </tr> 464*cdf0e10cSrcweir <tr> 465*cdf0e10cSrcweir <td class="content1"><img class="nothing8" 466*cdf0e10cSrcweir src="../../docs/images/nada.gif"></td> 467*cdf0e10cSrcweir <td> 468*cdf0e10cSrcweir <table class="table2"> 469*cdf0e10cSrcweir <tbody> 470*cdf0e10cSrcweir <tr> 471*cdf0e10cSrcweir <td> 472*cdf0e10cSrcweir <table class="table3"> 473*cdf0e10cSrcweir <tbody> 474*cdf0e10cSrcweir <tr> 475*cdf0e10cSrcweir <td colspan="2" class="head1"><a name="Components">Writing 476*cdf0e10cSrcweirUNO components examples</a></td> 477*cdf0e10cSrcweir <td align="right"> <a href="#examples" 478*cdf0e10cSrcweir title="link to the Developer's Guide examples overview"><img 479*cdf0e10cSrcweir class="navigate" src="../../docs/images/nav_up.png"></a> <a 480*cdf0e10cSrcweir href="../../index.html" title="link to the SDK start page"><img 481*cdf0e10cSrcweir class="navigate" src="../../docs/images/nav_home.png"></a> </td> 482*cdf0e10cSrcweir </tr> 483*cdf0e10cSrcweir </tbody> 484*cdf0e10cSrcweir </table> 485*cdf0e10cSrcweir </td> 486*cdf0e10cSrcweir </tr> 487*cdf0e10cSrcweir <tr> 488*cdf0e10cSrcweir <td> 489*cdf0e10cSrcweir <table class="table4"> 490*cdf0e10cSrcweir <tbody> 491*cdf0e10cSrcweir <tr class="thead"> 492*cdf0e10cSrcweir <td class="cell20">Jobs Addon Example</td> 493*cdf0e10cSrcweir <td class="cell80">Description</td> 494*cdf0e10cSrcweir </tr> 495*cdf0e10cSrcweir <tr> 496*cdf0e10cSrcweir <td class="cell20"><a 497*cdf0e10cSrcweir href="./Components/Addons/JobsAddon/AsyncJob.java" 498*cdf0e10cSrcweir title="link to Components/Addons/JobsAddon/AsyncJob.java">AsyncJob</a></td> 499*cdf0e10cSrcweir <td class="cell80">An java example showing how a job 500*cdf0e10cSrcweircan analyze the given arguments and how the environment can be 501*cdf0e10cSrcweirdetected, in which the job is executed.</td> 502*cdf0e10cSrcweir </tr> 503*cdf0e10cSrcweir <tr> 504*cdf0e10cSrcweir <td class="cell20"><a 505*cdf0e10cSrcweir href="./Components/Addons/JobsAddon/Jobs.xcu" 506*cdf0e10cSrcweir title="link to Components/Addons/JobsAddon/Jobs.xcu">Jobs.xcu</a></td> 507*cdf0e10cSrcweir <td class="cell80">Contains the example job 508*cdf0e10cSrcweirconfiguration.</td> 509*cdf0e10cSrcweir </tr> 510*cdf0e10cSrcweir <tr> 511*cdf0e10cSrcweir <td class="cell20"><a 512*cdf0e10cSrcweir href="./Components/Addons/JobsAddon/Addons.xcu" 513*cdf0e10cSrcweir title="link to Components/Addons/JobsAddon/Addons.xcu">Addons.xcu</a></td> 514*cdf0e10cSrcweir <td class="cell80">Contains the configuration entries 515*cdf0e10cSrcweirfor the Jobs addon where different entries are configured.</td> 516*cdf0e10cSrcweir </tr> 517*cdf0e10cSrcweir </tbody> 518*cdf0e10cSrcweir </table> 519*cdf0e10cSrcweir </td> 520*cdf0e10cSrcweir </tr> 521*cdf0e10cSrcweir <tr> 522*cdf0e10cSrcweir <td> 523*cdf0e10cSrcweir <table class="table4"> 524*cdf0e10cSrcweir <tbody> 525*cdf0e10cSrcweir <tr class="thead"> 526*cdf0e10cSrcweir <td class="cell20">ProtocolHandler Addon Java</td> 527*cdf0e10cSrcweir <td class="cell80">Description</td> 528*cdf0e10cSrcweir </tr> 529*cdf0e10cSrcweir <tr> 530*cdf0e10cSrcweir <td class="cell20"><a 531*cdf0e10cSrcweir href="./Components/Addons/ProtocolHandlerAddon_java/ProtocolHandlerAddon.java" 532*cdf0e10cSrcweir title="link to Components/Addons/ProtocolHandlerAddon_java/ProtocolHandlerAddon.java">ProtocolHandlerAddon</a></td> 533*cdf0e10cSrcweir <td class="cell80">Implements a ProtocolHandler addon 534*cdf0e10cSrcweircomponent in Java.</td> 535*cdf0e10cSrcweir </tr> 536*cdf0e10cSrcweir <tr> 537*cdf0e10cSrcweir <td class="cell20"><a 538*cdf0e10cSrcweir href="./Components/Addons/ProtocolHandlerAddon_cpp/ProtocolHandler.xcu" 539*cdf0e10cSrcweir title="link to Components/Addons/ProtocolHandlerAddon_cpp/ProtocolHandler.xcu">ProtocolHandler.xcu</a></td> 540*cdf0e10cSrcweir <td class="cell80">Contains the ProtocolHandler 541*cdf0e10cSrcweirconfiguration.</td> 542*cdf0e10cSrcweir </tr> 543*cdf0e10cSrcweir <tr> 544*cdf0e10cSrcweir <td class="cell20"><a 545*cdf0e10cSrcweir href="./Components/Addons/ProtocolHandlerAddon_cpp/Addons.xcu" 546*cdf0e10cSrcweir title="link to Components/Addons/ProtocolHandlerAddon_cpp/Addons.xcu">Addons.xcu</a></td> 547*cdf0e10cSrcweir <td class="cell80">Contains the configuration entries 548*cdf0e10cSrcweirfor the ProtocolHandler addon where different entries are configured.</td> 549*cdf0e10cSrcweir </tr> 550*cdf0e10cSrcweir </tbody> 551*cdf0e10cSrcweir </table> 552*cdf0e10cSrcweir </td> 553*cdf0e10cSrcweir </tr> 554*cdf0e10cSrcweir <tr> 555*cdf0e10cSrcweir <td> 556*cdf0e10cSrcweir <table class="table4"> 557*cdf0e10cSrcweir <tbody> 558*cdf0e10cSrcweir <tr class="thead"> 559*cdf0e10cSrcweir <td class="cell20">ProtocolHandler Addon C++</td> 560*cdf0e10cSrcweir <td class="cell80">Description</td> 561*cdf0e10cSrcweir </tr> 562*cdf0e10cSrcweir <tr> 563*cdf0e10cSrcweir <td class="cell20"><a 564*cdf0e10cSrcweir href="./Components/Addons/ProtocolHandlerAddon_cpp/addon.cxx" 565*cdf0e10cSrcweir title="link to Components/Addons/ProtocolHandlerAddon_cpp/addon.cxx">addon.cxx</a></td> 566*cdf0e10cSrcweir <td class="cell80">Implements a ProtocolHandler addon 567*cdf0e10cSrcweircomponent in C++.</td> 568*cdf0e10cSrcweir </tr> 569*cdf0e10cSrcweir <tr> 570*cdf0e10cSrcweir <td class="cell20"><a 571*cdf0e10cSrcweir href="./Components/Addons/ProtocolHandlerAddon_cpp/addon.hxx" 572*cdf0e10cSrcweir title="link to Components/Addons/ProtocolHandlerAddon_cpp/addon.hxx">addon.hxx</a></td> 573*cdf0e10cSrcweir <td class="cell80">Contains the class definition of 574*cdf0e10cSrcweirthe c++ ProtocolHandler example.</td> 575*cdf0e10cSrcweir </tr> 576*cdf0e10cSrcweir <tr> 577*cdf0e10cSrcweir <td class="cell20"><a 578*cdf0e10cSrcweir href="./Components/Addons/ProtocolHandlerAddon_cpp/component.cxx" 579*cdf0e10cSrcweir title="link to Components/Addons/ProtocolHandlerAddon_cpp/component.cxx">component.cxx</a></td> 580*cdf0e10cSrcweir <td class="cell80">Implements the administrative 581*cdf0e10cSrcweircomponent functions (component_writeInfo, component_getFactory).</td> 582*cdf0e10cSrcweir </tr> 583*cdf0e10cSrcweir <tr> 584*cdf0e10cSrcweir <td class="cell20"><a 585*cdf0e10cSrcweir href="./Components/Addons/ProtocolHandlerAddon_cpp/ProtocolHandler.xcu" 586*cdf0e10cSrcweir title="link to Components/Addons/ProtocolHandlerAddon_cpp/ProtocolHandler.xcu">ProtocolHandler.xcu</a></td> 587*cdf0e10cSrcweir <td class="cell80">Contains the ProtocolHandler 588*cdf0e10cSrcweirconfiguration.</td> 589*cdf0e10cSrcweir </tr> 590*cdf0e10cSrcweir <tr> 591*cdf0e10cSrcweir <td class="cell20"><a 592*cdf0e10cSrcweir href="./Components/Addons/ProtocolHandlerAddon_cpp/Addons.xcu" 593*cdf0e10cSrcweir title="link to Components/Addons/ProtocolHandlerAddon_cpp/Addons.xcu">Addons.xcu</a></td> 594*cdf0e10cSrcweir <td class="cell80">Contains the configuration entries 595*cdf0e10cSrcweirfor the ProtocolHandler addon where different entries are configured.</td> 596*cdf0e10cSrcweir </tr> 597*cdf0e10cSrcweir </tbody> 598*cdf0e10cSrcweir </table> 599*cdf0e10cSrcweir </td> 600*cdf0e10cSrcweir </tr> 601*cdf0e10cSrcweir <tr> 602*cdf0e10cSrcweir <td> 603*cdf0e10cSrcweir <table class="table4"> 604*cdf0e10cSrcweir <tbody> 605*cdf0e10cSrcweir <tr class="thead"> 606*cdf0e10cSrcweir <td class="cell20">Java Component Example</td> 607*cdf0e10cSrcweir <td class="cell80">Description</td> 608*cdf0e10cSrcweir </tr> 609*cdf0e10cSrcweir <tr> 610*cdf0e10cSrcweir <td class="cell20"><img src="../../docs/images/bluball.gif"> <a 611*cdf0e10cSrcweir href="./Components/JavaComponent/TestJavaComponent.java" 612*cdf0e10cSrcweir title="link to Components/JavaComponent/TestJavaComponent.java">TestJavaComponent</a></td> 613*cdf0e10cSrcweir <td class="cell80">Demonstrates how to extend the 614*cdf0e10cSrcweirservice provider with a new factory and instantiates the example 615*cdf0e10cSrcweircomponents.</td> 616*cdf0e10cSrcweir </tr> 617*cdf0e10cSrcweir <tr> 618*cdf0e10cSrcweir <td class="cell20"><a 619*cdf0e10cSrcweir href="./Components/JavaComponent/TestComponentA.java" 620*cdf0e10cSrcweir title="link to Components/JavaComponent/TestComponentA.java">TestComponentA</a></td> 621*cdf0e10cSrcweir <td class="cell80">Shows a simple demo component 622*cdf0e10cSrcweirwhich implements <a 623*cdf0e10cSrcweir href="../../docs/common/ref/com/sun/star/lang/XTypeProvider.html" 624*cdf0e10cSrcweir title="link to the reference documentation of com.sun.star.lang.XTypeProvider"><code>XTypeProvider</code></a>, 625*cdf0e10cSrcweir <a 626*cdf0e10cSrcweir href="../../docs/common/ref/com/sun/star/lang/XServiceInfo.html" 627*cdf0e10cSrcweir title="link to the reference documentation of com.sun.star.lang.XServicedInfo"> 628*cdf0e10cSrcweir <code>XServiceInfo</code></a> and an own interface <code>XSomethingA</code>.</td> 629*cdf0e10cSrcweir </tr> 630*cdf0e10cSrcweir <tr> 631*cdf0e10cSrcweir <td class="cell20"><a 632*cdf0e10cSrcweir href="./Components/JavaComponent/TestComponentB.java" 633*cdf0e10cSrcweir title="link to Components/JavaComponent/TestComponentB.java">TestComponentB</a></td> 634*cdf0e10cSrcweir <td class="cell80">Shows a simple demo component 635*cdf0e10cSrcweirwhich implements <a 636*cdf0e10cSrcweir href="../../docs/common/ref/com/sun/star/lang/XTypeProvider.html" 637*cdf0e10cSrcweir title="link to the reference documentation of com.sun.star.lang.XTypeProvider"> 638*cdf0e10cSrcweir <code>XTypeProvider</code></a>, <a 639*cdf0e10cSrcweir href="../../docs/common/ref/com/sun/star/lang/XServiceInfo.html" 640*cdf0e10cSrcweir title="link to the reference documentation of com.sun.star.lang.XServiceInfo"><code>XServiceInfo</code></a> 641*cdf0e10cSrcweirand an own interface <code>XSomethingB</code>.</td> 642*cdf0e10cSrcweir </tr> 643*cdf0e10cSrcweir <tr> 644*cdf0e10cSrcweir <td class="cell20"><a 645*cdf0e10cSrcweir href="./Components/JavaComponent/TestServiceProvider.java" 646*cdf0e10cSrcweir title="link to Components/JavaComponent/TestServiceProvider.java">TestServiceProvider</a></td> 647*cdf0e10cSrcweir <td class="cell80">Implements a factory (service 648*cdf0e10cSrcweirprovider) which can create the two test components.</td> 649*cdf0e10cSrcweir </tr> 650*cdf0e10cSrcweir </tbody> 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">C++ Component Example</td> 660*cdf0e10cSrcweir <td class="cell80">Description</td> 661*cdf0e10cSrcweir </tr> 662*cdf0e10cSrcweir <tr> 663*cdf0e10cSrcweir <td class="cell20"><img src="../../docs/images/bluball.gif"> <a 664*cdf0e10cSrcweir href="./Components/CppComponent/TestCppComponent.cxx" 665*cdf0e10cSrcweir title="link to Components/CppComponent/TestCppComponent.cxx">TestCppComponent.cxx</a></td> 666*cdf0e10cSrcweir <td class="cell80">Shows how to create new instances 667*cdf0e10cSrcweirof the demo services and calls some methods of the demo interface.</td> 668*cdf0e10cSrcweir </tr> 669*cdf0e10cSrcweir <tr> 670*cdf0e10cSrcweir <td class="cell20"><a 671*cdf0e10cSrcweir href="./Components/CppComponent/service1_impl.cxx" 672*cdf0e10cSrcweir title="link to Components/CppComponent/service1_impl.cxx">service1_impl.cxx</a></td> 673*cdf0e10cSrcweir <td class="cell80">Implements a simple UNO service 674*cdf0e10cSrcweirwith an own interface in C++.</td> 675*cdf0e10cSrcweir </tr> 676*cdf0e10cSrcweir <tr> 677*cdf0e10cSrcweir <td class="cell20"><a 678*cdf0e10cSrcweir href="./Components/CppComponent/service2_impl.cxx" 679*cdf0e10cSrcweir title="link to Components/CppComponent/service2_impl.cxx">service2_impl.cxx</a></td> 680*cdf0e10cSrcweir <td class="cell80">Implements another simple UNO 681*cdf0e10cSrcweirservice in C++.</td> 682*cdf0e10cSrcweir </tr> 683*cdf0e10cSrcweir </tbody> 684*cdf0e10cSrcweir </table> 685*cdf0e10cSrcweir </td> 686*cdf0e10cSrcweir </tr> 687*cdf0e10cSrcweir <tr> 688*cdf0e10cSrcweir <td> 689*cdf0e10cSrcweir <table class="table4"> 690*cdf0e10cSrcweir <tbody> 691*cdf0e10cSrcweir <tr class="thead"> 692*cdf0e10cSrcweir <td class="cell20">Thumbs Example</td> 693*cdf0e10cSrcweir <td class="cell80">Description</td> 694*cdf0e10cSrcweir </tr> 695*cdf0e10cSrcweir <tr> 696*cdf0e10cSrcweir <td class="cell20"><a 697*cdf0e10cSrcweir href="./Components/Thumbs/org/openoffice/comp/test/ImageShrink.java" 698*cdf0e10cSrcweir title="link to Components/Thumbs/org/openoffice/comp/test/ImageShrink.java">ImageShrink</a></td> 699*cdf0e10cSrcweir <td class="cell80">Contains a framework for a 700*cdf0e10cSrcweircomponent which scales images in a directory and stores them to another 701*cdf0e10cSrcweirdirectory. This code does not really do anything, it just contains the 702*cdf0e10cSrcweirframework.</td> 703*cdf0e10cSrcweir </tr> 704*cdf0e10cSrcweir <tr> 705*cdf0e10cSrcweir <td class="cell20"><a 706*cdf0e10cSrcweir href="./Components/Thumbs/org/openoffice/comp/test/Thumbs.java" 707*cdf0e10cSrcweir title="link to Components/Thumbs/org/openoffice/comp/test/Thumbs.java">Thumbs</a></td> 708*cdf0e10cSrcweir <td class="cell80">This example registers a factory 709*cdf0e10cSrcweirfor the image shrink component and instantiates it.</td> 710*cdf0e10cSrcweir </tr> 711*cdf0e10cSrcweir </tbody> 712*cdf0e10cSrcweir </table> 713*cdf0e10cSrcweir </td> 714*cdf0e10cSrcweir </tr> 715*cdf0e10cSrcweir <tr> 716*cdf0e10cSrcweir <td> 717*cdf0e10cSrcweir <table class="table4"> 718*cdf0e10cSrcweir <tbody> 719*cdf0e10cSrcweir <tr class="thead"> 720*cdf0e10cSrcweir <td class="cell20">Dialog Component Example</td> 721*cdf0e10cSrcweir <td class="cell80">Description</td> 722*cdf0e10cSrcweir </tr> 723*cdf0e10cSrcweir <tr> 724*cdf0e10cSrcweir <td class="cell20"><img src="../../docs/images/bluball.gif"> <a 725*cdf0e10cSrcweir href="./Components/DialogComponent/DialogComponent.java" 726*cdf0e10cSrcweir title="link to Components/DialogComponent/DialogComponent.java">DialogComponent.java</a></td> 727*cdf0e10cSrcweir <td class="cell80">Implements a component accessing a dialog created 728*cdf0e10cSrcweir with the OpenOffice.org %PRODUCT_RELEASE% Basic IDE. The component provides methods that 729*cdf0e10cSrcweir can be bound to dialog respectively control events .</td> 730*cdf0e10cSrcweir </tr> 731*cdf0e10cSrcweir <tr> 732*cdf0e10cSrcweir <td class="cell20"><a 733*cdf0e10cSrcweir href="./Components/DialogComponent/XTestDialogHandler.idl" 734*cdf0e10cSrcweir title="link to Components/DialogComponent/XTestDialogHandler.idl">XTestDialogHandler.idl</a></td> 735*cdf0e10cSrcweir <td class="cell80">Interface implementing a createDialog method showing the 736*cdf0e10cSrcweir dialog and some methods to be used as event handler for the dialog. 737*cdf0e10cSrcweir </td> 738*cdf0e10cSrcweir </tr> 739*cdf0e10cSrcweir <tr> 740*cdf0e10cSrcweir <td class="cell20"><a 741*cdf0e10cSrcweir href="./Components/DialogComponent/TestDialogHandler.idl" 742*cdf0e10cSrcweir title="link to Components/DialogComponent/TestDialogHandler.idl">TestDialogHandler.idl</a></td> 743*cdf0e10cSrcweir <td class="cell80"> 744*cdf0e10cSrcweir Service definition for the component implementing 745*cdf0e10cSrcweir its own interface <code>XTestDialogHandler</code>. 746*cdf0e10cSrcweir </td> 747*cdf0e10cSrcweir </tr> 748*cdf0e10cSrcweir <tr> 749*cdf0e10cSrcweir <td class="cell20"><a 750*cdf0e10cSrcweir href="./Components/DialogComponent/DialogComponent.odt" 751*cdf0e10cSrcweir title="link to Components/DialogComponent/DialogComponent.odt">DialogComponent.odt</a></td> 752*cdf0e10cSrcweir <td class="cell80">Document containing Basic code to 753*cdf0e10cSrcweir instantiate the Dialog Components and a Dialog containing 754*cdf0e10cSrcweir controls with events bound to methods supported by the 755*cdf0e10cSrcweir Dialog Component.</td> 756*cdf0e10cSrcweir </tr> 757*cdf0e10cSrcweir </tbody> 758*cdf0e10cSrcweir </table> 759*cdf0e10cSrcweir </td> 760*cdf0e10cSrcweir </tr> 761*cdf0e10cSrcweir </tbody> 762*cdf0e10cSrcweir </table> 763*cdf0e10cSrcweir </td> 764*cdf0e10cSrcweir <td class="content1"><img class="nothing8" 765*cdf0e10cSrcweir src="../../docs/images/nada.gif"></td> 766*cdf0e10cSrcweir </tr> 767*cdf0e10cSrcweir <tr> 768*cdf0e10cSrcweir <td colspan="3"><img class="line" 769*cdf0e10cSrcweir src="../../docs/images/sdk_line-1.gif"></td> 770*cdf0e10cSrcweir </tr> 771*cdf0e10cSrcweir <tr> 772*cdf0e10cSrcweir <td class="content1"><img class="nothing8" 773*cdf0e10cSrcweir src="../../docs/images/nada.gif"></td> 774*cdf0e10cSrcweir <td> 775*cdf0e10cSrcweir <table class="table2"> 776*cdf0e10cSrcweir <tbody> 777*cdf0e10cSrcweir <tr> 778*cdf0e10cSrcweir <td> 779*cdf0e10cSrcweir <table class="table3"> 780*cdf0e10cSrcweir <tbody> 781*cdf0e10cSrcweir <tr> 782*cdf0e10cSrcweir <td colspan="2" class="head1"><a 783*cdf0e10cSrcweir name="OfficeDevelopment">Office Development examples</a></td> 784*cdf0e10cSrcweir <td align="right"> <a href="#examples" 785*cdf0e10cSrcweir title="link to the Developer's Guide examples overview"><img 786*cdf0e10cSrcweir class="navigate" src="../../docs/images/nav_up.png"></a> <a 787*cdf0e10cSrcweir href="../../index.html" title="link to the SDK start page"><img 788*cdf0e10cSrcweir class="navigate" src="../../docs/images/nav_home.png"></a> </td> 789*cdf0e10cSrcweir </tr> 790*cdf0e10cSrcweir </tbody> 791*cdf0e10cSrcweir </table> 792*cdf0e10cSrcweir </td> 793*cdf0e10cSrcweir </tr> 794*cdf0e10cSrcweir <tr> 795*cdf0e10cSrcweir <td> 796*cdf0e10cSrcweir <table class="table4"> 797*cdf0e10cSrcweir <tbody> 798*cdf0e10cSrcweir <tr class="thead"> 799*cdf0e10cSrcweir <td class="cell20">Ascii Filter Example</td> 800*cdf0e10cSrcweir <td class="cell80">Description</td> 801*cdf0e10cSrcweir </tr> 802*cdf0e10cSrcweir <tr> 803*cdf0e10cSrcweir <td class="cell20"><a 804*cdf0e10cSrcweir href="./OfficeDev/FilterDevelopment/AsciiFilter/AsciiReplaceFilter.java" 805*cdf0e10cSrcweir title="link to OfficeDev/FilterDevelopment/AsciiFilter/AsciiReplaceFilter.java">AsciiReplaceFilter</a></td> 806*cdf0e10cSrcweir <td class="cell80">Implements an example for an 807*cdf0e10cSrcweirimport/export filter service.</td> 808*cdf0e10cSrcweir </tr> 809*cdf0e10cSrcweir <tr> 810*cdf0e10cSrcweir <td class="cell20"><a 811*cdf0e10cSrcweir href="./OfficeDev/FilterDevelopment/AsciiFilter/FilterOptions.java" 812*cdf0e10cSrcweir title="link to OfficeDev/FilterDevelopment/AsciiFilter/FilterOptions.java">FilterOptions</a></td> 813*cdf0e10cSrcweir <td class="cell80">Offers some helper methods to 814*cdf0e10cSrcweiranalyze and prepare the arguments of the filter method.</td> 815*cdf0e10cSrcweir </tr> 816*cdf0e10cSrcweir <tr> 817*cdf0e10cSrcweir <td class="cell20"><a 818*cdf0e10cSrcweir href="./OfficeDev/FilterDevelopment/AsciiFilter/TypeDetection.xcu" 819*cdf0e10cSrcweir title="link to OfficeDev/FilterDevelopment/AsciiFilter/TypeDetection.xcu">TypeDetection.xcu</a></td> 820*cdf0e10cSrcweir <td class="cell80">Contains the necessary 821*cdf0e10cSrcweirconfiguration items for the AsciiReplaceFilter.</td> 822*cdf0e10cSrcweir </tr> 823*cdf0e10cSrcweir </tbody> 824*cdf0e10cSrcweir </table> 825*cdf0e10cSrcweir </td> 826*cdf0e10cSrcweir </tr> 827*cdf0e10cSrcweir <tr> 828*cdf0e10cSrcweir <td> 829*cdf0e10cSrcweir <table class="table4"> 830*cdf0e10cSrcweir <tbody> 831*cdf0e10cSrcweir <tr class="thead"> 832*cdf0e10cSrcweir <td class="cell20">FlatXmlFilter C++ Example</td> 833*cdf0e10cSrcweir <td class="cell80">Description</td> 834*cdf0e10cSrcweir </tr> 835*cdf0e10cSrcweir <tr> 836*cdf0e10cSrcweir <td class="cell20"><a 837*cdf0e10cSrcweir href="./OfficeDev/FilterDevelopment/FlatXmlFilter_cpp/FlatXml.cxx" 838*cdf0e10cSrcweir title="link to OfficeDev/FilterDevelopment/FlatXmlFilter_cpp/FlatXml.cxx">FlatXml.cxx</a></td> 839*cdf0e10cSrcweir <td class="cell80">Implements an import/export filter 840*cdf0e10cSrcweirstoring the data in one xml stream instead of the normal three streams 841*cdf0e10cSrcweirin for example an .odt file. The example is implemented in C++.</td> 842*cdf0e10cSrcweir </tr> 843*cdf0e10cSrcweir <tr> 844*cdf0e10cSrcweir <td class="cell20"><a 845*cdf0e10cSrcweir href="./OfficeDev/FilterDevelopment/FlatXmlFilter_cpp/FlatXmlFilter_cpp.xcu" 846*cdf0e10cSrcweir title="link to OfficeDev/FilterDevelopment/FlatXmlFilter_cpp/FlatXmlFilter_cpp.xcu">FlatXmlFilter_cpp.xcu</a></td> 847*cdf0e10cSrcweir <td class="cell80">Contains the necessary 848*cdf0e10cSrcweirconfiguration items for the C++ flat xml filter.</td> 849*cdf0e10cSrcweir </tr> 850*cdf0e10cSrcweir </tbody> 851*cdf0e10cSrcweir </table> 852*cdf0e10cSrcweir </td> 853*cdf0e10cSrcweir </tr> 854*cdf0e10cSrcweir <tr> 855*cdf0e10cSrcweir <td> 856*cdf0e10cSrcweir <table class="table4"> 857*cdf0e10cSrcweir <tbody> 858*cdf0e10cSrcweir <tr class="thead"> 859*cdf0e10cSrcweir <td class="cell20">FlatXmlFilter Java Example</td> 860*cdf0e10cSrcweir <td class="cell80">Description</td> 861*cdf0e10cSrcweir </tr> 862*cdf0e10cSrcweir <tr> 863*cdf0e10cSrcweir <td class="cell20"><a 864*cdf0e10cSrcweir href="./OfficeDev/FilterDevelopment/FlatXmlFilter_java/FlatXml.java" 865*cdf0e10cSrcweir title="link to OfficeDev/FilterDevelopment/FlatXmlFilter_java/FlatXml.java">FlatXml</a></td> 866*cdf0e10cSrcweir <td class="cell80">Implements an import/export filter 867*cdf0e10cSrcweirstoring the data in one xml stream instead of the normal three streams 868*cdf0e10cSrcweirin for example an .odt file. The example is implemented in Java.</td> 869*cdf0e10cSrcweir </tr> 870*cdf0e10cSrcweir <tr> 871*cdf0e10cSrcweir <td class="cell20"><a 872*cdf0e10cSrcweir href="./OfficeDev/FilterDevelopment/FlatXmlFilter_java/FlatXmlFilter_java.xcu" 873*cdf0e10cSrcweir title="link to OfficeDev/FilterDevelopment/FlatXmlFilter_java/FlatXmlFilter_java.xcu">FlatXmlFilter_java.xcu</a></td> 874*cdf0e10cSrcweir <td class="cell80">Contains the necessary 875*cdf0e10cSrcweirconfiguration items for the Java flat xml filter.</td> 876*cdf0e10cSrcweir </tr> 877*cdf0e10cSrcweir </tbody> 878*cdf0e10cSrcweir </table> 879*cdf0e10cSrcweir </td> 880*cdf0e10cSrcweir </tr> 881*cdf0e10cSrcweir <tr> 882*cdf0e10cSrcweir <td> 883*cdf0e10cSrcweir <table class="table4"> 884*cdf0e10cSrcweir <tbody> 885*cdf0e10cSrcweir <tr class="thead"> 886*cdf0e10cSrcweir <td class="cell20">FlatXml FilterDetection Example</td> 887*cdf0e10cSrcweir <td class="cell80">Description</td> 888*cdf0e10cSrcweir </tr> 889*cdf0e10cSrcweir <tr> 890*cdf0e10cSrcweir <td class="cell20"><a 891*cdf0e10cSrcweir href="./OfficeDev/FilterDevelopment/FlatXmlFilterDetection/filterdetect.cxx" 892*cdf0e10cSrcweir title="link to OfficeDev/FilterDevelopment/FlatXmlFilterDetection/filterdetect.cxx">filterdetect.cxx</a></td> 893*cdf0e10cSrcweir <td class="cell80">Implements an example filter 894*cdf0e10cSrcweirdetection for the flat xml filter. The example is implemented in C++.</td> 895*cdf0e10cSrcweir </tr> 896*cdf0e10cSrcweir <tr> 897*cdf0e10cSrcweir <td class="cell20"><a 898*cdf0e10cSrcweir href="./OfficeDev/FilterDevelopment/FlatXmlFilterDetection/filterdetect.hxx" 899*cdf0e10cSrcweir title="link to OfficeDev/FilterDevelopment/FlatXmlFilterDetection/filterdetect.hxx">filterdetect.hxx</a></td> 900*cdf0e10cSrcweir <td class="cell80">Contains the class definition of 901*cdf0e10cSrcweirthe filter detection example.</td> 902*cdf0e10cSrcweir </tr> 903*cdf0e10cSrcweir <tr> 904*cdf0e10cSrcweir <td class="cell20"><a 905*cdf0e10cSrcweir href="./OfficeDev/FilterDevelopment/FlatXmlFilterDetection/fdcomp.cxx" 906*cdf0e10cSrcweir title="link to OfficeDev/FilterDevelopment/FlatXmlFilterDetection/fdcomp.cxx">fdcomp.cxx</a></td> 907*cdf0e10cSrcweir <td class="cell80">Implements the administrative 908*cdf0e10cSrcweircomponent functions (component_writeInfo, component_getFactory).</td> 909*cdf0e10cSrcweir </tr> 910*cdf0e10cSrcweir <tr> 911*cdf0e10cSrcweir <td class="cell20"><a 912*cdf0e10cSrcweir href="./OfficeDev/FilterDevelopment/FlatXmlFilterDetection/FlatXmlTypeDetection.xcu" 913*cdf0e10cSrcweir title="link to OfficeDev/FilterDevelopment/FlatXmlFilterDetection/FlatXmlTypeDetection.xcu">FlatXmlTypeDetection.xcu</a></td> 914*cdf0e10cSrcweir <td class="cell80">Contains the necessary 915*cdf0e10cSrcweirconfiguration items for the C++ flat xml type detection.</td> 916*cdf0e10cSrcweir </tr> 917*cdf0e10cSrcweir </tbody> 918*cdf0e10cSrcweir </table> 919*cdf0e10cSrcweir </td> 920*cdf0e10cSrcweir </tr> 921*cdf0e10cSrcweir <tr> 922*cdf0e10cSrcweir <td> 923*cdf0e10cSrcweir <table class="table4"> 924*cdf0e10cSrcweir <tbody> 925*cdf0e10cSrcweir <tr class="thead"> 926*cdf0e10cSrcweir <td class="cell20">Desktop Environment Example</td> 927*cdf0e10cSrcweir <td class="cell80">Description</td> 928*cdf0e10cSrcweir </tr> 929*cdf0e10cSrcweir <tr> 930*cdf0e10cSrcweir <td class="cell20"><a 931*cdf0e10cSrcweir href="./OfficeDev/DesktopEnvironment/CustomizeView.java" 932*cdf0e10cSrcweir title="link to OfficeDev/DesktopEnvironment/CustomizeView.java">CustomizeView</a></td> 933*cdf0e10cSrcweir <td class="cell80">Offers a view which allows hiding 934*cdf0e10cSrcweirand showing of the menubar, toolbar and objectbar of the related 935*cdf0e10cSrcweirdocument component.</td> 936*cdf0e10cSrcweir </tr> 937*cdf0e10cSrcweir <tr> 938*cdf0e10cSrcweir <td class="cell20"><img 939*cdf0e10cSrcweir src="../../docs/images/bluball.gif"> <a 940*cdf0e10cSrcweir href="./OfficeDev/DesktopEnvironment/Desk.java" 941*cdf0e10cSrcweir title="link to OfficeDev/DesktopEnvironment/Desk.java">Desk</a></td> 942*cdf0e10cSrcweir <td class="cell80">This is the main part of a demo 943*cdf0e10cSrcweirapplication based on the framework APIs. It mainly shows the mechanisms 944*cdf0e10cSrcweirto load, store and convert documents, as well as dispatch and dispatch 945*cdf0e10cSrcweirinterception. It integrates windows from OpenOffice.org %PRODUCT_RELEASE% via system 946*cdf0e10cSrcweirwindow handle. This is the same mechanism as used by the OOoBean, but 947*cdf0e10cSrcweirthe OOoBean itself is not used here, just the JNI window handle access.</td> 948*cdf0e10cSrcweir </tr> 949*cdf0e10cSrcweir <tr> 950*cdf0e10cSrcweir <td class="cell20"><a 951*cdf0e10cSrcweir href="./OfficeDev/DesktopEnvironment/DocumentView.java" 952*cdf0e10cSrcweir title="link to OfficeDev/DesktopEnvironment/DocumentView.java">DocumentView</a></td> 953*cdf0e10cSrcweir <td class="cell80">Deals with the application window 954*cdf0e10cSrcweirand it's actions.</td> 955*cdf0e10cSrcweir </tr> 956*cdf0e10cSrcweir <tr> 957*cdf0e10cSrcweir <td class="cell20"><a 958*cdf0e10cSrcweir href="./OfficeDev/DesktopEnvironment/FunctionHelper.java" 959*cdf0e10cSrcweir title="link to OfficeDev/DesktopEnvironment/FunctionHelper.java">FunctionHelper</a></td> 960*cdf0e10cSrcweir <td class="cell80">This helper comprises all 961*cdf0e10cSrcweirOpenOffice.org %PRODUCT_RELEASE% API calls. Thus it is possible to learn about these 962*cdf0e10cSrcweiraspects separately from the rest of the application example.</td> 963*cdf0e10cSrcweir </tr> 964*cdf0e10cSrcweir <tr> 965*cdf0e10cSrcweir <td class="cell20"><a 966*cdf0e10cSrcweir href="./OfficeDev/DesktopEnvironment/IOnewayLink.java" 967*cdf0e10cSrcweir title="link to OfficeDev/DesktopEnvironment/IOnewayLink.java">IOnewayLink</a></td> 968*cdf0e10cSrcweir <td class="cell80">This is an interface to receive 969*cdf0e10cSrcweirasynchronous events from UNO oneway calls.</td> 970*cdf0e10cSrcweir </tr> 971*cdf0e10cSrcweir <tr> 972*cdf0e10cSrcweir <td class="cell20"><a 973*cdf0e10cSrcweir href="./OfficeDev/DesktopEnvironment/IShutdownListener.java" 974*cdf0e10cSrcweir title="link to OfficeDev/DesktopEnvironment/IShutdownListener.java">IShutdownListener</a></td> 975*cdf0e10cSrcweir <td class="cell80">This is a listener interface to 976*cdf0e10cSrcweirclean up on shutdown of OpenOffice.org %PRODUCT_RELEASE%.</td> 977*cdf0e10cSrcweir </tr> 978*cdf0e10cSrcweir <tr> 979*cdf0e10cSrcweir <td class="cell20"><a 980*cdf0e10cSrcweir href="./OfficeDev/DesktopEnvironment/Interceptor.java" 981*cdf0e10cSrcweir title="link to OfficeDev/DesktopEnvironment/Interceptor.java">Interceptor</a></td> 982*cdf0e10cSrcweir <td class="cell80">This implements a dispatch 983*cdf0e10cSrcweirinterceptor for a specific URL.</td> 984*cdf0e10cSrcweir </tr> 985*cdf0e10cSrcweir <tr> 986*cdf0e10cSrcweir <td class="cell20"><a 987*cdf0e10cSrcweir href="./OfficeDev/DesktopEnvironment/JavaWindowPeerFake.java" 988*cdf0e10cSrcweir title="link to OfficeDev/DesktopEnvironment/JavaWindowPeerFake.java">JavaWindowPeerFake</a></td> 989*cdf0e10cSrcweir <td class="cell80">Fakes an <a 990*cdf0e10cSrcweir href="../../docs/common/ref/com/sun/star/awt/XWindowPeer.html" 991*cdf0e10cSrcweir title=" link to the reference documentation of com.sun.star.awt.XWindowPeer"><code>XWindowPeer</code></a> 992*cdf0e10cSrcweirfor the Java native window handle to create a child window for the 993*cdf0e10cSrcweiroffice frame.</td> 994*cdf0e10cSrcweir </tr> 995*cdf0e10cSrcweir <tr> 996*cdf0e10cSrcweir <td class="cell20"><a 997*cdf0e10cSrcweir href="./OfficeDev/DesktopEnvironment/NativeView.java" 998*cdf0e10cSrcweir title="link to OfficeDev/DesktopEnvironment/NativeView.java">NativeView</a></td> 999*cdf0e10cSrcweir <td class="cell80">Implements native JNI methods to 1000*cdf0e10cSrcweirget the window handle of the Java window.</td> 1001*cdf0e10cSrcweir </tr> 1002*cdf0e10cSrcweir <tr> 1003*cdf0e10cSrcweir <td class="cell20"><a 1004*cdf0e10cSrcweir href="./OfficeDev/DesktopEnvironment/OfficeConnect.java" 1005*cdf0e10cSrcweir title=" link to OfficeDev/DesktopEnvironment/OfficeConnect.java">OfficeConnect</a></td> 1006*cdf0e10cSrcweir <td class="cell80">Builds the remote bridge to 1007*cdf0e10cSrcweirOpenOffice.org %PRODUCT_RELEASE% and exports its UNO service manager for the Java side of 1008*cdf0e10cSrcweirthe application.</td> 1009*cdf0e10cSrcweir </tr> 1010*cdf0e10cSrcweir <tr> 1011*cdf0e10cSrcweir <td class="cell20"><a 1012*cdf0e10cSrcweir href="./OfficeDev/DesktopEnvironment/OnewayExecutor.java" 1013*cdf0e10cSrcweir title="link to OfficeDev/DesktopEnvironment/OnewayExecutor.java">OnewayExecutor</a></td> 1014*cdf0e10cSrcweir <td class="cell80">Implements <code>IOnewayLink</code> 1015*cdf0e10cSrcweirto decouple asynchronous oneway calls in the Java process.</td> 1016*cdf0e10cSrcweir </tr> 1017*cdf0e10cSrcweir <tr> 1018*cdf0e10cSrcweir <td class="cell20"><a 1019*cdf0e10cSrcweir href="./OfficeDev/DesktopEnvironment/StatusListener.java" 1020*cdf0e10cSrcweir title="link to OfficeDev/DesktopEnvironment/StatusListener.java">StatusListener</a></td> 1021*cdf0e10cSrcweir <td class="cell80">Implements a listener for a <a 1022*cdf0e10cSrcweir href="../../docs/common/ref/com/sun/star/frame/FeatureStateEvent.html" 1023*cdf0e10cSrcweir title="link to the reference documentation of com.sun.star.frame.FeatureStateEvent"> 1024*cdf0e10cSrcweir <code>FeatureStateEvent</code></a>.</td> 1025*cdf0e10cSrcweir </tr> 1026*cdf0e10cSrcweir <tr> 1027*cdf0e10cSrcweir <td class="cell20"><a 1028*cdf0e10cSrcweir href="./OfficeDev/DesktopEnvironment/StatusView.java" 1029*cdf0e10cSrcweir title="link to OfficeDev/DesktopEnvironment/StatusView.java">StatusView</a></td> 1030*cdf0e10cSrcweir <td class="cell80">Shows the current status for which 1031*cdf0e10cSrcweirthe application is registered as an event listener.</td> 1032*cdf0e10cSrcweir </tr> 1033*cdf0e10cSrcweir <tr> 1034*cdf0e10cSrcweir <td class="cell20"><a 1035*cdf0e10cSrcweir href="./OfficeDev/DesktopEnvironment/ViewContainer.java" 1036*cdf0e10cSrcweir title="link to OfficeDev/DesktopEnvironment/ViewContainer.java">ViewContainer</a></td> 1037*cdf0e10cSrcweir <td class="cell80">Performs a clean up on the Java 1038*cdf0e10cSrcweirside on OpenOffice.org %PRODUCT_RELEASE% shutdown.</td> 1039*cdf0e10cSrcweir </tr> 1040*cdf0e10cSrcweir </tbody> 1041*cdf0e10cSrcweir </table> 1042*cdf0e10cSrcweir </td> 1043*cdf0e10cSrcweir </tr> 1044*cdf0e10cSrcweir <tr> 1045*cdf0e10cSrcweir <td> 1046*cdf0e10cSrcweir <table class="table4"> 1047*cdf0e10cSrcweir <tbody> 1048*cdf0e10cSrcweir <tr class="thead"> 1049*cdf0e10cSrcweir <td class="cell20">Office Development Examples</td> 1050*cdf0e10cSrcweir <td class="cell80">Description</td> 1051*cdf0e10cSrcweir </tr> 1052*cdf0e10cSrcweir <tr> 1053*cdf0e10cSrcweir <td class="cell20"><a 1054*cdf0e10cSrcweir href="./OfficeDev/OfficeConnect.java" 1055*cdf0e10cSrcweir title="link to OfficeDev/OfficeConnect.java">OfficeConnect</a></td> 1056*cdf0e10cSrcweir <td class="cell80">Builds the remote bridge to 1057*cdf0e10cSrcweirOpenOffice.org %PRODUCT_RELEASE% and exports its UNO service manager to the Java side.</td> 1058*cdf0e10cSrcweir </tr> 1059*cdf0e10cSrcweir <tr> 1060*cdf0e10cSrcweir <td class="cell20"><img 1061*cdf0e10cSrcweir src="../../docs/images/bluball.gif"> <a 1062*cdf0e10cSrcweir href="./OfficeDev/ContextMenuInterceptor.java" 1063*cdf0e10cSrcweir title="link to OfficeDev/ContextMenuInterceptor.java">ContextMenuInterceptor</a></td> 1064*cdf0e10cSrcweir <td class="cell80">This example shows a context menu 1065*cdf0e10cSrcweirinterceptor that creates a new menu entry that has a sub menu. This sub 1066*cdf0e10cSrcweirmenu is in inserted into the context menu on the topmost position. It 1067*cdf0e10cSrcweirprovides some helper functions to the user that are reachable through 1068*cdf0e10cSrcweirthe menu Help.</td> 1069*cdf0e10cSrcweir </tr> 1070*cdf0e10cSrcweir <tr> 1071*cdf0e10cSrcweir <td class="cell20"><a 1072*cdf0e10cSrcweir href="./OfficeDev/MenuElement.java" 1073*cdf0e10cSrcweir title="link to OfficeDev/MenuElement.java">MenuElement</a></td> 1074*cdf0e10cSrcweir <td class="cell80">A helper class for the context 1075*cdf0e10cSrcweirmenu interceptor example. It determines the menu element type.</td> 1076*cdf0e10cSrcweir </tr> 1077*cdf0e10cSrcweir <tr> 1078*cdf0e10cSrcweir <td class="cell20"><img 1079*cdf0e10cSrcweir src="../../docs/images/bluball.gif"> <a 1080*cdf0e10cSrcweir href="./OfficeDev/Number_Formats.java" 1081*cdf0e10cSrcweir title="link to OfficeDev/Number_Formats.java">Number_Formats</a></td> 1082*cdf0e10cSrcweir <td class="cell80">Demonstrates the use of number 1083*cdf0e10cSrcweirformats in a spreadsheet document.</td> 1084*cdf0e10cSrcweir </tr> 1085*cdf0e10cSrcweir </tbody> 1086*cdf0e10cSrcweir </table> 1087*cdf0e10cSrcweir </td> 1088*cdf0e10cSrcweir </tr> 1089*cdf0e10cSrcweir <tr> 1090*cdf0e10cSrcweir <td> 1091*cdf0e10cSrcweir <table class="table4"> 1092*cdf0e10cSrcweir <tbody> 1093*cdf0e10cSrcweir <tr class="thead"> 1094*cdf0e10cSrcweir <td class="cell20">Termination Test Example</td> 1095*cdf0e10cSrcweir <td class="cell80">Description</td> 1096*cdf0e10cSrcweir </tr> 1097*cdf0e10cSrcweir <tr> 1098*cdf0e10cSrcweir <td class="cell20"><img 1099*cdf0e10cSrcweir src="../../docs/images/bluball.gif"> <a 1100*cdf0e10cSrcweir href="./OfficeDev/TerminationTest/TerminationTest.java" 1101*cdf0e10cSrcweir title="link to OfficeDev/TerminationTest/TerminationTest.java">TerminationTest</a></td> 1102*cdf0e10cSrcweir <td class="cell80">This example uses the 1103*cdf0e10cSrcweirTerminateListener and shows the use of them in a running program.</td> 1104*cdf0e10cSrcweir </tr> 1105*cdf0e10cSrcweir <tr> 1106*cdf0e10cSrcweir <td class="cell20"><a 1107*cdf0e10cSrcweir href="./OfficeDev/TerminationTest/TerminateListener.java" 1108*cdf0e10cSrcweir title="link to OfficeDev/TerminationTest/TerminateListener.java">TerminateListener</a></td> 1109*cdf0e10cSrcweir <td class="cell80">An example implementation of <a 1110*cdf0e10cSrcweir href="../../docs/common/ref/com/sun/star/frame/XTerminateListener.html" 1111*cdf0e10cSrcweir title="link to the reference documentation of com.sun.star.frame.XTerminationListener"> 1112*cdf0e10cSrcweir <code>XTerminateListener</code></a>. It is called 1113*cdf0e10cSrcweirwhen OpenOffice.org %PRODUCT_RELEASE% terminates.</td> 1114*cdf0e10cSrcweir </tr> 1115*cdf0e10cSrcweir </tbody> 1116*cdf0e10cSrcweir </table> 1117*cdf0e10cSrcweir </td> 1118*cdf0e10cSrcweir </tr> 1119*cdf0e10cSrcweir <tr> 1120*cdf0e10cSrcweir <td> 1121*cdf0e10cSrcweir <table class="table4"> 1122*cdf0e10cSrcweir <tbody> 1123*cdf0e10cSrcweir <tr class="thead"> 1124*cdf0e10cSrcweir <td class="cell20">Clipboard Example</td> 1125*cdf0e10cSrcweir <td class="cell80">Description</td> 1126*cdf0e10cSrcweir </tr> 1127*cdf0e10cSrcweir <tr> 1128*cdf0e10cSrcweir <td class="cell20"><img 1129*cdf0e10cSrcweir src="../../docs/images/bluball.gif"> <a 1130*cdf0e10cSrcweir href="./OfficeDev/Clipboard/Clipboard.java" 1131*cdf0e10cSrcweir title="link to OfficeDev/Clipboard/Clipboard.java">Clipboard</a></td> 1132*cdf0e10cSrcweir <td class="cell80">Demonstrates the usage of the 1133*cdf0e10cSrcweirclipboard service by registering a clipboard listener, getting a list 1134*cdf0e10cSrcweirof formats from the current clipboard content and copying some data to 1135*cdf0e10cSrcweirthe clipboard.</td> 1136*cdf0e10cSrcweir </tr> 1137*cdf0e10cSrcweir <tr> 1138*cdf0e10cSrcweir <td class="cell20"><a 1139*cdf0e10cSrcweir href="./OfficeDev/Clipboard/ClipboardListener.java" 1140*cdf0e10cSrcweir title="link to OfficeDev/Clipboard/ClipboardListener.java">ClipboardListener</a></td> 1141*cdf0e10cSrcweir <td class="cell80">Implements a clipboard listener 1142*cdf0e10cSrcweirfor the Clipboard example. In such a class, actions can be implemented 1143*cdf0e10cSrcweirwhich happen whenever the clipboard content changes.</td> 1144*cdf0e10cSrcweir </tr> 1145*cdf0e10cSrcweir <tr> 1146*cdf0e10cSrcweir <td class="cell20"><a 1147*cdf0e10cSrcweir href="./OfficeDev/Clipboard/ClipboardOwner.java" 1148*cdf0e10cSrcweir title="link to OfficeDev/Clipboard/ClipboardOwner.java">ClipboardOwner</a></td> 1149*cdf0e10cSrcweir <td class="cell80">Implements a clipboard owner for 1150*cdf0e10cSrcweirthe Clipboard example. This class is notified when it loses ownership 1151*cdf0e10cSrcweirof the clipboard.</td> 1152*cdf0e10cSrcweir </tr> 1153*cdf0e10cSrcweir <tr> 1154*cdf0e10cSrcweir <td class="cell20"><a 1155*cdf0e10cSrcweir href="./OfficeDev/Clipboard/TextTransferable.java" 1156*cdf0e10cSrcweir title="link to OfficeDev/Clipboard/TextTransferable.java">TextTransferable</a></td> 1157*cdf0e10cSrcweir <td class="cell80">Implements a data object for the 1158*cdf0e10cSrcweirClipboard example. Such classes supply clients with data in a variety 1159*cdf0e10cSrcweirof formats.</td> 1160*cdf0e10cSrcweir </tr> 1161*cdf0e10cSrcweir </tbody> 1162*cdf0e10cSrcweir </table> 1163*cdf0e10cSrcweir </td> 1164*cdf0e10cSrcweir </tr> 1165*cdf0e10cSrcweir <tr> 1166*cdf0e10cSrcweir <td> 1167*cdf0e10cSrcweir <table class="table4"> 1168*cdf0e10cSrcweir <tbody> 1169*cdf0e10cSrcweir <tr class="thead"> 1170*cdf0e10cSrcweir <td class="cell20">Linguistic Example</td> 1171*cdf0e10cSrcweir <td class="cell80">Description</td> 1172*cdf0e10cSrcweir </tr> 1173*cdf0e10cSrcweir <tr> 1174*cdf0e10cSrcweir <td class="cell20"><img 1175*cdf0e10cSrcweir src="../../docs/images/bluball.gif"> <a 1176*cdf0e10cSrcweir href="./OfficeDev/Linguistic/LinguisticExamples.java" 1177*cdf0e10cSrcweir title="link to OfficeDev/Linguistic/LinguisticExamples.java">LinguisticExamples</a></td> 1178*cdf0e10cSrcweir <td class="cell80">A short example that uses most of 1179*cdf0e10cSrcweirthe functionality from the OpenOffice.org %PRODUCT_RELEASE% linguistic API.</td> 1180*cdf0e10cSrcweir </tr> 1181*cdf0e10cSrcweir <tr> 1182*cdf0e10cSrcweir <td class="cell20"><a 1183*cdf0e10cSrcweir href="./OfficeDev/Linguistic/OneInstanceFactory.java" 1184*cdf0e10cSrcweir title="link to OfficeDev/Linguistic/OneInstanceFactory.java">OneInstanceFactory</a></td> 1185*cdf0e10cSrcweir <td class="cell80">This class is used to provide a 1186*cdf0e10cSrcweirservice factory for the linguistic services. It enforces that the 1187*cdf0e10cSrcweiractual implementations are only instantiated once.</td> 1188*cdf0e10cSrcweir </tr> 1189*cdf0e10cSrcweir <tr> 1190*cdf0e10cSrcweir <td class="cell20"><a 1191*cdf0e10cSrcweir href="./OfficeDev/Linguistic/PropChgHelper.java" 1192*cdf0e10cSrcweir title="link to OfficeDev/Linguistic/PropChgHelper.java">PropChgHelper</a></td> 1193*cdf0e10cSrcweir <td class="cell80">The base class for several 1194*cdf0e10cSrcweirproperty change helpers which are used to keep track of the changes of 1195*cdf0e10cSrcweirthe service relevant linguistic properties. It is also used by the 1196*cdf0e10cSrcweirthesaurus directly.</td> 1197*cdf0e10cSrcweir </tr> 1198*cdf0e10cSrcweir <tr> 1199*cdf0e10cSrcweir <td class="cell20"><a 1200*cdf0e10cSrcweir href="./OfficeDev/Linguistic/PropChgHelper_Hyph.java" 1201*cdf0e10cSrcweir title="link to OfficeDev/Linguistic/PropChgHelper_Hyph.java">PropChgHelper_Hyph</a></td> 1202*cdf0e10cSrcweir <td class="cell80">The property change helper that is 1203*cdf0e10cSrcweirtracking the hyphenation relevant properties.</td> 1204*cdf0e10cSrcweir </tr> 1205*cdf0e10cSrcweir <tr> 1206*cdf0e10cSrcweir </tr> 1207*cdf0e10cSrcweir <tr> 1208*cdf0e10cSrcweir <td class="cell20"><a 1209*cdf0e10cSrcweir href="./OfficeDev/Linguistic/PropChgHelper_Spell.java" 1210*cdf0e10cSrcweir title="link to OfficeDev/Linguistic/PropChgHelper_Spell.java">PropChgHelper_Spell</a></td> 1211*cdf0e10cSrcweir <td class="cell80">The property change helper that is 1212*cdf0e10cSrcweirtracking the spell checking relevant properties.</td> 1213*cdf0e10cSrcweir </tr> 1214*cdf0e10cSrcweir <tr> 1215*cdf0e10cSrcweir </tr> 1216*cdf0e10cSrcweir <tr> 1217*cdf0e10cSrcweir <td class="cell20"><a 1218*cdf0e10cSrcweir href="./OfficeDev/Linguistic/SampleHyphenator.java" 1219*cdf0e10cSrcweir title="link to OfficeDev/Linguistic/SampleHyphenator.java">SampleHyphenator</a></td> 1220*cdf0e10cSrcweir <td class="cell80">A simple implementation for a <a 1221*cdf0e10cSrcweir href="../../docs/common/ref/com/sun/star/linguistic2/Hyphenator.html" 1222*cdf0e10cSrcweir title="link to the reference documentation of com.sun.star.linguistic2.Hypenator"><code>Hyphenator</code></a> 1223*cdf0e10cSrcweirservice.</td> 1224*cdf0e10cSrcweir </tr> 1225*cdf0e10cSrcweir <tr> 1226*cdf0e10cSrcweir </tr> 1227*cdf0e10cSrcweir <tr> 1228*cdf0e10cSrcweir <td class="cell20"><a 1229*cdf0e10cSrcweir href="./OfficeDev/Linguistic/SampleSpellChecker.java" 1230*cdf0e10cSrcweir title="link to OfficeDev/Linguistic/SampleSpellChecker.java">SampleSpellChecker</a></td> 1231*cdf0e10cSrcweir <td class="cell80">A simple implementation for a <a 1232*cdf0e10cSrcweir href="../../docs/common/ref/com/sun/star/linguistic2/SpellChecker.html" 1233*cdf0e10cSrcweir title="link to the reference documentation of com.sun.star.linguistic2.SpellChecker"><code>SpellChecker</code></a> 1234*cdf0e10cSrcweirservice.</td> 1235*cdf0e10cSrcweir </tr> 1236*cdf0e10cSrcweir <tr> 1237*cdf0e10cSrcweir </tr> 1238*cdf0e10cSrcweir <tr> 1239*cdf0e10cSrcweir <td class="cell20"><a 1240*cdf0e10cSrcweir href="./OfficeDev/Linguistic/SampleThesaurus.java" 1241*cdf0e10cSrcweir title="link to OfficeDev/Linguistic/SampleThesaurus.java">SampleThesaurus</a></td> 1242*cdf0e10cSrcweir <td class="cell80">A simple implementation for a <a 1243*cdf0e10cSrcweir href="../../docs/common/ref/com/sun/star/linguistic2/Thesaurus.html" 1244*cdf0e10cSrcweir title="link to the reference documentation of com.sun.star.linguistic2.Thesaurus"><code>Thesaurus</code></a> 1245*cdf0e10cSrcweirservice.</td> 1246*cdf0e10cSrcweir </tr> 1247*cdf0e10cSrcweir <tr> 1248*cdf0e10cSrcweir </tr> 1249*cdf0e10cSrcweir <tr> 1250*cdf0e10cSrcweir <td class="cell20"><a 1251*cdf0e10cSrcweir href="./OfficeDev/Linguistic/XHyphenatedWord_impl.java" 1252*cdf0e10cSrcweir title="link to OfficeDev/Linguistic/XHyphenatedWord_impl.java">XHyphenatedWord_impl</a></td> 1253*cdf0e10cSrcweir <td class="cell80">An object implementing the <a 1254*cdf0e10cSrcweir href="../../docs/common/ref/com/sun/star/linguistic2/XHyphenatedWord.html" 1255*cdf0e10cSrcweir title="link to the reference documentation of com.sun.star.linguistic2/XHyphenatedWord"><code>XHyphenatedWord</code></a> 1256*cdf0e10cSrcweirinterface. An instance of this type may be returned by the hyphenator.</td> 1257*cdf0e10cSrcweir </tr> 1258*cdf0e10cSrcweir <tr> 1259*cdf0e10cSrcweir </tr> 1260*cdf0e10cSrcweir <tr> 1261*cdf0e10cSrcweir <td class="cell20"><a 1262*cdf0e10cSrcweir href="./OfficeDev/Linguistic/XMeaning_impl.java" 1263*cdf0e10cSrcweir title="link to OfficeDev/Linguistic/XMeaning_impl.java">XMeaning_impl</a></td> 1264*cdf0e10cSrcweir <td class="cell80">An object implementing the <a 1265*cdf0e10cSrcweir href="../../docs/common/ref/com/sun/star/linguistic2/XMeaning.html" 1266*cdf0e10cSrcweir title="link to the reference documentation of com.sun.star.linguistic2.XMeaning"><code>XMeaning</code></a> 1267*cdf0e10cSrcweirinterface. An instance of this type may be returned by the thesaurus.</td> 1268*cdf0e10cSrcweir </tr> 1269*cdf0e10cSrcweir <tr> 1270*cdf0e10cSrcweir </tr> 1271*cdf0e10cSrcweir <tr> 1272*cdf0e10cSrcweir <td class="cell20"><a 1273*cdf0e10cSrcweir href="./OfficeDev/Linguistic/XPossibleHyphens_impl.java" 1274*cdf0e10cSrcweir title="link to OfficeDev/Linguistic/XPossibleHyphens_impl.java">XPossibleHyphens_impl</a></td> 1275*cdf0e10cSrcweir <td class="cell80">An object implementing the <a 1276*cdf0e10cSrcweir href="../../docs/common/ref/com/sun/star/linguistic2/XPossibleHyphens.html" 1277*cdf0e10cSrcweir title="link to the reference documentation of com.sun.star.linguistic2.XPossibleHyphens"> 1278*cdf0e10cSrcweir <code>XPossibleHyphens</code></a> interface. An 1279*cdf0e10cSrcweirinstance of this type may be returned by the hyphenator.</td> 1280*cdf0e10cSrcweir </tr> 1281*cdf0e10cSrcweir <tr> 1282*cdf0e10cSrcweir </tr> 1283*cdf0e10cSrcweir <tr> 1284*cdf0e10cSrcweir <td class="cell20"><a 1285*cdf0e10cSrcweir href="./OfficeDev/Linguistic/XSpellAlternatives_impl.java" 1286*cdf0e10cSrcweir title="link to OfficeDev/Linguistic/XSpellAlternatives_impl.java">XSpellAlternatives_impl</a></td> 1287*cdf0e10cSrcweir <td class="cell80">An object implementing the <a 1288*cdf0e10cSrcweir href="../../docs/common/ref/com/sun/star/linguistic2/XSpellAlternatives.html" 1289*cdf0e10cSrcweir title="link to the reference documentation of com.sun.star.linguistic2.XSpellAlternatives"> 1290*cdf0e10cSrcweir <code>XSpellAlternatives</code></a> interface. An 1291*cdf0e10cSrcweirinstance of this type may be returned by the spell checker.</td> 1292*cdf0e10cSrcweir </tr> 1293*cdf0e10cSrcweir <tr> 1294*cdf0e10cSrcweir </tr> 1295*cdf0e10cSrcweir </tbody> 1296*cdf0e10cSrcweir </table> 1297*cdf0e10cSrcweir </td> 1298*cdf0e10cSrcweir </tr> 1299*cdf0e10cSrcweir <tr> 1300*cdf0e10cSrcweir <td> 1301*cdf0e10cSrcweir <table class="table4"> 1302*cdf0e10cSrcweir <tbody> 1303*cdf0e10cSrcweir <tr class="thead"> 1304*cdf0e10cSrcweir <td class="cell20">Path Settings Example</td> 1305*cdf0e10cSrcweir <td class="cell80">Description</td> 1306*cdf0e10cSrcweir </tr> 1307*cdf0e10cSrcweir <tr> 1308*cdf0e10cSrcweir <td class="cell20"><a 1309*cdf0e10cSrcweir href="./OfficeDev/PathSettings/PathSettingsTest.java" 1310*cdf0e10cSrcweir title="link to OfficeDev/PathSettings/PathSettingsTest.java">PathsettingsTest</a></td> 1311*cdf0e10cSrcweir <td class="cell80">This code example creates the 1312*cdf0e10cSrcweirservice <a 1313*cdf0e10cSrcweir href="../../docs/common/ref/com/sun/star/util/PathSettings.html" 1314*cdf0e10cSrcweir title="link to the reference documentation of com.sun.star.util.PathSettingst"> 1315*cdf0e10cSrcweir <code>com.sun.star.util.PathSettings</code></a> and 1316*cdf0e10cSrcweirretrieves all path properties from it. It shows how a developer can 1317*cdf0e10cSrcweirchange the path properties using the <a 1318*cdf0e10cSrcweir href="../../docs/common/ref/com/sun/star/beans/XPropertySet.html" 1319*cdf0e10cSrcweir title="link to the reference documentation of com.sun.star.beans.XPropertySet"><code>XPropertySet</code></a> 1320*cdf0e10cSrcweirinterface.</td> 1321*cdf0e10cSrcweir </tr> 1322*cdf0e10cSrcweir </tbody> 1323*cdf0e10cSrcweir </table> 1324*cdf0e10cSrcweir </td> 1325*cdf0e10cSrcweir </tr> 1326*cdf0e10cSrcweir <tr> 1327*cdf0e10cSrcweir <td> 1328*cdf0e10cSrcweir <table class="table4"> 1329*cdf0e10cSrcweir <tbody> 1330*cdf0e10cSrcweir <tr class="thead"> 1331*cdf0e10cSrcweir <td class="cell20">Path Substitution Example</td> 1332*cdf0e10cSrcweir <td class="cell80">Description</td> 1333*cdf0e10cSrcweir </tr> 1334*cdf0e10cSrcweir <tr> 1335*cdf0e10cSrcweir <td class="cell20"><a 1336*cdf0e10cSrcweir href="./OfficeDev/PathSubstitution/PathSubstitutionTest.java" 1337*cdf0e10cSrcweir title="link to OfficeDev/PathSubstitution/PathSubstitutionTest.java">PathSubstitutionTest</a></td> 1338*cdf0e10cSrcweir <td class="cell80">This code example creates the path 1339*cdf0e10cSrcweirsubstitution service <a 1340*cdf0e10cSrcweir href="../../docs/common/ref/com/sun/star/util/PathSubstitution.html" 1341*cdf0e10cSrcweir title="link to the reference documentation of com.sun.star.util.PathSubstitution"> 1342*cdf0e10cSrcweir <code>com.sun.star.util.PathSubstitution</code></a> 1343*cdf0e10cSrcweirand retrieves the pre-defined Office path variables. It shows the 1344*cdf0e10cSrcweirvariable values on the screen. The reSubstiuteVariables function is 1345*cdf0e10cSrcweirused to show how the service exchanges parts of a path with a path 1346*cdf0e10cSrcweirvariable supporting platform independent path usage.</td> 1347*cdf0e10cSrcweir </tr> 1348*cdf0e10cSrcweir </tbody> 1349*cdf0e10cSrcweir </table> 1350*cdf0e10cSrcweir </td> 1351*cdf0e10cSrcweir </tr> 1352*cdf0e10cSrcweir <tr> 1353*cdf0e10cSrcweir <td> 1354*cdf0e10cSrcweir <table class="table4"> 1355*cdf0e10cSrcweir <tbody> 1356*cdf0e10cSrcweir <tr class="thead"> 1357*cdf0e10cSrcweir <td class="cell20">Disable Commands Example</td> 1358*cdf0e10cSrcweir <td class="cell80">Description</td> 1359*cdf0e10cSrcweir </tr> 1360*cdf0e10cSrcweir <tr> 1361*cdf0e10cSrcweir <td class="cell20"><a 1362*cdf0e10cSrcweir href="./OfficeDev/DisableCommands/DisableCommandsTest.java" 1363*cdf0e10cSrcweir title="link to OfficeDev/DisableCommands/DisableCommandsTest.java">DisableCommandsTest</a></td> 1364*cdf0e10cSrcweir <td class="cell80">Implements an example showing how 1365*cdf0e10cSrcweira developer can use the configuration API to disable/enable commands at 1366*cdf0e10cSrcweirruntime.</td> 1367*cdf0e10cSrcweir </tr> 1368*cdf0e10cSrcweir </tbody> 1369*cdf0e10cSrcweir </table> 1370*cdf0e10cSrcweir </td> 1371*cdf0e10cSrcweir </tr> 1372*cdf0e10cSrcweir </tbody> 1373*cdf0e10cSrcweir </table> 1374*cdf0e10cSrcweir </td> 1375*cdf0e10cSrcweir <td class="content1"><img class="nothing8" 1376*cdf0e10cSrcweir src="../../docs/images/nada.gif"></td> 1377*cdf0e10cSrcweir </tr> 1378*cdf0e10cSrcweir <tr> 1379*cdf0e10cSrcweir <td colspan="3"><img class="line" 1380*cdf0e10cSrcweir src="../../docs/images/sdk_line-1.gif"></td> 1381*cdf0e10cSrcweir </tr> 1382*cdf0e10cSrcweir <tr> 1383*cdf0e10cSrcweir <td class="content1"><img class="nothing8" 1384*cdf0e10cSrcweir src="../../docs/images/nada.gif"></td> 1385*cdf0e10cSrcweir <td> 1386*cdf0e10cSrcweir <table class="table2"> 1387*cdf0e10cSrcweir <tbody> 1388*cdf0e10cSrcweir <tr> 1389*cdf0e10cSrcweir <td> 1390*cdf0e10cSrcweir <table class="table3"> 1391*cdf0e10cSrcweir <tbody> 1392*cdf0e10cSrcweir <tr> 1393*cdf0e10cSrcweir <td colspan="2" class="head1"><a name="Text">Text 1394*cdf0e10cSrcweirDocuments examples</a></td> 1395*cdf0e10cSrcweir <td align="right"> <a href="#examples" 1396*cdf0e10cSrcweir title="link to the Developer's Guide examples overview"><img 1397*cdf0e10cSrcweir class="navigate" src="../../docs/images/nav_up.png"></a> <a 1398*cdf0e10cSrcweir href="../../index.html" title="link to the SDK start page"><img 1399*cdf0e10cSrcweir class="navigate" src="../../docs/images/nav_home.png"></a> </td> 1400*cdf0e10cSrcweir </tr> 1401*cdf0e10cSrcweir </tbody> 1402*cdf0e10cSrcweir </table> 1403*cdf0e10cSrcweir </td> 1404*cdf0e10cSrcweir </tr> 1405*cdf0e10cSrcweir <tr> 1406*cdf0e10cSrcweir <td> 1407*cdf0e10cSrcweir <table class="table4"> 1408*cdf0e10cSrcweir <tbody> 1409*cdf0e10cSrcweir <tr class="thead"> 1410*cdf0e10cSrcweir <td class="cell20"> Example</td> 1411*cdf0e10cSrcweir <td class="cell80">Description</td> 1412*cdf0e10cSrcweir </tr> 1413*cdf0e10cSrcweir <tr> 1414*cdf0e10cSrcweir <td class="cell20"><img 1415*cdf0e10cSrcweir src="../../docs/images/bluball.gif"> <a 1416*cdf0e10cSrcweir href="./Text/TextDocuments.java" 1417*cdf0e10cSrcweir title="link to Text/TextDocuments.java">TextDocuments</a></td> 1418*cdf0e10cSrcweir <td class="cell80"> 1419*cdf0e10cSrcweir <p>Demonstrates a wide variety of API functions in 1420*cdf0e10cSrcweirtext documents and text document views.</p> 1421*cdf0e10cSrcweir <ul> 1422*cdf0e10cSrcweir <li>use of templates</li> 1423*cdf0e10cSrcweir <li>using the view cursor, including visible text 1424*cdf0e10cSrcweirselections</li> 1425*cdf0e10cSrcweir <li>changing the paragraph style</li> 1426*cdf0e10cSrcweir <li>using various editing facilities like text 1427*cdf0e10cSrcweirinsertion</li> 1428*cdf0e10cSrcweir <li>using various cursor interfaces</li> 1429*cdf0e10cSrcweir <li>creating text contents, like tables, sections 1430*cdf0e10cSrcweirand frames, well as text fields and columns</li> 1431*cdf0e10cSrcweir <li>using stylesheets</li> 1432*cdf0e10cSrcweir <li>applying numbering styles</li> 1433*cdf0e10cSrcweir <li>using references, indexes, footnotes and 1434*cdf0e10cSrcweirautotext</li> 1435*cdf0e10cSrcweir <li>loading, storing and printing a text document</li> 1436*cdf0e10cSrcweir </ul> 1437*cdf0e10cSrcweir <p>Adjust the strings at the beginning of the class 1438*cdf0e10cSrcweirdefinition to match your installation!</p> 1439*cdf0e10cSrcweir </td> 1440*cdf0e10cSrcweir </tr> 1441*cdf0e10cSrcweir </tbody> 1442*cdf0e10cSrcweir </table> 1443*cdf0e10cSrcweir </td> 1444*cdf0e10cSrcweir </tr> 1445*cdf0e10cSrcweir </tbody> 1446*cdf0e10cSrcweir </table> 1447*cdf0e10cSrcweir </td> 1448*cdf0e10cSrcweir <td class="content1"><img class="nothing8" 1449*cdf0e10cSrcweir src="../../docs/images/nada.gif"></td> 1450*cdf0e10cSrcweir </tr> 1451*cdf0e10cSrcweir <tr> 1452*cdf0e10cSrcweir <td colspan="3"><img class="line" 1453*cdf0e10cSrcweir src="../../docs/images/sdk_line-1.gif"></td> 1454*cdf0e10cSrcweir </tr> 1455*cdf0e10cSrcweir <tr> 1456*cdf0e10cSrcweir <td class="content1"><img class="nothing8" 1457*cdf0e10cSrcweir src="../../docs/images/nada.gif"></td> 1458*cdf0e10cSrcweir <td> 1459*cdf0e10cSrcweir <table class="table2"> 1460*cdf0e10cSrcweir <tbody> 1461*cdf0e10cSrcweir <tr> 1462*cdf0e10cSrcweir <td> 1463*cdf0e10cSrcweir <table class="table3"> 1464*cdf0e10cSrcweir <tbody> 1465*cdf0e10cSrcweir <tr> 1466*cdf0e10cSrcweir <td colspan="2" class="head1"><a name="Spreadsheet">Spreadsheet 1467*cdf0e10cSrcweirDocuments examples</a></td> 1468*cdf0e10cSrcweir <td align="right"> <a href="#examples" 1469*cdf0e10cSrcweir title="link to the Developer's Guide examples overview"><img 1470*cdf0e10cSrcweir class="navigate" src="../../docs/images/nav_up.png"></a> <a 1471*cdf0e10cSrcweir href="../../index.html" title="link to the SDK start page"><img 1472*cdf0e10cSrcweir class="navigate" src="../../docs/images/nav_home.png"></a> </td> 1473*cdf0e10cSrcweir </tr> 1474*cdf0e10cSrcweir </tbody> 1475*cdf0e10cSrcweir </table> 1476*cdf0e10cSrcweir </td> 1477*cdf0e10cSrcweir </tr> 1478*cdf0e10cSrcweir <tr> 1479*cdf0e10cSrcweir <td> 1480*cdf0e10cSrcweir <table class="table4"> 1481*cdf0e10cSrcweir <tbody> 1482*cdf0e10cSrcweir <tr class="thead"> 1483*cdf0e10cSrcweir <td class="cell20"> Example</td> 1484*cdf0e10cSrcweir <td class="cell80">Description</td> 1485*cdf0e10cSrcweir </tr> 1486*cdf0e10cSrcweir <tr> 1487*cdf0e10cSrcweir <td class="cell20"><a 1488*cdf0e10cSrcweir href="./Spreadsheet/ExampleAddIn.java" 1489*cdf0e10cSrcweir title="link to Spreadsheet/ExampleAddIn.java">ExampleAddIn</a></td> 1490*cdf0e10cSrcweir <td class="cell80">Implements a simple add-in 1491*cdf0e10cSrcweircomponent for spreadsheet documents. This component needs to be 1492*cdf0e10cSrcweirdeployed before it can be used.</td> 1493*cdf0e10cSrcweir </tr> 1494*cdf0e10cSrcweir <tr> 1495*cdf0e10cSrcweir <td class="cell20"><a 1496*cdf0e10cSrcweir href="./Spreadsheet/ExampleDataPilotSource.java" 1497*cdf0e10cSrcweir title="link to Spreadsheet/ExampleDataPilotSource.java">ExampleDataPilotSource</a></td> 1498*cdf0e10cSrcweir <td class="cell80">Shows usage of a wide variety of 1499*cdf0e10cSrcweirspreadsheet interfaces like <a 1500*cdf0e10cSrcweir href="../../docs/common/ref/com/sun/star/sheet/XCellRangeData.html" 1501*cdf0e10cSrcweir title="link to the reference documentation of com.sun.star.sheet.XCellRangeData"> 1502*cdf0e10cSrcweir <code>XCellRangeData</code></a>, <a 1503*cdf0e10cSrcweir href="../../docs/common/ref/com/sun/star/sheet/XCellSeries.html" 1504*cdf0e10cSrcweir title="link to the reference documentation of com.sun.star.sheet.XCellSeries"><code>XCellSeries</code></a>, 1505*cdf0e10cSrcweir <a 1506*cdf0e10cSrcweir href="../../docs/common/ref/com/sun/star/sheet/XArrayFormulaRange.html" 1507*cdf0e10cSrcweir title="link to the reference documentation of com.sun.star.sheet.XArrayFormularRange"><code>XArrayFormulaRange</code></a> 1508*cdf0e10cSrcweirand <a 1509*cdf0e10cSrcweir href="../../docs/common/ref/com/sun/star/sheet/XMultipleOperation.html" 1510*cdf0e10cSrcweir title="link to the reference documentation of com.sun.star.sheet.XMultipleOperation"><code>XMultipleOperations</code></a> 1511*cdf0e10cSrcweiras well as named ranges, label ranges and data pilot.</td> 1512*cdf0e10cSrcweir </tr> 1513*cdf0e10cSrcweir <tr> 1514*cdf0e10cSrcweir <td class="cell20"><img 1515*cdf0e10cSrcweir src="../../docs/images/bluball.gif"> <a 1516*cdf0e10cSrcweir href="./Spreadsheet/GeneralTableSample.java" 1517*cdf0e10cSrcweir title="link to Spreadsheet/GeneralTableSample.java">GeneralTableSample</a></td> 1518*cdf0e10cSrcweir <td class="cell80">Executes some examples working on 1519*cdf0e10cSrcweirgeneric tables.</td> 1520*cdf0e10cSrcweir </tr> 1521*cdf0e10cSrcweir <tr> 1522*cdf0e10cSrcweir <td class="cell20"><a 1523*cdf0e10cSrcweir href="./Spreadsheet/SpreadsheetDocHelper.java" 1524*cdf0e10cSrcweir title="link to Spreadsheet/SpreadsheetDocHelper.java">SpreadsheetDocHelper</a></td> 1525*cdf0e10cSrcweir <td class="cell80">Defines a helper class for the 1526*cdf0e10cSrcweirother examples to access spreadsheet documents, sheets and cells.</td> 1527*cdf0e10cSrcweir </tr> 1528*cdf0e10cSrcweir <tr> 1529*cdf0e10cSrcweir <td class="cell20"><img 1530*cdf0e10cSrcweir src="../../docs/images/bluball.gif"> <a 1531*cdf0e10cSrcweir href="./Spreadsheet/SpreadsheetSample.java" 1532*cdf0e10cSrcweir title="link to Spreadsheet/SpreadsheetSample.java">SpreadsheetSample</a></td> 1533*cdf0e10cSrcweir <td class="cell80">Executes some examples working on 1534*cdf0e10cSrcweira spreadsheet document.</td> 1535*cdf0e10cSrcweir </tr> 1536*cdf0e10cSrcweir <tr> 1537*cdf0e10cSrcweir <td class="cell20"><img 1538*cdf0e10cSrcweir src="../../docs/images/bluball.gif"> <a 1539*cdf0e10cSrcweir href="./Spreadsheet/ViewSample.java" 1540*cdf0e10cSrcweir title="link to Spreadsheet/ViewSample.java">ViewSample</a></td> 1541*cdf0e10cSrcweir <td class="cell80">Shows how to manipulate view 1542*cdf0e10cSrcweirsettings like splitting sheeting sheets and selecting cells.</td> 1543*cdf0e10cSrcweir </tr> 1544*cdf0e10cSrcweir </tbody> 1545*cdf0e10cSrcweir </table> 1546*cdf0e10cSrcweir </td> 1547*cdf0e10cSrcweir </tr> 1548*cdf0e10cSrcweir </tbody> 1549*cdf0e10cSrcweir </table> 1550*cdf0e10cSrcweir </td> 1551*cdf0e10cSrcweir <td class="content1"><img class="nothing8" 1552*cdf0e10cSrcweir src="../../docs/images/nada.gif"></td> 1553*cdf0e10cSrcweir </tr> 1554*cdf0e10cSrcweir <tr> 1555*cdf0e10cSrcweir <td colspan="3"><img class="line" 1556*cdf0e10cSrcweir src="../../docs/images/sdk_line-1.gif"></td> 1557*cdf0e10cSrcweir </tr> 1558*cdf0e10cSrcweir <tr> 1559*cdf0e10cSrcweir <td class="content1"><img class="nothing8" 1560*cdf0e10cSrcweir src="../../docs/images/nada.gif"></td> 1561*cdf0e10cSrcweir <td> 1562*cdf0e10cSrcweir <table class="table2"> 1563*cdf0e10cSrcweir <tbody> 1564*cdf0e10cSrcweir <tr> 1565*cdf0e10cSrcweir <td> 1566*cdf0e10cSrcweir <table class="table3"> 1567*cdf0e10cSrcweir <tbody> 1568*cdf0e10cSrcweir <tr> 1569*cdf0e10cSrcweir <td colspan="2" class="head1"><a name="Drawing">Drawing 1570*cdf0e10cSrcweirand Presentation Documents examples</a></td> 1571*cdf0e10cSrcweir <td align="right"> <a href="#examples" 1572*cdf0e10cSrcweir title="link to the Developer's Guide examples overview"><img 1573*cdf0e10cSrcweir class="navigate" src="../../docs/images/nav_up.png"></a> <a 1574*cdf0e10cSrcweir href="../../index.html" title="link to the SDK start page"><img 1575*cdf0e10cSrcweir class="navigate" src="../../docs/images/nav_home.png"></a> </td> 1576*cdf0e10cSrcweir </tr> 1577*cdf0e10cSrcweir </tbody> 1578*cdf0e10cSrcweir </table> 1579*cdf0e10cSrcweir </td> 1580*cdf0e10cSrcweir </tr> 1581*cdf0e10cSrcweir <tr> 1582*cdf0e10cSrcweir <td> 1583*cdf0e10cSrcweir <table class="table4"> 1584*cdf0e10cSrcweir <tbody> 1585*cdf0e10cSrcweir <tr class="thead"> 1586*cdf0e10cSrcweir <td class="cell20"> Example</td> 1587*cdf0e10cSrcweir <td class="cell80">Description</td> 1588*cdf0e10cSrcweir </tr> 1589*cdf0e10cSrcweir <tr> 1590*cdf0e10cSrcweir <td class="cell20"><img 1591*cdf0e10cSrcweir src="../../docs/images/bluball.gif"> <a 1592*cdf0e10cSrcweir href="./Drawing/ChangeOrderDemo.java" 1593*cdf0e10cSrcweir title="link to Drawing/ChangeOrderDemo.java">ChangeOrderDemo</a></td> 1594*cdf0e10cSrcweir <td class="cell80">Shows how to change the painting 1595*cdf0e10cSrcweirorder of shapes.</td> 1596*cdf0e10cSrcweir </tr> 1597*cdf0e10cSrcweir <tr> 1598*cdf0e10cSrcweir <td class="cell20"><img 1599*cdf0e10cSrcweir src="../../docs/images/bluball.gif"> <a 1600*cdf0e10cSrcweir href="./Drawing/ControlAndSelectDemo.java" 1601*cdf0e10cSrcweir title="link to Drawing/ControlAndSelectDemo.java">ControlAndSelectDemo</a></td> 1602*cdf0e10cSrcweir <td class="cell80">Demonstrates the creation of a 1603*cdf0e10cSrcweircontrol shape and selects it in the current view.</td> 1604*cdf0e10cSrcweir </tr> 1605*cdf0e10cSrcweir <tr> 1606*cdf0e10cSrcweir <td class="cell20"><img 1607*cdf0e10cSrcweir src="../../docs/images/bluball.gif"> <a 1608*cdf0e10cSrcweir href="./Drawing/CustomShowDemo.java" 1609*cdf0e10cSrcweir title="link to Drawing/CustomShowDemo.java">CustomShowDemo</a></td> 1610*cdf0e10cSrcweir <td class="cell80">Creates two custom shows and 1611*cdf0e10cSrcweirselects one of these.</td> 1612*cdf0e10cSrcweir </tr> 1613*cdf0e10cSrcweir <tr> 1614*cdf0e10cSrcweir <td class="cell20"><img 1615*cdf0e10cSrcweir src="../../docs/images/bluball.gif"> <a 1616*cdf0e10cSrcweir href="./Drawing/DrawViewDemo.java" 1617*cdf0e10cSrcweir title="link to Drawing/DrawViewDemo.java">DrawViewDemo</a></td> 1618*cdf0e10cSrcweir <td class="cell80">Prints the view data properties 1619*cdf0e10cSrcweirand the controller properties of a drawing view and shows an example of 1620*cdf0e10cSrcweirsetting such a property.</td> 1621*cdf0e10cSrcweir </tr> 1622*cdf0e10cSrcweir <tr> 1623*cdf0e10cSrcweir <td class="cell20"><img 1624*cdf0e10cSrcweir src="../../docs/images/bluball.gif"> <a 1625*cdf0e10cSrcweir href="./Drawing/DrawingDemo.java" 1626*cdf0e10cSrcweir title="link to Drawing/DrawingDemo.java">DrawingDemo</a></td> 1627*cdf0e10cSrcweir <td class="cell80">Creates several shapes on several 1628*cdf0e10cSrcweirslides. Nice pattern included!</td> 1629*cdf0e10cSrcweir </tr> 1630*cdf0e10cSrcweir <tr> 1631*cdf0e10cSrcweir <td class="cell20"><img 1632*cdf0e10cSrcweir src="../../docs/images/bluball.gif"> <a 1633*cdf0e10cSrcweir href="./Drawing/FillAndLineStyleDemo.java" 1634*cdf0e10cSrcweir title="link to Drawing/FillAndLineStyleDemo.java">FillAndLineStyleDemo</a></td> 1635*cdf0e10cSrcweir <td class="cell80">Demonstrates usage of area fill 1636*cdf0e10cSrcweirand line style properties.</td> 1637*cdf0e10cSrcweir </tr> 1638*cdf0e10cSrcweir <tr> 1639*cdf0e10cSrcweir <td class="cell20"><img 1640*cdf0e10cSrcweir src="../../docs/images/bluball.gif"> <a 1641*cdf0e10cSrcweir href="./Drawing/GluePointDemo.java" 1642*cdf0e10cSrcweir title="link to Drawing/GluePointDemo.java">GluePointDemo</a></td> 1643*cdf0e10cSrcweir <td class="cell80">Creates two shapes with glue 1644*cdf0e10cSrcweirpoints and connects them with two connectors.</td> 1645*cdf0e10cSrcweir </tr> 1646*cdf0e10cSrcweir <tr> 1647*cdf0e10cSrcweir <td class="cell20"><img 1648*cdf0e10cSrcweir src="../../docs/images/bluball.gif"> <a 1649*cdf0e10cSrcweir href="./Drawing/GraphicExportDemo.java" 1650*cdf0e10cSrcweir title="link to Drawing/GraphicExportDemo.java">GraphicExportDemo</a></td> 1651*cdf0e10cSrcweir <td class="cell80">Loads a drawing document and 1652*cdf0e10cSrcweirexports it to a GIF file. Run this program with source URL, target URL 1653*cdf0e10cSrcweirand page index on the command line, where the URLs are fully qualified 1654*cdf0e10cSrcweirURLs.</td> 1655*cdf0e10cSrcweir </tr> 1656*cdf0e10cSrcweir <tr> 1657*cdf0e10cSrcweir <td class="cell20"><a href="./Drawing/Helper.java" 1658*cdf0e10cSrcweir title="link to Drawing/Helper.java">Helper</a></td> 1659*cdf0e10cSrcweir <td class="cell80">Contains a helper class for the 1660*cdf0e10cSrcweirother examples to connect to OpenOffice.org %PRODUCT_RELEASE% and open or create a drawing 1661*cdf0e10cSrcweirdocument.</td> 1662*cdf0e10cSrcweir </tr> 1663*cdf0e10cSrcweir <tr> 1664*cdf0e10cSrcweir <td class="cell20"><img 1665*cdf0e10cSrcweir src="../../docs/images/bluball.gif"> <a 1666*cdf0e10cSrcweir href="./Drawing/LayerDemo.java" title="link to Drawing/LayerDemo.java">LayerDemo</a></td> 1667*cdf0e10cSrcweir <td class="cell80">Creates shapes in different layers 1668*cdf0e10cSrcweirto show how to protect shapes from modifications.</td> 1669*cdf0e10cSrcweir </tr> 1670*cdf0e10cSrcweir <tr> 1671*cdf0e10cSrcweir <td class="cell20"><img 1672*cdf0e10cSrcweir src="../../docs/images/bluball.gif"> <a 1673*cdf0e10cSrcweir href="./Drawing/ObjectTransformationDemo.java" 1674*cdf0e10cSrcweir title="link to Drawing/ObjectTransformationDemo.java">ObjectTransformationDemo</a></td> 1675*cdf0e10cSrcweir <td class="cell80">Shows geometric transformations on 1676*cdf0e10cSrcweira shape using a homogenous matrix.</td> 1677*cdf0e10cSrcweir </tr> 1678*cdf0e10cSrcweir <tr> 1679*cdf0e10cSrcweir <td class="cell20"><img 1680*cdf0e10cSrcweir src="../../docs/images/bluball.gif"> <a 1681*cdf0e10cSrcweir href="./Drawing/Organigram.java" 1682*cdf0e10cSrcweir title="link to Drawing/Organigram.java">Organigram</a></td> 1683*cdf0e10cSrcweir <td class="cell80">Demonstrates the creation of an 1684*cdf0e10cSrcweirorganigram consisting of shapes and connectors.</td> 1685*cdf0e10cSrcweir </tr> 1686*cdf0e10cSrcweir <tr> 1687*cdf0e10cSrcweir <td class="cell20"><a href="./Drawing/PageHelper.java" 1688*cdf0e10cSrcweir title="link to Drawing/PageHelper.java">PageHelper</a></td> 1689*cdf0e10cSrcweir <td class="cell80">Contains a helper class for 1690*cdf0e10cSrcweiraccessing several kinds of draw pages in a presentation or drawing 1691*cdf0e10cSrcweirdocument.</td> 1692*cdf0e10cSrcweir </tr> 1693*cdf0e10cSrcweir <tr> 1694*cdf0e10cSrcweir <td class="cell20"><img 1695*cdf0e10cSrcweir src="../../docs/images/bluball.gif"> <a 1696*cdf0e10cSrcweir href="./Drawing/PresentationDemo.java" 1697*cdf0e10cSrcweir title="link to Drawing/PresentationDemo.java">PresentationDemo</a></td> 1698*cdf0e10cSrcweir <td class="cell80">Creates a presentation and runs it 1699*cdf0e10cSrcweirwith some user interaction.</td> 1700*cdf0e10cSrcweir </tr> 1701*cdf0e10cSrcweir <tr> 1702*cdf0e10cSrcweir <td class="cell20"><a 1703*cdf0e10cSrcweir href="./Drawing/ShapeHelper.java" 1704*cdf0e10cSrcweir title="link to Drawing/ShapeHelper.java">ShapeHelper</a></td> 1705*cdf0e10cSrcweir <td class="cell80">Contains a helper class for 1706*cdf0e10cSrcweiraccessing and creating shapes for the other examples.</td> 1707*cdf0e10cSrcweir </tr> 1708*cdf0e10cSrcweir <tr> 1709*cdf0e10cSrcweir <td class="cell20"><img 1710*cdf0e10cSrcweir src="../../docs/images/bluball.gif"> <a 1711*cdf0e10cSrcweir href="./Drawing/StyleDemo.java" title="link to Drawing/StyleDemo.java">StyleDemo</a></td> 1712*cdf0e10cSrcweir <td class="cell80">Creates a shape and applies a 1713*cdf0e10cSrcweirpredefined shape stylesheet.</td> 1714*cdf0e10cSrcweir </tr> 1715*cdf0e10cSrcweir <tr> 1716*cdf0e10cSrcweir <td class="cell20"><img 1717*cdf0e10cSrcweir src="../../docs/images/bluball.gif"> <a href="./Drawing/TextDemo.java" 1718*cdf0e10cSrcweir title="link to Drawing/TextDemo.java">TextDemo</a></td> 1719*cdf0e10cSrcweir <td class="cell80">Demonstrates usage of text and 1720*cdf0e10cSrcweirtext styles in shapes.</td> 1721*cdf0e10cSrcweir </tr> 1722*cdf0e10cSrcweir </tbody> 1723*cdf0e10cSrcweir </table> 1724*cdf0e10cSrcweir </td> 1725*cdf0e10cSrcweir </tr> 1726*cdf0e10cSrcweir </tbody> 1727*cdf0e10cSrcweir </table> 1728*cdf0e10cSrcweir </td> 1729*cdf0e10cSrcweir <td class="content1"><img class="nothing8" 1730*cdf0e10cSrcweir src="../../docs/images/nada.gif"></td> 1731*cdf0e10cSrcweir </tr> 1732*cdf0e10cSrcweir <tr> 1733*cdf0e10cSrcweir <td colspan="3"><img class="line" 1734*cdf0e10cSrcweir src="../../docs/images/sdk_line-1.gif"></td> 1735*cdf0e10cSrcweir </tr> 1736*cdf0e10cSrcweir <tr> 1737*cdf0e10cSrcweir <td class="content1"><img class="nothing8" 1738*cdf0e10cSrcweir src="../../docs/images/nada.gif"></td> 1739*cdf0e10cSrcweir <td> 1740*cdf0e10cSrcweir <table class="table2"> 1741*cdf0e10cSrcweir <tbody> 1742*cdf0e10cSrcweir <tr> 1743*cdf0e10cSrcweir <td> 1744*cdf0e10cSrcweir <table class="table3"> 1745*cdf0e10cSrcweir <tbody> 1746*cdf0e10cSrcweir <tr> 1747*cdf0e10cSrcweir <td colspan="2" class="head1"><a name="Charts">Charts 1748*cdf0e10cSrcweirexamples</a></td> 1749*cdf0e10cSrcweir <td align="right"> <a href="#examples" 1750*cdf0e10cSrcweir title="link to the Developer's Guide examples overview"><img 1751*cdf0e10cSrcweir class="navigate" src="../../docs/images/nav_up.png"></a> <a 1752*cdf0e10cSrcweir href="../../index.html" title="link to the SDK start page"><img 1753*cdf0e10cSrcweir class="navigate" src="../../docs/images/nav_home.png"></a> </td> 1754*cdf0e10cSrcweir </tr> 1755*cdf0e10cSrcweir </tbody> 1756*cdf0e10cSrcweir </table> 1757*cdf0e10cSrcweir </td> 1758*cdf0e10cSrcweir </tr> 1759*cdf0e10cSrcweir <tr> 1760*cdf0e10cSrcweir <td> 1761*cdf0e10cSrcweir <table class="table4"> 1762*cdf0e10cSrcweir <tbody> 1763*cdf0e10cSrcweir <tr class="thead"> 1764*cdf0e10cSrcweir <td class="cell20"> Example</td> 1765*cdf0e10cSrcweir <td class="cell80">Description</td> 1766*cdf0e10cSrcweir </tr> 1767*cdf0e10cSrcweir <tr> 1768*cdf0e10cSrcweir <td class="cell20"><a href="./Charts/CalcHelper.java" 1769*cdf0e10cSrcweir title="link to Charts/CalcHelper.java">CalcHelper</a></td> 1770*cdf0e10cSrcweir <td class="cell80">Contains some helper methods for 1771*cdf0e10cSrcweircharts in spreadsheet documents, like accessing sheets by name, 1772*cdf0e10cSrcweirinserting a chart into a sheet, filling cell ranges with random numbers 1773*cdf0e10cSrcweiretc.</td> 1774*cdf0e10cSrcweir </tr> 1775*cdf0e10cSrcweir <tr> 1776*cdf0e10cSrcweir <td class="cell20"><a href="./Charts/ChartHelper.java" 1777*cdf0e10cSrcweir title="link to Charts/ChartHelper.java">ChartHelper</a></td> 1778*cdf0e10cSrcweir <td class="cell80">Contains some helper methods for 1779*cdf0e10cSrcweircharts, like creating a chart as an embedded object.</td> 1780*cdf0e10cSrcweir </tr> 1781*cdf0e10cSrcweir <tr> 1782*cdf0e10cSrcweir <td class="cell20"><img 1783*cdf0e10cSrcweir src="../../docs/images/bluball.gif"> <a 1784*cdf0e10cSrcweir href="./Charts/ChartInCalc.java" 1785*cdf0e10cSrcweir title="link to Charts/ChartInCalc.java">ChartInCalc</a></td> 1786*cdf0e10cSrcweir <td class="cell80">Demonstrates how to create an 1787*cdf0e10cSrcweirembedded chart object with a random scatter chart within a spreadsheet.</td> 1788*cdf0e10cSrcweir </tr> 1789*cdf0e10cSrcweir <tr> 1790*cdf0e10cSrcweir <td class="cell20"><img 1791*cdf0e10cSrcweir src="../../docs/images/bluball.gif"> <a 1792*cdf0e10cSrcweir href="./Charts/ChartInDraw.java" 1793*cdf0e10cSrcweir title="link to Charts/ChartInDraw.java">ChartInDraw</a></td> 1794*cdf0e10cSrcweir <td class="cell80">Inserts a 3D-bar chart into a 1795*cdf0e10cSrcweirdrawing document.</td> 1796*cdf0e10cSrcweir </tr> 1797*cdf0e10cSrcweir <tr> 1798*cdf0e10cSrcweir <td class="cell20"><img 1799*cdf0e10cSrcweir src="../../docs/images/bluball.gif"> <a 1800*cdf0e10cSrcweir href="./Charts/ChartInWriter.java" 1801*cdf0e10cSrcweir title="link to Charts/ChartInWriter.java">ChartInWriter</a></td> 1802*cdf0e10cSrcweir <td class="cell80">Inserts an embedded chart object 1803*cdf0e10cSrcweirwith a random bar chart in a text document. This example does not 1804*cdf0e10cSrcweirreally work, because the API for embedding objects into text documents 1805*cdf0e10cSrcweiris not implemented. To be more precise.</td> 1806*cdf0e10cSrcweir </tr> 1807*cdf0e10cSrcweir <tr> 1808*cdf0e10cSrcweir <td class="cell20"><a href="./Charts/Helper.java" 1809*cdf0e10cSrcweir title="link to Charts/Helper.java">Helper</a></td> 1810*cdf0e10cSrcweir <td class="cell80">Shows how to connect to 1811*cdf0e10cSrcweirOpenOffice.org %PRODUCT_RELEASE% and create text, drawing or spreadsheet document. This 1812*cdf0e10cSrcweirclass is used as a helper class for the other examples.</td> 1813*cdf0e10cSrcweir </tr> 1814*cdf0e10cSrcweir <tr> 1815*cdf0e10cSrcweir <td class="cell20"><a 1816*cdf0e10cSrcweir href="./Charts/JavaSampleChartAddIn.java" 1817*cdf0e10cSrcweir title="link to Charts/JavaSampleChartAddIn.java">JavaSampleChartAddIn</a></td> 1818*cdf0e10cSrcweir <td class="cell80">Gives an example of how to 1819*cdf0e10cSrcweirimplement chart add-ins to create new or specialized diagram types. The 1820*cdf0e10cSrcweirresulting component has to be deployed before it can be used.</td> 1821*cdf0e10cSrcweir </tr> 1822*cdf0e10cSrcweir <tr> 1823*cdf0e10cSrcweir <td class="cell20"><img 1824*cdf0e10cSrcweir src="../../docs/images/bluball.gif"> <a 1825*cdf0e10cSrcweir href="./Charts/ListenAtCalcRangeInDraw.java" 1826*cdf0e10cSrcweir title="link to Charts/ListenAtCalcRangeInDraw.java">ListenAtCalcRangeInDraw</a></td> 1827*cdf0e10cSrcweir <td class="cell80">This helper class is used to build 1828*cdf0e10cSrcweirconnection between an embedded chart object in a drawing document and a 1829*cdf0e10cSrcweirdata range in a spreadsheet document.</td> 1830*cdf0e10cSrcweir </tr> 1831*cdf0e10cSrcweir <tr> 1832*cdf0e10cSrcweir <td class="cell20"><img 1833*cdf0e10cSrcweir src="../../docs/images/bluball.gif"> <a 1834*cdf0e10cSrcweir href="./Charts/SelectionChangeListener.java" 1835*cdf0e10cSrcweir title="link to Charts/SelectionChangeListener.java">SelectionChangeListener</a></td> 1836*cdf0e10cSrcweir <td class="cell80">Shows how to register a handler 1837*cdf0e10cSrcweirwhich is called when the selection within an embedded chart object 1838*cdf0e10cSrcweirchanges.</td> 1839*cdf0e10cSrcweir </tr> 1840*cdf0e10cSrcweir </tbody> 1841*cdf0e10cSrcweir </table> 1842*cdf0e10cSrcweir </td> 1843*cdf0e10cSrcweir </tr> 1844*cdf0e10cSrcweir </tbody> 1845*cdf0e10cSrcweir </table> 1846*cdf0e10cSrcweir </td> 1847*cdf0e10cSrcweir <td class="content1"><img class="nothing8" 1848*cdf0e10cSrcweir src="../../docs/images/nada.gif"></td> 1849*cdf0e10cSrcweir </tr> 1850*cdf0e10cSrcweir <tr> 1851*cdf0e10cSrcweir <td colspan="3"><img class="line" 1852*cdf0e10cSrcweir src="../../docs/images/sdk_line-1.gif"></td> 1853*cdf0e10cSrcweir </tr> 1854*cdf0e10cSrcweir <tr> 1855*cdf0e10cSrcweir <td class="content1"><img class="nothing8" 1856*cdf0e10cSrcweir src="../../docs/images/nada.gif"></td> 1857*cdf0e10cSrcweir <td> 1858*cdf0e10cSrcweir <table class="table2"> 1859*cdf0e10cSrcweir <tbody> 1860*cdf0e10cSrcweir <tr> 1861*cdf0e10cSrcweir <td> 1862*cdf0e10cSrcweir <table class="table3"> 1863*cdf0e10cSrcweir <tbody> 1864*cdf0e10cSrcweir <tr> 1865*cdf0e10cSrcweir <td colspan="2" class="head1"><a 1866*cdf0e10cSrcweir name="BasicandDialogs">OpenOffice.org %PRODUCT_RELEASE% Basic and Dialogs examples</a></td> 1867*cdf0e10cSrcweir <td align="right"> <a href="#examples" 1868*cdf0e10cSrcweir title="link to the Developer's Guide examples overview"><img 1869*cdf0e10cSrcweir class="navigate" src="../../docs/images/nav_up.png"></a> <a 1870*cdf0e10cSrcweir href="../../index.html" title="link to the SDK start page"><img 1871*cdf0e10cSrcweir class="navigate" src="../../docs/images/nav_home.png"></a> </td> 1872*cdf0e10cSrcweir </tr> 1873*cdf0e10cSrcweir </tbody> 1874*cdf0e10cSrcweir </table> 1875*cdf0e10cSrcweir </td> 1876*cdf0e10cSrcweir </tr> 1877*cdf0e10cSrcweir <tr> 1878*cdf0e10cSrcweir <td> 1879*cdf0e10cSrcweir <table class="table4"> 1880*cdf0e10cSrcweir <tbody> 1881*cdf0e10cSrcweir <tr class="thead"> 1882*cdf0e10cSrcweir <td class="cell20">Example</td> 1883*cdf0e10cSrcweir <td class="cell80">Description</td> 1884*cdf0e10cSrcweir </tr> 1885*cdf0e10cSrcweir <tr> 1886*cdf0e10cSrcweir <td class="cell20"><a 1887*cdf0e10cSrcweir href="./BasicAndDialogs/FirstStepsBasic.odt" 1888*cdf0e10cSrcweir title="link to BasicAndDialogs/FirstStepsBasic.odt">FirstStepsBasic.odt</a></td> 1889*cdf0e10cSrcweir <td class="cell80">This StarBasc example shows how to 1890*cdf0e10cSrcweircreate an own dialog which inserts a graphics object into a text 1891*cdf0e10cSrcweirdocument.</td> 1892*cdf0e10cSrcweir </tr> 1893*cdf0e10cSrcweir <tr> 1894*cdf0e10cSrcweir <td class="cell20"><a 1895*cdf0e10cSrcweir href="./BasicAndDialogs/CreatingDialogs/SampleDialog.java" 1896*cdf0e10cSrcweir title="link to BasicAndDialogs/CreatingDialogs/SampleDialog.java">SampleDialog</a></td> 1897*cdf0e10cSrcweir <td class="cell80">This example builds a Java 1898*cdf0e10cSrcweircomponent which creates a simple dialog.</td> 1899*cdf0e10cSrcweir </tr> 1900*cdf0e10cSrcweir <tr> 1901*cdf0e10cSrcweir <td class="cell20"><a 1902*cdf0e10cSrcweir href="./BasicAndDialogs/CreatingDialogs/CreatingDialogs.odt" 1903*cdf0e10cSrcweir title="link to BasicAndDialogs/CreatingDialogs/CreatingDialogs.odt">CreatingDialogs.odt</a></td> 1904*cdf0e10cSrcweir <td class="cell80">This document contains a simple 1905*cdf0e10cSrcweirBasic macro which loads the SampleDialog component. The macro will be 1906*cdf0e10cSrcweirexecuted by pressing a Push button.</td> 1907*cdf0e10cSrcweir </tr> 1908*cdf0e10cSrcweir <tr> 1909*cdf0e10cSrcweir <td class="cell20"><a 1910*cdf0e10cSrcweir href="./BasicAndDialogs/ToolkitControls/ToolkitControls" 1911*cdf0e10cSrcweir title="link to BasicAndDialogs/ToolkitControls">ToolkitControls</a></td> 1912*cdf0e10cSrcweir <td class="cell80">In this directory you find a Basic 1913*cdf0e10cSrcweirlibrary which implements several examples using toolkit controls. You 1914*cdf0e10cSrcweircan easy pack this Basic library as a UNO package and can install it 1915*cdf0e10cSrcweirusing the package manager (see the makefile output).<br> 1916*cdf0e10cSrcweirAfter the installation you will find a new library "ToolkitControls" in 1917*cdf0e10cSrcweirthe Basic IDE containing 4 modules and the necessary dialogs.<br> 1918*cdf0e10cSrcweir <p>Select one of the following modules and press the 1919*cdf0e10cSrcweirRun button: </p> 1920*cdf0e10cSrcweir <ul> 1921*cdf0e10cSrcweir <li>FileDialog = simple dialog which ask for a 1922*cdf0e10cSrcweirfilename (nothing else) </li> 1923*cdf0e10cSrcweir <li>MultiPage = a more complex dialog with several 1924*cdf0e10cSrcweirtab pages </li> 1925*cdf0e10cSrcweir <li>ProgressBar = a dialog which shows a progress 1926*cdf0e10cSrcweirbar </li> 1927*cdf0e10cSrcweir <li>ScrollBar = a dialog which shows a scroll bar </li> 1928*cdf0e10cSrcweir </ul> 1929*cdf0e10cSrcweir </td> 1930*cdf0e10cSrcweir </tr> 1931*cdf0e10cSrcweir </tbody> 1932*cdf0e10cSrcweir </table> 1933*cdf0e10cSrcweir </td> 1934*cdf0e10cSrcweir </tr> 1935*cdf0e10cSrcweir </tbody> 1936*cdf0e10cSrcweir </table> 1937*cdf0e10cSrcweir </td> 1938*cdf0e10cSrcweir <td class="content1"><img class="nothing8" 1939*cdf0e10cSrcweir src="../../docs/images/nada.gif"></td> 1940*cdf0e10cSrcweir </tr> 1941*cdf0e10cSrcweir <tr> 1942*cdf0e10cSrcweir <td colspan="3"><img class="line" 1943*cdf0e10cSrcweir src="../../docs/images/sdk_line-1.gif"></td> 1944*cdf0e10cSrcweir </tr> 1945*cdf0e10cSrcweir <tr> 1946*cdf0e10cSrcweir <td class="content1"><img class="nothing8" 1947*cdf0e10cSrcweir src="../../docs/images/nada.gif"></td> 1948*cdf0e10cSrcweir <td> 1949*cdf0e10cSrcweir <table class="table2"> 1950*cdf0e10cSrcweir <tbody> 1951*cdf0e10cSrcweir <tr> 1952*cdf0e10cSrcweir <td> 1953*cdf0e10cSrcweir <table class="table3"> 1954*cdf0e10cSrcweir <tbody> 1955*cdf0e10cSrcweir <tr> 1956*cdf0e10cSrcweir <td colspan="2" class="head1"><a name="Database">Database 1957*cdf0e10cSrcweirAccess examples</a></td> 1958*cdf0e10cSrcweir <td align="right"> <a href="#examples" 1959*cdf0e10cSrcweir title="link to the Developer's Guide examples overview"><img 1960*cdf0e10cSrcweir class="navigate" src="../../docs/images/nav_up.png"></a> <a 1961*cdf0e10cSrcweir href="../../index.html" title="link to the SDK start page"><img 1962*cdf0e10cSrcweir class="navigate" src="../../docs/images/nav_home.png"></a> </td> 1963*cdf0e10cSrcweir </tr> 1964*cdf0e10cSrcweir <tr> 1965*cdf0e10cSrcweir <td colspan="3"> The Database examples use a SQL 1966*cdf0e10cSrcweirdatabase named "MYDB0" with write access. Make sure that you have a 1967*cdf0e10cSrcweirdata source operating on such a database in your office before you run 1968*cdf0e10cSrcweirthe example. </td> 1969*cdf0e10cSrcweir </tr> 1970*cdf0e10cSrcweir </tbody> 1971*cdf0e10cSrcweir </table> 1972*cdf0e10cSrcweir </td> 1973*cdf0e10cSrcweir </tr> 1974*cdf0e10cSrcweir <tr> 1975*cdf0e10cSrcweir <td> 1976*cdf0e10cSrcweir <table class="table4"> 1977*cdf0e10cSrcweir <tbody> 1978*cdf0e10cSrcweir <tr class="thead"> 1979*cdf0e10cSrcweir <td class="cell20">Database Examples</td> 1980*cdf0e10cSrcweir <td class="cell80">Description</td> 1981*cdf0e10cSrcweir </tr> 1982*cdf0e10cSrcweir <tr> 1983*cdf0e10cSrcweir <td class="cell20"><img 1984*cdf0e10cSrcweir src="../../docs/images/bluball.gif"> <a 1985*cdf0e10cSrcweir href="./Database/CodeSamples.java" 1986*cdf0e10cSrcweir title="link to Database/CodeSamples.java">CodeSamples</a></td> 1987*cdf0e10cSrcweir <td class="cell80">Creates the connection to 1988*cdf0e10cSrcweirOpenOffice.org %PRODUCT_RELEASE% and executes the code SalesMan samples for database API.</td> 1989*cdf0e10cSrcweir </tr> 1990*cdf0e10cSrcweir <tr> 1991*cdf0e10cSrcweir <td class="cell20"><img 1992*cdf0e10cSrcweir src="../../docs/images/bluball.gif"> <a 1993*cdf0e10cSrcweir href="./Database/OpenQuery.java" 1994*cdf0e10cSrcweir title="link to Database/OpenQuery.java">OpenQuery</a></td> 1995*cdf0e10cSrcweir <td class="cell80">Demonstrates the use of <a 1996*cdf0e10cSrcweir href="../../docs/common/ref/com/sun/star/sdbc/XResultSetUpdate.html" 1997*cdf0e10cSrcweir title="link to the reference documentation of com.sun.star.sdbc.XResultSetUpdate"><code>XResultSetUpdate</code></a> 1998*cdf0e10cSrcweirand <a href="../../docs/common/ref/com/sun/star/sdbc/XRowUpdate.html" 1999*cdf0e10cSrcweir title="link to the reference documentation of com.sun.star.sdbc.XRowUpdate"> 2000*cdf0e10cSrcweir <code>XRowUpdate</code></a>.</td> 2001*cdf0e10cSrcweir </tr> 2002*cdf0e10cSrcweir <tr> 2003*cdf0e10cSrcweir <td class="cell20"><img 2004*cdf0e10cSrcweir src="../../docs/images/bluball.gif"> <a href="./Database/RowSet.java" 2005*cdf0e10cSrcweir title="link to Database/RowSet.java">RowSet</a></td> 2006*cdf0e10cSrcweir <td class="cell80">Demonstrates the usage of a row 2007*cdf0e10cSrcweirset.</td> 2008*cdf0e10cSrcweir </tr> 2009*cdf0e10cSrcweir <tr> 2010*cdf0e10cSrcweir <td class="cell20"><a 2011*cdf0e10cSrcweir href="./Database/RowSetEventListener.java" 2012*cdf0e10cSrcweir title="link to Database/RowSetEventListener.java">RowSetEventListener</a></td> 2013*cdf0e10cSrcweir <td class="cell80">Demonstrates how to define 2014*cdf0e10cSrcweirlistener for the row set example.</td> 2015*cdf0e10cSrcweir </tr> 2016*cdf0e10cSrcweir <tr> 2017*cdf0e10cSrcweir <td class="cell20"><a href="./Database/Sales.java" 2018*cdf0e10cSrcweir title="link to Database/Sales.java">Sales</a></td> 2019*cdf0e10cSrcweir <td class="cell80">Creates a simple database table.</td> 2020*cdf0e10cSrcweir </tr> 2021*cdf0e10cSrcweir <tr> 2022*cdf0e10cSrcweir <td class="cell20"><a href="./Database/SalesMan.java" 2023*cdf0e10cSrcweir title="link to Database/SalesMan.java">SalesMan</a></td> 2024*cdf0e10cSrcweir <td class="cell80">Creates a simple database table.</td> 2025*cdf0e10cSrcweir </tr> 2026*cdf0e10cSrcweir <tr> 2027*cdf0e10cSrcweir <td class="cell20"><a href="./Database/sdbcx.java" 2028*cdf0e10cSrcweir title="link to Database/sdbcx.java">sdbcx</a></td> 2029*cdf0e10cSrcweir <td class="cell80">Demonstrates the usage of the 2030*cdf0e10cSrcweirSDBCX layer services.</td> 2031*cdf0e10cSrcweir </tr> 2032*cdf0e10cSrcweir </tbody> 2033*cdf0e10cSrcweir </table> 2034*cdf0e10cSrcweir </td> 2035*cdf0e10cSrcweir </tr> 2036*cdf0e10cSrcweir <tr> 2037*cdf0e10cSrcweir <td> 2038*cdf0e10cSrcweir <table class="table4"> 2039*cdf0e10cSrcweir <tbody> 2040*cdf0e10cSrcweir <tr class="thead"> 2041*cdf0e10cSrcweir <td class="cell20">Driver Skeleton Example</td> 2042*cdf0e10cSrcweir <td class="cell80">Description</td> 2043*cdf0e10cSrcweir </tr> 2044*cdf0e10cSrcweir <tr> 2045*cdf0e10cSrcweir <td class="cell20"><a 2046*cdf0e10cSrcweir href="./Database/DriverSkeleton/OSubComponent.hxx" 2047*cdf0e10cSrcweir title="link to Database/DriverSkeleton/OSubComponent.hxx">OSubComponent.hxx</a></td> 2048*cdf0e10cSrcweir <td class="cell80">Helper class to delegate special 2049*cdf0e10cSrcweirdispose handling.</td> 2050*cdf0e10cSrcweir </tr> 2051*cdf0e10cSrcweir <tr> 2052*cdf0e10cSrcweir <td class="cell20"><a 2053*cdf0e10cSrcweir href="./Database/DriverSkeleton/OTypeInfo.hxx" 2054*cdf0e10cSrcweir title="link to Database/DriverSkeleton/OTypeInfo.hxx">OTypeInfo.hxx</a></td> 2055*cdf0e10cSrcweir <td class="cell80">Contains the database types from 2056*cdf0e10cSrcweirthe DatabaseMetaData getTypes call.</td> 2057*cdf0e10cSrcweir </tr> 2058*cdf0e10cSrcweir <tr> 2059*cdf0e10cSrcweir <td class="cell20"><a 2060*cdf0e10cSrcweir href="./Database/DriverSkeleton/SConnection.hxx" 2061*cdf0e10cSrcweir title="link to Database/DriverSkeleton/SConnection.hxx">SConnection.hxx</a></td> 2062*cdf0e10cSrcweir <td class="cell80">This file contains the declaration 2063*cdf0e10cSrcweirof a class implementing the service <code>com.sun.star.sdbc.Connection</code>.</td> 2064*cdf0e10cSrcweir </tr> 2065*cdf0e10cSrcweir <tr> 2066*cdf0e10cSrcweir <td class="cell20"><a 2067*cdf0e10cSrcweir href="./Database/DriverSkeleton/SConnection.cxx" 2068*cdf0e10cSrcweir title="link to Database/DriverSkeleton/SConnection.cxx">SConnection.cxx</a></td> 2069*cdf0e10cSrcweir <td class="cell80">This file contains the 2070*cdf0e10cSrcweirimplementation of the class declared in SConnection.hxx.</td> 2071*cdf0e10cSrcweir </tr> 2072*cdf0e10cSrcweir <tr> 2073*cdf0e10cSrcweir <td class="cell20"><a 2074*cdf0e10cSrcweir href="./Database/DriverSkeleton/SDatabaseMetaData.hxx" 2075*cdf0e10cSrcweir title="link to Database/DriverSkeleton/SDatabaseMetaData.hxx">SDatabaseMetaData.hxx</a></td> 2076*cdf0e10cSrcweir <td class="cell80">This file contains the declaration 2077*cdf0e10cSrcweirof a class implementing the interface <code>com.sun.star.sdbc.XDatabaseMetaData</code>.</td> 2078*cdf0e10cSrcweir </tr> 2079*cdf0e10cSrcweir <tr> 2080*cdf0e10cSrcweir <td class="cell20"><a 2081*cdf0e10cSrcweir href="./Database/DriverSkeleton/SDatabaseMetaData.cxx" 2082*cdf0e10cSrcweir title="link to Database/DriverSkeleton/SDatabaseMetaData.cxx">SDatabaseMetaData.cxx</a></td> 2083*cdf0e10cSrcweir <td class="cell80">This file contains the 2084*cdf0e10cSrcweirimplementation of the class declared in SDatabaseMetaData.hxx.</td> 2085*cdf0e10cSrcweir </tr> 2086*cdf0e10cSrcweir <tr> 2087*cdf0e10cSrcweir <td class="cell20"><a 2088*cdf0e10cSrcweir href="./Database/DriverSkeleton/SDriver.hxx" 2089*cdf0e10cSrcweir title="link to Database/DriverSkeleton/SDriver.hxx">SDriver.hxx</a></td> 2090*cdf0e10cSrcweir <td class="cell80">This file contains the declaration 2091*cdf0e10cSrcweirof a class implementing the service <code>com.sun.star.sdbc.Driver</code>.</td> 2092*cdf0e10cSrcweir </tr> 2093*cdf0e10cSrcweir <tr> 2094*cdf0e10cSrcweir <td class="cell20"><a 2095*cdf0e10cSrcweir href="./Database/DriverSkeleton/SDriver.cxx" 2096*cdf0e10cSrcweir title="link to Database/DriverSkeleton/SDriver.cxx">SDriver.cxx</a></td> 2097*cdf0e10cSrcweir <td class="cell80">This file contains the 2098*cdf0e10cSrcweirimplementation of the class declared in SDriver.hxx.</td> 2099*cdf0e10cSrcweir </tr> 2100*cdf0e10cSrcweir <tr> 2101*cdf0e10cSrcweir <td class="cell20"><a 2102*cdf0e10cSrcweir href="./Database/DriverSkeleton/SPreparedStatement.hxx" 2103*cdf0e10cSrcweir title="link to Database/DriverSkeleton/SPreparedStatement.hxx">SPreparedStatement.hxx</a></td> 2104*cdf0e10cSrcweir <td class="cell80">This file contains the declaration 2105*cdf0e10cSrcweirof a class implementing the service <code>com.sun.star.sdbc.PreparedStatement</code>. 2106*cdf0e10cSrcweir </td> 2107*cdf0e10cSrcweir </tr> 2108*cdf0e10cSrcweir <tr> 2109*cdf0e10cSrcweir <td class="cell20"><a 2110*cdf0e10cSrcweir href="./Database/DriverSkeleton/SPreparedStatement.cxx" 2111*cdf0e10cSrcweir title="link to Database/DriverSkeleton/SPreparedStatement.cxx">SPreparedStatement.cxx</a></td> 2112*cdf0e10cSrcweir <td class="cell80">This file contains the 2113*cdf0e10cSrcweirimplementation of the class declared in SPreparedStatement.hxx.</td> 2114*cdf0e10cSrcweir </tr> 2115*cdf0e10cSrcweir <tr> 2116*cdf0e10cSrcweir <td class="cell20"><a 2117*cdf0e10cSrcweir href="./Database/DriverSkeleton/SResultSet.hxx" 2118*cdf0e10cSrcweir title="link to Database/DriverSkeleton/SResultSet.hxx">SResultSet.hxx</a></td> 2119*cdf0e10cSrcweir <td class="cell80">This file contains the declaration 2120*cdf0e10cSrcweirof a class implementing the service <code>com.sun.star.sdbc.ResultSet</code>.</td> 2121*cdf0e10cSrcweir </tr> 2122*cdf0e10cSrcweir <tr> 2123*cdf0e10cSrcweir <td class="cell20"><a 2124*cdf0e10cSrcweir href="./Database/DriverSkeleton/SResultSet.cxx" 2125*cdf0e10cSrcweir title="link to Database/DriverSkeleton/SResultSet.cxx">SResultSet.cxx</a></td> 2126*cdf0e10cSrcweir <td class="cell80">This file contains the 2127*cdf0e10cSrcweirimplementation of the class declared in SResultSet.hxx.</td> 2128*cdf0e10cSrcweir </tr> 2129*cdf0e10cSrcweir <tr> 2130*cdf0e10cSrcweir <td class="cell20"><a 2131*cdf0e10cSrcweir href="./Database/DriverSkeleton/SResultSetMetaData.hxx" 2132*cdf0e10cSrcweir title="link to Database/DriverSkeleton/SResultSetMetaData.hxx">SResultSetMetaData.hxx</a></td> 2133*cdf0e10cSrcweir <td class="cell80">This file contains the declaration 2134*cdf0e10cSrcweirof a class implementing the interface <code>com.sun.star.sdbc.XResultSetMetaData</code>.</td> 2135*cdf0e10cSrcweir </tr> 2136*cdf0e10cSrcweir <tr> 2137*cdf0e10cSrcweir <td class="cell20"><a 2138*cdf0e10cSrcweir href="./Database/DriverSkeleton/SResultSetMetaData.cxx" 2139*cdf0e10cSrcweir title="link to Database/DriverSkeleton/SResultSetMetaData.cxx">SResultSetMetaData.cxx</a></td> 2140*cdf0e10cSrcweir <td class="cell80">This file contains the 2141*cdf0e10cSrcweirimplementation of the class declared in SResultSetMetaData.hxx.</td> 2142*cdf0e10cSrcweir </tr> 2143*cdf0e10cSrcweir <tr> 2144*cdf0e10cSrcweir <td class="cell20"><a 2145*cdf0e10cSrcweir href="./Database/DriverSkeleton/SServices.cxx" 2146*cdf0e10cSrcweir title="link to Database/DriverSkeleton/SServices.cxx">SServices.cxx</a></td> 2147*cdf0e10cSrcweir <td class="cell80">This file contains a class 2148*cdf0e10cSrcweirimplementing the service needed to register the driver.</td> 2149*cdf0e10cSrcweir </tr> 2150*cdf0e10cSrcweir <tr> 2151*cdf0e10cSrcweir <td class="cell20"><a 2152*cdf0e10cSrcweir href="./Database/DriverSkeleton/SStatement.hxx" 2153*cdf0e10cSrcweir title="link to Database/DriverSkeleton/SStatement.hxx">SStatement.hxx</a></td> 2154*cdf0e10cSrcweir <td class="cell80">This file contains the declaration 2155*cdf0e10cSrcweirof a class implementing the service <code>com.sun.star.sdbc.Statement</code>.</td> 2156*cdf0e10cSrcweir </tr> 2157*cdf0e10cSrcweir <tr> 2158*cdf0e10cSrcweir <td class="cell20"><a 2159*cdf0e10cSrcweir href="./Database/DriverSkeleton/SStatement.cxx" 2160*cdf0e10cSrcweir title="link to Database/DriverSkeleton/SStatement.cxx">SStatement.cxx</a></td> 2161*cdf0e10cSrcweir <td class="cell80">This file contains the 2162*cdf0e10cSrcweirimplementation of the class declared in SStatement.hxx.</td> 2163*cdf0e10cSrcweir </tr> 2164*cdf0e10cSrcweir <tr> 2165*cdf0e10cSrcweir <td class="cell20"><a 2166*cdf0e10cSrcweir href="./Database/DriverSkeleton/propertyids.hxx" 2167*cdf0e10cSrcweir title="link to Database/DriverSkeleton/propertyids.hxx">propertyids.hxx</a></td> 2168*cdf0e10cSrcweir <td class="cell80">Defines some common used strings 2169*cdf0e10cSrcweirand declare a helper class for properties.</td> 2170*cdf0e10cSrcweir </tr> 2171*cdf0e10cSrcweir <tr> 2172*cdf0e10cSrcweir <td class="cell20"><a 2173*cdf0e10cSrcweir href="./Database/DriverSkeleton/propertyids.cxx" 2174*cdf0e10cSrcweir title="link to Database/DriverSkeleton/propertyids.cxx">propertyids.cxx</a></td> 2175*cdf0e10cSrcweir <td class="cell80">Implements the property helper 2176*cdf0e10cSrcweirclass.</td> 2177*cdf0e10cSrcweir </tr> 2178*cdf0e10cSrcweir </tbody> 2179*cdf0e10cSrcweir </table> 2180*cdf0e10cSrcweir </td> 2181*cdf0e10cSrcweir </tr> 2182*cdf0e10cSrcweir </tbody> 2183*cdf0e10cSrcweir </table> 2184*cdf0e10cSrcweir </td> 2185*cdf0e10cSrcweir <td class="content1"><img class="nothing8" 2186*cdf0e10cSrcweir src="../../docs/images/nada.gif"></td> 2187*cdf0e10cSrcweir </tr> 2188*cdf0e10cSrcweir <tr> 2189*cdf0e10cSrcweir <td colspan="3"><img class="line" 2190*cdf0e10cSrcweir src="../../docs/images/sdk_line-1.gif"></td> 2191*cdf0e10cSrcweir </tr> 2192*cdf0e10cSrcweir <tr> 2193*cdf0e10cSrcweir <td class="content1"><img class="nothing8" 2194*cdf0e10cSrcweir src="../../docs/images/nada.gif"></td> 2195*cdf0e10cSrcweir <td> 2196*cdf0e10cSrcweir <table class="table2"> 2197*cdf0e10cSrcweir <tbody> 2198*cdf0e10cSrcweir <tr> 2199*cdf0e10cSrcweir <td> 2200*cdf0e10cSrcweir <table class="table3"> 2201*cdf0e10cSrcweir <tbody> 2202*cdf0e10cSrcweir <tr> 2203*cdf0e10cSrcweir <td colspan="2" class="head1"><a name="Forms">Forms 2204*cdf0e10cSrcweirexamples</a></td> 2205*cdf0e10cSrcweir <td align="right"> <a href="#examples" 2206*cdf0e10cSrcweir title="link to the Developer's Guide examples overview"><img 2207*cdf0e10cSrcweir class="navigate" src="../../docs/images/nav_up.png"></a> <a 2208*cdf0e10cSrcweir href="../../index.html" title="link to the SDK start page"><img 2209*cdf0e10cSrcweir class="navigate" src="../../docs/images/nav_home.png"></a> </td> 2210*cdf0e10cSrcweir </tr> 2211*cdf0e10cSrcweir </tbody> 2212*cdf0e10cSrcweir </table> 2213*cdf0e10cSrcweir </td> 2214*cdf0e10cSrcweir </tr> 2215*cdf0e10cSrcweir <tr> 2216*cdf0e10cSrcweir <td> 2217*cdf0e10cSrcweir <table class="table4"> 2218*cdf0e10cSrcweir <tbody> 2219*cdf0e10cSrcweir <tr class="thead"> 2220*cdf0e10cSrcweir <td class="cell20">Example</td> 2221*cdf0e10cSrcweir <td class="cell80">Description</td> 2222*cdf0e10cSrcweir </tr> 2223*cdf0e10cSrcweir <tr> 2224*cdf0e10cSrcweir <td class="cell20"><a 2225*cdf0e10cSrcweir href="./Forms/BooleanValidator.java" 2226*cdf0e10cSrcweir title="link to Forms/BooleanValidator.java">BooleanValidator</a></td> 2227*cdf0e10cSrcweir <td class="cell80">The class <code>BooleanOperator</code> 2228*cdf0e10cSrcweirimplements an <a 2229*cdf0e10cSrcweir href="../../docs/common/ref/com/sun/star/form/validation/XValidator.html" 2230*cdf0e10cSrcweir title="link to the reference documentation of com.sun.star.form.validation.XValidator">validator</a> 2231*cdf0e10cSrcweirfor a form control, which can veto certain radio button or check box 2232*cdf0e10cSrcweirstates.</td> 2233*cdf0e10cSrcweir </tr> 2234*cdf0e10cSrcweir <tr> 2235*cdf0e10cSrcweir <td class="cell20"><a 2236*cdf0e10cSrcweir href="./Forms/ButtonOperator.java" 2237*cdf0e10cSrcweir title="link to Forms/ButtonOperator.java">ButtonOperator</a></td> 2238*cdf0e10cSrcweir <td class="cell80">The form created by the sample 2239*cdf0e10cSrcweirprogram contains various buttons which are tied to certain 2240*cdf0e10cSrcweirfunctionality. The class ButtonOperator, well, operates these buttons.</td> 2241*cdf0e10cSrcweir </tr> 2242*cdf0e10cSrcweir <tr> 2243*cdf0e10cSrcweir <td class="cell20"><a 2244*cdf0e10cSrcweir href="./Forms/ComponentTreeTraversal.java" 2245*cdf0e10cSrcweir title="link to Forms/ComponentTreeTraversal.java">ComponentTreeTraversal</a></td> 2246*cdf0e10cSrcweir <td class="cell80">Helper classes for traveling 2247*cdf0e10cSrcweirthrough a tree of <a 2248*cdf0e10cSrcweir href="../../docs/common/ref/com/sun/star/form/FormComponent.html" 2249*cdf0e10cSrcweir title="link to the reference documentation of com.sun.star.form.FormComponent"> 2250*cdf0e10cSrcweir <code>FormComponent's</code></a>.</td> 2251*cdf0e10cSrcweir </tr> 2252*cdf0e10cSrcweir <tr> 2253*cdf0e10cSrcweir <td class="cell20"><a href="./Forms/ControlLock.java" 2254*cdf0e10cSrcweir title="link to Forms/ControlLock.java">ControlLock</a></td> 2255*cdf0e10cSrcweir <td class="cell80">Helper class for implementing the 2256*cdf0e10cSrcweirlocking of control depending on the state of the underlying <a 2257*cdf0e10cSrcweir href="../../docs/common/ref/com/sun/star/sdb/RowSet.html" 2258*cdf0e10cSrcweir title="link to the reference documentation of com.sun.star.sdb.RowSet"><code>RowSet</code></a>.</td> 2259*cdf0e10cSrcweir </tr> 2260*cdf0e10cSrcweir <tr> 2261*cdf0e10cSrcweir <td class="cell20"><img 2262*cdf0e10cSrcweir src="../../docs/images/bluball.gif"> <a 2263*cdf0e10cSrcweir href="./Forms/ControlValidation.java" 2264*cdf0e10cSrcweir title="link to Forms/ControlValidation.java">ControlValidation</a></td> 2265*cdf0e10cSrcweir <td class="cell80">This is the main class for the 2266*cdf0e10cSrcweircontrol validation example. It creates a sample document, fills it with 2267*cdf0e10cSrcweircontrols, and attaches several validators to those controls</td> 2268*cdf0e10cSrcweir </tr> 2269*cdf0e10cSrcweir <tr> 2270*cdf0e10cSrcweir <td class="cell20"><a 2271*cdf0e10cSrcweir href="./Forms/ControlValidator.java" 2272*cdf0e10cSrcweir title="link to Forms/ControlValidator.java">ControlValidator</a></td> 2273*cdf0e10cSrcweir <td class="cell80">Base class implementing the common 2274*cdf0e10cSrcweirdenominator for components <a 2275*cdf0e10cSrcweir href="../../docs/common/ref/com/sun/star/form/validation/ValidatableControlModel.html" 2276*cdf0e10cSrcweir title="link to the reference documentation of com.sun.star.form.validation.ValidatableControlModel">validating 2277*cdf0e10cSrcweirform controls.</a></td> 2278*cdf0e10cSrcweir </tr> 2279*cdf0e10cSrcweir <tr> 2280*cdf0e10cSrcweir <td class="cell20"><img 2281*cdf0e10cSrcweir src="../../docs/images/bluball.gif"> <a 2282*cdf0e10cSrcweir href="./Forms/DataAwareness.java" 2283*cdf0e10cSrcweir title="link to Forms/DataAwareness.java">DataAwareness</a></td> 2284*cdf0e10cSrcweir <td class="cell80">This class implements the basic 2285*cdf0e10cSrcweirexample for a form working on a database. Two tables will be created 2286*cdf0e10cSrcweirand a form (writer document) with a bussiness example will fill its 2287*cdf0e10cSrcweirfields from these tables.</td> 2288*cdf0e10cSrcweir </tr> 2289*cdf0e10cSrcweir <tr> 2290*cdf0e10cSrcweir <td class="cell20"><a 2291*cdf0e10cSrcweir href="./Forms/DateValidator.java" 2292*cdf0e10cSrcweir title="link to Forms/DateValidator.java">DateValidator</a></td> 2293*cdf0e10cSrcweir <td class="cell80">The class <code>DateValidator</code> 2294*cdf0e10cSrcweirimplements an <a 2295*cdf0e10cSrcweir href="../../docs/common/ref/com/sun/star/form/validation/XValidator.html" 2296*cdf0e10cSrcweir title="link to the reference documentation of com.sun.star.form.validation.XValidator">validator</a> 2297*cdf0e10cSrcweirfor a form control, which can check the content of a form date field. </td> 2298*cdf0e10cSrcweir </tr> 2299*cdf0e10cSrcweir <tr> 2300*cdf0e10cSrcweir <td class="cell20"><a 2301*cdf0e10cSrcweir href="./Forms/DocumentBasedExample.java" 2302*cdf0e10cSrcweir title="link to Forms/DocumentBasedExample.java">DocumentBasedExample</a></td> 2303*cdf0e10cSrcweir <td class="cell80">This class collects common 2304*cdf0e10cSrcweirfunctionality of examples which require a document.</td> 2305*cdf0e10cSrcweir </tr> 2306*cdf0e10cSrcweir <tr> 2307*cdf0e10cSrcweir <td class="cell20"><a 2308*cdf0e10cSrcweir href="./Forms/DocumentHelper.java" 2309*cdf0e10cSrcweir title="link to Forms/DocumentHelper.java">DocumentHelper</a></td> 2310*cdf0e10cSrcweir <td class="cell80">Helper class for encapsulating 2311*cdf0e10cSrcweirworking with a document.</td> 2312*cdf0e10cSrcweir </tr> 2313*cdf0e10cSrcweir <tr> 2314*cdf0e10cSrcweir <td class="cell20"><a href="./Forms/DocumentType.java" 2315*cdf0e10cSrcweir title="link to Forms/DocumentType.java">DocumentType</a></td> 2316*cdf0e10cSrcweir <td class="cell80">A simple enumeration class for 2317*cdf0e10cSrcweirclassifying a document.</td> 2318*cdf0e10cSrcweir </tr> 2319*cdf0e10cSrcweir <tr> 2320*cdf0e10cSrcweir <td class="cell20"><a 2321*cdf0e10cSrcweir href="./Forms/DocumentViewHelper.java" 2322*cdf0e10cSrcweir title="link to Forms/DocumentViewHelper.java">DocumentViewHelper</a></td> 2323*cdf0e10cSrcweir <td class="cell80">Helper class for encapsulating 2324*cdf0e10cSrcweirworking with a view for a document.</td> 2325*cdf0e10cSrcweir </tr> 2326*cdf0e10cSrcweir <tr> 2327*cdf0e10cSrcweir <td class="cell20"><a href="./Forms/FLTools.java" 2328*cdf0e10cSrcweir title="link to Forms/FLTools.java">FLTools</a></td> 2329*cdf0e10cSrcweir <td class="cell80">Various small tools for the form 2330*cdf0e10cSrcweirlayer sample program.</td> 2331*cdf0e10cSrcweir </tr> 2332*cdf0e10cSrcweir <tr> 2333*cdf0e10cSrcweir <td class="cell20"><a href="./Forms/FormLayer.java" 2334*cdf0e10cSrcweir title="link to Forms/FormLayer.java">FormLayer</a></td> 2335*cdf0e10cSrcweir <td class="cell80">Helper class for accessing and 2336*cdf0e10cSrcweirmanipulating the form layer of a document.</td> 2337*cdf0e10cSrcweir </tr> 2338*cdf0e10cSrcweir <tr> 2339*cdf0e10cSrcweir <td class="cell20"><a 2340*cdf0e10cSrcweir href="./Forms/GridFieldValidator.java" 2341*cdf0e10cSrcweir title="link to Forms/GridFieldValidator.java">GridFieldValidator</a></td> 2342*cdf0e10cSrcweir <td class="cell80"><code>GridFieldValidator</code> is 2343*cdf0e10cSrcweirresponsible for validating the input in a specific grid control column. 2344*cdf0e10cSrcweirThis is not to be mixed up with the control-based validation as 2345*cdf0e10cSrcweirdescribed in the <a 2346*cdf0e10cSrcweir href="../../docs/common/ref/com/sun/star/form/validation/module-ix.html" 2347*cdf0e10cSrcweir title="link to the reference documentation of com.sun.star.form.validation">validation</a> 2348*cdf0e10cSrcweirmodule. Instead, a <code>GridFieldValidator</code> assembles and uses 2349*cdf0e10cSrcweirvarious other concepts.</td> 2350*cdf0e10cSrcweir </tr> 2351*cdf0e10cSrcweir <tr> 2352*cdf0e10cSrcweir <td class="cell20"><a 2353*cdf0e10cSrcweir href="./Forms/InteractionRequest.java" 2354*cdf0e10cSrcweir title="link to Forms/InteractionRequest.java">InteractionRequest</a></td> 2355*cdf0e10cSrcweir <td class="cell80">A simple implementation of a <a 2356*cdf0e10cSrcweir href="../../docs/common/ref/com/sun/star/task/XInteractionRequest.html" 2357*cdf0e10cSrcweir title="link to the reference documentation of com.sun.star.task.XInteractionRequest"><code>XInteractionRequest</code></a>. 2358*cdf0e10cSrcweirNot tied to the form layer example, but a general helper.</td> 2359*cdf0e10cSrcweir </tr> 2360*cdf0e10cSrcweir <tr> 2361*cdf0e10cSrcweir <td class="cell20"><a href="./Forms/KeyGenerator.java" 2362*cdf0e10cSrcweir title="link to Forms/KeyGenerator.java">KeyGenerator</a></td> 2363*cdf0e10cSrcweir <td class="cell80">Helper class which is able to 2364*cdf0e10cSrcweirgenerate (unique) keys for a (<a 2365*cdf0e10cSrcweir href="../../docs/common/ref/com/sun/star/sdb/RowSet.html" 2366*cdf0e10cSrcweir title="link to the reference documentation of com.sun.star.sdb.RowSet"><code>RowSet</code> 2367*cdf0e10cSrcweir </a>) column. An instance of this class can be tied 2368*cdf0e10cSrcweirto a specific row set column. It then monitors the state of the 2369*cdf0e10cSrcweirunderlying row set, and upon inserting a new record into it (two 2370*cdf0e10cSrcweiroperation modi are possible here), it automatically inserts a newly 2371*cdf0e10cSrcweircreated (two modi, too) key into the column.</td> 2372*cdf0e10cSrcweir </tr> 2373*cdf0e10cSrcweir <tr> 2374*cdf0e10cSrcweir <td class="cell20"><a 2375*cdf0e10cSrcweir href="./Forms/ListSelectionValidator.java" 2376*cdf0e10cSrcweir title="link to Forms/ListSelectionValidator.java">ListSelectionValidator</a></td> 2377*cdf0e10cSrcweir <td class="cell80">The class <code>ListSelectionValidator</code> 2378*cdf0e10cSrcweirimplements an <a 2379*cdf0e10cSrcweir href="../../docs/common/ref/com/sun/star/form/validation/XValidator.html" 2380*cdf0e10cSrcweir title="link to the reference documentation of com.sun.star.form.validation.XValidator">validator</a> 2381*cdf0e10cSrcweirfor a form control, which can veto certain selections in a list box 2382*cdf0e10cSrcweircontrol.</td> 2383*cdf0e10cSrcweir </tr> 2384*cdf0e10cSrcweir <tr> 2385*cdf0e10cSrcweir <td class="cell20"><a 2386*cdf0e10cSrcweir href="./Forms/NumericValidator.java" 2387*cdf0e10cSrcweir title="link to Forms/NumericValidator.java">NumericValidator</a></td> 2388*cdf0e10cSrcweir <td class="cell80">The class <code>NumericValidator</code> 2389*cdf0e10cSrcweirimplements an <a 2390*cdf0e10cSrcweir href="../../docs/common/ref/com/sun/star/form/validation/XValidator.html" 2391*cdf0e10cSrcweir title="link to the reference documentation of com.sun.star.form.validation.XValidator">validator</a> 2392*cdf0e10cSrcweirfor a form control, which can veto certain values in every control 2393*cdf0e10cSrcweirwhich allows exchanging numerical values.</td> 2394*cdf0e10cSrcweir </tr> 2395*cdf0e10cSrcweir <tr> 2396*cdf0e10cSrcweir <td class="cell20"><a 2397*cdf0e10cSrcweir href="./Forms/SingleControlValidation.java" 2398*cdf0e10cSrcweir title="link to Forms/SingleControlValidation.java">SingleControlValidation</a></td> 2399*cdf0e10cSrcweir <td class="cell80">Though form documents feature 2400*cdf0e10cSrcweirinbuilt mechanisms for visually indicating invalid control content (see 2401*cdf0e10cSrcweir <a 2402*cdf0e10cSrcweir href="../../docs/common/ref/com/sun/star/form/validation/module-ix.html" 2403*cdf0e10cSrcweir title="link to the reference documentation of com.sun.star.form.validation"><code>com.sun.star.form.validation</code> 2404*cdf0e10cSrcweir </a> for discussions about validity), the <a 2405*cdf0e10cSrcweir href="./Forms/ControlValidation.java" 2406*cdf0e10cSrcweir title="link to Forms/ControlValidation.java">ControlValidation</a> 2407*cdf0e10cSrcweirexample extends this. The validity state of every control in this 2408*cdf0e10cSrcweirexample, as well as possible explanations for invalidity, are displayed 2409*cdf0e10cSrcweirin dedicated texts. The <code>SingleControlValidation</code> class 2410*cdf0e10cSrcweirties together a validatable control and those status texts.</td> 2411*cdf0e10cSrcweir </tr> 2412*cdf0e10cSrcweir <tr> 2413*cdf0e10cSrcweir <td class="cell20"><a 2414*cdf0e10cSrcweir href="./Forms/SpreadsheetDocument.java" 2415*cdf0e10cSrcweir title="link to Forms/SpreadsheetDocument.java">SpreadsheetDocument</a></td> 2416*cdf0e10cSrcweir <td class="cell80">A specialized <a 2417*cdf0e10cSrcweir href="./Forms/DocumentHelper.java" 2418*cdf0e10cSrcweir title="link to Forms/DocumentHelper.java"><code>DocumentHelper<code></code></code></a> 2419*cdf0e10cSrcweirwhich represents a spreadsheet document, and offers some form related 2420*cdf0e10cSrcweirfunctionality. For instance, this class allows the creation of <a 2421*cdf0e10cSrcweir href="../../docs/common/ref/com/sun/star/table/CellValueBinding.html" 2422*cdf0e10cSrcweir title="link to the reference documentation of com.sun.star.table.CellValueBinding"> 2423*cdf0e10cSrcweir <code>CellValueBinding</code></a> instances, which 2424*cdf0e10cSrcweircan be used to couple the content of a form control with the content of 2425*cdf0e10cSrcweira spreadsheet cell.</td> 2426*cdf0e10cSrcweir </tr> 2427*cdf0e10cSrcweir <tr> 2428*cdf0e10cSrcweir <td class="cell20"><img 2429*cdf0e10cSrcweir src="../../docs/images/bluball.gif"> <a 2430*cdf0e10cSrcweir href="./Forms/SpreadsheetValueBinding.java" 2431*cdf0e10cSrcweir title="link to Forms/SpreadsheetValueBinding.java">SpreadsheetValueBinding</a></td> 2432*cdf0e10cSrcweir <td class="cell80">This example demonstrates how to 2433*cdf0e10cSrcweirbind form controls to spreadsheet cells.</td> 2434*cdf0e10cSrcweir </tr> 2435*cdf0e10cSrcweir <tr> 2436*cdf0e10cSrcweir <td class="cell20"><a 2437*cdf0e10cSrcweir href="./Forms/SpreadsheetView.java" 2438*cdf0e10cSrcweir title="link to Forms/SpreadsheetView.java">SpreadsheetView</a></td> 2439*cdf0e10cSrcweir <td class="cell80">A specialized <a 2440*cdf0e10cSrcweir href="./Forms/DocumentViewHelper.java" 2441*cdf0e10cSrcweir title="link to Forms/DocumentViewHelper.java"><code>DocumentViewHelper</code></a> 2442*cdf0e10cSrcweirwhich represents a view to a spreadsheet document.</td> 2443*cdf0e10cSrcweir </tr> 2444*cdf0e10cSrcweir <tr> 2445*cdf0e10cSrcweir <td class="cell20"><a 2446*cdf0e10cSrcweir href="./Forms/TableCellTextBinding.java" 2447*cdf0e10cSrcweir title="link to Forms/TableCellTextBinding.java">TableCellTextBinding</a></td> 2448*cdf0e10cSrcweir <td class="cell80">This class allows binding the 2449*cdf0e10cSrcweircontrol of a form control with a table cell in a text document. For 2450*cdf0e10cSrcweirthis, it uses the mechanisms of the <a 2451*cdf0e10cSrcweir href="../../docs/common/ref/com/sun/star/form/binding/module-ix.html" 2452*cdf0e10cSrcweir title="link to the reference documentation of com.sun.star.form.binding"> 2453*cdf0e10cSrcweir <code>com.sun.star.form.binding</code></a> module.</td> 2454*cdf0e10cSrcweir </tr> 2455*cdf0e10cSrcweir <tr> 2456*cdf0e10cSrcweir <td class="cell20"><a 2457*cdf0e10cSrcweir href="./Forms/TextValidator.java" 2458*cdf0e10cSrcweir title="link to Forms/TextValidator.java">TextValidator</a></td> 2459*cdf0e10cSrcweir <td class="cell80">The class <code>TextValidator</code> 2460*cdf0e10cSrcweirimplements an <a 2461*cdf0e10cSrcweir href="../../docs/common/ref/com/sun/star/form/validation/XValidator.html" 2462*cdf0e10cSrcweir title="link to the reference documentation of com.sun.star.form.validation.XValidator">validator</a> 2463*cdf0e10cSrcweirfor a form control, which can monitor a form text field.</td> 2464*cdf0e10cSrcweir </tr> 2465*cdf0e10cSrcweir <tr> 2466*cdf0e10cSrcweir <td class="cell20"><a 2467*cdf0e10cSrcweir href="./Forms/TimeValidator.java" 2468*cdf0e10cSrcweir title="link to Forms/TimeValidator.java">TimeValidator</a></td> 2469*cdf0e10cSrcweir <td class="cell80">The class <code>TimeValidator</code> 2470*cdf0e10cSrcweirimplements an <a 2471*cdf0e10cSrcweir href="../../docs/common/ref/com/sun/star/form/validation/XValidator.html" 2472*cdf0e10cSrcweir title="link to the reference documentation of com.sun.star.form.validation.XValidator">validator</a> 2473*cdf0e10cSrcweirfor a form control, which can monitor the content of a form time field. 2474*cdf0e10cSrcweir </td> 2475*cdf0e10cSrcweir </tr> 2476*cdf0e10cSrcweir <tr> 2477*cdf0e10cSrcweir <td class="cell20"><a href="./Forms/UNO.java" 2478*cdf0e10cSrcweir title="link to Forms/UNO.java">UNO</a></td> 2479*cdf0e10cSrcweir <td class="cell80">A small UNO-syntax related helper 2480*cdf0e10cSrcweirclass.</td> 2481*cdf0e10cSrcweir </tr> 2482*cdf0e10cSrcweir <tr> 2483*cdf0e10cSrcweir <td class="cell20"><img 2484*cdf0e10cSrcweir src="../../docs/images/bluball.gif"> <a 2485*cdf0e10cSrcweir href="./Forms/ValueBinding.java" 2486*cdf0e10cSrcweir title="link to Forms/ValueBinding.java">ValueBinding</a></td> 2487*cdf0e10cSrcweir <td class="cell80">An example how to bind the content 2488*cdf0e10cSrcweirof a form control to a table cell in a text document.</td> 2489*cdf0e10cSrcweir </tr> 2490*cdf0e10cSrcweir <tr> 2491*cdf0e10cSrcweir <td class="cell20"><a href="./Forms/WaitForInput.java" 2492*cdf0e10cSrcweir title="link to Forms/WaitForInput.java">WaitForInput</a></td> 2493*cdf0e10cSrcweir <td class="cell80">A pretty small helper for the 2494*cdf0e10cSrcweirinteractive examples, which notifies another instance when the user 2495*cdf0e10cSrcweirpressed key on the console.</td> 2496*cdf0e10cSrcweir </tr> 2497*cdf0e10cSrcweir </tbody> 2498*cdf0e10cSrcweir </table> 2499*cdf0e10cSrcweir </td> 2500*cdf0e10cSrcweir </tr> 2501*cdf0e10cSrcweir </tbody> 2502*cdf0e10cSrcweir </table> 2503*cdf0e10cSrcweir </td> 2504*cdf0e10cSrcweir <td class="content1"><img class="nothing8" 2505*cdf0e10cSrcweir src="../../docs/images/nada.gif"></td> 2506*cdf0e10cSrcweir </tr> 2507*cdf0e10cSrcweir <tr> 2508*cdf0e10cSrcweir <td colspan="3"><img class="line" 2509*cdf0e10cSrcweir src="../../docs/images/sdk_line-1.gif"></td> 2510*cdf0e10cSrcweir </tr> 2511*cdf0e10cSrcweir <tr> 2512*cdf0e10cSrcweir <td class="content1"><img class="nothing8" 2513*cdf0e10cSrcweir src="../../docs/images/nada.gif"></td> 2514*cdf0e10cSrcweir <td> 2515*cdf0e10cSrcweir <table class="table2"> 2516*cdf0e10cSrcweir <tbody> 2517*cdf0e10cSrcweir <tr> 2518*cdf0e10cSrcweir <td> 2519*cdf0e10cSrcweir <table class="table3"> 2520*cdf0e10cSrcweir <tbody> 2521*cdf0e10cSrcweir <tr> 2522*cdf0e10cSrcweir <td colspan="2" class="head1"><a 2523*cdf0e10cSrcweir name="UniversalContentBroker(UCB)">Universal Content Broker (UCB) 2524*cdf0e10cSrcweirexamples</a></td> 2525*cdf0e10cSrcweir <td align="right"> <a href="#examples" 2526*cdf0e10cSrcweir title="link to the Developer's Guide examples overview"><img 2527*cdf0e10cSrcweir class="navigate" src="../../docs/images/nav_up.png"></a> <a 2528*cdf0e10cSrcweir href="../../index.html" title="link to the SDK start page"><img 2529*cdf0e10cSrcweir class="navigate" src="../../docs/images/nav_home.png"></a> </td> 2530*cdf0e10cSrcweir </tr> 2531*cdf0e10cSrcweir </tbody> 2532*cdf0e10cSrcweir </table> 2533*cdf0e10cSrcweir </td> 2534*cdf0e10cSrcweir </tr> 2535*cdf0e10cSrcweir <tr> 2536*cdf0e10cSrcweir <td> 2537*cdf0e10cSrcweir <table class="table4"> 2538*cdf0e10cSrcweir <tbody> 2539*cdf0e10cSrcweir <tr class="thead"> 2540*cdf0e10cSrcweir <td class="cell20">Example</td> 2541*cdf0e10cSrcweir <td class="cell80">Description</td> 2542*cdf0e10cSrcweir </tr> 2543*cdf0e10cSrcweir <tr> 2544*cdf0e10cSrcweir <td class="cell20"><img 2545*cdf0e10cSrcweir src="../../docs/images/bluball.gif"> <a 2546*cdf0e10cSrcweir href="./UCB/ChildrenRetriever.java" 2547*cdf0e10cSrcweir title="link to UCB/ChildrenRetriever.java">ChildrenRetriever</a></td> 2548*cdf0e10cSrcweir <td class="cell80">Shows child entries of a given 2549*cdf0e10cSrcweirfolder. Try -help or -? on the command line to view optional parameters.</td> 2550*cdf0e10cSrcweir </tr> 2551*cdf0e10cSrcweir <tr> 2552*cdf0e10cSrcweir <td class="cell20"><img 2553*cdf0e10cSrcweir src="../../docs/images/bluball.gif"> <a 2554*cdf0e10cSrcweir href="./UCB/DataStreamComposer.java" 2555*cdf0e10cSrcweir title="link to UCB/DataStreamComposer.java">DataStreamComposer</a></td> 2556*cdf0e10cSrcweir <td class="cell80">Demonstrates usage of the data 2557*cdf0e10cSrcweirstream by copying the data from one UCB node to another.</td> 2558*cdf0e10cSrcweir </tr> 2559*cdf0e10cSrcweir <tr> 2560*cdf0e10cSrcweir <td class="cell20"><img 2561*cdf0e10cSrcweir src="../../docs/images/bluball.gif"> <a 2562*cdf0e10cSrcweir href="./UCB/DataStreamRetriever.java" 2563*cdf0e10cSrcweir title="link to UCB/DataStreamRetriever.java">DataStreamRetriever</a></td> 2564*cdf0e10cSrcweir <td class="cell80">Shows how to obtain the data 2565*cdf0e10cSrcweirstream from a document resource.</td> 2566*cdf0e10cSrcweir </tr> 2567*cdf0e10cSrcweir <tr> 2568*cdf0e10cSrcweir <td class="cell20"><a href="./UCB/Helper.java" 2569*cdf0e10cSrcweir title="link to UCB/Helper.java">Helper</a></td> 2570*cdf0e10cSrcweir <td class="cell80">Some helper methods to access the 2571*cdf0e10cSrcweirUCB which are used by the other examples.</td> 2572*cdf0e10cSrcweir </tr> 2573*cdf0e10cSrcweir <tr> 2574*cdf0e10cSrcweir <td class="cell20"><a 2575*cdf0e10cSrcweir href="./UCB/MyActiveDataSink.java" 2576*cdf0e10cSrcweir title="link to UCB/MyActiveDataSink.java">MyActiveDataSink</a></td> 2577*cdf0e10cSrcweir <td class="cell80">A helper class for the <code>DataStreamRetriever</code> 2578*cdf0e10cSrcweirexample which implements a data sink.</td> 2579*cdf0e10cSrcweir </tr> 2580*cdf0e10cSrcweir <tr> 2581*cdf0e10cSrcweir <td class="cell20"><img 2582*cdf0e10cSrcweir src="../../docs/images/bluball.gif"> <a 2583*cdf0e10cSrcweir href="./UCB/PropertiesComposer.java" 2584*cdf0e10cSrcweir title="link to UCB/PropertiesComposer.java">PropertiesComposer</a></td> 2585*cdf0e10cSrcweir <td class="cell80">Shows how to set property values 2586*cdf0e10cSrcweirof an UCB resource.</td> 2587*cdf0e10cSrcweir </tr> 2588*cdf0e10cSrcweir <tr> 2589*cdf0e10cSrcweir <td class="cell20"><img 2590*cdf0e10cSrcweir src="../../docs/images/bluball.gif"> <a 2591*cdf0e10cSrcweir href="./UCB/PropertiesRetriever.java" 2592*cdf0e10cSrcweir title="link to UCB/PropertiesRetriever.java">PropertiesRetriever</a></td> 2593*cdf0e10cSrcweir <td class="cell80">Shows how to access property 2594*cdf0e10cSrcweirvalues of an UCB resource.</td> 2595*cdf0e10cSrcweir </tr> 2596*cdf0e10cSrcweir <tr> 2597*cdf0e10cSrcweir <td class="cell20"><img 2598*cdf0e10cSrcweir src="../../docs/images/bluball.gif"> <a 2599*cdf0e10cSrcweir href="./UCB/ResourceCreator.java" 2600*cdf0e10cSrcweir title="link to UCB/ResourceCreator.java">ResourceCreator</a></td> 2601*cdf0e10cSrcweir <td class="cell80">Creates a new file in an existing 2602*cdf0e10cSrcweirfile system folder.</td> 2603*cdf0e10cSrcweir </tr> 2604*cdf0e10cSrcweir <tr> 2605*cdf0e10cSrcweir <td class="cell20"><img 2606*cdf0e10cSrcweir src="../../docs/images/bluball.gif"> <a 2607*cdf0e10cSrcweir href="./UCB/ResourceManager.java" 2608*cdf0e10cSrcweir title="link to UCB/ResourceManager.java">ResourceManager</a></td> 2609*cdf0e10cSrcweir <td class="cell80">Demonstrates how to copy and move 2610*cdf0e10cSrcweirUCB resources.</td> 2611*cdf0e10cSrcweir </tr> 2612*cdf0e10cSrcweir <tr> 2613*cdf0e10cSrcweir <td class="cell20"><img 2614*cdf0e10cSrcweir src="../../docs/images/bluball.gif"> <a 2615*cdf0e10cSrcweir href="./UCB/ResourceRemover.java" 2616*cdf0e10cSrcweir title="link to UCB/ResourceRemover.java">ResourceRemover</a></td> 2617*cdf0e10cSrcweir <td class="cell80">Demonstrates how to remove UCB 2618*cdf0e10cSrcweirresources.</td> 2619*cdf0e10cSrcweir </tr> 2620*cdf0e10cSrcweir </tbody> 2621*cdf0e10cSrcweir </table> 2622*cdf0e10cSrcweir </td> 2623*cdf0e10cSrcweir </tr> 2624*cdf0e10cSrcweir </tbody> 2625*cdf0e10cSrcweir </table> 2626*cdf0e10cSrcweir </td> 2627*cdf0e10cSrcweir <td class="content1"><img class="nothing8" 2628*cdf0e10cSrcweir src="../../docs/images/nada.gif"></td> 2629*cdf0e10cSrcweir </tr> 2630*cdf0e10cSrcweir <tr> 2631*cdf0e10cSrcweir <td colspan="3"><img class="line" 2632*cdf0e10cSrcweir src="../../docs/images/sdk_line-1.gif"></td> 2633*cdf0e10cSrcweir </tr> 2634*cdf0e10cSrcweir <tr> 2635*cdf0e10cSrcweir <td class="content1"><img class="nothing8" 2636*cdf0e10cSrcweir src="../../docs/images/nada.gif"></td> 2637*cdf0e10cSrcweir <td> 2638*cdf0e10cSrcweir <table class="table2"> 2639*cdf0e10cSrcweir <tbody> 2640*cdf0e10cSrcweir <tr> 2641*cdf0e10cSrcweir <td> 2642*cdf0e10cSrcweir <table class="table3"> 2643*cdf0e10cSrcweir <tbody> 2644*cdf0e10cSrcweir <tr> 2645*cdf0e10cSrcweir <td colspan="2" class="head1"><a name="Configuration">Configuration 2646*cdf0e10cSrcweirManagement examples</a></td> 2647*cdf0e10cSrcweir <td align="right"> <a href="#examples" 2648*cdf0e10cSrcweir title="link to the Developer's Guide examples overview"><img 2649*cdf0e10cSrcweir class="navigate" src="../../docs/images/nav_up.png"></a> <a 2650*cdf0e10cSrcweir href="../../index.html" title="link to the SDK start page"><img 2651*cdf0e10cSrcweir class="navigate" src="../../docs/images/nav_home.png"></a> </td> 2652*cdf0e10cSrcweir </tr> 2653*cdf0e10cSrcweir </tbody> 2654*cdf0e10cSrcweir </table> 2655*cdf0e10cSrcweir </td> 2656*cdf0e10cSrcweir </tr> 2657*cdf0e10cSrcweir <tr> 2658*cdf0e10cSrcweir <td> 2659*cdf0e10cSrcweir <table class="table4"> 2660*cdf0e10cSrcweir <tbody> 2661*cdf0e10cSrcweir <tr class="thead"> 2662*cdf0e10cSrcweir <td class="cell20">Example</td> 2663*cdf0e10cSrcweir <td class="cell80">Description</td> 2664*cdf0e10cSrcweir </tr> 2665*cdf0e10cSrcweir <tr> 2666*cdf0e10cSrcweir <td class="cell20"><img 2667*cdf0e10cSrcweir src="../../docs/images/bluball.gif"> <a 2668*cdf0e10cSrcweir href="./Config/ConfigExamples.java" 2669*cdf0e10cSrcweir title="link to Config/ConfigExamples.java">ConfigExamples</a></td> 2670*cdf0e10cSrcweir <td class="cell80">This example connects to a 2671*cdf0e10cSrcweirOpenOffice.org %PRODUCT_RELEASE%, gets the configuration manager and accesses the 2672*cdf0e10cSrcweirconfiguration in various ways.</td> 2673*cdf0e10cSrcweir </tr> 2674*cdf0e10cSrcweir </tbody> 2675*cdf0e10cSrcweir </table> 2676*cdf0e10cSrcweir </td> 2677*cdf0e10cSrcweir </tr> 2678*cdf0e10cSrcweir </tbody> 2679*cdf0e10cSrcweir </table> 2680*cdf0e10cSrcweir </td> 2681*cdf0e10cSrcweir <td class="content1"><img class="nothing8" 2682*cdf0e10cSrcweir src="../../docs/images/nada.gif"></td> 2683*cdf0e10cSrcweir </tr> 2684*cdf0e10cSrcweir <tr> 2685*cdf0e10cSrcweir <td colspan="3"><img class="line" 2686*cdf0e10cSrcweir src="../../docs/images/sdk_line-1.gif"></td> 2687*cdf0e10cSrcweir </tr> 2688*cdf0e10cSrcweir <tr> 2689*cdf0e10cSrcweir <td class="content1"><img class="nothing8" 2690*cdf0e10cSrcweir src="../../docs/images/nada.gif"></td> 2691*cdf0e10cSrcweir <td> 2692*cdf0e10cSrcweir <table class="table2"> 2693*cdf0e10cSrcweir <tbody> 2694*cdf0e10cSrcweir <tr> 2695*cdf0e10cSrcweir <td> 2696*cdf0e10cSrcweir <table class="table3"> 2697*cdf0e10cSrcweir <tbody> 2698*cdf0e10cSrcweir <tr> 2699*cdf0e10cSrcweir <td colspan="2" class="head1"><a name="OfficeBean">Office 2700*cdf0e10cSrcweirBean example</a></td> 2701*cdf0e10cSrcweir <td align="right"> <a href="#examples" 2702*cdf0e10cSrcweir title="link to the Developer's Guide examples overview"><img 2703*cdf0e10cSrcweir class="navigate" src="../../docs/images/nav_up.png"></a> <a 2704*cdf0e10cSrcweir href="../../index.html" title="link to the SDK start page"><img 2705*cdf0e10cSrcweir class="navigate" src="../../docs/images/nav_home.png"></a> </td> 2706*cdf0e10cSrcweir </tr> 2707*cdf0e10cSrcweir </tbody> 2708*cdf0e10cSrcweir </table> 2709*cdf0e10cSrcweir </td> 2710*cdf0e10cSrcweir </tr> 2711*cdf0e10cSrcweir <tr> 2712*cdf0e10cSrcweir <td> 2713*cdf0e10cSrcweir <table class="table4"> 2714*cdf0e10cSrcweir <tbody> 2715*cdf0e10cSrcweir <tr class="thead"> 2716*cdf0e10cSrcweir <td class="cell20"> Example</td> 2717*cdf0e10cSrcweir <td class="cell80">Description</td> 2718*cdf0e10cSrcweir </tr> 2719*cdf0e10cSrcweir <tr> 2720*cdf0e10cSrcweir <td class="cell20"><img 2721*cdf0e10cSrcweir src="../../docs/images/bluball.gif"> <a 2722*cdf0e10cSrcweir href="./OfficeBean/OOoBeanViewer.java" 2723*cdf0e10cSrcweir title="link to OfficeBean/OOoBeanViewer.java">OOoBeanViewer</a></td> 2724*cdf0e10cSrcweir <td class="cell80">Shows how to use the <code>OOoBean</code> 2725*cdf0e10cSrcweirembedded in a Java AWT component. It shows how to load and store 2726*cdf0e10cSrcweirdocuments as well as how to control toolbar visibility.</td> 2727*cdf0e10cSrcweir </tr> 2728*cdf0e10cSrcweir </tbody> 2729*cdf0e10cSrcweir </table> 2730*cdf0e10cSrcweir </td> 2731*cdf0e10cSrcweir </tr> 2732*cdf0e10cSrcweir </tbody> 2733*cdf0e10cSrcweir </table> 2734*cdf0e10cSrcweir </td> 2735*cdf0e10cSrcweir <td class="content1"><img class="nothing8" 2736*cdf0e10cSrcweir src="../../docs/images/nada.gif"></td> 2737*cdf0e10cSrcweir </tr> 2738*cdf0e10cSrcweir <tr> 2739*cdf0e10cSrcweir <td colspan="3"><img class="line" 2740*cdf0e10cSrcweir src="../../docs/images/sdk_line-1.gif"></td> 2741*cdf0e10cSrcweir </tr> 2742*cdf0e10cSrcweir <tr> 2743*cdf0e10cSrcweir <td class="content1"><img class="nothing8" 2744*cdf0e10cSrcweir src="../../docs/images/nada.gif"></td> 2745*cdf0e10cSrcweir <td> 2746*cdf0e10cSrcweir <table class="table2"> 2747*cdf0e10cSrcweir <tbody> 2748*cdf0e10cSrcweir <tr> 2749*cdf0e10cSrcweir <td> 2750*cdf0e10cSrcweir <table class="table3"> 2751*cdf0e10cSrcweir <tbody> 2752*cdf0e10cSrcweir <tr> 2753*cdf0e10cSrcweir <td colspan="2" class="head1"><a name="Accessibility">Accessibility 2754*cdf0e10cSrcweirexamples</a></td> 2755*cdf0e10cSrcweir <td align="right"> <a href="#examples" 2756*cdf0e10cSrcweir title="link to the Developer's Guide examples overview"><img 2757*cdf0e10cSrcweir class="navigate" src="../../docs/images/nav_up.png"></a> <a 2758*cdf0e10cSrcweir href="../../index.html" title="link to the SDK start page"><img 2759*cdf0e10cSrcweir class="navigate" src="../../docs/images/nav_home.png"></a> </td> 2760*cdf0e10cSrcweir </tr> 2761*cdf0e10cSrcweir </tbody> 2762*cdf0e10cSrcweir </table> 2763*cdf0e10cSrcweir </td> 2764*cdf0e10cSrcweir </tr> 2765*cdf0e10cSrcweir <tr> 2766*cdf0e10cSrcweir <td> 2767*cdf0e10cSrcweir <table class="table4"> 2768*cdf0e10cSrcweir <tbody> 2769*cdf0e10cSrcweir <tr class="thead"> 2770*cdf0e10cSrcweir <td class="cell20">Example</td> 2771*cdf0e10cSrcweir <td class="cell80">Description</td> 2772*cdf0e10cSrcweir </tr> 2773*cdf0e10cSrcweir <tr> 2774*cdf0e10cSrcweir <td class="cell20"><a 2775*cdf0e10cSrcweir href="./Accessibility/ConnectionTask.java" 2776*cdf0e10cSrcweir title="link to Accessibility/ConnectionTask.java">ConnectionTask</a></td> 2777*cdf0e10cSrcweir <td class="cell80">A timer task that tries to 2778*cdf0e10cSrcweir(re-)connect to a running Office application. When it can not detect an 2779*cdf0e10cSrcweirOffice application that accepts connections then it waits for some time 2780*cdf0e10cSrcweirand tries again.</td> 2781*cdf0e10cSrcweir </tr> 2782*cdf0e10cSrcweir <tr> 2783*cdf0e10cSrcweir <td class="cell20"><a 2784*cdf0e10cSrcweir href="./Accessibility/EventHandler.java" 2785*cdf0e10cSrcweir title="link to Accessibility/EventHandler.java">EventHandler</a></td> 2786*cdf0e10cSrcweir <td class="cell80">Handle all events that are used by 2787*cdf0e10cSrcweirthis tool. It is called by the EventListenerProxy class with somewhat 2788*cdf0e10cSrcweirpreprocessed events.</td> 2789*cdf0e10cSrcweir </tr> 2790*cdf0e10cSrcweir <tr> 2791*cdf0e10cSrcweir <td class="cell20"><a 2792*cdf0e10cSrcweir href="./Accessibility/EventListenerProxy.java" 2793*cdf0e10cSrcweir title="link to Accessibility/EventListenerProxy.java">EventListenerProxy</a></td> 2794*cdf0e10cSrcweir <td class="cell80">This proxy runs in its own thread 2795*cdf0e10cSrcweirto avoid deadlocks with the Office it listens to. It waits for top 2796*cdf0e10cSrcweirwindow events to be informed of new or removed top level windows and 2797*cdf0e10cSrcweirfor some accessibility events that are relevant to display the 2798*cdf0e10cSrcweircurrently focused object.</td> 2799*cdf0e10cSrcweir </tr> 2800*cdf0e10cSrcweir <tr> 2801*cdf0e10cSrcweir <td class="cell20"><a 2802*cdf0e10cSrcweir href="./Accessibility/GraphicalDisplay.java" 2803*cdf0e10cSrcweir title="link to Accessibility/GraphicalDisplay.java">GraphicalDisplay</a></td> 2804*cdf0e10cSrcweir <td class="cell80">This widget displays a graphical 2805*cdf0e10cSrcweirrepresentation of the currently focused object. The focused object is 2806*cdf0e10cSrcweirpainted as a green rectangle and its ancestors as gray rectangles to 2807*cdf0e10cSrcweirgive an impression of the relative location of the objects.</td> 2808*cdf0e10cSrcweir </tr> 2809*cdf0e10cSrcweir <tr> 2810*cdf0e10cSrcweir <td class="cell20"><a 2811*cdf0e10cSrcweir href="./Accessibility/IAccessibleObjectDisplay.java" 2812*cdf0e10cSrcweir title="link to Accessibility/IAccessibleObjectDisplay.java">IAccessibleObjectDisplay</a></td> 2813*cdf0e10cSrcweir <td class="cell80">This interface is implemented by 2814*cdf0e10cSrcweirall classes that display the currently focused object, namely 2815*cdf0e10cSrcweirGraphicalDisplay and TextualDisplay. It allows the owner of the display 2816*cdf0e10cSrcweirclasses to tell them to display a specific object: usually the focused 2817*cdf0e10cSrcweirobject.</td> 2818*cdf0e10cSrcweir </tr> 2819*cdf0e10cSrcweir <tr> 2820*cdf0e10cSrcweir <td class="cell20"><a 2821*cdf0e10cSrcweir href="./Accessibility/MessageArea.java" 2822*cdf0e10cSrcweir title="link to Accessibility/MessageArea.java">MessageArea</a></td> 2823*cdf0e10cSrcweir <td class="cell80">A text area that shows messages 2824*cdf0e10cSrcweirabout what the tools is currently doing.</td> 2825*cdf0e10cSrcweir </tr> 2826*cdf0e10cSrcweir <tr> 2827*cdf0e10cSrcweir <td class="cell20"><a 2828*cdf0e10cSrcweir href="./Accessibility/NameProvider.java" 2829*cdf0e10cSrcweir title="link to Accessibility/NameProvider.java">NameProvider</a></td> 2830*cdf0e10cSrcweir <td class="cell80">In contrast to the Java 2831*cdf0e10cSrcweirAccessibility API which uses Strings for event types, roles, states, 2832*cdf0e10cSrcweirand relation types, the UNO Accessibility API uses numbers for this 2833*cdf0e10cSrcweirtask. In order to present them to the user in a more readable form this 2834*cdf0e10cSrcweirclass returns the string name for each event, role, state, or relation.</td> 2835*cdf0e10cSrcweir </tr> 2836*cdf0e10cSrcweir <tr> 2837*cdf0e10cSrcweir <td class="cell20"><a 2838*cdf0e10cSrcweir href="./Accessibility/RegistrationThread.java" 2839*cdf0e10cSrcweir title="link to Accessibility/RegistrationThread.java">RegistrationThread</a></td> 2840*cdf0e10cSrcweir <td class="cell80">When a new window appears or an 2841*cdf0e10cSrcweirexisting one is removed the tool registers or unregisters at all the 2842*cdf0e10cSrcweirwindow's children as accessibility event listener. This is handled by 2843*cdf0e10cSrcweirRegistrationThread objects in their own threads so that the user 2844*cdf0e10cSrcweirinterface is not blocked.</td> 2845*cdf0e10cSrcweir </tr> 2846*cdf0e10cSrcweir <tr> 2847*cdf0e10cSrcweir <td class="cell20"><img 2848*cdf0e10cSrcweir src="../../docs/images/bluball.gif"> <a 2849*cdf0e10cSrcweir href="./Accessibility/SSR.java" title="link to Accessibility/SSR.java">SSR</a></td> 2850*cdf0e10cSrcweir <td class="cell80">The main class sets up the user 2851*cdf0e10cSrcweirinterface and starts the ConnectionTask object that eventually will 2852*cdf0e10cSrcweirinitiate a connection to a running Office application and in turn will 2853*cdf0e10cSrcweircreate RegistrationThread objects to register at all Office windows as 2854*cdf0e10cSrcweiraccessibility event listener and thus gets informed about the currently 2855*cdf0e10cSrcweirfocused object.</td> 2856*cdf0e10cSrcweir </tr> 2857*cdf0e10cSrcweir <tr> 2858*cdf0e10cSrcweir <td class="cell20"><a 2859*cdf0e10cSrcweir href="./Accessibility/TextualDisplay.java" 2860*cdf0e10cSrcweir title="link to Accessibility/TextualDisplay.java">TextualDisplay</a></td> 2861*cdf0e10cSrcweir <td class="cell80">Show some textual information 2862*cdf0e10cSrcweirabout the currently focused object like its name, description, and role.</td> 2863*cdf0e10cSrcweir </tr> 2864*cdf0e10cSrcweir </tbody> 2865*cdf0e10cSrcweir </table> 2866*cdf0e10cSrcweir </td> 2867*cdf0e10cSrcweir </tr> 2868*cdf0e10cSrcweir </tbody> 2869*cdf0e10cSrcweir </table> 2870*cdf0e10cSrcweir </td> 2871*cdf0e10cSrcweir <td class="content1"><img class="nothing8" 2872*cdf0e10cSrcweir src="../../docs/images/nada.gif"></td> 2873*cdf0e10cSrcweir </tr> 2874*cdf0e10cSrcweir <tr> 2875*cdf0e10cSrcweir <td colspan="3"><img class="line" 2876*cdf0e10cSrcweir src="../../docs/images/sdk_line-1.gif"></td> 2877*cdf0e10cSrcweir </tr> 2878*cdf0e10cSrcweir <tr> 2879*cdf0e10cSrcweir <td class="content1"><img class="nothing8" 2880*cdf0e10cSrcweir src="../../docs/images/nada.gif"></td> 2881*cdf0e10cSrcweir <td> 2882*cdf0e10cSrcweir <table class="table2"> 2883*cdf0e10cSrcweir <tbody> 2884*cdf0e10cSrcweir <tr> 2885*cdf0e10cSrcweir <td> 2886*cdf0e10cSrcweir <table class="table3"> 2887*cdf0e10cSrcweir <tbody> 2888*cdf0e10cSrcweir <tr> 2889*cdf0e10cSrcweir <td colspan="2" class="head1"><a 2890*cdf0e10cSrcweir name="ScriptingFramework">Scripting Framework Examples</a></td> 2891*cdf0e10cSrcweir <td align="right"> <a href="#examples" 2892*cdf0e10cSrcweir title="link to the Developer's Guide examples overview"><img 2893*cdf0e10cSrcweir class="navigate" src="../../docs/images/nav_up.png"></a> <a 2894*cdf0e10cSrcweir href="../../index.html" title="link to the SDK start page"><img 2895*cdf0e10cSrcweir class="navigate" src="../../docs/images/nav_home.png"></a> </td> 2896*cdf0e10cSrcweir </tr> 2897*cdf0e10cSrcweir </tbody> 2898*cdf0e10cSrcweir </table> 2899*cdf0e10cSrcweir </td> 2900*cdf0e10cSrcweir </tr> 2901*cdf0e10cSrcweir <tr> 2902*cdf0e10cSrcweir <td> 2903*cdf0e10cSrcweir <table class="table4"> 2904*cdf0e10cSrcweir <tbody> 2905*cdf0e10cSrcweir <tr class="thead"> 2906*cdf0e10cSrcweir <td class="cell20"> Example</td> 2907*cdf0e10cSrcweir <td class="cell80">Description</td> 2908*cdf0e10cSrcweir </tr> 2909*cdf0e10cSrcweir <tr> 2910*cdf0e10cSrcweir <td class="cell20"><a 2911*cdf0e10cSrcweir href="./ScriptingFramework/SayHello/SayHello/SayHello.java" 2912*cdf0e10cSrcweir title="link to ScriptingFramework/SayHello/SayHello/SayHello.java">SayHello</a></td> 2913*cdf0e10cSrcweir <td class="cell80">A Scripting Framework Java macro 2914*cdf0e10cSrcweirthat opens a new Writer document and inserts the word Hello in it.</td> 2915*cdf0e10cSrcweir </tr> 2916*cdf0e10cSrcweir <tr> 2917*cdf0e10cSrcweir <td class="cell20"><a 2918*cdf0e10cSrcweir href="./ScriptingFramework/ScriptSelector/ScriptSelector/ScriptSelector.java" 2919*cdf0e10cSrcweir title="link to ScriptingFramework/ScriptSelector/ScriptSelector/ScriptSelector.java">ScriptSelector</a></td> 2920*cdf0e10cSrcweir <td class="cell80">A Scripting Framework Java macro 2921*cdf0e10cSrcweirthat opens a Java Swing dialog with a tree view of the macro hierarchy 2922*cdf0e10cSrcweirfor the Office application.</td> 2923*cdf0e10cSrcweir </tr> 2924*cdf0e10cSrcweir </tbody> 2925*cdf0e10cSrcweir </table> 2926*cdf0e10cSrcweir </td> 2927*cdf0e10cSrcweir </tr> 2928*cdf0e10cSrcweir </tbody> 2929*cdf0e10cSrcweir </table> 2930*cdf0e10cSrcweir </td> 2931*cdf0e10cSrcweir </tr> 2932*cdf0e10cSrcweir <tr> 2933*cdf0e10cSrcweir <td colspan="3"><img class="line" 2934*cdf0e10cSrcweir src="../../docs/images/sdk_line-1.gif"></td> 2935*cdf0e10cSrcweir </tr> 2936*cdf0e10cSrcweir <tr> 2937*cdf0e10cSrcweir <td class="content1"><img class="nothing8" 2938*cdf0e10cSrcweir src="../../docs/images/nada.gif"></td> 2939*cdf0e10cSrcweir <td> 2940*cdf0e10cSrcweir <table class="table2"> 2941*cdf0e10cSrcweir <tbody> 2942*cdf0e10cSrcweir <tr> 2943*cdf0e10cSrcweir <td> 2944*cdf0e10cSrcweir <table class="table3"> 2945*cdf0e10cSrcweir <tbody> 2946*cdf0e10cSrcweir <tr> 2947*cdf0e10cSrcweir <td colspan="2" class="head1"><a 2948*cdf0e10cSrcweir name="GraphicalUserInterfaces">Graphical User Interfaces</a></td> 2949*cdf0e10cSrcweir <td align="right"> <a href="#examples" 2950*cdf0e10cSrcweir title="link to the Developer's Guide examples overview"><img 2951*cdf0e10cSrcweir class="navigate" src="../../docs/images/nav_up.png"></a> <a 2952*cdf0e10cSrcweir href="../../index.html" title="link to the SDK start page"><img 2953*cdf0e10cSrcweir class="navigate" src="../../docs/images/nav_home.png"></a> </td> 2954*cdf0e10cSrcweir </tr> 2955*cdf0e10cSrcweir </tbody> 2956*cdf0e10cSrcweir </table> 2957*cdf0e10cSrcweir </td> 2958*cdf0e10cSrcweir </tr> 2959*cdf0e10cSrcweir <tr> 2960*cdf0e10cSrcweir <td> 2961*cdf0e10cSrcweir <table class="table4"> 2962*cdf0e10cSrcweir <tbody> 2963*cdf0e10cSrcweir <tr class="thead"> 2964*cdf0e10cSrcweir <td class="cell20"> Example</td> 2965*cdf0e10cSrcweir <td class="cell80">Description</td> 2966*cdf0e10cSrcweir </tr> 2967*cdf0e10cSrcweir <tr> 2968*cdf0e10cSrcweir <td class="cell20"><img src="../../docs/images/bluball.gif"> 2969*cdf0e10cSrcweir<a href="./GUI/DialogDocument.java" title="link to GUI/DialogDocument.java">DialogDocument</a></td> 2970*cdf0e10cSrcweir <td class="cell80">A sample showing how to display an office document in a dialog window.</td> 2971*cdf0e10cSrcweir </tr> 2972*cdf0e10cSrcweir <tr> 2973*cdf0e10cSrcweir <td class="cell20"><img src="../../docs/images/bluball.gif"> 2974*cdf0e10cSrcweir<a href="./GUI/Messagebox.java" title="link to GUI/MessageBox.java">MessageBox</a></td> 2975*cdf0e10cSrcweir <td class="cell80">A sample showing how to display a simple message box.</td> 2976*cdf0e10cSrcweir </tr> 2977*cdf0e10cSrcweir <tr> 2978*cdf0e10cSrcweir <td class="cell20"><img src="../../docs/images/bluball.gif"> 2979*cdf0e10cSrcweir<a href="./GUI/UnoDialogSample.java" title="link to GUI/UnoDialogSample.java">UnoDialogSample</a></td> 2980*cdf0e10cSrcweir <td class="cell80">A sample showing how to create various controls in a dialog (fixed text field, currency field, progress bar, fixed line, group box, edit field, time field, date field, pattern field, numeric field, progressbar, check box, radio button, list box, combo box, formatted field, file control, button control, roadmap control)</td> 2981*cdf0e10cSrcweir </tr> 2982*cdf0e10cSrcweir <tr> 2983*cdf0e10cSrcweir <td class="cell20"><img src="../../docs/images/bluball.gif"> 2984*cdf0e10cSrcweir<a href="./GUI/UnoDialogSample2.java" title="link to GUI/UnoDialogSample2.java">UnoDialogSample2</a></td> 2985*cdf0e10cSrcweir <td class="cell80">A dialog sample showing how to use a roadmap control.</td> 2986*cdf0e10cSrcweir </tr> 2987*cdf0e10cSrcweir <tr> 2988*cdf0e10cSrcweir <td class="cell20"><img src="../../docs/images/bluball.gif"> 2989*cdf0e10cSrcweir<a href="./GUI/UnoMenu.java" title="link to GUI/UnoMenu.java">UnoMenu</a></td> 2990*cdf0e10cSrcweir <td class="cell80">A sample showing a top window with some menus.</td> 2991*cdf0e10cSrcweir </tr> 2992*cdf0e10cSrcweir <tr> 2993*cdf0e10cSrcweir <td class="cell20"><img src="../../docs/images/bluball.gif"> 2994*cdf0e10cSrcweir<a href="./GUI/UnoMenu2.java" title="link to GUI/UnoMenu2.java">UnoMenu2</a></td> 2995*cdf0e10cSrcweir <td class="cell80">A dialog sample showing how to use or work with a context menu.</td> 2996*cdf0e10cSrcweir </tr> 2997*cdf0e10cSrcweir <tr> 2998*cdf0e10cSrcweir <td class="cell20"><img src="../../docs/images/bluball.gif"> 2999*cdf0e10cSrcweir<a href="./GUI/ImageControlSample.java" title="link to GUI/ImageControlSample.java">ImageControlSample2</a></td> 3000*cdf0e10cSrcweir <td class="cell80">Dialog sample showing how to use an image control.</td> 3001*cdf0e10cSrcweir </tr> 3002*cdf0e10cSrcweir </tbody> 3003*cdf0e10cSrcweir </table> 3004*cdf0e10cSrcweir </td> 3005*cdf0e10cSrcweir </tr> 3006*cdf0e10cSrcweir </tbody> 3007*cdf0e10cSrcweir </table> 3008*cdf0e10cSrcweir </td> 3009*cdf0e10cSrcweir </tr> 3010*cdf0e10cSrcweir <tr> 3011*cdf0e10cSrcweir <td colspan="3"><img class="nothing30" 3012*cdf0e10cSrcweir src="../../docs/images/nada.gif"></td> 3013*cdf0e10cSrcweir </tr> 3014*cdf0e10cSrcweir <tr> 3015*cdf0e10cSrcweir <td colspan="3"><img class="line" 3016*cdf0e10cSrcweir src="../../docs/images/sdk_line-1.gif"></td> 3017*cdf0e10cSrcweir </tr> 3018*cdf0e10cSrcweir <tr> 3019*cdf0e10cSrcweir <td colspan="3"> 3020*cdf0e10cSrcweir <div class="centertext"> 3021*cdf0e10cSrcweir <p><img class="oraclelogo" src="../../docs/images/odk-footer-logo.gif" title="Sponsored by Oracle" alt="Oracle Logo" /> 3022*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> 3023*cdf0e10cSrcweir </div> 3024*cdf0e10cSrcweir </td> 3025*cdf0e10cSrcweir </tr> 3026*cdf0e10cSrcweir </tbody> 3027*cdf0e10cSrcweir</table> 3028*cdf0e10cSrcweir<map name="Map"> 3029*cdf0e10cSrcweir<area shape="rect" coords="10,68,93,105" href="http://www.oracle.com"> 3030*cdf0e10cSrcweir</map> 3031*cdf0e10cSrcweir</body> 3032*cdf0e10cSrcweir</html> 3033