Apache OpenOffice (AOO) Bugzilla – Issue 91510
load document as template: event OnLoadFinished instead OnCreate
Last modified: 2013-07-30 02:37:55 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 http://wiki.services.openoffice.org/wiki/Documentation/DevGuide/WritingUNO/Jobs/List_of_Supported_Events 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.
jsc -> as: seems to be one for you
Reset assignee on issues not touched by assignee in more than 1000 days.