Re: [dev] remote connection disposes using XStandaloneDocumentInfo (oo 2.0.1)

2006-01-02 Thread Stephan Bergmann

Oliver Brinzing wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi,

I am using XStandaloneDocumentInfo to retrieve information from oo files via 
a remote connection
(uno:socket,host=localhost,port=8100;urp;StarOffice.ServiceManager).
I have no problems to do so using oo 1.1.5, but with oo 2.0.1 the remote 
connection always disposes
if i try to call the following method for a *second* file ... the call for the 
first file always
works ...


What exactly is the problem (Java exception with stack trace)?  Are you 
sure that it really is the bridge that is disposed?  If yes, that 
typically is the result of a crashed soffice process.


-Stephan


using XDocumentInfo after loading the whole document instead always works,
but it's pretty slow ... :-(

here is my code:

private XDocumentInfo loadStandaloneDocInfo(String loadUrl)
throws Exception {

Object oObj = xComponentContext.getServiceManager()
.createInstanceWithContext(
com.sun.star.document.StandaloneDocumentInfo,
xComponentContext);

XStandaloneDocumentInfo xStandaloneDocumentInfo = 
(XStandaloneDocumentInfo) UnoRuntime
.queryInterface(XStandaloneDocumentInfo.class, oObj);

xStandaloneDocumentInfo.loadFromURL(loadUrl);

XDocumentInfo xDocumentInfo = (XDocumentInfo) UnoRuntime
.queryInterface(XDocumentInfo.class, xStandaloneDocumentInfo);

   return xDocumentInfo;
}

any hints ?

Oliver


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [dev] Communicate with OOo from another application via DDE

2006-01-02 Thread Christian Junker
For long time they used to be undocumented in the Online Help, has
this changed with 2.0? Thus if they are still not documented, it is
probably meant to be that way and I am not surprised that you
encountered problems using them.
- Andreas Bregas is the Starbasic contact person.

In general you should rather use OLE2/COM which is its successor on
the MS Windows platform (see the new oleautomation module
http://api.openoffice.org/docs/common/ref/com/sun/star/bridge/oleautomation/module-ix.html).


2005/12/21, Nils-Odd Solberg [EMAIL PROTECTED]:
 Hi,

 I have found and used these built in OOo BASIC methods

 * DDEExecute(nDDEChannel, command)
 * DDEInitiate(Server, Topic)
 * DDEPoke(nDDEChannel, item, data)
 * DDERequest(nDDEChannel, item)
 * DDETerminateAll()


--
Best Regards
Christian Junker

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [dev] CWS for non-Domain Developer

2006-01-02 Thread Jens-Heiner Rechtien

H David,

EIS is mostly useful for developers with commit rights. Since we can't 
easily discern reading or writing EIS services (making a service secure 
is far more difficult than just controlling the access to a service), we 
need a kind of authorization for every access. Since developers with 
commit rights all have CVS passwords, this seemed to be the right 
choice without requiring everyone to come up with yet another password 
but without compromising on security either.


The easiest way to keep track of a CWS is to use a Bonsai, as others 
have rightly noted.


Heiner

David Fraser wrote:

Hi

I'm trying to find out what's involved in certain CWSs. Using EIS I can 
see the issues attached to a CWS but not what actual files have been 
changed and the changes made.
So what I'd really like to do is get a patch that corresponds to all the 
changes made in that CWS.
The cws tools (and the ooo-build enhancement cws-extract) should be able 
to do that.
However, because I'm not a Domain Developer and don't have a OOo CVS 
account, I can't access the EIS SOAP service that lets you do that.

So two proposals:
1) It would be nice to access the EIS SOAP service without a CVS write 
account
2) In the mean time, it would be nice if either EIS or some other web 
site provided such patches. They need not be generated dynamically, a 
nightly run of cws-extract would be great and they could offer static 
links to the patches.


What do people think?
David

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
Jens-Heiner Rechtien
[EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [dev] libs for Open Standard Document Format?

2006-01-02 Thread Tom Schindl

Tom Schindl wrote:


Hi,

I've started writing such a lib. I've started with the OOSpreadsheet 
format what I'm trying for now is to stay as
compatible with POI as possible. If you are interested in this I could 
post the URL to the subversion repository.




Oh. What I've forgotten is that I'm doing this now because I want to use 
BIRT to generate reports in OO-Format.

If someone is interested ;-)

Tom


Tom

CPHennessy wrote:


On Sat December 10 2005 19:29, victor sosa wrote:
 

Which libs in java (or c++) for open document standard format do you 
used?
I'm a java developer, and want develop with open document standard 
format.


For example to work with MS format (word, excel, etc) I used jakarta
POI- Java API To Access Microsoft Format Files
  



Hi Victor,
All OOo fiels are only zipped XML. So you can unzip the file and 
alter the file very easily. Obviously have a library to make this 
easier would also be an advantage.


Please reply to dev@openoffice.org only

 




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [dev] remote connection disposes using XStandaloneDocumentInfo (oo 2.0.1)

2006-01-02 Thread Oliver Brinzing
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi Stephan,

Am 02.01.2006 10:37 schrieb Stephan Bergmann:
 What exactly is the problem (Java exception with stack trace)?  Are you
 sure that it really is the bridge that is disposed?  If yes, that
 typically is the result of a crashed soffice process.

meanwhile i know what happened:

first i used the wrong (oo 1.1.5) *.jar files (this caused the crash) ..., 
second i did
not realize, that it's no longer possible to extract the StandaloneDocInfo from 
binary
(*.sdw, *.sdc) files, this caused a com.sun.star.task.ErrorCodeIOException ...

sorry ;-)

Oliver

- --
GnuPG key 0xCFD04A45: 8822 057F 4956 46D3 352C 1A06 4E2C AB40 CFD0 4A45
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFDuWZJTiyrQM/QSkURAvojAKDDjUWQJ6RdtnQQn8kzJn3H0ijU0gCfY5qb
4Wloein1sAWt+40ORooBSPg=
=8BMM
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]