summaryrefslogtreecommitdiffstats
path: root/helpcontent2/source/text/swriter/01/05060700.xhp
blob: 0d57315180bc82f9f5bf2ceb22e7e5a35c845a59 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
<?xml version="1.0" encoding="UTF-8"?>


<!--
 * This file is part of the LibreOffice project.
 *
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
 *
 * This file incorporates work covered by the following license notice:
 *
 *   Licensed to the Apache Software Foundation (ASF) under one or more
 *   contributor license agreements. See the NOTICE file distributed
 *   with this work for additional information regarding copyright
 *   ownership. The ASF licenses this file to you under the Apache
 *   License, Version 2.0 (the "License"); you may not use this file
 *   except in compliance with the License. You may obtain a copy of
 *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
 -->

<helpdocument version="1.0">
<meta>
<topic id="textswriter0105060700xml" indexer="include" status="PUBLISH">
<title id="tit" xml-lang="en-US">Macro</title>
<filename>/text/swriter/01/05060700.xhp</filename>
</topic>
<history>
<created date="2003-10-31T00:00:00">Sun Microsystems, Inc.</created>
</history>
</meta>
<body>
<section id="macro">
<bookmark xml-lang="en-US" branch="hid/cui/ui/eventassignpage/EventAssignPage" id="bm_id9825433" localize="false"/>
<bookmark xml-lang="en-US" branch="hid/cui/ui/eventassignpage/@@nowidget@@" id="bm_id9825433" localize="false"/>
<paragraph role="heading" id="hd_id3145241" xml-lang="en-US" level="1"><link href="text/swriter/01/05060700.xhp" name="Macro">Macro</link></paragraph>
<paragraph role="paragraph" id="par_id3158429" xml-lang="en-US"><ahelp hid="cui/ui/eventassignpage/EventAssignPage">Specifies the macro to run when you click an image, frame, or an OLE object.</ahelp></paragraph>
</section>
<section id="howtoget">
  <embed href="text/swriter/00/00000405.xhp#graphics_macro"/>
</section>
<bookmark xml-lang="en-US" branch="hid/cui/ui/eventassignpage/assignments" id="bm_id9825434" localize="false"/>
<paragraph role="heading" id="hd_id3147176" xml-lang="en-US" level="2">Event</paragraph>
<paragraph role="paragraph" id="par_id3147564" xml-lang="en-US"><ahelp hid="cui/ui/eventassignpage/assignments">Lists the events that can trigger a macro.</ahelp> Only the events that are relevant to the selected object are listed.</paragraph>
<paragraph role="paragraph" id="par_id3149286" xml-lang="en-US">The following table lists the object types and the events that can trigger a macro:</paragraph>
<table id="tbl_id3151173">
<tablerow>
<tablecell colspan="" rowspan="">
<paragraph role="tablehead" id="par_id3152949" xml-lang="en-US">Event</paragraph>
</tablecell>
<tablecell colspan="" rowspan="">
<paragraph role="tablehead" id="par_id3149808" xml-lang="en-US">Event trigger</paragraph>
</tablecell>
<tablecell colspan="" rowspan="">
<paragraph role="tablehead" id="par_id3152957" xml-lang="en-US">OLE object</paragraph>
</tablecell>
<tablecell colspan="" rowspan="">
<paragraph role="tablehead" id="par_id3154564" xml-lang="en-US">Image</paragraph>
</tablecell>
<tablecell colspan="" rowspan="">
<paragraph role="tablehead" id="par_id3153675" xml-lang="en-US">Frame</paragraph>
</tablecell>
<tablecell colspan="" rowspan="">
<paragraph role="tablehead" id="par_id3154473" xml-lang="en-US">AutoText</paragraph>
</tablecell>
<tablecell colspan="" rowspan="">
<paragraph role="tablehead" id="par_id3149684" xml-lang="en-US">ImageMap area</paragraph>
</tablecell>
<tablecell colspan="" rowspan="">
<paragraph role="tablehead" id="par_id3154197" xml-lang="en-US">Hyperlink</paragraph>
</tablecell>
</tablerow>
<tablerow>
<tablecell colspan="" rowspan="">
<paragraph role="tablecontent" id="par_id3155182" xml-lang="en-US">Click object</paragraph>
</tablecell>
<tablecell colspan="" rowspan="">
<paragraph role="tablecontent" id="par_id3149489" xml-lang="en-US">object is selected</paragraph>
</tablecell>
<tablecell colspan="" rowspan="">
<paragraph role="tablecontent" id="par_id3151249" xml-lang="en-US" localize="false">✓</paragraph>
</tablecell>
<tablecell colspan="" rowspan="">
<paragraph role="tablecontent" id="par_id3149104" xml-lang="en-US" localize="false">✓</paragraph>
</tablecell>
<tablecell colspan="" rowspan="">
<paragraph role="tablecontent" id="par_id3147089" xml-lang="en-US" localize="false">✓</paragraph>
</tablecell>
<tablecell colspan="" rowspan="">
</tablecell>
<tablecell colspan="" rowspan="">
</tablecell>
<tablecell colspan="" rowspan="">
</tablecell>
</tablerow>
<tablerow>
<tablecell colspan="" rowspan="">
<paragraph role="tablecontent" id="par_id3153637" xml-lang="en-US">Mouse over object</paragraph>
</tablecell>
<tablecell colspan="" rowspan="">
<paragraph role="tablecontent" id="par_id3147579" xml-lang="en-US">mouse pointer moves over the object</paragraph>
</tablecell>
<tablecell colspan="" rowspan="">
<paragraph role="tablecontent" id="par_id3152779" xml-lang="en-US" localize="false">✓</paragraph>
</tablecell>
<tablecell colspan="" rowspan="">
<paragraph role="tablecontent" id="par_id3153349" xml-lang="en-US" localize="false">✓</paragraph>
</tablecell>
<tablecell colspan="" rowspan="">
<paragraph role="tablecontent" id="par_id3149174" xml-lang="en-US" localize="false">✓</paragraph>
</tablecell>
<tablecell colspan="" rowspan="">
</tablecell>
<tablecell colspan="" rowspan="">
<paragraph role="tablecontent" id="par_id3151031" xml-lang="en-US" localize="false">✓</paragraph>
</tablecell>
<tablecell colspan="" rowspan="">
<paragraph role="tablecontent" id="par_id3145784" xml-lang="en-US" localize="false">✓</paragraph>
</tablecell>
</tablerow>
<tablerow>
<tablecell colspan="" rowspan="">
<paragraph role="tablecontent" id="par_id3155910" xml-lang="en-US">Trigger Hyperlink</paragraph>
</tablecell>
<tablecell colspan="" rowspan="">
<paragraph role="tablecontent" id="par_id3155857" xml-lang="en-US">hyperlink that is assigned to the object is clicked</paragraph>
</tablecell>
<tablecell colspan="" rowspan="">
<paragraph role="tablecontent" id="par_id3150693" xml-lang="en-US" localize="false">✓</paragraph>
</tablecell>
<tablecell colspan="" rowspan="">
<paragraph role="tablecontent" id="par_id3147423" xml-lang="en-US" localize="false">✓</paragraph>
</tablecell>
<tablecell colspan="" rowspan="">
<paragraph role="tablecontent" id="par_id3145256" xml-lang="en-US" localize="false">✓</paragraph>
</tablecell>
<tablecell colspan="" rowspan="">
</tablecell>
<tablecell colspan="" rowspan="">
</tablecell>
<tablecell colspan="" rowspan="">
<paragraph role="tablecontent" id="par_id3149554" xml-lang="en-US" localize="false">✓</paragraph>
</tablecell>
</tablerow>
<tablerow>
<tablecell colspan="" rowspan="">
<paragraph role="tablecontent" id="par_id3155976" xml-lang="en-US">Mouse leaves object </paragraph>
</tablecell>
<tablecell colspan="" rowspan="">
<paragraph role="tablecontent" id="par_id3149216" xml-lang="en-US">mouse pointer moves off the object</paragraph>
</tablecell>
<tablecell colspan="" rowspan="">
<paragraph role="tablecontent" id="par_id3147739" xml-lang="en-US" localize="false">✓</paragraph>
</tablecell>
<tablecell colspan="" rowspan="">
<paragraph role="tablecontent" id="par_id3146336" xml-lang="en-US" localize="false">✓</paragraph>
</tablecell>
<tablecell colspan="" rowspan="">
<paragraph role="tablecontent" id="par_id3149841" xml-lang="en-US" localize="false">✓</paragraph>
</tablecell>
<tablecell colspan="" rowspan="">
</tablecell>
<tablecell colspan="" rowspan="">
<paragraph role="tablecontent" id="par_id3148436" xml-lang="en-US" localize="false">✓</paragraph>
</tablecell>
<tablecell colspan="" rowspan="">
<paragraph role="tablecontent" id="par_id3151082" xml-lang="en-US" localize="false">✓</paragraph>
</tablecell>
</tablerow>
<tablerow>
<tablecell colspan="" rowspan="">
<paragraph role="tablecontent" id="par_id3154780" xml-lang="en-US">Image loaded successfully</paragraph>
</tablecell>
<tablecell colspan="" rowspan="">
<paragraph role="tablecontent" id="par_id3145304" xml-lang="en-US">image is loaded successfully</paragraph>
</tablecell>
<tablecell colspan="" rowspan="">
</tablecell>
<tablecell colspan="" rowspan="">
<paragraph role="tablecontent" id="par_id3150169" xml-lang="en-US" localize="false">✓</paragraph>
</tablecell>
<tablecell colspan="" rowspan="">
</tablecell>
<tablecell colspan="" rowspan="">
</tablecell>
<tablecell colspan="" rowspan="">
</tablecell>
<tablecell colspan="" rowspan="">
</tablecell>
</tablerow>
<tablerow>
<tablecell colspan="" rowspan="">
<paragraph role="tablecontent" id="par_id3154718" xml-lang="en-US">Image loading terminated</paragraph>
</tablecell>
<tablecell colspan="" rowspan="">
<paragraph role="tablecontent" id="par_id3156136" xml-lang="en-US">loading of the image is terminated by the user (for example, when downloading)</paragraph>
</tablecell>
<tablecell colspan="" rowspan="">
</tablecell>
<tablecell colspan="" rowspan="">
<paragraph role="tablecontent" id="par_id3156105" xml-lang="en-US" localize="false">✓</paragraph>
</tablecell>
<tablecell colspan="" rowspan="">
</tablecell>
<tablecell colspan="" rowspan="">
</tablecell>
<tablecell colspan="" rowspan="">
</tablecell>
<tablecell colspan="" rowspan="">
</tablecell>
</tablerow>
<tablerow>
<tablecell colspan="" rowspan="">
<paragraph role="tablecontent" id="par_id3155079" xml-lang="en-US">Could not load image</paragraph>
</tablecell>
<tablecell colspan="" rowspan="">
<paragraph role="tablecontent" id="par_id3149250" xml-lang="en-US">image is not successfully loaded</paragraph>
</tablecell>
<tablecell colspan="" rowspan="">
</tablecell>
<tablecell colspan="" rowspan="">
<paragraph role="tablecontent" id="par_id3154327" xml-lang="en-US" localize="false">✓</paragraph>
</tablecell>
<tablecell colspan="" rowspan="">
</tablecell>
<tablecell colspan="" rowspan="">
</tablecell>
<tablecell colspan="" rowspan="">
</tablecell>
<tablecell colspan="" rowspan="">
</tablecell>
</tablerow>
<tablerow>
<tablecell colspan="" rowspan="">
<paragraph role="tablecontent" id="par_id3148779" xml-lang="en-US">Input of alpha characters </paragraph>
</tablecell>
<tablecell colspan="" rowspan="">
<paragraph role="tablecontent" id="par_id3150030" xml-lang="en-US">text is inputted</paragraph>
</tablecell>
<tablecell colspan="" rowspan="">
</tablecell>
<tablecell colspan="" rowspan="">
</tablecell>
<tablecell colspan="" rowspan="">
<paragraph role="tablecontent" id="par_id3155792" xml-lang="en-US" localize="false">✓</paragraph>
</tablecell>
<tablecell colspan="" rowspan="">
</tablecell>
<tablecell colspan="" rowspan="">
</tablecell>
<tablecell colspan="" rowspan="">
</tablecell>
</tablerow>
<tablerow>
<tablecell colspan="" rowspan="">
<paragraph role="tablecontent" id="par_id3154623" xml-lang="en-US">Input of non-alpha characters </paragraph>
</tablecell>
<tablecell colspan="" rowspan="">
<paragraph role="tablecontent" id="par_id3147391" xml-lang="en-US">Nonprinting characters, such as tabs and line breaks, are entered</paragraph>
</tablecell>
<tablecell colspan="" rowspan="">
</tablecell>
<tablecell colspan="" rowspan="">
</tablecell>
<tablecell colspan="" rowspan="">
<paragraph role="tablecontent" id="par_id3150666" xml-lang="en-US" localize="false">✓</paragraph>
</tablecell>
<tablecell colspan="" rowspan="">
</tablecell>
<tablecell colspan="" rowspan="">
</tablecell>
<tablecell colspan="" rowspan="">
</tablecell>
</tablerow>
<tablerow>
<tablecell colspan="" rowspan="">
<paragraph role="tablecontent" id="par_id3149963" xml-lang="en-US">Resize frame</paragraph>
</tablecell>
<tablecell colspan="" rowspan="">
<paragraph role="tablecontent" id="par_id3147284" xml-lang="en-US">frame is resized</paragraph>
</tablecell>
<tablecell colspan="" rowspan="">
</tablecell>
<tablecell colspan="" rowspan="">
</tablecell>
<tablecell colspan="" rowspan="">
<paragraph role="tablecontent" id="par_id3150774" xml-lang="en-US" localize="false">✓</paragraph>
</tablecell>
<tablecell colspan="" rowspan="">
</tablecell>
<tablecell colspan="" rowspan="">
</tablecell>
<tablecell colspan="" rowspan="">
</tablecell>
</tablerow>
<tablerow>
<tablecell colspan="" rowspan="">
<paragraph role="tablecontent" id="par_id3148713" xml-lang="en-US">Move frame</paragraph>
</tablecell>
<tablecell colspan="" rowspan="">
<paragraph role="tablecontent" id="par_id3155349" xml-lang="en-US">frame is moved</paragraph>
</tablecell>
<tablecell colspan="" rowspan="">
</tablecell>
<tablecell colspan="" rowspan="">
</tablecell>
<tablecell colspan="" rowspan="">
<paragraph role="tablecontent" id="par_id3155553" xml-lang="en-US" localize="false">✓</paragraph>
</tablecell>
<tablecell colspan="" rowspan="">
</tablecell>
<tablecell colspan="" rowspan="">
</tablecell>
<tablecell colspan="" rowspan="">
</tablecell>
</tablerow>
<tablerow>
<tablecell colspan="" rowspan="">
<paragraph role="tablecontent" id="par_id3154227" xml-lang="en-US">Before inserting AutoText</paragraph>
</tablecell>
<tablecell colspan="" rowspan="">
<paragraph role="tablecontent" id="par_id3155785" xml-lang="en-US">before AutoText is inserted</paragraph>
</tablecell>
<tablecell colspan="" rowspan="">
</tablecell>
<tablecell colspan="" rowspan="">
</tablecell>
<tablecell colspan="" rowspan="">
</tablecell>
<tablecell colspan="" rowspan="">
<paragraph role="tablecontent" id="par_id3145292" xml-lang="en-US" localize="false">✓</paragraph>
</tablecell>
<tablecell colspan="" rowspan="">
</tablecell>
<tablecell colspan="" rowspan="">
</tablecell>
</tablerow>
<tablerow>
<tablecell colspan="" rowspan="">
<paragraph role="tablecontent" id="par_id3145096" xml-lang="en-US">After inserting AutoText</paragraph>
</tablecell>
<tablecell colspan="" rowspan="">
<paragraph role="tablecontent" id="par_id3149577" xml-lang="en-US">after AutoText is inserted</paragraph>
</tablecell>
<tablecell colspan="" rowspan="">
</tablecell>
<tablecell colspan="" rowspan="">
</tablecell>
<tablecell colspan="" rowspan="">
</tablecell>
<tablecell colspan="" rowspan="">
<paragraph role="tablecontent" id="par_id3156237" xml-lang="en-US" localize="false">✓</paragraph>
</tablecell>
<tablecell colspan="" rowspan="">
</tablecell>
<tablecell colspan="" rowspan="">
</tablecell>
</tablerow>
</table>

<paragraph role="note" id="par_id3159203" xml-lang="en-US">For events that are linked to controls in forms, see <link href="text/shared/02/01170103.xhp" name="Control properties">Control properties</link> or <link href="text/shared/02/01170202.xhp" name="Form properties">Form properties</link>.</paragraph>
<paragraph role="heading" id="hd_id3156030" xml-lang="en-US" level="2">Assigned Action</paragraph>
<paragraph role="paragraph" id="par_id3156043" xml-lang="en-US">Specify the macro that executes when the selected event occurs.</paragraph>
<paragraph role="paragraph" id="par_id3156058" xml-lang="en-US">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.</paragraph>
<bookmark xml-lang="en-US" branch="hid/cui/ui/eventassignpage/libraries" id="bm_id4656819" localize="false"/>
<paragraph role="heading" id="hd_id3149271" xml-lang="en-US" level="3">Macro From</paragraph>
<paragraph role="paragraph" id="par_id3149284" xml-lang="en-US"><ahelp hid="cui/ui/eventassignpage/libraries">Lists the $[officename] program and any open $[officename] document.</ahelp> Within this list, select the location where you want to pick the macro from.</paragraph>
<bookmark xml-lang="en-US" branch="hid/cui/ui/eventassignpage/macros" id="bm_id3767815" localize="false"/>
<paragraph role="heading" id="hd_id3156441" xml-lang="en-US" level="3">Existing Macros</paragraph>
<paragraph role="paragraph" id="par_id3148458" xml-lang="en-US"><ahelp hid="cui/ui/eventassignpage/macros">Lists the available macros. Select the macro that you want to assign to the selected event, and then click <emph>Assign</emph>.</ahelp></paragraph>
<bookmark xml-lang="en-US" branch="hid/cui/ui/eventassignpage/assign" id="bm_id3767816" localize="false"/>
<paragraph role="heading" id="hd_id3145173" xml-lang="en-US" level="2">Assign</paragraph>
<paragraph role="paragraph" id="par_id3145197" xml-lang="en-US"><ahelp hid="cui/ui/eventassignpage/assign">Assigns the selected macro to the selected event.</ahelp></paragraph>
<bookmark xml-lang="en-US" branch="hid/cui/ui/eventassignpage/delete" id="bm_id3767817" localize="false"/>
<paragraph role="heading" id="hd_id3150811" xml-lang="en-US" level="2">Remove</paragraph>
<paragraph role="paragraph" id="par_id3150882" xml-lang="en-US"><variable id="aufheb"><ahelp hid="cui/ui/eventassignpage/delete">Removes the macro assignment from the selected entry.</ahelp>
</variable></paragraph>
</body>
</helpdocument>