<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
Hello Stephan, Yes, this is a Linux system and I'm invoking
uno-skeletonmaker thus:<br>
<span style="color:#000000;background-color:#ffffff;"><br>
</span><span style="color:#000000;background-color:#ffffff;"><span
style="color:#000000;background-color:#ffffff;">david@anon:~>
"$OFFICE_HOME"/sdk/bin/uno-skeletonmaker calc-add-in --java5 -l
"$OFFICE_PROGRAM_PATH"/types.rdb -n
org.openoffice.adl.util.CalcDL1 -t CalcDL1<br>
ERROR: Unknown entity 'CalcDL1'<br>
david@anon:~></span></span><br>
<br>
I'd already found the '-l' trap for the unwary the hard way (and it
also occurs in 'javamaker')! My problem now is that a value for
'-t' is apparently mandatory for the 'calc-add-in' command but I
don't understand what to put there.<br>
<br>
The uno-skeletonmaker source code, its help text, and every other
reference have identical wording: "-t <name> <font
face="Liberation Serif">specifies a UNOIDL type name, e.g.
com.sun.star.text.XText (can be used more than once)”.<br>
<br>
Since '-l' already points to types.rdb you'd think '-t' wouldn't
be needed. </font>The phrasing "-t CalcDL1" was just a guess as
I'd read some source code which seemed to imply a service-name was
required.<br>
<u><br>
</u><u>Regards, David</u><br>
<br>
<br>
<div class="moz-cite-prefix">On 24/1/23 01:15, Stephan Bergmann
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:be1134ca-e262-b605-230c-a8d0013d60b4@redhat.com">
<pre class="moz-quote-pre" wrap="">On 23/01/2023 03:45, David wrote:
</pre>
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">According to
<a class="moz-txt-link-freetext" href="https://api.libreoffice.org/docs/tools.html#uno-skeletonmaker">https://api.libreoffice.org/docs/tools.html#uno-skeletonmaker</a> the
argument ‘-t’ “specifies a UNOIDL type name, e.g.
com.sun.star.text.XText (can be used more than once)”. This wording is
the same as both the uno-skeletonmaker command-line ‘help’ and the
introductory comments in the source code for 'skeletonmaker.cxx'.
However I don't understand which entity the UNOIDL type name is intended
to qualify. For example, is it the type of the skeleton code to be
generated (presumably not, since that’s defined by the ‘calc-add-in’
command), the type of each value returned by the Java methods
implemented in this addIn, or something else? Anything I've tried
results in an "unknown entity" diagnostic.
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">uno-skeletonmaker apparently needs to be explicitly told where to find
any referenced UNOIDL entities, via the -l option. So adding something like
</pre>
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">-l "$OFFICE_HOME"/program/types.rdb -l "$OFFICE_HOME"/program/types/offapi.rdb
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">should work (in an SDK shell, on Linux at least).
</pre>
</blockquote>
</body>
</html>