I again try to connect Smalltalk (IBM VisualAge Smalltalk) to
OpenOffice and I start doing this via OLE/COM.
I'm actually not that good in OLE, but I managed to query interfaces
for their methods and properties and this works quite well - from
these informations I would like to create source
Marten Feldtmann schrieb:
As an example here is my Smalltalk method for getting aName.
^self
invoke: 'aName' name of the method I have to invoke
withArguments: Array newno arguments
returnType: trueyes I want to have the return values
Is there any support to get ALL available definitions
within OpenOffice:
* all interfaces
* all enums
* all structs
* all services
Marten
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
Marten Feldtmann schrieb:
Is there any support to get ALL available definitions
within OpenOffice:
* all interfaces
* all enums
* all structs
* all services
Well, the answer was simple: install the SDK ( I had this already) and
find all files ending up with idl and then let code generator
Werner Schulte schrieb:
Hello all.
Downloaded and installed 2.0.4 this morning (Windows and Linux) and
found
Help-About shows 2.0.3
Opening the dialog via HilfeInfo über OpenOffice.org shows me:
OpenOffice.org 2.0.4
Marten
It would be pretty interesting to see your discussion in the public,
because I tried to
write a language wrapper for Smalltalk in the past (but only via OLE)
and I did
not finished it. Therefore I'm really interested in this area.
Marten
I'm still on a rather boring project here (actually I worked for this
last year
also but stopped that working and now I'm looking at that problem again)
...
I try to connect VASmalltalk to OpenOffice via OLE. My approach was to get
all the information from OpenOffice via reflection and then I
if you want to programmatically determine all types, you could use the
com.sun.star.comp.stoc.RegistryTypeDescriptionProvider service.
For example the climaker uses it to create all cli types from UNO
types. Have a look at cli_ure/source/climaker/climaker_app.cxx.
Eventually
What a nonsense ... the BASIC program is the following and I think, that it
does pretty much the same as done in climaker
REM * BASIC *
Sub Main
MyReflectionTest
End Sub
Sub MyReflectionTest
Dim oTypeDescriptionProvider as Object
Dim enumeration as Object
Dim
Stephan Bergmann schrieb:
Marten Feldtmann wrote:
What a nonsense ... the BASIC program is the following and I think,
that it
does pretty much the same as done in climaker
IIRC, at least a long time ago there were problems with
createTypeDescriptionEnumeration and particular arguments
And Jürgen Schmidt answered this question around August-2005. Here is
the corrected code
for the problem ..
Sub MyReflectionTest
Dim enumeration as Object
Dim typeDescription as object
dim valueArray(0)
dim level
valueArray(0) = com.sun.star.uno.TypeClass.SERVICE
servicemgr =
All I would like to have is a way to implement:
anObject.SupportsInterfacesNamed(com.sun.star.reflection.XTypeDescription)
which may returns true or false and this via UNO calls and not via
BASIC special calls (to use it under OLE).
I thought, that perhaps queryInterface might help me,
Stephan Bergmann schrieb:
Marten Feldtmann wrote:
All I would like to have is a way to implement:
anObject.SupportsInterfacesNamed(com.sun.star.reflection.XTypeDescription)
See com.sun.star.lang.XTypeProvider, which should be implemented by
every UNO object (but probably isn't for some
The method metioned below is part of the beansXPropertyContainer
interface and should
be available under DocumentInfo
Marten
Robert Vojta schrieb:
On 10/15/07, Mathias Bauer [EMAIL PROTECTED] wrote:
Hallo,
You have to add the property before you can assign it a value:
So,
When running around in the reflection system of OpenOffice 2.x I came
across the following problem:
Some constants have adefined data type hyper, which means signed 64
bit values. When I query the value for that constant I get a dispatched
(is this the right name) with a vt type = 14.
I ran
Joachim Lingner schrieb:
Hi Marten,
Marten Feldtmann wrote:
When running around in the reflection system of OpenOffice 2.x I came
across the following problem:
Some constants have adefined data type hyper, which means signed 64
bit values. When I query the value for that constant I get
Joachim Lingner schrieb:
In case there are no 100% equivalent types in two different type
systems (oleautomation UNO) one has to tweak a little. The Decimal
should cover the value space of a hyper and can therefore be used on
the oleautomation side when calling an UNO method which requires an
This is an extract of my code - I do not know, why the last code line
always fails any ideas ?
unoidl.com.sun.star.beans.XPropertySet propSet = null;
// We get a single cell which works without problems ...
unoidl.com.sun.star.table.XCell cell =
Ok,
I try to give some more information. On my development machine I have
.NET 1.1, .NET 2.0 and .NET 3.0 installed. On this machine I use
OO 2.3 and all development is done using OO 2.3. I use OO to create
documents on demand and on my machine everything is working as expected.
Original on
a
directory. They are not installed using
some kind of installer or stuff like this - I'm not an expert in this
security area.
But this does not answer my other question: interoperability with OO 2.3
development and OO 2.2 runtime.
Marten
Joachim Lingner schrieb:
Hi Marten,
Marten Feldtmann
I did an uninstallation and then:
I've installed OO 2.3 for the current user (which is always admin -
because one needs to have administration right) and
then it works (under admin) without further work.
I've installed OO 2.3 for all users and it does not work (wether admin
nor me) and
Could you delete the key and run the test again? (Assuming that you
have uninstalled your user - only office anyway)
Well done - that was it ! Thank you very much !
Marten
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
Joachim,
this is a total mess. I've got now three additional machine (older W2000
and one brand new XP installation) to get
the software to work and on none of these machine did the software work.
On one W2000 machine I've found
an old OO 1.1.4 installation (which was not able to uninstall
The first problem is the loading of libraries via .NET. This happens on
a lazy base - when calling
uno.util.Bootstrap.bootstrap();
On some machines I get errors (FileNotFound exceptions), some are working
without problems. This can be solved by adding the installation path to
I did some tests with that API call and whatever I do: the document is
always opened readOnly.
- when I open the document using OpenOffice 3.0 via dialog, the document
opens the normal way: writeable
- when using the API call I always get a write protected document
- when I use the property
the information, that
getTextFields() actually delivers an instance of
com.sun.star.text.TextFields ?
I do not get this information via the idl reference, nor by reflection
Marten Feldtmann
-
To unsubscribe, e-mail
,
just guessing.
Marten Feldtmann wrote:
How can this code run:
((mxDocument as XTextFieldsSupplier).getTextFields() as
XRefreshable).refresh();
getTextFields() (by interface XTextFieldsSupplier) delivers
com.sun.star.container.XEnumerationAccess
and this interface does not understand refresh
Nice, but this was NOT my question. If you get the information, that
the resulting object is of kind com.sun.star.text.TextFields , then
I'm also fine, because my code also gives me all the needed information
I wanted to have.
The question was: how do I find out this information, that the
???
Marten
Mathias Bauer schrieb:
Marten Feldtmann wrote:
I did some tests with that API call and whatever I do: the document is
always opened readOnly.
- when I open the document using OpenOffice 3.0 via dialog, the document
opens the normal way: writeable
- when using the API call I
Mikhail Voitenko schrieb:
Hi Marten,
As Mathias has written it would really help if you provide the code
snippet related to parameters generation of the call. There is
currently no known problem in this area, thus the scenario you are
using should have a specific that let the problem be
Stephan Bergmann schrieb:
On 12/15/08 20:44, Marten Feldtmann wrote:
| writerDocument |
writerDocument := aMSKOO desktop
loadComponentFromURL: 'file:///c:\test.odt' string
TargetFrameName: '_blank' string
SearchFlags: 0 long
Arguments: Array new
31 matches
Mail list logo