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