[api-dev] transporting non-UNO Java interfaces via the Java UNO bridge (was: [api-dev] Base data source)

2007-06-13 Thread Frank Schönheit - Sun Microsystems Germa ny
Hello Ray, java.sql.Connection jj_cnct; com.sun.star.sdbc.XConnection oo_cnct; oo_cnct = ...; // require *.odb ZIP decompression jj_cnct = UnoRuntime.queryInterface( java.sql.Connection.class, oo_cnct ); jj_cnct = oo_cnct.getJDBCconnection(); // Would the polymorphism notion

Re: [api-dev] Base data source

2007-06-13 Thread ashok _
Instead of using the linked tables method and openoffice base... why dont you use the java.sql.connection class library directly?... you can use the full java.sql.* library api set from within Java UNO client application. Instead of using the OOOBase driver manager you just have to use

Re: [api-dev] scripting mailmerge

2007-06-13 Thread Oliver Specht - Sun Germany -Hamburg
Christian Andersson wrote: Is it possible to script an mailmerge without having to use an registered datasource? from what I can see I can attach a non registered datasource to the mailmerge, but the databasefields need an named datasource. are my assumptions correct? (I'm scripting this in

[api-dev] Getting the TextFields directly of a table (Writer)

2007-06-13 Thread Michael Jeier
Hi, I have to process a Writer document with a lot of TextFields. I know how to get globally all TextFields, like: ReferenceXTextFieldsSupplier xSupp (xWriterComponent, UNO_QUERY); ReferenceXEnumerationAccess enumerationAcc = xSupp-getTextFields(); ReferenceXEnumeration enumeration =

Re: [api-dev] Getting the TextFields directly of a table (Writer)

2007-06-13 Thread Laurent Godard
Hi Micheal But how can I access the content of the TextField in the cell?! Look at the anchors and compare their relative position with for example compareRegionEnds method Laurent -- Laurent Godard [EMAIL PROTECTED] - Ingénierie OpenOffice.org - http://www.indesko.com Nuxeo Enterprise