Hello people,
as part of my three days holiday having fun with the API, I implemented
a Job to be executed every time the user open an OOoBase document (new
or existing). For this, in the *other* modules, we have to configure the
UNO component to be invoked for *two* global event broadcaster's events:
OnNew and OnLoad.
But is it meaningful to do so in OOOBase?
In the GUI, the user can only dispatch the
"private:factory/sdatabase?Interactive" command URL to create a *new*
OfficeDatabaseDocumentnew ODB, that calls the OOoBase wizard to create
it. But (am I wrong?) the wiz. stores the DataSource's document and then
loads it from the URL chosen by the user. So the OnNew event won't
trigger the call: we are loading an existing component from an URL, not
a new document.
Trying to load a new ODB using the factory URL
"private:factory/sdatabase" will need the OnNew event, BUT the common
user will never do that, it's *impossible* from the GUI
(/org.openoffice.Office.Common/Menus/New/m4/URL ==
"private:factory/sdatabase?Interactive" is all the user has), he/she
will need to write code...
So, in OOoBase, do the Jobs (wanting to be executed every time the user
open an OOoBase document - new or existing )have to implement both OnNew
and OnLoad? or only this last one?
Bye and thanks.
--
Ariel Constenla-Haile
La Plata, Argentina
[EMAIL PROTECTED]
[EMAIL PROTECTED]
http://www.arielconstenlahaile.com.ar/ooo/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]