Apache OpenOffice (AOO) Bugzilla – Full Text Issue Listing
|Summary:||load document as template: event OnLoadFinished instead OnCreate|
|Product:||App Dev||Reporter:||clutz <chrlutz>|
|Component:||api||Assignee:||AOO issues mailing list <issues>|
|Status:||CONFIRMED ---||QA Contact:|
|Version:||3.3.0 or older (OOo)|
|Issue Type:||DEFECT||Latest Confirmation in:||---|
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 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.
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.