Issue 91510 - load document as template: event OnLoadFinished instead OnCreate
Summary: load document as template: event OnLoadFinished instead OnCreate
Alias: None
Product: App Dev
Classification: Unclassified
Component: api (show other issues)
Version: 3.3.0 or older (OOo)
Hardware: All All
: P3 Trivial
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
Depends on:
Reported: 2008-07-09 12:37 UTC by clutz
Modified: 2013-07-30 02:37 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Note You need to log in before you can comment on or make changes to this issue.
Description clutz 2008-07-09 12:37:13 UTC
If an existing document is loaded as template via
desktop.loadComponentFromURL(...) (using the property asTemplate=true), I would
expect to recieve an event OnCreate by the GlobalEventBroadcaster. But instead I
get the events OnLoadFinished and a little bit later the event OnNew. 

Opening a document as template has the semantic of creating a new document and
the fact that OnNew is sent proves my view.

Another reason why the event OnLoadFinished is wrong there is because there is
currently no way to figure out whether the document is loaded for editing or
loaded as template. A document loaded as template should have an empty URL which
could be checked, but unfortunately at the time, the OnLoadFinished event is
sent, the URL is (still) not empty.

According to the documentation of the event OnCreate I added in the wiki page
  either the current bahaviour or my documentation is incorrect. So please fix
this issue in the code or provide a correct specification of
OnCreate/OnLoadFinished so that the wiki could be updated.
Comment 1 jsc 2008-07-09 14:19:08 UTC
jsc -> as: seems to be one for you
Comment 2 Rob Weir 2013-07-30 02:37:55 UTC
Reset assignee on issues not touched by assignee in more than 1000 days.