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