ive to the core C++ code)
>>
>
> Nobody else interested in the topic, except Ariel, Bernard, and /me? Is
> everybody happy with such things being announced in
> [EMAIL PROTECTED] (or, well, not being announced at all)? Jürgen,
> do you have an opinion on this?
>
+1 (announce new int
ous and would be greatful
for any further hints/comments...
---rony
ent valid for a specific release that
> people can download and read offline. The latest and most current
> version will always be the Wiki version (the functionality for creating
> your own custom PDF remains in place of course).
>
> Would this fill the need for downloadable documenta
.org/wiki/Main_Page>.
-- cut here ---
where the "logged in" link above points to:
<http://wiki.services.openoffice.org/wiki/Special:UserLogin>.
Regards,
---rony
Hi Clayton,
Clayton wrote:
> rony wrote:
>
>> Hi Clayton,
>>
>>
>> Clayton wrote:
>>
>>> Hi. Just a quick update on how things are coming along on the ODT and
>>> PDF of the entire DevGuide.
>>>
>>> I have posted a
(O300m9, build:9358) and the Java interface to OOo to
invoke "executeDispatch()". Online documentation
<http://api.openoffice.org/docs/common/ref/com/sun/star/frame/XDispatchHelper.html#executeDispatch>,
looking up Parameter "Argum
9=Object, 11=Boolean)
isMissing(arg1)=False, value=someObject, datatype=9
isMissing(arg2)=False, value=True, datatype=11
isMissing(arg3)=True], State=[1]
Successful run.
-- cut here --
As you can see, the Basic function gets TWO arguments, instead of only
one. The last arg
nvestigation ...
O.K., I'll wait before submitting an issue for this then (as it could be
very well intentional and just the documentation for it is missing,
although the "surprise" factor would be there fore the application
programmers, potentially leading to wrong expectation
Original Message
Subject: Announcing OpenOffice-Draw-Snippets in Rexx ...
Date: Wed, 15 Aug 2007 21:26:23 +0200
From: rony <[EMAIL PROTECTED]>
Organization: University of Economics and Business Administration, Vienna,
Austria
Newsgroups: comp.lang.rexx
Or
Original Message
Subject: Announcing OpenOffice-Impress-Snippets in Rexx ...
Date: Wed, 15 Aug 2007 21:27:34 +0200
From: rony <[EMAIL PROTECTED]>
Organization: University of Economics and Business Administration, Vienna,
Austria
Newsgroups: comp.lang.rexx
Or
special I need to do/to know before using
introspection via Java?
TIA,
---rony
that I am not using C++ but Java and have found no
nutshell-programs/hints/faq with reflecting/introspecting UNO
components via "Java-UNO".
Any working Java-snippet would help me a lot, needless to say. (I am
trying to get at the methods and properties of any UNO object at
runtime using refle
tory/scalc", "_blank",
...)".]
---rony
Christian
Junker wrote:
First of all XIntrospectionAccess does not support the
method .inspect(...), it is css :: beans :: XIntrospection.
XIntrospectionAccess is the type of the *returned* object instead.
Sorry, I *mist
ce of
"com.sun.star.beans.Introspection", which works (I can now use the
XIntrospection interface to inspect the objects!).
Regards,
---rony
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
llows me to use
arbitrarily any major Java version, i.e. 1.1, 1.2, 1.3, 1.4, 1.5).
---
So, again, would someone have any ideas, clues which could help me out?
TIA,
---rony
ail.
Are there any registry-entries which might affect this behaviour that
have keys other than "OpenOffice" or "soffice" ? Or could it be, that
some cache is being used that contains erroneous data?
Regards,
---rony
e introspection&reflection Java
classes get "spoiled" such that they cannot be instantiated anymore,
even after one de-installs OOo and reboots, re-installs OOo, reboots
and tries to run the test programs that used to run. Finding out the
reason will allow solving the problem once an
culation that might help solve this situation would be
highly appreciated.
Regards,
---rony
introspect()!
--- --- ---
frameXModel=<[Proxy:10711912,65647b0;msci[0];9e38bd61f76011d9a7abe7f959e4e7f2,Type[com.sun.star.reflection.XIdlClass]]>
fxmMethods=<[Lcom.sun.star.reflection.XIdlMethod;@77158a>
fxmMethods.length=17
fxmFields=<[Lcom.sun.star.reflection.XI
ager?
Or maybe rephrased: if reflecting an UNO object, does one need to
use an instance of "com.sun.star.reflection.CoreReflection" from the
same context as the reflected UNO object?
TIA & regards,
---rony
ck, once I have done the class and experimented with my
environment, may take a few days though.
Regards,
---rony
strap_InitialComponentContext(Bootstrap.java:203)
at RgfUnoAnalyzeTest.(RgfUnoAnalyzeTest.java:27)
F:\work\tmp\ooo\tst>set
path=%path%;D:\Programme\OpenOffice.org1.1.4\program
F:\work\tmp\ooo\tst>java RgfUnoAnalyzeTest
defaultFactory=<[EMAIL PROTECTED]>
UnoRuntime.queryInterface(XPropertySet.class, defaultFactory):
<=== <=== <===
Exception:file:///E:/j2sdk1.4.2_06/bin/types.rdb for reading>has occurred!
In main()...
--- cut here --
Any hints highly appreciated!
TIA,
---rony
gt;
/singletons/com.sun.star.reflection.theCoreReflection =
/singletons/com.sun.star.lang.theServiceManager =
<[EMAIL PROTECTED]>
In main()...
cut here --
Any hints, insights?
TIA,
---rony
on my own and
incorporate it into the context, somehow?
Regards,
---rony
solution which
works now with 1.1.4 and 1.9.* and up. So any ideas, hints are highly
appreciated!
Regards,
---rony
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
rks without a
hitch. Maybe one needs to call something else in advance before using
this particular method
"Bootstrap.defaultBootstrap_InitialComponentContext()"?
Regards,
---rony
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
tar.reflection.CoreReflection failed.".
Does that mean that one could not create an instance at Bootstrap time
(working with OOo 1.1.4 installation)?
Regards,
---rony
P.S.: If helpful, I would supply the Java code for the above.
P.P.S.: It seems that my e-mails are not immediately processed
Hi Daniel,
thank you very much for your explanations (w.r.t. $SYSBINDIR) and help,
which is highly appreciated!
Regards,
---rony
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
is for a
scripting language that should be able to script office, the assumption
that a connection to an office instance is mandatory can be a reasonable
one.
;)
Again, thank you and Daniel very much !
---rony
P.S.: Still, a "generic"
"/singletons/com.sun.star.reflection.theCor
nt changed from
[in] to [inout].
Now, if I am only interested in the method getType(), returning an
XIdlClass, am I really supposed to query explicitly for the XField2
interface? Or with other words: would it be o.k. to use the returned
XField as long as one is not using the set()-met
er way to get at all interfaces of a XIdlClass via
reflection, without the need to create an instance of it?
TIA,
---rony
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hi there,
are the following few assumptions correct?
Interface class names in UNO always start with a capital X only.
Interface classes must not have fields (they consist of methods
only).
TIA,
---rony
cannot be figured out at runtime as long as such a
class did not get instantiated. (This seems to restrict the
reflectability quite considerably.)
---
I would like to thank you, Daniel and -mjayant for your kind help!
Regards,
---rony
Hi Arnulf,
thank you very much for your valuable hint! Will try to apply it...
Regards,
---rony
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
to no avail (e.g.
<http://api.openoffice.org/docs/common/ref/com/sun/star/reflection/XInterfaceAttributeTypeDescription-xref.html#devmanrefs>).
TIA,
---rony
P.S.: Ceterum, censeo, XIdlClass.getInterfaces() would alleviate the
need to go through the TypeDescriptions..., but if going t
use
getMembers to get all Methods and Attributes (which are
XInterfaceMemberTypeDescription). You can check the type with
getTypeClass of the parent interface XTypeDescritpion and so on...
Interesting and thank you very much again!
---rony
--
case
in a nutshell to demo the behaviour.
Again, thank you and Jürgen very much for your helpful suggestions!
Regards,
---rony
P.S.: Once I come up with a running version of that particular class, I
will post it here, so others could take a look at it and maybe evene
advan
at
all at
the moment.
If you are interested, please let me know.
Yes, definitely, I have a friend who might be interested in this (Gustaf
Neumann, XOTcl). This may be also interesting from the perspective of
matching the OOo OO model ;) with an OO version of Tcl.
Regards,
---rony
"theTypeDescriptionManager: " +
theTypeDescriptionManager) ;
}
--- cut here -
The last debug output will show "null" for "theTypeDescriptionManager",
the first two singletons show their appropriate values.
So would I need some
XHierarchicalNameAccess]]>
--- --- ---
test(): className=
strTmp=
--- --- ---
testTypeDescriptionEnumeration(): enumerationAccess:
<[Proxy:11935697,35a1e8;msci[0];8331bd1159211daa868ae7518a58f,Type[com.sun.star.reflection.XTypeDescriptionEnumerationAccess]]>
tdEnum=<[Proxy:29987161,3ccfa58;msci[0];8331bd1159211daa868ae7518a58f,Type[com.sun.star.reflection.XTypeDescriptionEnumeration]]>
tdEnum.hasMoreElements()=
--- --- ---
--- cut here --
Again, any help/hint highly appreciated!
---rony
ally need to use the XTypeDescription*
infrastructure to get at all the information at runtime that I need to
make the scripting language support even more flexible (although the
present support looks nice and simple enough and runs stable on 1.1.4,
1.9, with the la
h
I see.
Thank you very much for this interesting link!
---rony
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
ture to get at all the information at runtime that I need to
make the scripting language support even more flexible (although the
present support looks nice and simple enough and runs stable on 1.1.4,
1.9, with the latter even pluggable into the scripting framework).
Still looking
stTypeDescriptionEnumeration(): enumerationAccess:
<[Proxy:17977639,35a1e8;msci[0];70eecbe18e211dab947faf9b9a0e22e,Type[com.sun.star.reflection.XTypeDescriptionEnumerationAccess]]>
Does not work, should enumerate all TypeClass.INTERFACE, TypeClass.SERVICE
types:
tdEnum1.hasMoreElements(
ction on types to enumerate:
tdEnum3.hasMoreElements()=
Does NOT work: trying to enumerate interface types only:
tdEnum4.hasMoreElements()=
--- cut here --
So, what do you think?
Regards,
---rony
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
. (Any chances BTW to get the 1.1.x
reflection versions to reflect services as well, at the moment they
return just null?)
---rony
P.S.: The above statements are referring to using
"theTypeDescriptionManager" via Java.
--
t displayed as the top/front window, so the user needs
to get it to front manually.
What would be a starting point to research to get the FilePicker to the
front programmatically (without having a document object yet)?
Regards,
---rony
P.S.: In case it is helpful (or if some are a lit
or code-samples
to start researching this corner of OOo, including the ability to learn
about the version one is using). This way one can read, set and re-set
the setting in the case one wishes to use the FilePicker.
Regards,
---rony
this link as well as for all your help!
Regards,
---rony
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
g database?
Regards,
---rony
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
gards,
---rony
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
bootstrap
mechanism. In this case simply use System.exit if your application
allows it, otheriwse you have to connect manually and dispose the
bridge. I have forgot it in the exmaple.
No problem, thank you for your efforts!
Regards
ouldn't be that
bad at all.)
Regards,
---rony
P.S.: Have already created full dumps over all IDLs via Java, has been
fun and full of a lot of interesting stuff! You guys surely have created
a wealth of great functionality in a very clever way. The interfaces and
organization of function
erted
examples. I would like to see that all snippets would be avalaible in
all supported languages and that we can extend the collection.
Would offer to do the same for ooRexx (following the Java snippets), if you are
interested. If so, please advise.
Regards,
---rony
P.S.: A formal announcement o
s could be
done in a somewhat "nicer" form than in C++/Java for Basic and the like). Then this
problem should not really pop-up (plus it makes it clearer to the coder which logical
"part" of the object s/he is addressing).
---rony
--
is fragile. Rony is right in that another approach to the
design of those language bindings might have made it easier for users
to create robust code.
The only option to solve this 'unfragile' is to introduce a mandatory
queryInterface() call however it might look like.
But I thi
ould add an OPTION to indicate that interfaces need
to be explicitly denominated.
Regards,
---rony
Java (pseudo-code
suffices, ie. without casting)? Reason being, that whatever can be done
via Java can be done in ooRexx (using a very relaxed, almost pseudo-code
like syntax).
Regards,
---rony
-
To unsubscribe, e-mail
)? Reason being, that whatever can be done
via Java can be done in ooRexx (using a very relaxed, almost pseudo-code
like syntax).
-- cut here -
Regards,
---rony
-
To unsubscribe, e-mail: [EMAIL
Stephan Bergmann wrote:
Rony G. Flatscher wrote:
... cut ...
Just curious: how do you write down in
ooRexx calls to method bar on an object that implements the two
interfaces
module m1 { interface XFoo { void bar(); }; };
module m2 { interface XFoo
Sorry for my sluggish-like, out-of-sync-responses (for unknown reasons
the turn-around-time of e-mails via this list is up to hours delayed for
me, so I sometimes see postings that were sent earlier, *after* I sent
an e-mail)!
---rony
n the present beta, but could
be added, if that problem really can pop-up).
---rony
P.S.: It still looks a little bit strange to me that the module name m1
resp. m2 would not be used for uniquely identifying which XFoo you
would like to address.
"UNKNOWN" mechanism which gets triggered, if an object receives a
message it "does not understand", which actually would be used in the
ooRexx runtime error message, if the situation is not handled by the
program).
---rony
---
is: should ooRexx allow for the Basic and
Python behaviour which does try to pick the interface at runtime on its
own by default. Or should it always demand from the programmer to
denote the interface from which to draw methods or in which to refer to
attributes?
Regards
---rony
etc.), so that readers don't get lost searching for
the important parts.
would you have a Java rendering of that interesting code-snippets handy
by any chance?
---rony
-
To unsubscribe, e-mail: [EMAIL PROTECTED
fice.org/Writer/Writer.InsertAnAnnotationField.snip
The "Frysak"-snippets are also explained in his Bachelor thesis (see
link below).
HTH,
---rony
Rony G. Flatscher wrote:
> from time to time students work on creating/transcribing OOo macros for
> the different document types u
ells helpful from that perspective (saving themselves potentially a
lot of research time).
Regards,
---rony
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hi Stephan,
how about X loading Y loading Z dynamically on all mentioned platforms?
Would that be possible?
(This might allow a single package to be used on multiple operating
systems picking the appropriate libraries at runtime.)
---rony
Stephan Bergmann wrote:
> On 11/26/08 13:56, RKVS Ra
formation such, that one can print them out and read them wherever one
usually reads stuff (at the beach, in the bathroom, in the dining room,
while having dinner/lunch, a coffee break, ...).
Regards,
---rony
-
To unsubscr
cated relative to it), would be able to dynamic load Z,
given that an absolute path to it is used by Y?
---rony
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Z is located relative to it, of course it can compute an
> absolute filepath for Z and load it.
Sorry for this, but I just wanted to make sure that this would work o.k.
(as it would not be complicated at all, which I mistakingly inferred
from a comment in this thread).
Thanks!
---rony
ore to
>> mix-ups at runtime as a system added argument may change the logic of
>> the receiving function/subroutine).
>
> well i would never do it this way but anyway. It's definitely seldom
> used. You should try to use the scripting framework directly to invoke
ve URL and
following the link to "examples_from_the_BSF4Rexx_version" and will give
you insights into the available APIs for all OpenOffice.org document
types that can be created via the "File -> New..." menu.
Regards,
---rony
---
.err("java.version: "+System.getProperty("java.version");
Or output all properties to see the Java configuration in use.
HTH,
---rony
-
To unsubscribe, e-mail: dev-unsubscr...@api.openoffice.org
For additional commands, e-mail: dev-h...@api.openoffice.org
t
so much easier for readers to orientate themselves in the code examples.
Something like applying the [g]vim syntax highlighting?
Would you be able/contemplate of adding it?
Regards,
---rony
-
To unsubscribe, e-mail: dev-unsubscr...@api.openoffice.org
For additional commands, e-mail: dev-h...@api.openoffice.org
from that perspective (saving themselves potentially a
lot of research time).
---rony
-
To unsubscribe, e-mail: dev-unsubscr...@api.openoffice.org
For additional commands, e-mail: dev-h...@api.openoffice.org
ate
the libs, then you may be hit by "ldconfig"'s not processing symlinked
files.
---rony
-
To unsubscribe, e-mail: dev-unsubscr...@api.openoffice.org
For additional commands, e-mail: dev-h...@api.openoffice.org
d for
installing the OOo SDK.)
TIA,
---rony
sktop/scripting/>.
Enumerating all available scripting languages is as easy as e.g.
<http://javacook.darwinsys.com/new_recipes/26callingall.jsp>, which also
demonstrates how easy it is to invoke ECMAScript/JavaScript/Rhino from
Java. A (not complete) list of available JSR-223-scripting languages can
be found h
Hi there,
where could one find the specs or the code (Java/C/++) for creating the
registry file-structure from IDL files, such that one can create
registry files oneself?
TIA,
---rony
-
To unsubscribe, e-mail: dev-unsubscr
Hi Jürgen,
On 15.02.2010 13:07, Juergen Schmidt wrote:
> On 2/15/10 12:40 PM, Rony G. Flatscher wrote:
>> Hi there,
>>
>> where could one find the specs or the code (Java/C/++) for creating the
>> registry file-structure from IDL files, such that one can create
>
searches and in the
DevGuide, but have been unsuccessful so far.
Any kind soul who would give some pointers?
(Also, moving the entire window and resizing it via UNO would be a
necessity.)
TIA,
---rony
-
To unsubscribe,
a reference in any form to that
particular window (then I would be able to figure out whether it is
being displayed in full, resize and move it such that two different OOo
documents can be aligned alongside each other etc.).
Regards,
---rony
---
help solve the problem.
---
The problem rephrased would be: using UNO, how can one get a hold of the
e.g. Windows window in which OOo creates its components, such that one
can get the exact window position, width and height?
---rony
Hi Ariel,
On 3/3/2010 4:12 PM, Ariel Constenla-Haile wrote:
> On Wednesday 03 March 2010, 10:24, Rony G. Flatscher wrote:
>
>>> maybe
>>>
>>> ContainerWindow.Toolkit
>>> can do the job
>>>
>> thank you! Tried that already to no a
Hi Ariel,
On 04.03.2010 02:38, Ariel Constenla-Haile wrote:
> On Wednesday 03 March 2010, 14:16, Rony G. Flatscher wrote:
>
>>
>>> You could file a RFE to enhance the com.sun.star.awt.XTopWindow (haha now
>>> I see someone [fs in dba33a?] added
On 08.03.2010 13:55, Carsten Driesner wrote:
> Rony G. Flatscher wrote:
>> Hi Ariel,
>>
>> On 04.03.2010 02:38, Ariel Constenla-Haile wrote:
>>
>>> On Wednesday 03 March 2010, 14:16, Rony G. Flatscher wrote:
>>>
>>>
ize~height += insets~top + insets~bottom
HTH,
---rony
On 04.03.2010 02:38, Ariel Constenla-Haile wrote:
> Hello Rony,
>
> On Wednesday 03 March 2010, 14:16, Rony G. Flatscher wrote:
>
>>
>>> You could file a RFE to enhance the com.sun.star.awt.XTopWindow (hah
Hi Ariel,
*very* interesting, thank you for your findings (and very impressed,
that you were able to find/spot that particular code) !
Regards
---rony
On 16.03.2010 16:28, Ariel Constenla-Haile wrote:
> Hello Rony,
>
> in the meantime I've found
> http://svn.services.openof
gerFactory"" (which
I was able to successfully exploit back in the pre 2.2 days; with OOo
2.2; my notes tell me that then an XCommandEnvironment object was
mandatory to be passed to one of the methods, such that I switched to
using the "unopkg" executable instead).
Thankful for
would not expect to
have anything to handle).
Again, thank you very much!
---rony
-
To unsubscribe, e-mail: dev-unsubscr...@api.openoffice.org
For additional commands, e-mail: dev-h...@api.openoffice.org
using the executable "unopkg" instead.
However, I still appreciate your help a lot (and if there is a way to
buy you a beer or two, then please let me know! :) ).
---rony
-
To unsubscribe, e-mail: dev-unsubscr...@ap
Jürgen:
On 21.03.2010 11:06, Juergen Schmidt wrote:
> On 3/20/10 10:10 PM, Rony G. Flatscher wrote:
>> Hi Ariel,
>>
>> just a little update. Your hints have helped me indeed. However, the
>> XPackageManager and related APIs are *not published*, and AFAICT for a
>>
show_bug.cgi?id=102854>.
---rony
-
To unsubscribe, e-mail: dev-unsubscr...@api.openoffice.org
For additional commands, e-mail: dev-h...@api.openoffice.org
l not be fixed.".
So I am wondering, whether I have been doing something wrong expecting
"NO_USER_INTERFACE" to work flawlessly, if "DEFAULTS" works ?
Any hints, insights highly appreciated !
---rony
n/star/drawing/EllipseShape>).
Any ideas what might cause this rather strange behaviour?
---rony
P.S.: Setting the mentioned property values explicitly as
java.lang.Integer values works as expected.
f one supplies a String object (with the numbers, "2" and "4").
Could it therfore be, that "EllipsesShape" is at fault?
---rony
On 11.07.2010 15:49, Rony G. Flatscher wrote:
> Hi there,
>
> while tidying up some nutshells, I ran into the following problem
han. Will file an issue (also
RectangleShape seems to behave like EllipsesShape).
---rony
>
> On 07/11/10 16:24, Rony G. Flatscher wrote:
>> Hi there,
>>
>> just stumbled over the
>> "http://api.openoffice.org/docs/common/ref/com/sun/star/drawing/ConnectorShape&
t the next
document: JOB_COMPLETED or JOB_SPOOLED? (Besides the states that
indicate abnormal states like JOB_ABORTED etc.)
TIA,
---rony
P.S.: Would the printing make any difference if all documents to be
printed are hidden?
fice.org/wiki/Documentation/DevGuide/Drawings/Printing_Drawing_Documents>.
---rony
On 13.07.2010 16:57, Rony G. Flatscher wrote:
> Maybe this is a stupid question w.r.t. XPrintable:
>
> * If one wishes to print three different documents within the same
> thread using their
1 - 100 of 272 matches
Mail list logo