[dev] OLE Access to structure components ... how ??

2006-04-20 Thread Marten Feldtmann
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

Re: [dev] OLE Access to structure components ... how ??

2006-04-25 Thread Marten Feldtmann
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

[dev] How to get ALL interfaces, ALL services, ALL enums, ALL ...

2006-04-25 Thread Marten Feldtmann
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

Re: [dev] How to get ALL interfaces, ALL services, ALL enums, ALL ...

2006-04-26 Thread Marten Feldtmann
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

Re: [dev] 2.0.4 : Help-About shows 2.0.3

2006-10-14 Thread Marten Feldtmann
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

Re: [dev] UNO, URP, IIOP, etc.

2007-05-06 Thread Marten Feldtmann
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

[dev] OLE, Source code generation and reflection ... the boring story ...

2007-10-01 Thread Marten Feldtmann
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

Re: [dev] OLE, Source code generation and reflection ... the boring story ...

2007-10-06 Thread Marten Feldtmann
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

Re: [dev] OLE, Source code generation and reflection ... the boring story ...

2007-10-07 Thread Marten Feldtmann
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

Re: [dev] OLE, Source code generation and reflection ... the boring story ...

2007-10-09 Thread Marten Feldtmann
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

Re: [dev] OLE, Source code generation and reflection ... the boring story ...

2007-10-09 Thread Marten Feldtmann
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 =

[dev] How to get the supported interfaces of an unknown object ?

2007-10-11 Thread Marten Feldtmann
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,

Re: [dev] How to get the supported interfaces of an unknown object ?

2007-10-11 Thread Marten Feldtmann
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

Re: [dev] Custom data inside OpenDocument

2007-10-15 Thread Marten Feldtmann
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,

[dev] OLE, data type hyper and returned vt value !?

2007-10-15 Thread Marten Feldtmann
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

Re: [dev] OLE, data type hyper and returned vt value !?

2007-10-16 Thread Marten Feldtmann
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

Re: [dev] OLE, data type hyper and returned vt value !?

2007-10-17 Thread Marten Feldtmann
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

[dev] CLI, TextTable and Cells - why can I not set property values ?

2007-11-08 Thread Marten Feldtmann
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 =

Re: [dev] CLI - how to deploy, hoe does it works ?

2007-11-26 Thread Marten Feldtmann
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

Re: [dev] CLI - how to deploy, hoe does it works ?

2007-11-27 Thread Marten Feldtmann
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

Re: [dev] CLI - how to deploy, hoe does it works ?

2007-11-27 Thread 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

Re: [dev] CLI - how to deploy, how does it works ?

2007-11-28 Thread Marten Feldtmann
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

Re: [dev] CLI - how to deploy, hoe does it works ?

2007-12-20 Thread Marten Feldtmann
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

Re: [dev] CLI - how to deploy, hoe does it works ?

2007-12-22 Thread Marten Feldtmann
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

[dev] OO 3.0, COM, loadComponentFromURL, readOnly ever .... :-(

2008-11-21 Thread Marten Feldtmann
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

[dev] getTextFields() - where to get additional infos

2008-11-27 Thread Marten Feldtmann
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

Re: [dev] getTextFields() - where to get additional infos

2008-12-01 Thread Marten Feldtmann
, 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

Re: [dev] getTextFields() - where to get additional infos

2008-12-02 Thread Marten Feldtmann
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

Re: [dev] OO 3.0, COM, loadComponentFromURL, readOnly ever .... :-(

2008-12-13 Thread Marten Feldtmann
??? 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

Re: [dev] OO 3.0, COM, loadComponentFromURL, readOnly ever .... :-(

2008-12-15 Thread Marten Feldtmann
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

Re: [dev] OO 3.0, COM, loadComponentFromURL, readOnly ever .... :-(

2008-12-16 Thread Marten Feldtmann
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