1<?xml version="1.0" encoding="UTF-8"?>
2
3<!--***********************************************************
4 *
5 * Licensed to the Apache Software Foundation (ASF) under one
6 * or more contributor license agreements.  See the NOTICE file
7 * distributed with this work for additional information
8 * regarding copyright ownership.  The ASF licenses this file
9 * to you under the Apache License, Version 2.0 (the
10 * "License"); you may not use this file except in compliance
11 * with the License.  You may obtain a copy of the License at
12 *
13 *   http://www.apache.org/licenses/LICENSE-2.0
14 *
15 * Unless required by applicable law or agreed to in writing,
16 * software distributed under the License is distributed on an
17 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
18 * KIND, either express or implied.  See the License for the
19 * specific language governing permissions and limitations
20 * under the License.
21 *
22 ***********************************************************-->
23
24<helpdocument version="1.0">
25<meta>
26<topic id="textsbasicshared05060700xml" indexer="include" status="PUBLISH">
27<title id="tit" xml-lang="en-US">Macro</title>
28<filename>/text/sbasic/shared/05060700.xhp</filename>
29</topic>
30</meta>
31<body>
32<section id="makro">
33<bookmark xml-lang="en-US" branch="index" id="bm_id3153894"><bookmark_value>events;linked to objects</bookmark_value>
34</bookmark><comment>UFI: removed all help ids</comment>
35<paragraph role="heading" id="hd_id3153894" xml-lang="en-US" level="1" l10n="U" oldref="1"><link href="text/sbasic/shared/05060700.xhp" name="Macro">Macro</link></paragraph>
36<paragraph role="paragraph" id="par_id3153748" xml-lang="en-US" l10n="U" oldref="2"><ahelp hid=".">Choose the macro that you want to execute when the selected graphic, frame, or OLE object is selected.</ahelp> Depending on the object that is selected, the function is either found on the <emph>Macro</emph> tab of the <emph>Object</emph> dialog, or in the <emph>Assign Macro</emph> dialog.</paragraph>
37</section>
38<paragraph role="heading" id="hd_id3150503" xml-lang="en-US" level="2" l10n="U" oldref="3">Event</paragraph>
39<paragraph role="paragraph" id="par_id3149763" xml-lang="en-US" l10n="U" oldref="4"><ahelp hid="HID_MACRO_LB_EVENT">Lists the events that are relevant to the macros that are currently assigned to the selected object.</ahelp></paragraph>
40<paragraph role="paragraph" id="par_id3150670" xml-lang="en-US" l10n="U" oldref="23">The following table describes the macros and the events that can by linked to objects in your document:</paragraph>
41<table id="tbl_id3148944">
42<tablerow>
43<tablecell colspan="" rowspan="">
44<paragraph role="paragraph" id="par_id3153360" xml-lang="en-US" l10n="U" oldref="24">Event</paragraph>
45</tablecell>
46<tablecell colspan="" rowspan="">
47<paragraph role="paragraph" id="par_id3154365" xml-lang="en-US" l10n="U" oldref="25">Event trigger</paragraph>
48</tablecell>
49<tablecell colspan="" rowspan="">
50<paragraph role="paragraph" id="par_id3159149" xml-lang="en-US" l10n="U" oldref="26">OLE object</paragraph>
51</tablecell>
52<tablecell colspan="" rowspan="">
53<paragraph role="paragraph" id="par_id3148451" xml-lang="en-US" l10n="U" oldref="27">Graphics</paragraph>
54</tablecell>
55<tablecell colspan="" rowspan="">
56<paragraph role="paragraph" id="par_id3125863" xml-lang="en-US" l10n="U" oldref="28">Frame</paragraph>
57</tablecell>
58<tablecell colspan="" rowspan="">
59<paragraph role="paragraph" id="par_id3154216" xml-lang="en-US" l10n="U" oldref="29">AutoText</paragraph>
60</tablecell>
61<tablecell colspan="" rowspan="">
62<paragraph role="paragraph" id="par_id3145785" xml-lang="en-US" l10n="U" oldref="30">ImageMap area</paragraph>
63</tablecell>
64<tablecell colspan="" rowspan="">
65<paragraph role="paragraph" id="par_id3153138" xml-lang="en-US" l10n="U" oldref="31">Hyperlink</paragraph>
66</tablecell>
67</tablerow>
68<tablerow>
69<tablecell colspan="" rowspan="">
70<paragraph role="paragraph" id="par_id3155306" xml-lang="en-US" l10n="U" oldref="32">Click object</paragraph>
71</tablecell>
72<tablecell colspan="" rowspan="">
73<paragraph role="paragraph" id="par_id3152460" xml-lang="en-US" l10n="U" oldref="33">Object is selected.</paragraph>
74</tablecell>
75<tablecell colspan="" rowspan="">
76<paragraph role="paragraph" id="par_id3147348" xml-lang="en-US" l10n="U" oldref="34">x</paragraph>
77</tablecell>
78<tablecell colspan="" rowspan="">
79<paragraph role="paragraph" id="par_id3147426" xml-lang="en-US" l10n="U" oldref="35">x</paragraph>
80</tablecell>
81<tablecell colspan="" rowspan="">
82<paragraph role="paragraph" id="par_id3153951" xml-lang="en-US" l10n="U" oldref="36">x</paragraph>
83</tablecell>
84<tablecell colspan="" rowspan="">
85</tablecell>
86<tablecell colspan="" rowspan="">
87</tablecell>
88<tablecell colspan="" rowspan="">
89</tablecell>
90</tablerow>
91<tablerow>
92<tablecell colspan="" rowspan="">
93<paragraph role="paragraph" id="par_id3150116" xml-lang="en-US" l10n="U" oldref="37">Mouse over object</paragraph>
94</tablecell>
95<tablecell colspan="" rowspan="">
96<paragraph role="paragraph" id="par_id3145253" xml-lang="en-US" l10n="U" oldref="38">Mouse moves over the object.</paragraph>
97</tablecell>
98<tablecell colspan="" rowspan="">
99<paragraph role="paragraph" id="par_id3144765" xml-lang="en-US" l10n="U" oldref="39">x</paragraph>
100</tablecell>
101<tablecell colspan="" rowspan="">
102<paragraph role="paragraph" id="par_id3153418" xml-lang="en-US" l10n="U" oldref="40">x</paragraph>
103</tablecell>
104<tablecell colspan="" rowspan="">
105<paragraph role="paragraph" id="par_id3153948" xml-lang="en-US" l10n="U" oldref="41">x</paragraph>
106</tablecell>
107<tablecell colspan="" rowspan="">
108</tablecell>
109<tablecell colspan="" rowspan="">
110<paragraph role="paragraph" id="par_id3145652" xml-lang="en-US" l10n="U" oldref="42">x</paragraph>
111</tablecell>
112<tablecell colspan="" rowspan="">
113<paragraph role="paragraph" id="par_id3155066" xml-lang="en-US" l10n="U" oldref="43">x</paragraph>
114</tablecell>
115</tablerow>
116<tablerow>
117<tablecell colspan="" rowspan="">
118<paragraph role="paragraph" id="par_id3155446" xml-lang="en-US" l10n="U" oldref="44">Trigger Hyperlink</paragraph>
119</tablecell>
120<tablecell colspan="" rowspan="">
121<paragraph role="paragraph" id="par_id3154756" xml-lang="en-US" l10n="U" oldref="45">Hyperlink assigned to the object is clicked.</paragraph>
122</tablecell>
123<tablecell colspan="" rowspan="">
124<paragraph role="paragraph" id="par_id3150042" xml-lang="en-US" l10n="U" oldref="46">x</paragraph>
125</tablecell>
126<tablecell colspan="" rowspan="">
127<paragraph role="paragraph" id="par_id3151252" xml-lang="en-US" l10n="U" oldref="47">x</paragraph>
128</tablecell>
129<tablecell colspan="" rowspan="">
130<paragraph role="paragraph" id="par_id3147344" xml-lang="en-US" l10n="U" oldref="48">x</paragraph>
131</tablecell>
132<tablecell colspan="" rowspan="">
133</tablecell>
134<tablecell colspan="" rowspan="">
135</tablecell>
136<tablecell colspan="" rowspan="">
137<paragraph role="paragraph" id="par_id3146920" xml-lang="en-US" l10n="U" oldref="49">x</paragraph>
138</tablecell>
139</tablerow>
140<tablerow>
141<tablecell colspan="" rowspan="">
142<paragraph role="paragraph" id="par_id3159333" xml-lang="en-US" l10n="U" oldref="50">Mouse leaves object </paragraph>
143</tablecell>
144<tablecell colspan="" rowspan="">
145<paragraph role="paragraph" id="par_id3147003" xml-lang="en-US" l10n="U" oldref="51">Mouse moves off of the object.</paragraph>
146</tablecell>
147<tablecell colspan="" rowspan="">
148<paragraph role="paragraph" id="par_id3151278" xml-lang="en-US" l10n="U" oldref="52">x</paragraph>
149</tablecell>
150<tablecell colspan="" rowspan="">
151<paragraph role="paragraph" id="par_id3145257" xml-lang="en-US" l10n="U" oldref="53">x</paragraph>
152</tablecell>
153<tablecell colspan="" rowspan="">
154<paragraph role="paragraph" id="par_id3154122" xml-lang="en-US" l10n="U" oldref="54">x</paragraph>
155</tablecell>
156<tablecell colspan="" rowspan="">
157</tablecell>
158<tablecell colspan="" rowspan="">
159<paragraph role="paragraph" id="par_id3156139" xml-lang="en-US" l10n="U" oldref="55">x</paragraph>
160</tablecell>
161<tablecell colspan="" rowspan="">
162<paragraph role="paragraph" id="par_id3149036" xml-lang="en-US" l10n="U" oldref="56">x</paragraph>
163</tablecell>
164</tablerow>
165<tablerow>
166<tablecell colspan="" rowspan="">
167<paragraph role="paragraph" id="par_id3150785" xml-lang="en-US" l10n="U" oldref="57">Graphics load successful </paragraph>
168</tablecell>
169<tablecell colspan="" rowspan="">
170<paragraph role="paragraph" id="par_id3153705" xml-lang="en-US" l10n="U" oldref="58">Graphics are loaded successfully.</paragraph>
171</tablecell>
172<tablecell colspan="" rowspan="">
173</tablecell>
174<tablecell colspan="" rowspan="">
175<paragraph role="paragraph" id="par_id3150343" xml-lang="en-US" l10n="U" oldref="59">x</paragraph>
176</tablecell>
177<tablecell colspan="" rowspan="">
178</tablecell>
179<tablecell colspan="" rowspan="">
180</tablecell>
181<tablecell colspan="" rowspan="">
182</tablecell>
183<tablecell colspan="" rowspan="">
184</tablecell>
185</tablerow>
186<tablerow>
187<tablecell colspan="" rowspan="">
188<paragraph role="paragraph" id="par_id3150202" xml-lang="en-US" l10n="U" oldref="60">Graphics load terminated</paragraph>
189</tablecell>
190<tablecell colspan="" rowspan="">
191<paragraph role="paragraph" id="par_id3145584" xml-lang="en-US" l10n="U" oldref="61">Loading of graphics is stopped by the user (for example, when downloading the page).</paragraph>
192</tablecell>
193<tablecell colspan="" rowspan="">
194</tablecell>
195<tablecell colspan="" rowspan="">
196<paragraph role="paragraph" id="par_id3154259" xml-lang="en-US" l10n="U" oldref="62">x</paragraph>
197</tablecell>
198<tablecell colspan="" rowspan="">
199</tablecell>
200<tablecell colspan="" rowspan="">
201</tablecell>
202<tablecell colspan="" rowspan="">
203</tablecell>
204<tablecell colspan="" rowspan="">
205</tablecell>
206</tablerow>
207<tablerow>
208<tablecell colspan="" rowspan="">
209<paragraph role="paragraph" id="par_id3155089" xml-lang="en-US" l10n="U" oldref="63">Graphics load faulty</paragraph>
210</tablecell>
211<tablecell colspan="" rowspan="">
212<paragraph role="paragraph" id="par_id3153307" xml-lang="en-US" l10n="U" oldref="64">Graphics not successfully loaded, for example, if a graphic was not found.</paragraph>
213</tablecell>
214<tablecell colspan="" rowspan="">
215</tablecell>
216<tablecell colspan="" rowspan="">
217<paragraph role="paragraph" id="par_id3148840" xml-lang="en-US" l10n="U" oldref="65">x</paragraph>
218</tablecell>
219<tablecell colspan="" rowspan="">
220</tablecell>
221<tablecell colspan="" rowspan="">
222</tablecell>
223<tablecell colspan="" rowspan="">
224</tablecell>
225<tablecell colspan="" rowspan="">
226</tablecell>
227</tablerow>
228<tablerow>
229<tablecell colspan="" rowspan="">
230<paragraph role="paragraph" id="par_id3154533" xml-lang="en-US" l10n="U" oldref="66">Input of alpha characters </paragraph>
231</tablecell>
232<tablecell colspan="" rowspan="">
233<paragraph role="paragraph" id="par_id3155266" xml-lang="en-US" l10n="U" oldref="67">Text is entered from the keyboard.</paragraph>
234</tablecell>
235<tablecell colspan="" rowspan="">
236</tablecell>
237<tablecell colspan="" rowspan="">
238</tablecell>
239<tablecell colspan="" rowspan="">
240<paragraph role="paragraph" id="par_id3144768" xml-lang="en-US" l10n="U" oldref="68">x</paragraph>
241</tablecell>
242<tablecell colspan="" rowspan="">
243</tablecell>
244<tablecell colspan="" rowspan="">
245</tablecell>
246<tablecell colspan="" rowspan="">
247</tablecell>
248</tablerow>
249<tablerow>
250<tablecell colspan="" rowspan="">
251<paragraph role="paragraph" id="par_id3145659" xml-lang="en-US" l10n="U" oldref="69">Input of non-alpha characters </paragraph>
252</tablecell>
253<tablecell colspan="" rowspan="">
254<paragraph role="paragraph" id="par_id3151131" xml-lang="en-US" l10n="U" oldref="70">Nonprinting characters are entered from the keyboard, for example, tabs and line breaks.</paragraph>
255</tablecell>
256<tablecell colspan="" rowspan="">
257</tablecell>
258<tablecell colspan="" rowspan="">
259</tablecell>
260<tablecell colspan="" rowspan="">
261<paragraph role="paragraph" id="par_id3159206" xml-lang="en-US" l10n="U" oldref="71">x</paragraph>
262</tablecell>
263<tablecell colspan="" rowspan="">
264</tablecell>
265<tablecell colspan="" rowspan="">
266</tablecell>
267<tablecell colspan="" rowspan="">
268</tablecell>
269</tablerow>
270<tablerow>
271<tablecell colspan="" rowspan="">
272<paragraph role="paragraph" id="par_id3150405" xml-lang="en-US" l10n="U" oldref="72">Resize frame</paragraph>
273</tablecell>
274<tablecell colspan="" rowspan="">
275<paragraph role="paragraph" id="par_id3153972" xml-lang="en-US" l10n="U" oldref="73">Frame is resized with the mouse.</paragraph>
276</tablecell>
277<tablecell colspan="" rowspan="">
278</tablecell>
279<tablecell colspan="" rowspan="">
280</tablecell>
281<tablecell colspan="" rowspan="">
282<paragraph role="paragraph" id="par_id3152873" xml-lang="en-US" l10n="U" oldref="74">x</paragraph>
283</tablecell>
284<tablecell colspan="" rowspan="">
285</tablecell>
286<tablecell colspan="" rowspan="">
287</tablecell>
288<tablecell colspan="" rowspan="">
289</tablecell>
290</tablerow>
291<tablerow>
292<tablecell colspan="" rowspan="">
293<paragraph role="paragraph" id="par_id3148900" xml-lang="en-US" l10n="U" oldref="75">Move frame</paragraph>
294</tablecell>
295<tablecell colspan="" rowspan="">
296<paragraph role="paragraph" id="par_id3154767" xml-lang="en-US" l10n="U" oldref="76">Frame is moved with the mouse.</paragraph>
297</tablecell>
298<tablecell colspan="" rowspan="">
299</tablecell>
300<tablecell colspan="" rowspan="">
301</tablecell>
302<tablecell colspan="" rowspan="">
303<paragraph role="paragraph" id="par_id3155914" xml-lang="en-US" l10n="U" oldref="77">x</paragraph>
304</tablecell>
305<tablecell colspan="" rowspan="">
306</tablecell>
307<tablecell colspan="" rowspan="">
308</tablecell>
309<tablecell colspan="" rowspan="">
310</tablecell>
311</tablerow>
312<tablerow>
313<tablecell colspan="" rowspan="">
314<paragraph role="paragraph" id="par_id3153010" xml-lang="en-US" l10n="U" oldref="78">Before inserting AutoText</paragraph>
315</tablecell>
316<tablecell colspan="" rowspan="">
317<paragraph role="paragraph" id="par_id3147515" xml-lang="en-US" l10n="U" oldref="79">Before a text block is inserted.</paragraph>
318</tablecell>
319<tablecell colspan="" rowspan="">
320</tablecell>
321<tablecell colspan="" rowspan="">
322</tablecell>
323<tablecell colspan="" rowspan="">
324</tablecell>
325<tablecell colspan="" rowspan="">
326<paragraph role="paragraph" id="par_id3151191" xml-lang="en-US" l10n="U" oldref="80">x</paragraph>
327</tablecell>
328<tablecell colspan="" rowspan="">
329</tablecell>
330<tablecell colspan="" rowspan="">
331</tablecell>
332</tablerow>
333<tablerow>
334<tablecell colspan="" rowspan="">
335<paragraph role="paragraph" id="par_id3150956" xml-lang="en-US" l10n="U" oldref="81">After inserting AutoText</paragraph>
336</tablecell>
337<tablecell colspan="" rowspan="">
338<paragraph role="paragraph" id="par_id3147502" xml-lang="en-US" l10n="U" oldref="82">After a text block is inserted.</paragraph>
339</tablecell>
340<tablecell colspan="" rowspan="">
341</tablecell>
342<tablecell colspan="" rowspan="">
343</tablecell>
344<tablecell colspan="" rowspan="">
345</tablecell>
346<tablecell colspan="" rowspan="">
347<paragraph role="paragraph" id="par_id3147555" xml-lang="en-US" l10n="U" oldref="83">x</paragraph>
348</tablecell>
349<tablecell colspan="" rowspan="">
350</tablecell>
351<tablecell colspan="" rowspan="">
352</tablecell>
353</tablerow>
354</table>
355<paragraph role="heading" id="hd_id3153958" xml-lang="en-US" level="2" l10n="U" oldref="5">Macros</paragraph>
356<paragraph role="paragraph" id="par_id3150432" xml-lang="en-US" l10n="U" oldref="6">Choose the macro that you want to execute when the selected event occurs.</paragraph>
357<paragraph role="paragraph" id="par_id3147296" xml-lang="en-US" l10n="U" oldref="84">Frames allow you to link events to a function, so that the function can determine if it processes the event or $[officename] Writer.</paragraph>
358<paragraph role="heading" id="hd_id3155587" xml-lang="en-US" level="3" l10n="U" oldref="7">Category</paragraph>
359<paragraph role="paragraph" id="par_id3154068" xml-lang="en-US" l10n="U" oldref="8"><ahelp hid="HID_MACRO_GROUP">Lists the open $[officename] documents and applications. Click the name of the location where you want to save the macros.</ahelp></paragraph>
360<paragraph role="heading" id="hd_id3149744" xml-lang="en-US" level="3" l10n="U" oldref="9">Macro name</paragraph>
361<paragraph role="paragraph" id="par_id3151391" xml-lang="en-US" l10n="U" oldref="10"><ahelp hid="HID_MACRO_MACROS">Lists the available macros. Click the macro that you want to assign to the selected object.</ahelp></paragraph>
362<paragraph role="heading" id="hd_id3159260" xml-lang="en-US" level="2" l10n="U" oldref="11">Assign</paragraph>
363<paragraph role="paragraph" id="par_id3147406" xml-lang="en-US" l10n="U" oldref="12"><ahelp hid="SFX2_PUSHBUTTON_RID_SFX_TP_MACROASSIGN_PB_ASSIGN">Assigns the selected macro to the specified event.</ahelp> The assigned macro's entries are set after the event.</paragraph>
364<paragraph role="heading" id="hd_id3150533" xml-lang="en-US" level="2" l10n="U" oldref="15">Remove</paragraph>
365<paragraph role="paragraph" id="par_id3166456" xml-lang="en-US" l10n="U" oldref="16"><variable id="aufheb"><ahelp hid="SFX2_PUSHBUTTON_RID_SFX_TP_MACROASSIGN_PB_DELETE">Removes the macro that is assigned to the selected item.</ahelp>
366</variable></paragraph>
367<paragraph role="heading" id="hd_id3159126" xml-lang="en-US" level="2" l10n="U" oldref="85">Macro selection</paragraph>
368<paragraph role="paragraph" id="par_id3149149" xml-lang="en-US" l10n="U" oldref="86"><ahelp hid="SFX2_LISTBOX_RID_SFX_TP_MACROASSIGN_LB_SCRIPTTYPE">Select the macro that you want to assign.</ahelp></paragraph>
369</body>
370</helpdocument>
371