Hi Drew,

>> Errrm, logically, it shouldn't run the macros. Ideally, you would 
>> get a message telling you that macros have been deactivated or that
>> you don't have the rights to run MyMacro etc, but wait, let me
>> guess, OOo just crashes without warning ? Or better still, it runs
>> the macros regardless ? ;-)

(Ts. Of course you get a message, but the file is opened then.)

> Ah - you are telling me what it does...I asked what should it do, and 
> I'll offer my suggestion.
> 
> It should refuse to open the file.

Uhm.

I'd have a hard time implementing a logic like "do not open this
document when you cannot execute on-load-macros", this sounds ... strange.

However, together with a "open a form when opening the DB doc" feature,
one could
- declare a minimalistic form saying "nothing here for you" as
  on-open-form
- assign a macro to the OnLoad event of the DB doc (or the form),
  which replaces the form with the switchboard

To me, that sounds more like a legitimate solution to the problem you
sketched.

Ciao
Frank

-- 
- Frank Schönheit, Software Engineer         frank.schoenh...@sun.com -
- Sun Microsystems                      http://www.sun.com/staroffice -
- OpenOffice.org Base                       http://dba.openoffice.org -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@dba.openoffice.org
For additional commands, e-mail: dev-h...@dba.openoffice.org

Reply via email to