Difference between revisions of "Documentation/DevGuide/WritingUNO/Jobs/List of Supported Events"
From Apache OpenOffice Wiki
< Documentation | DevGuide
(Initial author Sun Microsystems, Inc.) |
|||
(8 intermediate revisions by 4 users not shown) | |||
Line 6: | Line 6: | ||
|NextPage=Documentation/DevGuide/WritingUNO/AddOns/Add-Ons | |NextPage=Documentation/DevGuide/WritingUNO/AddOns/Add-Ons | ||
}} | }} | ||
+ | {{Documentation/DevGuideLanguages|Documentation/DevGuide/WritingUNO/Jobs/{{SUBPAGENAME}}}} | ||
{{DISPLAYTITLE:List of Supported Events}} | {{DISPLAYTITLE:List of Supported Events}} | ||
{|border="1" cellpadding=4 style="border-collapse:collapse;" | {|border="1" cellpadding=4 style="border-collapse:collapse;" | ||
Line 31: | Line 32: | ||
|<code>OnCloseApp</code> | |<code>OnCloseApp</code> | ||
|Application is going to be closed | |Application is going to be closed | ||
+ | |- | ||
+ | |<code>OnCreate</code> | ||
+ | |New Document was created | ||
+ | |- | ||
+ | |<code>OnLoadFinished</code> | ||
+ | |Document has been loaded | ||
|- | |- | ||
|<code>OnNew</code> | |<code>OnNew</code> | ||
− | |New Document was created | + | |New Document was created visible. Unlike OnCreate this event is sent asynchronously at a time the view is completely created (see [http://qa.openoffice.org/issues/show_bug.cgi?id=46484 Issue 46484]). |
|- | |- | ||
|<code>OnLoad</code> | |<code>OnLoad</code> | ||
− | |Document has been loaded | + | |Document has been loaded visible. Unlike OnLoadFinished this event is sent asynchronously at a time the view is completely created (see [http://qa.openoffice.org/issues/show_bug.cgi?id=46484 Issue 46484]) |
|- | |- | ||
|<code>OnSaveAs</code> | |<code>OnSaveAs</code> | ||
Line 70: | Line 77: | ||
− | {{ | + | {{Warn|Event names are case sensitive.}} |
{{PDL1}} | {{PDL1}} | ||
− | [[Category: Writing UNO Components]] | + | |
+ | [[Category:Documentation/Developer's Guide/Writing UNO Components]] |
Revision as of 08:00, 12 July 2018
Supported events triggered by code | |
---|---|
onFirstRunInitialization
|
Called on startup once after OpenOffice.org is installed. Should be used for post-setup operations. |
onFirstVisibleTask
|
Called after a document window has been shown for the first time after launching the application. Note: The quickstarter influences this behavior. With the quickstarter, closing the last document does not close the application. Opening a new document in this situation does not trigger this event. |
onDocumentOpened
|
Indicates that a new document was opened. It does not matter if a new or an existing document was opened. Thus it represents the combined OnNew and OnLoad events of the global event broadcaster.
|
Supported events triggered by the global event broadcaster | |
---|---|
OnStartApp
|
Application has been started |
OnCloseApp
|
Application is going to be closed |
OnCreate
|
New Document was created |
OnLoadFinished
|
Document has been loaded |
OnNew
|
New Document was created visible. Unlike OnCreate this event is sent asynchronously at a time the view is completely created (see Issue 46484). |
OnLoad
|
Document has been loaded visible. Unlike OnLoadFinished this event is sent asynchronously at a time the view is completely created (see Issue 46484) |
OnSaveAs
|
Document is going to be saved under a new name |
OnSaveAsDone
|
Document was saved under a new name |
OnSave
|
Document is going to be saved |
OnSaveDone
|
Document was saved |
OnPrepareUnload
|
Document is going to be removed |
OnUnload
|
Document has been removed |
OnFocus
|
Document was activated |
OnUnfocus
|
Document was deactivated |
OnPrint
|
Document will be printed |
OnModifyChange
|
Modified state of the document has changed |
Content on this page is licensed under the Public Documentation License (PDL). |