1 <?xml version=
"1.0" encoding=
"UTF-8"?>
5 ***********************************************************************
7 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
9 * Copyright 2008 by Sun Microsystems, Inc.
11 * OpenOffice.org - a multi-platform office productivity suite
13 * $RCSfile: 05060700.xhp,v $
16 * This file is part of OpenOffice.org.
18 * OpenOffice.org is free software: you can redistribute it and/or modify
19 * it under the terms of the GNU Lesser General Public License version 3
20 * only, as published by the Free Software Foundation.
22 * OpenOffice.org is distributed in the hope that it will be useful,
23 * but WITHOUT ANY WARRANTY; without even the implied warranty of
24 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25 * GNU Lesser General Public License version 3 for more details
26 * (a copy is included in the LICENSE file that accompanied this code).
28 * You should have received a copy of the GNU Lesser General Public License
29 * version 3 along with OpenOffice.org. If not, see
30 * <http://www.openoffice.org/license.html>
31 * for a copy of the LGPLv3 License.
33 ************************************************************************
36 <helpdocument version=
"1.0">
38 <topic id=
"textswriter0105060700xml" indexer=
"include" status=
"PUBLISH">
39 <title id=
"tit" xml-lang=
"en-US">Macro
</title>
40 <filename>/text/swriter/
01/
05060700.xhp
</filename>
43 <created date=
"2003-10-31T00:00:00">Sun Microsystems, Inc.
</created>
44 <lastedited date=
"2007-01-31T11:56:54">converted from old format - fpe
</lastedited>
49 <bookmark xml-lang=
"en-US" branch=
"hid/SFX2:TABPAGE:RID_SFX_TP_MACROASSIGN" id=
"bm_id3148770" localize=
"false"/>
50 <paragraph role=
"heading" id=
"hd_id3145241" xml-lang=
"en-US" level=
"1" l10n=
"U" oldref=
"1"><link href=
"text/swriter/01/05060700.xhp" name=
"Macro">Macro
</link></paragraph>
51 <paragraph role=
"paragraph" id=
"par_id3158429" xml-lang=
"en-US" l10n=
"U" oldref=
"2"><ahelp hid=
"SFX2:TABPAGE:RID_SFX_TP_MACROASSIGN">Specifies the macro to run when you click a graphic, frame, or an OLE object.
</ahelp></paragraph>
53 <section id=
"howtoget">
54 <embed href=
"text/swriter/00/00000405.xhp#makrografik"/>
56 <bookmark xml-lang=
"en-US" branch=
"hid/HID_MACRO_HEADERTABLISTBOX" id=
"bm_id9825434" localize=
"false"/>
57 <paragraph role=
"heading" id=
"hd_id3147176" xml-lang=
"en-US" level=
"2" l10n=
"U" oldref=
"3">Event
</paragraph>
58 <paragraph role=
"paragraph" id=
"par_id3147564" xml-lang=
"en-US" l10n=
"CHG" oldref=
"4"><ahelp hid=
"SFX2:TABPAGE:RID_SFX_TP_MACROASSIGN">Lists the events that can trigger a macro.
</ahelp> Only the events that are relevant to the selected object are listed.
</paragraph>
59 <paragraph role=
"paragraph" id=
"par_id3149286" xml-lang=
"en-US" l10n=
"U" oldref=
"23">The following table lists the object types and the events that can trigger a macro:
</paragraph>
60 <table id=
"tbl_id3151173">
62 <tablecell colspan=
"" rowspan=
"">
63 <paragraph role=
"tablehead" id=
"par_id3152949" xml-lang=
"en-US" l10n=
"U" oldref=
"24">Event
</paragraph>
65 <tablecell colspan=
"" rowspan=
"">
66 <paragraph role=
"tablehead" id=
"par_id3149808" xml-lang=
"en-US" l10n=
"U" oldref=
"25">Event trigger
</paragraph>
68 <tablecell colspan=
"" rowspan=
"">
69 <paragraph role=
"tablehead" id=
"par_id3152957" xml-lang=
"en-US" l10n=
"U" oldref=
"26">OLE object
</paragraph>
71 <tablecell colspan=
"" rowspan=
"">
72 <paragraph role=
"tablehead" id=
"par_id3154564" xml-lang=
"en-US" l10n=
"U" oldref=
"27">Graphics
</paragraph>
74 <tablecell colspan=
"" rowspan=
"">
75 <paragraph role=
"tablehead" id=
"par_id3153675" xml-lang=
"en-US" l10n=
"U" oldref=
"28">Frame
</paragraph>
77 <tablecell colspan=
"" rowspan=
"">
78 <paragraph role=
"tablehead" id=
"par_id3154473" xml-lang=
"en-US" l10n=
"U" oldref=
"29">AutoText
</paragraph>
80 <tablecell colspan=
"" rowspan=
"">
81 <paragraph role=
"tablehead" id=
"par_id3149684" xml-lang=
"en-US" l10n=
"U" oldref=
"30">ImageMap area
</paragraph>
83 <tablecell colspan=
"" rowspan=
"">
84 <paragraph role=
"tablehead" id=
"par_id3154197" xml-lang=
"en-US" l10n=
"U" oldref=
"31">Hyperlink
</paragraph>
88 <tablecell colspan=
"" rowspan=
"">
89 <paragraph role=
"tablecontent" id=
"par_id3155182" xml-lang=
"en-US" l10n=
"U" oldref=
"32">Click object
</paragraph>
91 <tablecell colspan=
"" rowspan=
"">
92 <paragraph role=
"tablecontent" id=
"par_id3149489" xml-lang=
"en-US" l10n=
"U" oldref=
"33">object is selected
</paragraph>
94 <tablecell colspan=
"" rowspan=
"">
95 <paragraph role=
"tablecontent" id=
"par_id3151249" xml-lang=
"en-US" l10n=
"U" oldref=
"34">x
</paragraph>
97 <tablecell colspan=
"" rowspan=
"">
98 <paragraph role=
"tablecontent" id=
"par_id3149104" xml-lang=
"en-US" l10n=
"U" oldref=
"35">x
</paragraph>
100 <tablecell colspan=
"" rowspan=
"">
101 <paragraph role=
"tablecontent" id=
"par_id3147089" xml-lang=
"en-US" l10n=
"U" oldref=
"36">x
</paragraph>
103 <tablecell colspan=
"" rowspan=
"">
105 <tablecell colspan=
"" rowspan=
"">
107 <tablecell colspan=
"" rowspan=
"">
111 <tablecell colspan=
"" rowspan=
"">
112 <paragraph role=
"tablecontent" id=
"par_id3153637" xml-lang=
"en-US" l10n=
"U" oldref=
"37">Mouse over object
</paragraph>
114 <tablecell colspan=
"" rowspan=
"">
115 <paragraph role=
"tablecontent" id=
"par_id3147579" xml-lang=
"en-US" l10n=
"U" oldref=
"38">mouse pointer moves over the object
</paragraph>
117 <tablecell colspan=
"" rowspan=
"">
118 <paragraph role=
"tablecontent" id=
"par_id3152779" xml-lang=
"en-US" l10n=
"U" oldref=
"39">x
</paragraph>
120 <tablecell colspan=
"" rowspan=
"">
121 <paragraph role=
"tablecontent" id=
"par_id3153349" xml-lang=
"en-US" l10n=
"U" oldref=
"40">x
</paragraph>
123 <tablecell colspan=
"" rowspan=
"">
124 <paragraph role=
"tablecontent" id=
"par_id3149174" xml-lang=
"en-US" l10n=
"U" oldref=
"41">x
</paragraph>
126 <tablecell colspan=
"" rowspan=
"">
128 <tablecell colspan=
"" rowspan=
"">
129 <paragraph role=
"tablecontent" id=
"par_id3151031" xml-lang=
"en-US" l10n=
"U" oldref=
"42">x
</paragraph>
131 <tablecell colspan=
"" rowspan=
"">
132 <paragraph role=
"tablecontent" id=
"par_id3145784" xml-lang=
"en-US" l10n=
"U" oldref=
"43">x
</paragraph>
136 <tablecell colspan=
"" rowspan=
"">
137 <paragraph role=
"tablecontent" id=
"par_id3155910" xml-lang=
"en-US" l10n=
"U" oldref=
"44">Trigger Hyperlink
</paragraph>
139 <tablecell colspan=
"" rowspan=
"">
140 <paragraph role=
"tablecontent" id=
"par_id3155857" xml-lang=
"en-US" l10n=
"U" oldref=
"45">hyperlink that is assigned to the object is clicked
</paragraph>
142 <tablecell colspan=
"" rowspan=
"">
143 <paragraph role=
"tablecontent" id=
"par_id3150693" xml-lang=
"en-US" l10n=
"U" oldref=
"46">x
</paragraph>
145 <tablecell colspan=
"" rowspan=
"">
146 <paragraph role=
"tablecontent" id=
"par_id3147423" xml-lang=
"en-US" l10n=
"U" oldref=
"47">x
</paragraph>
148 <tablecell colspan=
"" rowspan=
"">
149 <paragraph role=
"tablecontent" id=
"par_id3145256" xml-lang=
"en-US" l10n=
"U" oldref=
"48">x
</paragraph>
151 <tablecell colspan=
"" rowspan=
"">
153 <tablecell colspan=
"" rowspan=
"">
155 <tablecell colspan=
"" rowspan=
"">
156 <paragraph role=
"tablecontent" id=
"par_id3149554" xml-lang=
"en-US" l10n=
"U" oldref=
"49">x
</paragraph>
160 <tablecell colspan=
"" rowspan=
"">
161 <paragraph role=
"tablecontent" id=
"par_id3155976" xml-lang=
"en-US" l10n=
"U" oldref=
"50">Mouse leaves object
</paragraph>
163 <tablecell colspan=
"" rowspan=
"">
164 <paragraph role=
"tablecontent" id=
"par_id3149216" xml-lang=
"en-US" l10n=
"U" oldref=
"51">mouse pointer moves off the object
</paragraph>
166 <tablecell colspan=
"" rowspan=
"">
167 <paragraph role=
"tablecontent" id=
"par_id3147739" xml-lang=
"en-US" l10n=
"U" oldref=
"52">x
</paragraph>
169 <tablecell colspan=
"" rowspan=
"">
170 <paragraph role=
"tablecontent" id=
"par_id3146336" xml-lang=
"en-US" l10n=
"U" oldref=
"53">x
</paragraph>
172 <tablecell colspan=
"" rowspan=
"">
173 <paragraph role=
"tablecontent" id=
"par_id3149841" xml-lang=
"en-US" l10n=
"U" oldref=
"54">x
</paragraph>
175 <tablecell colspan=
"" rowspan=
"">
177 <tablecell colspan=
"" rowspan=
"">
178 <paragraph role=
"tablecontent" id=
"par_id3148436" xml-lang=
"en-US" l10n=
"U" oldref=
"55">x
</paragraph>
180 <tablecell colspan=
"" rowspan=
"">
181 <paragraph role=
"tablecontent" id=
"par_id3151082" xml-lang=
"en-US" l10n=
"U" oldref=
"56">x
</paragraph>
185 <tablecell colspan=
"" rowspan=
"">
186 <paragraph role=
"tablecontent" id=
"par_id3154780" xml-lang=
"en-US" l10n=
"U" oldref=
"57">Graphics load successful
</paragraph>
188 <tablecell colspan=
"" rowspan=
"">
189 <paragraph role=
"tablecontent" id=
"par_id3145304" xml-lang=
"en-US" l10n=
"U" oldref=
"58">graphic is loaded successfully
</paragraph>
191 <tablecell colspan=
"" rowspan=
"">
193 <tablecell colspan=
"" rowspan=
"">
194 <paragraph role=
"tablecontent" id=
"par_id3150169" xml-lang=
"en-US" l10n=
"U" oldref=
"59">x
</paragraph>
196 <tablecell colspan=
"" rowspan=
"">
198 <tablecell colspan=
"" rowspan=
"">
200 <tablecell colspan=
"" rowspan=
"">
202 <tablecell colspan=
"" rowspan=
"">
206 <tablecell colspan=
"" rowspan=
"">
207 <paragraph role=
"tablecontent" id=
"par_id3154718" xml-lang=
"en-US" l10n=
"U" oldref=
"60">Graphics load terminated
</paragraph>
209 <tablecell colspan=
"" rowspan=
"">
210 <paragraph role=
"tablecontent" id=
"par_id3156136" xml-lang=
"en-US" l10n=
"U" oldref=
"61">loading of the graphic is terminated by the user (for example, when downloading)
</paragraph>
212 <tablecell colspan=
"" rowspan=
"">
214 <tablecell colspan=
"" rowspan=
"">
215 <paragraph role=
"tablecontent" id=
"par_id3156105" xml-lang=
"en-US" l10n=
"U" oldref=
"62">x
</paragraph>
217 <tablecell colspan=
"" rowspan=
"">
219 <tablecell colspan=
"" rowspan=
"">
221 <tablecell colspan=
"" rowspan=
"">
223 <tablecell colspan=
"" rowspan=
"">
227 <tablecell colspan=
"" rowspan=
"">
228 <paragraph role=
"tablecontent" id=
"par_id3155079" xml-lang=
"en-US" l10n=
"U" oldref=
"63">Graphics load faulty
</paragraph>
230 <tablecell colspan=
"" rowspan=
"">
231 <paragraph role=
"tablecontent" id=
"par_id3149250" xml-lang=
"en-US" l10n=
"U" oldref=
"64">graphic is not successfully loaded
</paragraph>
233 <tablecell colspan=
"" rowspan=
"">
235 <tablecell colspan=
"" rowspan=
"">
236 <paragraph role=
"tablecontent" id=
"par_id3154327" xml-lang=
"en-US" l10n=
"U" oldref=
"65">x
</paragraph>
238 <tablecell colspan=
"" rowspan=
"">
240 <tablecell colspan=
"" rowspan=
"">
242 <tablecell colspan=
"" rowspan=
"">
244 <tablecell colspan=
"" rowspan=
"">
248 <tablecell colspan=
"" rowspan=
"">
249 <paragraph role=
"tablecontent" id=
"par_id3148779" xml-lang=
"en-US" l10n=
"U" oldref=
"66">Input of alpha characters
</paragraph>
251 <tablecell colspan=
"" rowspan=
"">
252 <paragraph role=
"tablecontent" id=
"par_id3150030" xml-lang=
"en-US" l10n=
"U" oldref=
"67">text is inputted
</paragraph>
254 <tablecell colspan=
"" rowspan=
"">
256 <tablecell colspan=
"" rowspan=
"">
258 <tablecell colspan=
"" rowspan=
"">
259 <paragraph role=
"tablecontent" id=
"par_id3155792" xml-lang=
"en-US" l10n=
"U" oldref=
"68">x
</paragraph>
261 <tablecell colspan=
"" rowspan=
"">
263 <tablecell colspan=
"" rowspan=
"">
265 <tablecell colspan=
"" rowspan=
"">
269 <tablecell colspan=
"" rowspan=
"">
270 <paragraph role=
"tablecontent" id=
"par_id3154623" xml-lang=
"en-US" l10n=
"U" oldref=
"69">Input of non-alpha characters
</paragraph>
272 <tablecell colspan=
"" rowspan=
"">
273 <paragraph role=
"tablecontent" id=
"par_id3147391" xml-lang=
"en-US" l10n=
"U" oldref=
"70">Nonprinting characters, such as tabs and line breaks, are entered
</paragraph>
275 <tablecell colspan=
"" rowspan=
"">
277 <tablecell colspan=
"" rowspan=
"">
279 <tablecell colspan=
"" rowspan=
"">
280 <paragraph role=
"tablecontent" id=
"par_id3150666" xml-lang=
"en-US" l10n=
"U" oldref=
"71">x
</paragraph>
282 <tablecell colspan=
"" rowspan=
"">
284 <tablecell colspan=
"" rowspan=
"">
286 <tablecell colspan=
"" rowspan=
"">
290 <tablecell colspan=
"" rowspan=
"">
291 <paragraph role=
"tablecontent" id=
"par_id3149963" xml-lang=
"en-US" l10n=
"U" oldref=
"72">Resize frame
</paragraph>
293 <tablecell colspan=
"" rowspan=
"">
294 <paragraph role=
"tablecontent" id=
"par_id3147284" xml-lang=
"en-US" l10n=
"U" oldref=
"73">frame is resized
</paragraph>
296 <tablecell colspan=
"" rowspan=
"">
298 <tablecell colspan=
"" rowspan=
"">
300 <tablecell colspan=
"" rowspan=
"">
301 <paragraph role=
"tablecontent" id=
"par_id3150774" xml-lang=
"en-US" l10n=
"U" oldref=
"74">x
</paragraph>
303 <tablecell colspan=
"" rowspan=
"">
305 <tablecell colspan=
"" rowspan=
"">
307 <tablecell colspan=
"" rowspan=
"">
311 <tablecell colspan=
"" rowspan=
"">
312 <paragraph role=
"tablecontent" id=
"par_id3148713" xml-lang=
"en-US" l10n=
"U" oldref=
"75">Move frame
</paragraph>
314 <tablecell colspan=
"" rowspan=
"">
315 <paragraph role=
"tablecontent" id=
"par_id3155349" xml-lang=
"en-US" l10n=
"U" oldref=
"76">frame is moved
</paragraph>
317 <tablecell colspan=
"" rowspan=
"">
319 <tablecell colspan=
"" rowspan=
"">
321 <tablecell colspan=
"" rowspan=
"">
322 <paragraph role=
"tablecontent" id=
"par_id3155553" xml-lang=
"en-US" l10n=
"U" oldref=
"77">x
</paragraph>
324 <tablecell colspan=
"" rowspan=
"">
326 <tablecell colspan=
"" rowspan=
"">
328 <tablecell colspan=
"" rowspan=
"">
332 <tablecell colspan=
"" rowspan=
"">
333 <paragraph role=
"tablecontent" id=
"par_id3154227" xml-lang=
"en-US" l10n=
"U" oldref=
"78">Before inserting AutoText
</paragraph>
335 <tablecell colspan=
"" rowspan=
"">
336 <paragraph role=
"tablecontent" id=
"par_id3155785" xml-lang=
"en-US" l10n=
"U" oldref=
"79">before AutoText is inserted
</paragraph>
338 <tablecell colspan=
"" rowspan=
"">
340 <tablecell colspan=
"" rowspan=
"">
342 <tablecell colspan=
"" rowspan=
"">
344 <tablecell colspan=
"" rowspan=
"">
345 <paragraph role=
"tablecontent" id=
"par_id3145292" xml-lang=
"en-US" l10n=
"U" oldref=
"80">x
</paragraph>
347 <tablecell colspan=
"" rowspan=
"">
349 <tablecell colspan=
"" rowspan=
"">
353 <tablecell colspan=
"" rowspan=
"">
354 <paragraph role=
"tablecontent" id=
"par_id3145096" xml-lang=
"en-US" l10n=
"U" oldref=
"81">After inserting AutoText
</paragraph>
356 <tablecell colspan=
"" rowspan=
"">
357 <paragraph role=
"tablecontent" id=
"par_id3149577" xml-lang=
"en-US" l10n=
"U" oldref=
"82">after AutoText is inserted
</paragraph>
359 <tablecell colspan=
"" rowspan=
"">
361 <tablecell colspan=
"" rowspan=
"">
363 <tablecell colspan=
"" rowspan=
"">
365 <tablecell colspan=
"" rowspan=
"">
366 <paragraph role=
"tablecontent" id=
"par_id3156237" xml-lang=
"en-US" l10n=
"U" oldref=
"83">x
</paragraph>
368 <tablecell colspan=
"" rowspan=
"">
370 <tablecell colspan=
"" rowspan=
"">
375 <paragraph role=
"note" id=
"par_id3159203" xml-lang=
"en-US" l10n=
"U" oldref=
"89">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>
376 <bookmark xml-lang=
"en-US" branch=
"hid/HID_MACRO_GROUP" id=
"bm_id4656819" localize=
"false"/>
377 <paragraph role=
"heading" id=
"hd_id3156030" xml-lang=
"en-US" level=
"2" l10n=
"U" oldref=
"5">Macros
</paragraph>
378 <paragraph role=
"paragraph" id=
"par_id3156043" xml-lang=
"en-US" l10n=
"U" oldref=
"6"><ahelp hid=
".">Specify the macro that executes when the selected event occurs.
</ahelp></paragraph>
379 <paragraph role=
"paragraph" id=
"par_id3156058" xml-lang=
"en-US" l10n=
"U" oldref=
"84">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.
<comment>???
</comment></paragraph>
380 <paragraph role=
"heading" id=
"hd_id3149271" xml-lang=
"en-US" level=
"3" l10n=
"U" oldref=
"7">Category
</paragraph>
381 <paragraph role=
"paragraph" id=
"par_id3149284" xml-lang=
"en-US" l10n=
"U" oldref=
"8"><ahelp hid=
"SFX2:TABPAGE:RID_SFX_TP_MACROASSIGN">Lists the $[officename] program and any open $[officename] document.
</ahelp> Within this list, select the location where you want to save the macros.
</paragraph>
382 <bookmark xml-lang=
"en-US" branch=
"hid/HID_MACRO_MACROS" id=
"bm_id3767815" localize=
"false"/>
383 <paragraph role=
"heading" id=
"hd_id3156441" xml-lang=
"en-US" level=
"3" l10n=
"U" oldref=
"9">Macro name
</paragraph>
384 <paragraph role=
"paragraph" id=
"par_id3148458" xml-lang=
"en-US" l10n=
"U" oldref=
"10"><ahelp hid=
"SFX2:TABPAGE:RID_SFX_TP_MACROASSIGN">Lists the available macros. Select the macro that you want to assign to the selected event, and then click
<emph>Assign
</emph>.
</ahelp></paragraph>
385 <bookmark xml-lang=
"en-US" branch=
"hid/SFX2:PUSHBUTTON:RID_SFX_TP_MACROASSIGN:PB_ASSIGN" id=
"bm_id3145185" localize=
"false"/>
386 <bookmark xml-lang=
"en-US" branch=
"hid/SFX2:PUSHBUTTON:RID_SFX_SMALLTP_MACROASSIGN:PB_ASSIGN" id=
"bm_id3145184" localize=
"false"/>
387 <paragraph role=
"heading" id=
"hd_id3145173" xml-lang=
"en-US" level=
"2" l10n=
"U" oldref=
"11">Assign
</paragraph>
388 <paragraph role=
"paragraph" id=
"par_id3145197" xml-lang=
"en-US" l10n=
"CHG" oldref=
"12"><ahelp hid=
"SFX2:PUSHBUTTON:RID_SFX_SMALLTP_MACROASSIGN:PB_ASSIGN">Assigns the selected macro to the selected event.
</ahelp></paragraph>
389 <bookmark xml-lang=
"en-US" branch=
"hid/SFX2:PUSHBUTTON:RID_SFX_TP_MACROASSIGN:PB_DELETE" id=
"bm_id3150824" localize=
"false"/>
390 <bookmark xml-lang=
"en-US" branch=
"hid/SFX2:PUSHBUTTON:RID_SFX_SMALLTP_MACROASSIGN:PB_DELETE" id=
"bm_id3150822" localize=
"false"/>
391 <paragraph role=
"heading" id=
"hd_id3150811" xml-lang=
"en-US" level=
"2" l10n=
"U" oldref=
"15">Remove
</paragraph>
392 <paragraph role=
"paragraph" id=
"par_id3150882" xml-lang=
"en-US" l10n=
"U" oldref=
"16"><variable id=
"aufheb"><ahelp hid=
"SFX2:PUSHBUTTON:RID_SFX_SMALLTP_MACROASSIGN:PB_DELETE">Removes the macro assignment from the selected entry.
</ahelp>
393 </variable></paragraph>