Mathias Bauer wrote:
[...]
One of these events is called "OnLoad". This is a very unfortunate name,
as this event is not triggered when a document is loaded, but when the
document is shown to the user, not before the document actually became
visible. This is the only way to make this event usable in the way as
many macro developers, especially those creating macros in templates,
want it. They want the document to be visible before they e.g. show the
user a dialog to add something to it.

Of course it turned out that the point in time where the document
finished loading (and before a view was created) also is interesting for
developers, so an event name for it was needed. As unfortunately
"OnLoad" was used already, we took "OnLoadFinished". While this is a
good name for this event, we now have the unfortunate situation that
"OnLoadFinished" is sent before "OnLoad". This is at least confusing.

So I would like to change "OnLoad" to "OnOpen". This describes the event
much better - it names an event that is triggered only if the document
is actually "opened", means: shown to the user.

[Disclaimer: I have no knowledge about events in OOo and their naming convention] How about "OnShow" ? It's even more specific and for a Delphi guy like me it "feels like home". Forms in Delphi have (among many other events)

OnCreate -> Form object created (loaded) and ready but not visible yet.
OnDestroy -> Form object about to be destroyed (destructor about to be called).
OnShow -> Triggered when form becomes visible.
OnHide -> Triggered when form is made in-visible.
OnClose -> Form is being closed.

Kind regards
-- Jan Holst Jensen

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

Reply via email to