Macro/text/swriter/01/05060700.xhpSun Microsystems, Inc.MacroSpecifies the macro to run when you click an image, frame, or an OLE object.EventLists the events that can trigger a macro. Only the events that are relevant to the selected object are listed.The following table lists the object types and the events that can trigger a macro:
EventEvent triggerOLE objectImageFrameAutoTextImageMap areaHyperlinkClick objectobject is selected✓✓✓Mouse over objectmouse pointer moves over the object✓✓✓✓✓Trigger Hyperlinkhyperlink that is assigned to the object is clicked✓✓✓✓Mouse leaves object mouse pointer moves off the object✓✓✓✓✓Image loaded successfullyimage is loaded successfully✓Image loading terminatedloading of the image is terminated by the user (for example, when downloading)✓Could not load imageimage is not successfully loaded✓Input of alpha characters text is inputted✓Input of non-alpha characters Nonprinting characters, such as tabs and line breaks, are entered✓Resize frameframe is resized✓Move frameframe is moved✓Before inserting AutoTextbefore AutoText is inserted✓After inserting AutoTextafter AutoText is inserted✓
For events that are linked to controls in forms, see Control properties or Form properties.Assigned ActionSpecify the macro that executes when the selected event occurs.Frames allow you to link certain events to a function that then decides if the event is handled by $[officename] Writer or by the function. See the $[officename] Basic Help for more information.Macro FromLists the $[officename] program and any open $[officename] document. Within this list, select the location where you want to pick the macro from.Existing MacrosLists the available macros. Select the macro that you want to assign to the selected event, and then click Assign.AssignAssigns the selected macro to the selected event.RemoveRemoves the macro assignment from the selected entry.