android: Update app icon to new startcenter icon
[LibreOffice.git] / odk / docs / tools.html
blobd71d36f2401d7def5065efb627d819ebd7b7d634
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
2 <!--
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 -->
19 <html>
20 <head>
21 <title>LibreOffice %PRODUCT_RELEASE% SDK - Development Tools</title>
22 <link rel="stylesheet" type="text/css" href="sdk_styles.css"/>
23 <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
24 </head>
25 <body>
26 <a name="tools"></a>
27 <div id="BgContainer">
28 <div id="Container">
29 <div id="TopHeader">
30 <a id="Logo" href="http://www.libreoffice.org/" title="Go to the Home of LibreOffice and the LibreOffice Community page"></a>
31 <p id="HeaderTagLine">
32 Software Development Kit %PRODUCT_RELEASE%
33 </p>
34 </div>
35 <div class="clear">
36 </div>
37 <div id="Layout">
38 <div class="typography">
39 <h1>
40 Development Tools
41 </h1>
42 <table class="table1" cellpadding="0">
43 <tr>
44 <td colspan="3"><img class="nothing10" src="images/nada.gif"/></td>
45 </tr>
46 <tr>
47 <td class="content1"><img class="nothing8" src="images/nada.gif"/></td>
48 <td>
49 <table class="table2">
50 <tr>
51 <td colspan="3"><img class="nothing1" src="images/nada.gif"/></td>
52 </tr>
53 <tr>
54 <td>
55 <table class="table3">
56 <tr valign="top">
57 <td class="content3"><img src="images/arrow-1.gif"/></td>
58 <td><a href="#unopkg" title="link to the unopkg tool description">unopkg</a></td>
59 <td class="content87">The new UNO package deployment tool. It comes
60 with the office installation and can be found in the program
61 directory of the office installation.</td>
62 </tr>
63 <tr valign="top">
64 <td class="content3"><img src="images/arrow-1.gif"/></td>
65 <td><a href="#unoexe" title="link to the uno tool description">uno</a></td>
66 <td class="content87">Tool to provide a UNO runtime environment and
67 provide configured (deployed) or single components. This tool
68 comes with the office installation and can be found in the program
69 directory of the office installation.</td>
70 </tr>
71 <tr valign="top">
72 <td class="content3"><img src="images/arrow-1.gif"/></td>
73 <td><a href="#unoidl-write" title="link to the unoidl-write tool description">unoidl-write</a></td>
74 <td class="content87">The UNOIDL compiler, generates a common
75 binary type library format as base for all codemaker tools and
76 the UNO runtime type library.</td>
77 </tr>
78 <tr valign="top">
79 <td class="content3"><img src="images/arrow-1.gif"/></td>
80 <td><a href="#unoidl-read" title="link to the unoidl-read tool description">unoidl-read</a></td>
81 <td class="content87">Tool to view type library data
82 in a human readable manner.</td>
83 </tr>
84 <tr valign="top">
85 <td class="content3"><img src="images/arrow-1.gif"/></td>
86 <td><a href="#cppumaker" title="link to the cppumaker tool description">cppumaker</a></td>
87 <td class="content87">Tool for generating C++ code for the UNOIDL
88 types stored in a type library.</td>
89 </tr>
90 <tr valign="top">
91 <td class="content3"><img src="images/arrow-1.gif"/></td>
92 <td><a href="#javamaker" title="link to the javamaker tool description">javamaker</a></td>
93 <td class="content87">Tool for generating Java class files for the
94 UNOIDL types stored in a type library.</td>
95 </tr>
96 <tr valign="top">
97 <td class="content3"><img src="images/arrow-1.gif"/></td>
98 <td><a href="#climaker" title="link to the climaker tool description">climaker</a></td>
99 <td class="content87">Tool for generating CLI assemblies for the
100 UNOIDL types stored in a type library (windows only).</td>
101 </tr>
102 <tr valign="top">
103 <td class="content3"><img src="images/arrow-1.gif"/></td>
104 <td><a href="#uno-skeletonmaker" title="link to the uno-skeletonmaker tool description">uno-skeletonmaker</a></td>
105 <td class="content87">Tool for dumping type definitions on stdout or generating complete code skeletons for Java/C++.</td>
106 </tr>
107 <tr valign="top">
108 <td class="content3"><img src="images/arrow-1.gif"/></td>
109 <td><a href="#regview" title="link to the regview tool description">regview</a></td>
110 <td class="content87">Tool to view the content of a legacy registry file
111 in a human readable manner. Special support for type library
112 nodes. <b>Note:</b> Since OpenOffice.org 3 it is no longer part of the SDK but it comes directly with the office as part of the <b>ure</b>.</td>
113 </tr>
114 </table>
115 </td>
116 </tr>
117 </table>
118 </td>
119 <td class="content1"><img class="nothing8" src="images/nada.gif"/></td>
120 </tr>
121 <tr>
122 <td colspan="3"><img class="line" src="images/sdk_line-1.gif"/></td>
123 </tr>
124 <tr>
125 <td class="content1"><img class="nothing8" src="images/nada.gif"/></td>
126 <td>
127 <table class="table2">
128 <tr>
129 <td colspan="2" class="head1"><a name="unopkg"/>unopkg</td>
130 <td align="right">
131 <a style="a:link:visited #FFFFFF;" href="#tools" title="link to the tools overview"><img class="navigate" src="images/nav_up.png"/></a>
132 <a href="../index.html" title="link to the SDK start page"><img class="navigate" src="images/nav_home.png"/></a></td>
133 </tr>
134 <tr>
135 <td colspan="3">
136 <p>'unopkg' is a tool for easy deployment of UNO packages in an existing
137 office installation. UNO packages are UNO components (single libraries or
138 Jar files or more complex zip files that contain one or more libraries|
139 Jar files, type libraries and configuration items), scripts and
140 LibreOffice %PRODUCT_RELEASE% Basic libraries as zip package. 'unopkg' is not part of the
141 SDK but comes with the office directly and is a development tool as well
142 as an end user tool to deploy extension into an office installation.</p>
143 <p>More details concerning deployment and this tool can be found in the
144 Developer's Guide: <a href="http://wiki.openoffice.org/wiki/Documentation/DevGuide/Extensions/unopkg" title="link to the &quot;Extension Manager - unopkg&quot; chapter in the Developer's Guide">Extension Manager - <i>unopkg</i></a>.</p>
145 <p><b>Note:</b> This tool works only in the <i>&lt;office&gt;/program</i>
146 directory!</p>
147 <p class="head2">Usage:</p>
148 <blockquote>
149 <b><code>
150 unopkg add &lt;options&gt; package-path...<br/>
151 unopkg remove &lt;options&gt; package-name...<br/>
152 unopkg list &lt;options&gt; package-name...<br/>
153 unopkg reinstall &lt;options&gt;<br/>
154 unopkg gui<br/>
155 unopkg -V<br/>
156 unopkg -h<br/>
157 </code></b>
158 </blockquote>
159 <p class="head2">Sub-commands:</p>
160 <table class="table4">
161 <tr>
162 <td class="cell15"><code>add</code></td>
163 <td class="cell85">add packages</td>
164 </tr>
165 <tr>
166 <td class="cell15"><code>remove</code></td>
167 <td class="cell85">remove packages by name</td>
168 </tr>
169 <tr>
170 <td class="cell15"><code>reinstall</code></td>
171 <td class="cell85">expert feature: reinstall all deployed
172 packages</td>
173 </tr>
174 <tr>
175 <td class="cell15"><code>list</code></td>
176 <td class="cell85">list information about deployed packages</td>
177 </tr>
178 <tr>
179 <td class="cell15"><code>gui</code></td>
180 <td class="cell15">raise Package Manager Graphical User Interface
181 (GUI)</td>
182 </tr>
183 </table>
184 <p class="head2">Options:</p>
185 <table class="table4">
186 <tr>
187 <td class="cell15"><code>-h, --help</code></td>
188 <td class="cell85">show this help on the command line</td>
189 </tr>
190 <tr>
191 <td class="cell15"><code>-V, --version</code></td>
192 <td class="cell85">shows version information
193 </td>
194 </tr>
195 <tr>
196 <td class="cell15"><code>-v, --verbose</code></td>
197 <td class="cell85">dump verbose output to stdout</td>
198 </tr>
199 <tr>
200 <td class="cell15"><code>-f, --force</code></td>
201 <td class="cell85">force overwriting existing packages</td>
202 </tr>
203 <tr>
204 <td class="cell15"><code>--log-file &lt;file&gt;</code></td>
205 <td class="cell85">custom log file; default:
206 <i>&lt;cache-dir&gt;/log.txt</i>.</td>
207 </tr>
208 <tr>
209 <td class="cell15"><code>--shared</code></td>
210 <td class="cell85">expert feature: operate on shared installation
211 deployment context; run only when no concurrent Office process(es) are
212 running!</td>
213 </tr>
214 <tr>
215 <td class="cell15"><code>--deployment-context &lt;context&gt;</code>
216 </td>
217 <td class="cell85">expert feature: explicit deployment context</td>
218 </tr>
219 </table>
220 </td>
221 </tr>
222 </table>
223 </td>
224 <td class="content1"><img class="nothing8" src="images/nada.gif"/></td>
225 </tr>
226 <tr>
227 <td colspan="3"><img class="line" src="images/sdk_line-1.gif"/></td>
228 </tr>
229 <tr>
230 <td class="content1"><img class="nothing8" src="images/nada.gif"/></td>
231 <td>
232 <table class="table2">
233 <tr>
234 <td colspan="2" class="head1"><a name="unoexe"/>uno</td>
235 <td align="right">
236 <a href="#tools" title="link to the tools overview"><img class="navigate" src="images/nav_up.png"/></a>
237 <a href="../index.html" title="link to the SDK start page"><img class="navigate" src="images/nav_home.png"/></a>
238 </td>
239 </tr>
240 <tr>
241 <td colspan="3">
242 <p>The UNO-starter is for running a component or service process, and
243 providing a runtime environment. Raising a component might look like
244 this </p>
245 <p><code>[c:\] uno.exe -c MyComponent -l mycomp.dll -env:URE_MORE_SERVICES=myservices.rdb -env:URE_MORE_TYPES=mytypes.rdb
246 -- foo bar</code></p>
247 <p>or</p>
248 <p><code>[c:\] uno.exe -s foo.bar.FooBarService -env:URE_MORE_SERVICES=myservices.rdb -env:URE_MORE_TYPES=mytypes.rdb
249 -- foo bar</code></p>
250 <p>The starter loads the component and instantiates it. The component
251 must export the interface <a href="%DOXYGEN_PREFIX1%/docs/idl/ref/interfacecom_1_1sun_1_1star_1_1lang_1_1XMain.html" title="link into the IDL reference to the interface com.sun.star.lang.XMain">com.sun.star.lang.XMain</a>:</p>
253 <code>interface XMain : com::sun::star::uno::XInterface <br/>
254 { <br/>
255 &nbsp;&nbsp;&nbsp; /** This method is called to run the component.<br/>
256 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br/>
257 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; @param aArguments command line arguments <br/>
258 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; @return process error code to be returned to system <br/>
259 &nbsp;&nbsp;&nbsp; */ <br/>
260 &nbsp;&nbsp;&nbsp; long run( [in] sequence&lt; string &gt; arguments ); <br/>
262 </code>
263 </p>
264 <p>Method run() will be called and returns the error code given, back
265 to the system. If the uno starter is executed with the -u (URL) option,
266 then XInitialization is used instead of XMain. The -u option is described
267 later.</p>
268 <p class="head2">Usage:</p>
269 <blockquote>
270 <b><code>uno (-c&lt;ComponentImplementationName&gt; -l &lt;LocationUrl&gt;
271 | -s &lt;ServiceName&gt;) <br/>
272 [-u uno:(socket[,host=&lt;HostName&gt;][,port=&lt;nnn&gt;]|pipe[,name=&lt;PipeName&gt;]);iiop|urp;&lt;Name&gt;<br/>
273 [--singleaccept] [--singleinstance]] <br/>
274 [-- &lt;Argument1 Argument2 ...&gt;]
275 </code></b>
276 </blockquote>
277 <p class="head2">Options:</p>
278 <table class="table4">
279 <tr>
280 <td class="cell15"><code>&lt;HostName&gt;</code></td>
281 <td class="cell85">Specifying a host name might be necessary to
282 distinguish the network interface to be used,if a machine is part of
283 two networks.</td>
284 </tr>
285 <tr>
286 <td class="cell15"><code>&lt;PipeName&gt;</code></td>
287 <td class="cell85">Name of a named pipe.</td>
288 </tr>
289 <tr>
290 <td class="cell15"><code>&lt;Name&gt;</code></td>
291 <td class="cell85">Identifier for demanded called component
292 instances.</td>
293 </tr>
294 <tr>
295 <td class="cell15"><code>--singleaccept</code></td>
296 <td class="cell85">The uno starter will accept one connection,
297 provide the component instance and die.</td>
298 </tr>
299 <tr>
300 <td class="cell15"><code>--singleinstance</code></td>
301 <td class="cell85">The uno starter will accept any number of
302 connections, but will provide the same single component instance any
303 time instead of creating a new instance for each connection.</td>
304 </tr>
305 </table>
306 <p><b>Service <a href="%DOXYGEN_PREFIX1%/docs/idl/ref/servicecom_1_1sun_1_1star_1_1bridge_1_1UnoUrlResolver.html" title="link into the IDL reference to the service com.sun.star.bridge.UnoUrlResolver">com.sun.star.bridge.UnoUrlResolver</a></b></p>
307 <p>You can easily connect to a server started with the
308 <code>-u (url)</code> option by using this service, giving the same url
309 to resolve. The service provides you an instance from remote.</p>
310 </td>
311 </tr>
312 </table>
313 </td>
314 <td class="content1"><img class="nothing8" src="images/nada.gif"/></td>
315 </tr>
316 <tr>
317 <td colspan="3"><img class="line" src="images/sdk_line-1.gif"/></td>
318 </tr>
319 <tr>
320 <td class="content1"><img class="nothing8" src="images/nada.gif"/></td>
321 <td>
322 <table class="table2">
323 <tr>
324 <td colspan="2" class="head1"><a name="unoidl-write"/>unoidl-write</td>
325 <td align="right">
326 <a href="#tools" title="link to the tools overview"><img class="navigate" src="images/nav_up.png"/></a>
327 <a href="../index.html" title="link to the SDK start page"><img class="navigate" src="images/nav_home.png"/></a>
328 </td>
329 </tr>
330 <tr>
331 <td colspan="3">
332 <p>'unoidl-write' is the new UNOIDL compiler, replacing the former idlc and regmerge tools. It is a full featured compiler used
333 to check UNODL type definitions and transform valid type definitions
334 into a binary type library format, which is later used by all codemaker
335 tools. It is also used as a dynamic type library for UNO at runtime.<br/>
336 You can find a syntax description for UNOIDL <a href="http://wiki.openoffice.org/wiki/Documentation/DevGuide/AppendixD/UNOIDL_Syntax_Specification" title="link to the &quot;UNOIDL Syntax Specification&quot; chapter in the Developer's Guide">here</a>.</p>
337 <p><b>Note:</b> unoidl-write produces a new binary type library format that is
338 different from the legacy format that was produced by idlc and regmerge. While
339 recent versions of LibreOffice are still able to read the old format, versions of
340 LibreOffice prior to LibreOffice&nbsp;4.1 were not able to read the new format.
341 Thus, if you use this SDK to generate a LibreOffice extension that contains a type
342 library file produced by unoidl-write, you should specify a
343 <code>LibreOffice-minimal-version</code> of at least&nbsp;4.1 for that extension
344 (see <a
345 href="https://wiki.documentfoundation.org/Development/Extension_Development#Compatibility_notes">&ldquo;Extension
346 Development: Compatibility notes&rdquo;</a>).</p>
347 <p class="head2">Usage:</p>
348 <blockquote>
349 <b><code>unoidl-write [&lt;registries&gt;] [@&lt;entries file&gt;] &lt;unoidl file&gt;</code></b>
350 </blockquote>
351 <table class="table4">
352 <tr>
353 <td class="cell15"><code>&lt;registries&gt;</code></td>
354 <td class="cell85">each <code>&lt;registry&gt;</code> is either a new- or
355 legacy-format .rdb file, a single .idl file, or a root directory of an .idl
356 file tree.</td>
357 </tr>
358 <tr>
359 <td class="cell15"><code>@&lt;entries file&gt;</code></td>
360 <td class="cell85">a UTF-8 encoded file containing zero or more
361 space-separated names of (non-module) entities to include in the output; if
362 omitted, the output defaults to the complete content of the last
363 <code>&lt;registry&gt;</code>, if any.</td>
364 </tr>
365 <tr>
366 <td class="cell15"><code>@&lt;unoidl file&gt;</code></td>
367 <td class="cell85">specifies the name of the output file.</td>
368 </tr>
369 </table>
370 </td>
371 </tr>
372 </table>
373 </td>
374 <td class="content1"><img class="nothing8" src="images/nada.gif"/></td>
375 </tr>
376 <tr>
377 <td colspan="3"><img class="line" src="images/sdk_line-1.gif"/></td>
378 </tr>
379 <tr>
380 <td class="content1"><img class="nothing8" src="images/nada.gif"/></td>
381 <td>
382 <table class="table2">
383 <tr>
384 <td colspan="2" class="head1"><a name="unoidl-read"/>unoidl-read</td>
385 <td align="right">
386 <a href="#tools" title="link to the tools overview"><img class="navigate" src="images/nav_up.png"/></a>
387 <a href="../index.html" title="link to the SDK start page"><img class="navigate" src="images/nav_home.png"/></a>
388 </td>
389 </tr>
390 <tr>
391 <td colspan="3">
392 <p>'unoidl-read' is a tool to show the contents of a type library. The tool writes the
393 content in a human readable manner to stdout.</p>
394 <p class="head2">Usage:</p>
395 <blockquote>
396 <b><code>unoidl-read [--published] [--summary] &lt;registries&gt;</code></b>
397 </blockquote>
398 <p class="head2">Options:</p>
399 <table class="table4">
400 <tr>
401 <td class="cell15"><code>--published</code></td>
402 <td class="cell85">if specified, only published entities (plus any non-published
403 entities referenced from published via any unpublished optional bases) are written
404 out.</td>
405 </tr>
406 <tr>
407 <td class="cell15"><code>--summary</code></td>
408 <td class="cell85">if specified, only a short summary is written, with the type and
409 name of one entity per line.</td>
410 </tr>
411 <tr>
412 <td class="cell15"><code>&lt;registries&gt;</code></td>
413 <td class="cell85">one or more <code>&lt;registry&gt;</code> elements, where each
414 is either a new- or legacy-format .rdb file, a single .idl file, or a root
415 directory of an .idl file tree. The content of the last
416 <code>&lt;registry&gt;</code> is written out. The other
417 <code>&lt;registry&gt;</code> elements are only used to look up dependencies.</td>
418 </tr>
419 </table>
420 </td>
421 </tr>
422 </table>
423 <td class="content1"><img class="nothing8" src="images/nada.gif"/></td>
424 </tr>
425 <tr>
426 <td colspan="3"><img class="line" src="images/sdk_line-1.gif"/></td>
427 </tr>
428 <tr>
429 <td class="content1"><img class="nothing8" src="images/nada.gif"/></td>
430 <td>
431 <table class="table2">
432 <tr>
433 <td colspan="2" class="head1"><a name="cppumaker"/>cppumaker</td>
434 <td align="right">
435 <a href="#tools" title="link to the tools overview"><img class="navigate" src="images/nav_up.png"/></a>
436 <a href="../index.html" title="link to the SDK start page"><img class="navigate" src="images/nav_home.png"/></a>
437 </td>
438 </tr>
439 <tr>
440 <td colspan="3">
441 <p>The 'cppumaker' generates a C++ representation for idl types. The
442 cppumaker works on a typelibrary, which is generated by the UNOIDL
443 compiler (<a href="#unoidl-write" title="link to the unoidl-write tool description">
444 unoidl-write</a>). It generates the output for all specified types and for all
445 types the specified types depend on.</p>
446 <p class="head2">Usage:</p>
447 <blockquote>
448 <b><code>cppumaker [-options] file_1 ... file_n</code></b>
449 </blockquote>
450 <p class="head2">Options:</p>
451 <table class="table4">
452 <tr>
453 <td class="cell15"><code>-O&lt;path&gt;</code></td>
454 <td class="cell85">path describes the root directory for the
455 generated output. The output directory tree is generated under this
456 directory.</td>
457 </tr>
458 <tr>
459 <td class="cell15"><code>-T&lt;name&gt;<br/>
460 |-T&lt;t1&gt;;&lt;t2&gt;...</code></td>
461 <td class="cell85">name specifies a type or a list of types. The
462 output for this type and all dependent types are generated. If no '-T'
463 option is specified, then output for all types is generated. It is also
464 possible to use a wildcard 'xy.*' to generate a complete module
465 inclusive all subdirectories. The use of '-T*' is equivalent to no '-T'
466 option. Example: 'com.sun.star.uno.XInterface' or
467 'com.sun.star.uno.*' are valid types.
468 </td>
469 </tr>
470 <tr>
471 <td class="cell15"><code>-B&lt;name&gt;</code></td>
472 <td class="cell85">name specifies the base node. All types are
473 searched under this node. Default is the root '/' of the registry
474 files.
475 <br/>
476 <i>This option has been removed in LibreOffice 4.1.</i>
477 </td>
478 </tr>
479 <tr>
480 <td class="cell15"><code>-L</code></td>
481 <td class="cell85">UNO type functions are generated lightweight, that
482 means only the name and typeclass are given and everything else is
483 retrieved from the type library dynamically. The default is that UNO
484 type functions provides enough type information for bootstrapping C++.
485 '-L' should be the default for external components.</td>
486 </tr>
487 <tr>
488 <td class="cell15"><code>-C</code></td>
489 <td class="cell85">UNO type functions are generated comprehensive
490 that means all necessary information is available for bridging the
491 type in UNO.
492 </td>
493 </tr>
494 <tr>
495 <td class="cell15"><code>-G</code></td>
496 <td class="cell85">generate only target files which do not
497 exist.</td>
498 </tr>
499 <tr>
500 <td class="cell15"><code>-Gc</code></td>
501 <td class="cell85">generate only target files whose content will
502 be changed.</td>
503 </tr>
504 <tr>
505 <td class="cell15"><code>-X&lt;name&gt;</code></td>
506 <td class="cell85">extra types, which are not be taken into account
507 for generation.</td>
508 </tr>
509 </table>
510 </td>
511 </tr>
512 </table>
513 </td>
514 <td class="content1"><img class="nothing8" src="images/nada.gif"/></td>
515 </tr>
516 <tr>
517 <td colspan="3"><img class="line" src="images/sdk_line-1.gif"/></td>
518 </tr>
519 <tr>
520 <td class="content1"><img class="nothing8" src="images/nada.gif"/></td>
521 <td>
522 <table class="table2">
523 <tr>
524 <td colspan="2" class="head1"><a name="javamaker"/>javamaker</td>
525 <td align="right">
526 <a href="#tools" title="link to the tools overview"><img class="navigate" src="images/nav_up.png"/></a>
527 <a href="../index.html" title="link to the SDK start page"><img class="navigate" src="images/nav_home.png"/></a>
528 </td>
529 </tr>
530 <tr>
531 <td colspan="3">
532 <p>The 'javamaker' generates the appropriate Java class file for each idl
533 type. The javamaker works on a typelibrary which is generated by the
534 UNOIDL compiler (<a href="#unoidl-write" title="link to the unoidl-write tool description">
535 unoidl-write</a>). It generates the output for all specified types and for all
536 types the specified types depend on.</p>
537 <p class="head2">Usage:</p>
538 <blockquote>
539 <b><code>javamaker [-options] file_1 ... file_n -Xfile_n+1 -Xfile_n+2</code></b>
540 </blockquote>
541 <p class="head2">Options:</p>
542 <table class="table4">
543 <tr>
544 <td class="cell15"><code>-O&lt;path&gt;</code></td>
545 <td class="cell85">path describes the root directory for the
546 generated output. The output directory tree is generated under this
547 directory.</td>
548 </tr>
549 <tr>
550 <td class="cell15"><code>-T&lt;name&gt;|-T&lt;t1&gt;;&lt;t2&gt;...</code></td>
551 <td class="cell85">name specifies a type or a list of types. The
552 output for this type and all dependent types are generated. If no '-T'
553 option is specified, then output for all types is generated. It is also
554 possible to use a wildcard 'xy.*' to generate a complete module
555 inclusive all subdirectories. The use of '-T*' is equivalent to no '-T'
556 option. Example: 'com.sun.star.uno.XInterface'
557 or 'com.sun.star.uno.*' are valid types.
558 </td>
559 </tr>
560 <tr>
561 <td class="cell15"><code>-B&lt;name&gt;</code></td>
562 <td class="cell85">name specifies the base node. All types are
563 searched under this node. Default is the root '/' of the registry
564 files.
565 <br/>
566 <i>This option has been removed in LibreOffice 4.1.</i>
567 </td>
568 </tr>
569 <tr>
570 <td class="cell15"><code>-nD</code></td>
571 <td class="cell85">no dependent types are generated.</td>
572 </tr>
573 <tr>
574 <td class="cell15"><code>-G</code></td>
575 <td class="cell85">generate only target files which do not
576 exist.</td>
577 </tr>
578 <tr>
579 <td class="cell15"><code>-Gc</code></td>
580 <td class="cell85">generate only target files whose content will
581 be changed.</td>
582 </tr>
583 <tr>
584 <td class="cell15"><code>-X&lt;name&gt;</code></td>
585 <td class="cell85">extra types, which will not be taken into account
586 for generation.</td>
587 </tr>
588 </table>
589 </td>
590 </tr>
591 </table>
592 </td>
593 <td class="content1"><img class="nothing8" src="images/nada.gif"/></td>
594 </tr>
595 <tr>
596 <td colspan="3"><img class="line" src="images/sdk_line-1.gif"/></td>
597 </tr>
598 <tr>
599 <td class="content1"><img class="nothing8" src="images/nada.gif"/></td>
600 <td>
601 <table class="table2">
602 <tr>
603 <td colspan="2" class="head1"><a name="climaker"/>climaker</td>
604 <td align="right">
605 <a href="#tools" title="link to the tools overview"><img class="navigate" src="images/nav_up.png"/></a>
606 <a href="../index.html" title="link to the SDK start page"><img class="navigate" src="images/nav_home.png"/></a>
607 </td>
608 </tr>
609 <tr>
610 <td colspan="3">
611 <p>The 'climaker' (windows only) generates the appropriate CLI assemblies file for each idl
612 type. The climaker works on a typelibrary which is generated by the
613 UNOIDL compiler (<a href="#unoidl-write" title="link to the unoidl-write tool description">
614 unoidl-write</a>). It generates the output for all specified types and for all
615 types the specified types depend on.</p>
616 <p class="head2">Usage:</p>
617 <blockquote>
618 <b><code>climaker &lt;switches&gt; [registry-file-1 registry-file-2 ...]</code></b>
619 </blockquote>
620 <p class="head2">Options:</p>
621 <table class="table4">
622 <tr>
623 <td class="cell15"><code>-O, --out &lt;output_file&gt;</code></td>
624 <td class="cell85">output assembly file;<br/>
625 defaults to cli_unotypes.dll if more than one registry-file is given, else &lt;registry-file&gt;.dll</td>
626 </tr>
627 <tr>
628 <td class="cell15"><code>-T, --types &lt;type1[;type2;...]&gt;</code></td>
629 <td class="cell85">types to be generated (if none is given,
630 then all types of given registries are emitted</td>
631 </tr>
632 <tr>
633 <td class="cell15"><code>-X, --extra &lt;rdb-file&gt;></code></td>
634 <td class="cell85">additional rdb to saturate referenced types in
635 given registry file(s); these types will not be
636 emitted into the output assembly file</td>
637 </tr>
638 <tr>
639 <td class="cell15"><code>-r, --reference &lt;assembly-file&gt;</code></td>
640 <td class="cell85">reference metadata from assembly file</td>
641 </tr>
642 <tr>
643 <td class="cell15"><code>-k, --keyfile</code></td>
644 <td class="cell85">keyfile needed for strong name</td>
645 </tr>
646 <tr>
647 <td class="cell15"><code>--assembly-version &lt;version&gt;</code></td>
648 <td class="cell85">sets assembly version</td>
649 </tr>
650 <tr>
651 <td class="cell15"><code>--assembly-description &lt;text&gt;</code></td>
652 <td class="cell85">sets assembly description text</td>
653 </tr>
654 <tr>
655 <td class="cell15"><code>--assembly-product &lt;text&gt;</code></td>
656 <td class="cell85">sets assembly product name</td>
657 </tr>
658 <tr>
659 <td class="cell15"><code>--assembly-company &lt;text&gt;</code></td>
660 <td class="cell85">sets assembly company</td>
661 </tr>
662 <tr>
663 <td class="cell15"><code>--assembly-copyright &lt;text&gt;</code></td>
664 <td class="cell85">sets assembly copyright</td>
665 </tr>
666 <tr>
667 <td class="cell15"><code>--assembly-trademark &lt;text&gt;</code></td>
668 <td class="cell85">sets assembly trademark</td>
669 </tr>
670 <tr>
671 <td class="cell15"><code>-v, --verbose</code></td>
672 <td class="cell85">verbose output to stdout</td>
673 </tr>
674 <tr>
675 <td class="cell15"><code>-h, --help</code></td>
676 <td class="cell85">this message</td>
677 </tr>
679 </table>
680 <p><b>Example:</b> <code>climaker --out cli_mytypes.dll --reference cli_uretypes.dll --extra types.rdb mytypes.rdb</code></p>
681 </td>
682 </tr>
683 </table>
684 </td>
685 <td class="content1"><img class="nothing8" src="images/nada.gif"/></td>
686 </tr>
687 <tr>
688 <td colspan="3"><img class="line" src="images/sdk_line-1.gif"/></td>
689 </tr>
690 <tr>
691 <td class="content1"><img class="nothing8" src="images/nada.gif"/></td>
692 <td>
693 <table class="table2">
694 <tr>
695 <td colspan="2" class="head1"><a name="uno-skeletonmaker"/>uno-skeletonmaker</td>
696 <td align="right">
697 <a href="#tools" title="link to the tools overview"><img class="navigate" src="images/nav_up.png"/></a>
698 <a href="../index.html" title="link to the SDK start page"><img class="navigate" src="images/nav_home.png"/></a>
699 </td>
700 </tr>
701 <tr>
702 <td colspan="3">
703 <p>The 'uno-skeletonmaker' is a tool to simplify the UNO component development. It has different modes, from simply dumping code definitions for different languages on stdout up to generating complete code skeletons. The generation of code skeletons support common component skeletons as well as specialized skeletons for special service provider interfaces.</p>
704 <p class="head2">Usage:</p>
705 <blockquote>
706 <b><code>
707 uno-skeletonmaker (-env:INIFILENAME=&lt;url&gt;) dump [&lt;options>] -t &lt;type&gt; ...<br/>
708 uno-skeletonmaker (-env:INIFILENAME=&lt;url&gt;) component [&lt;options&gt;] -n &lt;name&gt; -t &lt;type&gt; ...<br/>
709 uno-skeletonmaker (-env:INIFILENAME=&lt;url&gt;) calc-add-in [&lt;options&gt;] -n &lt;name&gt; -t &lt;add-in_service&gt;<br/>
710 uno-skeletonmaker (-env:INIFILENAME=&lt;url&gt;) add-on [&lt;options&gt;] -n &lt;name&gt; -p &lt;protocol_name:command,...&gt;
711 uno-skeletonmaker -V, --version<br/>
712 uno-skeletonmaker -h, --help<br/>
713 </code></b>
714 </blockquote>
715 <p class="head2">Sub-commands:</p>
716 <table class="table4">
717 <tr>
718 <td class="cell15"><code>dump</code></td>
719 <td class="cell85">dump declarations on stdout (e.g. constructors, methods, type mapping for properties) or complete method bodies with method forwarding.</td>
720 </tr>
721 <tr>
722 <td class="cell15"><code>component</code></td>
723 <td class="cell85">generates language specific code skeleton files using the implementation name as the file and class name</td>
724 </tr>
725 <tr>
726 <td class="cell15"><code>calc-add-in</code></td>
727 <td class="cell85">generates a language specific code skeleton for a Calc Add-Ins using the implementation name as the file and class name. A service type is necessary, referencing an interface which defines the new add-in functions.</td>
728 </tr>
729 <tr>
730 <td class="cell15"><code>add-on</code></td>
731 <td class="cell85">generates a language specific code skeleton for an add-on component using the implementation name as the file and class name. The protocol name(s) and the corresponding command(s) have to be specified with the '-p' option.</td>
732 </tr>
733 </table>
734 <p class="head2">Options:</p>
735 <table class="table4">
736 <tr>
737 <td class="cell15"><code>-env:INIFILENAME=&lt;url&gt;</code></td>
738 <td class="cell85">url specifies a URL to a UNO ini|rc file of an existing UNO environment (URE, office installation).</td>
739 </tr>
740 <tr>
741 <td class="cell15"><code>-a, --all</code></td>
742 <td class="cell85">list all interface methods, not only the direct ones</td>
743 </tr>
744 <tr>
745 <td class="cell15"><code>--(java5|cpp)</code></td>
746 <td class="cell85">select the target language<br/>
747 --java5 generate output for Java 1.5 or later (is currently the default)<br/>
748 --cpp generate output for C++</td>
749 </tr>
750 <tr>
751 <td class="cell15"><code>-sn, --shortnames</code></td>
752 <td class="cell85">using namespace abbreviation 'css:': for '::com::sun::star::', only valid for sub-command 'dump' and target language 'cpp'. It is default for the sub-command 'component'.</td>
753 </tr>
754 <tr>
755 <td class="cell15"><code>--propertysetmixin</code></td>
756 <td class="cell85">the generated skeleton implements the cppu::PropertySetMixin helper if a referenced new style service specifies an interface which provides attributes (directly or inherited).</td>
757 </tr>
758 <tr>
759 <td class="cell15"><code>-lh, --licenseheader</code></td>
760 <td class="cell85">generates a default LibreOffice MPLv2 license header at the beginning of a component source file. This option is taken into account in 'component' mode only and if -o is unequal 'stdout'.</td>
761 </tr>
762 <tr>
763 <td class="cell15"><code>-bc,<br>--backward-compatible</code></td>
764 <td class="cell85">specifies that the generated calc add-in is backward compatible to older office versions and implement the former required add-in interfaces where the implementation is mapped on the new add-in configuration. In this case the config schema needs to be bundled with the extension add-in as well. Default is a minimal add-in component skeleton based on the add-in configuration coming with the office since OO.org 2.0.4.</td>
765 </tr>
766 <tr>
767 <td class="cell15"><code>-o &lt;path&gt;</code></td>
768 <td class="cell85">path specifies an existing directory where the output files are generated to, only valid for sub-command 'component'. If path=stdout the generated code is generated on standard out instead of a file.</td>
769 </tr>
770 <tr>
771 <td class="cell15"><code>-l &lt;file&gt;</code></td>
772 <td class="cell85">specifies a binary type library (can be used more than once). The type library is integrated as an additional type provider in the bootstrapped type system.</td>
773 </tr>
774 <tr>
775 <td class="cell15"><code>-n &lt;name&gt;</code></td>
776 <td class="cell85">specifies an implementation name for the component (used as classname, filename and package|namespace name). In 'dump' mode it is used as classname (e.g. &quot;MyBase::&quot;, C++ only) to generate method bodies not inline.</td>
777 </tr>
778 <tr>
779 <td class="cell15"><code>-d &lt;name&gt;</code></td>
780 <td class="cell85">specifies a base classname or a delegator. In 'dump' mode it is used as a delegator to forward methods. It can be used as '&lt;name&gt;::' for base forwarding, or '&lt;name&gt;-&gt;|.' for composition. Using &quot;_&quot; means that a default bodies with default return values are dumped.</td>
781 </tr>
782 <tr>
783 <td class="cell15"><code>-t &lt;name&gt;</code></td>
784 <td class="cell85">specifies a UNOIDL type name, e.g. com.sun.star.text.XText (can be used more than once).</td>
785 </tr>
786 <tr>
787 <td class="cell15"><code>-p &lt;protocol:cmd(s)&gt;</code></td>
788 <td class="cell85">specifies an add-on protocol name and the corresponding command names, where the commands are a ',' separated list of unique commands. This option is only valid for add-ons.</td>
789 </tr>
790 <tr>
791 <td class="cell15"><code>-V, --version</code></td>
792 <td class="cell85">print version number and exit.</td>
793 </tr>
794 <tr>
795 <td class="cell15"><code>-h, --help</code></td>
796 <td class="cell85">print this help and exit.</td>
797 </tr>
798 </table>
799 </td>
800 </tr>
801 </table>
802 </td>
803 <td class="content1"><img class="nothing8" src="images/nada.gif"/></td>
804 </tr>
805 <tr>
806 <td colspan="3"><img class="line" src="images/sdk_line-1.gif"/></td>
807 </tr>
808 <tr>
809 <td class="content1"><img class="nothing8" src="images/nada.gif"/></td>
810 <td>
811 <table class="table2">
812 <tr>
813 <td colspan="2" class="head1"><a name="regview"/>regview</td>
814 <td align="right">
815 <a href="#tools" title="link to the tools overview"><img class="navigate" src="images/nav_up.png"/></a>
816 <a href="../index.html" title="link to the SDK start page"><img class="navigate" src="images/nav_home.png"/></a>
817 </td>
818 </tr>
819 <tr>
820 <td colspan="3">
821 <p>'regview' is a tool to show the contents of a legacy registry file. The tool
822 dumps the hierarchical structure and the values of the nodes in a human
823 readable manner to stdout.</p>
824 <p class="head2">Usage:</p>
825 <blockquote>
826 <b><code>regview &lt;registryfile&gt; [&lt;keyName&gt;]</code></b>
827 </blockquote>
828 <p class="head2">Options:</p>
829 <table class="table4">
830 <tr>
831 <td class="cell15"><code>-br&lt;registryfile&gt;</code></td>
832 <td class="cell85">the name of the registry whose contents should
833 be viewed.</td>
834 </tr>
835 <tr>
836 <td class="cell15"><code>&lt;keyName&gt;</code></td>
837 <td class="cell85">the name of a registry key. The name must be
838 fully qualified; for example, '/' means the root key and
839 '/UCR/com/sun/star/uno/XInterface' shows the type specification of the
840 XInterface type. If no key is specified, the tool dumps the whole
841 content of the registry file.</td>
842 </tr>
843 </table>
844 </td>
845 </tr>
846 </table>
847 </td>
848 <td class="content1"><img class="nothing8" src="images/nada.gif"/></td>
849 </tr>
850 <tr>
851 <td colspan="3"><img class="line" src="images/sdk_line-1.gif"/></td>
852 </tr>
853 <tr>
854 <td class="content1"><img class="nothing8" src="images/nada.gif"/></td>
855 <td>
856 <table class="table2">
857 <tr>
858 <td colspan="2" class="head1"><a name="autodoc"/>autodoc</td>
859 <td align="right">
860 <a href="#tools" title="link to the tools overview"><img class="navigate" src="images/nav_up.png"/></a>
861 <a href="../index.html" title="link to the SDK start page"><img class="navigate" src="images/nav_home.png"/></a>
862 </td>
863 </tr>
864 <tr>
865 <td colspan="3">
866 <p>The legacy 'autodoc' tool was used for creating javadoc-like
867 documentation from C++ and UNO IDL source code in previous versions
868 of the SDK.</p>
869 <p>Because this tool was buggy and unmaintained it has been removed
870 from the SDK. Users are advised to use
871 <a href="http://www.stack.nl/~dimitri/doxygen/">Doxygen</a> instead,
872 which supports UNO IDL since April 2013.</p>
873 </td>
874 </tr>
875 </table>
876 </td>
877 <td class="content1"><img class="nothing8" src="images/nada.gif"/></td>
878 </tr>
879 </table>
880 </div>
881 <div id="Footer">
882 <div id="FooterText">
884 Copyright © 20002023 LibreOffice contributors. All rights reserved.
885 <br/>
886 LibreOffice was created by The Document Foundation,
887 based on Apache OpenOffice, which is Copyright 2011,
888 The Apache Software Foundation.
889 <br/>
890 The Document Foundation acknowledges all community members, please find more info <a href="https://www.libreoffice.org/about-us/credits/" target="_blank">at our website</a>.
891 </p>
893 &nbsp;
894 </p>
896 <a href="http://www.documentfoundation.org/privacy" target="_blank">Privacy Policy</a> | <a href="http://www.documentfoundation.org/imprint" target="_blank">Impressum (Legal Info)</a>
897 | Copyright information: The source code of LibreOffice is licensed under the Mozilla Public License v2.0 (<a href="http://www.libreoffice.org/download/license/" target="_blank">MPLv2</a>). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our <a href="http://wiki.documentfoundation.org/TradeMark_Policy" target="_blank">trademark policy</a>.
898 </p>
899 </div>
900 </div>
901 </div>
902 </div>
903 </div>
904 </body>
905 </html>