Re: [api-dev] Impossible to close a Base document

2006-03-14 Thread Frank Schönheit - Sun Microsystems Germa ny
Hi Bernard, ... dbDoc.close(True) The document usine.odb shows up, but the close instruction receives an exception. what kind of exception? Ciao Frank -- - Frank Schönheit, Software Engineer [EMAIL PROTECTED] - - Sun Microsystems

Re: [api-dev] Impossible to close a Base document

2006-03-14 Thread Laurent Godard
Hi Frank I reproduced the problem ... dbDoc.close(True) The document usine.odb shows up, but the close instruction receives an exception. what kind of exception? com.sun.star.util.CloseVetoException Laurent -- Laurent Godard [EMAIL PROTECTED] - Ingénierie OpenOffice.org Indesko

Re: [api-dev] Impossible to close a Base document

2006-03-14 Thread Frank Schönheit - Sun Microsystems Germa ny
Hi Laurent, com.sun.star.util.CloseVetoException That's okay :), and it was a bug that this exception wasn't thrown before. (Hmm. Thinking about it, do the other document types behave the same way?) The idea is that as long as a view to the document exists, you cannot close the document - the

Re: [api-dev] Impossible to close a Base document

2006-03-14 Thread Frank Schönheit - Sun Microsystems Germa ny
Hi Laurent, dbdoc.currentController.Frame.close(false) any reason you used false here? This means that if the close fails, you're still responsible for it ... Ciao Frank -- - Frank Schönheit, Software Engineer [EMAIL PROTECTED] - - Sun Microsystems

Re: [api-dev] Impossible to close a Base document

2006-03-14 Thread Frank Schönheit - Sun Microsystems Germa ny
Hi Laurent, hum, the method of the object that created it is called so there is a way to know that we want to close the views dependanding of it are you saying taht views are not attached to their creators ? They're bound to the model, but that's not necessarily the same as creator. For

Re: [api-dev] Impossible to close a Base document

2006-03-14 Thread Laurent Godard
Hi Frank They're bound to the model, but that's not necessarily the same as creator. yes For instance, you could load a model without any view, by retrieving the DataSource at the DatabaseContext (getByName( URL ) ), and asking this DataSource for its Document (.getDatabaseDocument). In

Re: [api-dev] Java: Managing keyboard shortcuts - where to start

2006-03-14 Thread Tobias Krais
Hi Carsten, my next task is to remove and add some keyboard shortcuts to an OpenOffice... I looked up the Dev-Guide but it does not tell much about keybord shortcuts. Is it possible to manage the keyboard shortcuts via Java? If yes, where can I start? Can you help me please once more?

Re: [api-dev] Impossible to close a Base document

2006-03-14 Thread Bernard Marcelly
Bonjour Frank Message du 2006-03-14 09:59: Hi Laurent, com.sun.star.util.CloseVetoException That's okay :), and it was a bug that this exception wasn't thrown before. (Hmm. Thinking about it, do the other document types behave the same way?) No. If I load a text document for example, no

Re: [api-dev] Impossible to close a Base document

2006-03-14 Thread Frank Schönheit - Sun Microsystems Germa ny
Hi Laurent, Would it be possible to identify controllers that are loaded by different ways ? Hmm, not that I know. Basically, a controller is (almost) always loaded by a loadComponentFromURL, but nobody knows who called this method. Ciao Frank -- - Frank Schönheit, Software Engineer

Re: [api-dev] Impossible to close a Base document

2006-03-14 Thread Frank Schönheit - Sun Microsystems Germa ny
Hi Bernard, No. If I load a text document for example, no problem to close it. ... The idea is that as long as a view to the document exists, you cannot close the document - the view will veto is. This is not the case for documents other than odb. Hmm. Do you mind submitting an issue for

Re: [api-dev] Impossible to close a Base document

2006-03-14 Thread Frank Schönheit - Sun Microsystems Germa ny
Hi Laurent, in fact, what about the datasource that seems to load the file without displaying it as frank said We then end with 2 loads of the document one for the datasource ( maSource.DatabaseDocument) one for the loadComponentFromURL Effectively, it's loaded once only, but you have

Re: [api-dev] Impossible to close a Base document

2006-03-14 Thread Bernard Marcelly
Bonjour Frank Message du 2006-03-14 12:37: Hi Laurent, in fact, what about the datasource that seems to load the file without displaying it as frank said We then end with 2 loads of the document one for the datasource ( maSource.DatabaseDocument) one for the loadComponentFromURL

Re: [api-dev] Impossible to close a Base document

2006-03-14 Thread Laurent Godard
Hi Bernard, In the original code, I can understand that, although it is not obvious. But if I directly load the odb file, I still get the same exception the datasource is loaded to be accessed so you end with the same previous case i guess this is the difference with other document types :

Re: [api-dev] Impossible to close a Base document

2006-03-14 Thread Laurent Godard
Hi bernard Bernard Marcelly a écrit : Bonjour Frank Message du 2006-03-14 12:33: Hmm. Do you mind submitting an issue for this (and assigning it to me)? Not sure how it could be solved, since database documents are a little bit different (as you can obtain them without loading, via the

[api-dev] digital signature openoffice

2006-03-14 Thread Vincenzo Giuliano
Hi ALL, I have a question for you. Does somebody know if OpenOffice has API for digital signature management? Can somebody give me any links? Thank you. Regards, Vincenzo. - To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: [api-dev] Impossible to close a Base document

2006-03-14 Thread Frank Schönheit - Sun Microsystems Germa ny
Hi Bernard, Issue filed : http://www.openoffice.org/issues/show_bug.cgi?id=63162 Thanks. Ciao Frank -- - Frank Schönheit, Software Engineer [EMAIL PROTECTED] - - Sun Microsystems http://www.sun.com/staroffice - - OpenOffice.org Database

RE: [api-dev] Calc addin - Custom toolbar not enabled

2006-03-14 Thread Tim Tow
The toolbar disables an entry for two reasons: 1. The queryDispatch(...) call on XDispatchProvider doesn't provide a dispatch object. I put in some messageboxes to see when queryDispatch is called (and to see any exceptions thrown). It appears the queryDispatch method doesn't get called until

Re: [api-dev] How to ask a frame if any part of it is outside of the margin or of the printable area

2006-03-14 Thread Kent Gibson
Thanks in the end I wrote up something similiar to your algorithmn. What I did is I created a shape, then I do insertTextContent, and then I do getSize and finally removeTextContent. Then I at least have the size of the object so I can calculate if there is room enough. Then instead of a shape