1<?xml version="1.0" encoding="UTF-8"?> 2 3 4<!-- 5 *********************************************************************** 6 * 7 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 8 * 9 * Copyright 2000, 2010 Oracle and/or its affiliates. 10 * 11 * OpenOffice.org - a multi-platform office productivity suite 12 * 13 * This file is part of OpenOffice.org. 14 * 15 * OpenOffice.org is free software: you can redistribute it and/or modify 16 * it under the terms of the GNU Lesser General Public License version 3 17 * only, as published by the Free Software Foundation. 18 * 19 * OpenOffice.org is distributed in the hope that it will be useful, 20 * but WITHOUT ANY WARRANTY; without even the implied warranty of 21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22 * GNU Lesser General Public License version 3 for more details 23 * (a copy is included in the LICENSE file that accompanied this code). 24 * 25 * You should have received a copy of the GNU Lesser General Public License 26 * version 3 along with OpenOffice.org. If not, see 27 * <http://www.openoffice.org/license.html> 28 * for a copy of the LGPLv3 License. 29 * 30 ************************************************************************ 31 --> 32 33<helpdocument version="1.0"> 34<meta> 35<topic id="textswriter0105060700xml" indexer="include" status="PUBLISH"> 36<title id="tit" xml-lang="en-US">Macro</title> 37<filename>/text/swriter/01/05060700.xhp</filename> 38</topic> 39<history> 40<created date="2003-10-31T00:00:00">Sun Microsystems, Inc.</created> 41<lastedited date="2007-01-31T11:56:54">converted from old format - fpe</lastedited> 42</history> 43</meta> 44<body> 45<section id="makro"> 46<!-- removed HID SFX2:TABPAGE:RID_SFX_TP_MACROASSIGN --> 47<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> 48<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> 49</section> 50<section id="howtoget"> 51 <embed href="text/swriter/00/00000405.xhp#makrografik"/> 52</section> 53<bookmark xml-lang="en-US" branch="hid/CUI_HID_MACRO_HEADERTABLISTBOX" id="bm_id9825434" localize="false"/> 54<paragraph role="heading" id="hd_id3147176" xml-lang="en-US" level="2" l10n="U" oldref="3">Event</paragraph> 55<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> 56<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> 57<table id="tbl_id3151173"> 58<tablerow> 59<tablecell colspan="" rowspan=""> 60<paragraph role="tablehead" id="par_id3152949" xml-lang="en-US" l10n="U" oldref="24">Event</paragraph> 61</tablecell> 62<tablecell colspan="" rowspan=""> 63<paragraph role="tablehead" id="par_id3149808" xml-lang="en-US" l10n="U" oldref="25">Event trigger</paragraph> 64</tablecell> 65<tablecell colspan="" rowspan=""> 66<paragraph role="tablehead" id="par_id3152957" xml-lang="en-US" l10n="U" oldref="26">OLE object</paragraph> 67</tablecell> 68<tablecell colspan="" rowspan=""> 69<paragraph role="tablehead" id="par_id3154564" xml-lang="en-US" l10n="U" oldref="27">Graphics</paragraph> 70</tablecell> 71<tablecell colspan="" rowspan=""> 72<paragraph role="tablehead" id="par_id3153675" xml-lang="en-US" l10n="U" oldref="28">Frame</paragraph> 73</tablecell> 74<tablecell colspan="" rowspan=""> 75<paragraph role="tablehead" id="par_id3154473" xml-lang="en-US" l10n="U" oldref="29">AutoText</paragraph> 76</tablecell> 77<tablecell colspan="" rowspan=""> 78<paragraph role="tablehead" id="par_id3149684" xml-lang="en-US" l10n="U" oldref="30">ImageMap area</paragraph> 79</tablecell> 80<tablecell colspan="" rowspan=""> 81<paragraph role="tablehead" id="par_id3154197" xml-lang="en-US" l10n="U" oldref="31">Hyperlink</paragraph> 82</tablecell> 83</tablerow> 84<tablerow> 85<tablecell colspan="" rowspan=""> 86<paragraph role="tablecontent" id="par_id3155182" xml-lang="en-US" l10n="U" oldref="32">Click object</paragraph> 87</tablecell> 88<tablecell colspan="" rowspan=""> 89<paragraph role="tablecontent" id="par_id3149489" xml-lang="en-US" l10n="U" oldref="33">object is selected</paragraph> 90</tablecell> 91<tablecell colspan="" rowspan=""> 92<paragraph role="tablecontent" id="par_id3151249" xml-lang="en-US" l10n="U" oldref="34">x</paragraph> 93</tablecell> 94<tablecell colspan="" rowspan=""> 95<paragraph role="tablecontent" id="par_id3149104" xml-lang="en-US" l10n="U" oldref="35">x</paragraph> 96</tablecell> 97<tablecell colspan="" rowspan=""> 98<paragraph role="tablecontent" id="par_id3147089" xml-lang="en-US" l10n="U" oldref="36">x</paragraph> 99</tablecell> 100<tablecell colspan="" rowspan=""> 101</tablecell> 102<tablecell colspan="" rowspan=""> 103</tablecell> 104<tablecell colspan="" rowspan=""> 105</tablecell> 106</tablerow> 107<tablerow> 108<tablecell colspan="" rowspan=""> 109<paragraph role="tablecontent" id="par_id3153637" xml-lang="en-US" l10n="U" oldref="37">Mouse over object</paragraph> 110</tablecell> 111<tablecell colspan="" rowspan=""> 112<paragraph role="tablecontent" id="par_id3147579" xml-lang="en-US" l10n="U" oldref="38">mouse pointer moves over the object</paragraph> 113</tablecell> 114<tablecell colspan="" rowspan=""> 115<paragraph role="tablecontent" id="par_id3152779" xml-lang="en-US" l10n="U" oldref="39">x</paragraph> 116</tablecell> 117<tablecell colspan="" rowspan=""> 118<paragraph role="tablecontent" id="par_id3153349" xml-lang="en-US" l10n="U" oldref="40">x</paragraph> 119</tablecell> 120<tablecell colspan="" rowspan=""> 121<paragraph role="tablecontent" id="par_id3149174" xml-lang="en-US" l10n="U" oldref="41">x</paragraph> 122</tablecell> 123<tablecell colspan="" rowspan=""> 124</tablecell> 125<tablecell colspan="" rowspan=""> 126<paragraph role="tablecontent" id="par_id3151031" xml-lang="en-US" l10n="U" oldref="42">x</paragraph> 127</tablecell> 128<tablecell colspan="" rowspan=""> 129<paragraph role="tablecontent" id="par_id3145784" xml-lang="en-US" l10n="U" oldref="43">x</paragraph> 130</tablecell> 131</tablerow> 132<tablerow> 133<tablecell colspan="" rowspan=""> 134<paragraph role="tablecontent" id="par_id3155910" xml-lang="en-US" l10n="U" oldref="44">Trigger Hyperlink</paragraph> 135</tablecell> 136<tablecell colspan="" rowspan=""> 137<paragraph role="tablecontent" id="par_id3155857" xml-lang="en-US" l10n="U" oldref="45">hyperlink that is assigned to the object is clicked</paragraph> 138</tablecell> 139<tablecell colspan="" rowspan=""> 140<paragraph role="tablecontent" id="par_id3150693" xml-lang="en-US" l10n="U" oldref="46">x</paragraph> 141</tablecell> 142<tablecell colspan="" rowspan=""> 143<paragraph role="tablecontent" id="par_id3147423" xml-lang="en-US" l10n="U" oldref="47">x</paragraph> 144</tablecell> 145<tablecell colspan="" rowspan=""> 146<paragraph role="tablecontent" id="par_id3145256" xml-lang="en-US" l10n="U" oldref="48">x</paragraph> 147</tablecell> 148<tablecell colspan="" rowspan=""> 149</tablecell> 150<tablecell colspan="" rowspan=""> 151</tablecell> 152<tablecell colspan="" rowspan=""> 153<paragraph role="tablecontent" id="par_id3149554" xml-lang="en-US" l10n="U" oldref="49">x</paragraph> 154</tablecell> 155</tablerow> 156<tablerow> 157<tablecell colspan="" rowspan=""> 158<paragraph role="tablecontent" id="par_id3155976" xml-lang="en-US" l10n="U" oldref="50">Mouse leaves object </paragraph> 159</tablecell> 160<tablecell colspan="" rowspan=""> 161<paragraph role="tablecontent" id="par_id3149216" xml-lang="en-US" l10n="U" oldref="51">mouse pointer moves off the object</paragraph> 162</tablecell> 163<tablecell colspan="" rowspan=""> 164<paragraph role="tablecontent" id="par_id3147739" xml-lang="en-US" l10n="U" oldref="52">x</paragraph> 165</tablecell> 166<tablecell colspan="" rowspan=""> 167<paragraph role="tablecontent" id="par_id3146336" xml-lang="en-US" l10n="U" oldref="53">x</paragraph> 168</tablecell> 169<tablecell colspan="" rowspan=""> 170<paragraph role="tablecontent" id="par_id3149841" xml-lang="en-US" l10n="U" oldref="54">x</paragraph> 171</tablecell> 172<tablecell colspan="" rowspan=""> 173</tablecell> 174<tablecell colspan="" rowspan=""> 175<paragraph role="tablecontent" id="par_id3148436" xml-lang="en-US" l10n="U" oldref="55">x</paragraph> 176</tablecell> 177<tablecell colspan="" rowspan=""> 178<paragraph role="tablecontent" id="par_id3151082" xml-lang="en-US" l10n="U" oldref="56">x</paragraph> 179</tablecell> 180</tablerow> 181<tablerow> 182<tablecell colspan="" rowspan=""> 183<paragraph role="tablecontent" id="par_id3154780" xml-lang="en-US" l10n="U" oldref="57">Graphics load successful </paragraph> 184</tablecell> 185<tablecell colspan="" rowspan=""> 186<paragraph role="tablecontent" id="par_id3145304" xml-lang="en-US" l10n="U" oldref="58">graphic is loaded successfully</paragraph> 187</tablecell> 188<tablecell colspan="" rowspan=""> 189</tablecell> 190<tablecell colspan="" rowspan=""> 191<paragraph role="tablecontent" id="par_id3150169" xml-lang="en-US" l10n="U" oldref="59">x</paragraph> 192</tablecell> 193<tablecell colspan="" rowspan=""> 194</tablecell> 195<tablecell colspan="" rowspan=""> 196</tablecell> 197<tablecell colspan="" rowspan=""> 198</tablecell> 199<tablecell colspan="" rowspan=""> 200</tablecell> 201</tablerow> 202<tablerow> 203<tablecell colspan="" rowspan=""> 204<paragraph role="tablecontent" id="par_id3154718" xml-lang="en-US" l10n="U" oldref="60">Graphics load terminated</paragraph> 205</tablecell> 206<tablecell colspan="" rowspan=""> 207<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> 208</tablecell> 209<tablecell colspan="" rowspan=""> 210</tablecell> 211<tablecell colspan="" rowspan=""> 212<paragraph role="tablecontent" id="par_id3156105" xml-lang="en-US" l10n="U" oldref="62">x</paragraph> 213</tablecell> 214<tablecell colspan="" rowspan=""> 215</tablecell> 216<tablecell colspan="" rowspan=""> 217</tablecell> 218<tablecell colspan="" rowspan=""> 219</tablecell> 220<tablecell colspan="" rowspan=""> 221</tablecell> 222</tablerow> 223<tablerow> 224<tablecell colspan="" rowspan=""> 225<paragraph role="tablecontent" id="par_id3155079" xml-lang="en-US" l10n="U" oldref="63">Graphics load faulty</paragraph> 226</tablecell> 227<tablecell colspan="" rowspan=""> 228<paragraph role="tablecontent" id="par_id3149250" xml-lang="en-US" l10n="U" oldref="64">graphic is not successfully loaded</paragraph> 229</tablecell> 230<tablecell colspan="" rowspan=""> 231</tablecell> 232<tablecell colspan="" rowspan=""> 233<paragraph role="tablecontent" id="par_id3154327" xml-lang="en-US" l10n="U" oldref="65">x</paragraph> 234</tablecell> 235<tablecell colspan="" rowspan=""> 236</tablecell> 237<tablecell colspan="" rowspan=""> 238</tablecell> 239<tablecell colspan="" rowspan=""> 240</tablecell> 241<tablecell colspan="" rowspan=""> 242</tablecell> 243</tablerow> 244<tablerow> 245<tablecell colspan="" rowspan=""> 246<paragraph role="tablecontent" id="par_id3148779" xml-lang="en-US" l10n="U" oldref="66">Input of alpha characters </paragraph> 247</tablecell> 248<tablecell colspan="" rowspan=""> 249<paragraph role="tablecontent" id="par_id3150030" xml-lang="en-US" l10n="U" oldref="67">text is inputted</paragraph> 250</tablecell> 251<tablecell colspan="" rowspan=""> 252</tablecell> 253<tablecell colspan="" rowspan=""> 254</tablecell> 255<tablecell colspan="" rowspan=""> 256<paragraph role="tablecontent" id="par_id3155792" xml-lang="en-US" l10n="U" oldref="68">x</paragraph> 257</tablecell> 258<tablecell colspan="" rowspan=""> 259</tablecell> 260<tablecell colspan="" rowspan=""> 261</tablecell> 262<tablecell colspan="" rowspan=""> 263</tablecell> 264</tablerow> 265<tablerow> 266<tablecell colspan="" rowspan=""> 267<paragraph role="tablecontent" id="par_id3154623" xml-lang="en-US" l10n="U" oldref="69">Input of non-alpha characters </paragraph> 268</tablecell> 269<tablecell colspan="" rowspan=""> 270<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> 271</tablecell> 272<tablecell colspan="" rowspan=""> 273</tablecell> 274<tablecell colspan="" rowspan=""> 275</tablecell> 276<tablecell colspan="" rowspan=""> 277<paragraph role="tablecontent" id="par_id3150666" xml-lang="en-US" l10n="U" oldref="71">x</paragraph> 278</tablecell> 279<tablecell colspan="" rowspan=""> 280</tablecell> 281<tablecell colspan="" rowspan=""> 282</tablecell> 283<tablecell colspan="" rowspan=""> 284</tablecell> 285</tablerow> 286<tablerow> 287<tablecell colspan="" rowspan=""> 288<paragraph role="tablecontent" id="par_id3149963" xml-lang="en-US" l10n="U" oldref="72">Resize frame</paragraph> 289</tablecell> 290<tablecell colspan="" rowspan=""> 291<paragraph role="tablecontent" id="par_id3147284" xml-lang="en-US" l10n="U" oldref="73">frame is resized</paragraph> 292</tablecell> 293<tablecell colspan="" rowspan=""> 294</tablecell> 295<tablecell colspan="" rowspan=""> 296</tablecell> 297<tablecell colspan="" rowspan=""> 298<paragraph role="tablecontent" id="par_id3150774" xml-lang="en-US" l10n="U" oldref="74">x</paragraph> 299</tablecell> 300<tablecell colspan="" rowspan=""> 301</tablecell> 302<tablecell colspan="" rowspan=""> 303</tablecell> 304<tablecell colspan="" rowspan=""> 305</tablecell> 306</tablerow> 307<tablerow> 308<tablecell colspan="" rowspan=""> 309<paragraph role="tablecontent" id="par_id3148713" xml-lang="en-US" l10n="U" oldref="75">Move frame</paragraph> 310</tablecell> 311<tablecell colspan="" rowspan=""> 312<paragraph role="tablecontent" id="par_id3155349" xml-lang="en-US" l10n="U" oldref="76">frame is moved</paragraph> 313</tablecell> 314<tablecell colspan="" rowspan=""> 315</tablecell> 316<tablecell colspan="" rowspan=""> 317</tablecell> 318<tablecell colspan="" rowspan=""> 319<paragraph role="tablecontent" id="par_id3155553" xml-lang="en-US" l10n="U" oldref="77">x</paragraph> 320</tablecell> 321<tablecell colspan="" rowspan=""> 322</tablecell> 323<tablecell colspan="" rowspan=""> 324</tablecell> 325<tablecell colspan="" rowspan=""> 326</tablecell> 327</tablerow> 328<tablerow> 329<tablecell colspan="" rowspan=""> 330<paragraph role="tablecontent" id="par_id3154227" xml-lang="en-US" l10n="U" oldref="78">Before inserting AutoText</paragraph> 331</tablecell> 332<tablecell colspan="" rowspan=""> 333<paragraph role="tablecontent" id="par_id3155785" xml-lang="en-US" l10n="U" oldref="79">before AutoText is inserted</paragraph> 334</tablecell> 335<tablecell colspan="" rowspan=""> 336</tablecell> 337<tablecell colspan="" rowspan=""> 338</tablecell> 339<tablecell colspan="" rowspan=""> 340</tablecell> 341<tablecell colspan="" rowspan=""> 342<paragraph role="tablecontent" id="par_id3145292" xml-lang="en-US" l10n="U" oldref="80">x</paragraph> 343</tablecell> 344<tablecell colspan="" rowspan=""> 345</tablecell> 346<tablecell colspan="" rowspan=""> 347</tablecell> 348</tablerow> 349<tablerow> 350<tablecell colspan="" rowspan=""> 351<paragraph role="tablecontent" id="par_id3145096" xml-lang="en-US" l10n="U" oldref="81">After inserting AutoText</paragraph> 352</tablecell> 353<tablecell colspan="" rowspan=""> 354<paragraph role="tablecontent" id="par_id3149577" xml-lang="en-US" l10n="U" oldref="82">after AutoText is inserted</paragraph> 355</tablecell> 356<tablecell colspan="" rowspan=""> 357</tablecell> 358<tablecell colspan="" rowspan=""> 359</tablecell> 360<tablecell colspan="" rowspan=""> 361</tablecell> 362<tablecell colspan="" rowspan=""> 363<paragraph role="tablecontent" id="par_id3156237" xml-lang="en-US" l10n="U" oldref="83">x</paragraph> 364</tablecell> 365<tablecell colspan="" rowspan=""> 366</tablecell> 367<tablecell colspan="" rowspan=""> 368</tablecell> 369</tablerow> 370</table> 371 372<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> 373<bookmark xml-lang="en-US" branch="hid/CUI_HID_MACRO_GROUP" id="bm_id4656819" localize="false"/> 374<paragraph role="heading" id="hd_id3156030" xml-lang="en-US" level="2" l10n="U" oldref="5">Macros</paragraph> 375<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> 376<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> 377<paragraph role="heading" id="hd_id3149271" xml-lang="en-US" level="3" l10n="U" oldref="7">Category</paragraph> 378<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> 379<bookmark xml-lang="en-US" branch="hid/CUI_HID_MACRO_MACROS" id="bm_id3767815" localize="false"/> 380<paragraph role="heading" id="hd_id3156441" xml-lang="en-US" level="3" l10n="U" oldref="9">Macro name</paragraph> 381<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> 382<!-- removed HID SFX2:PUSHBUTTON:RID_SFX_TP_MACROASSIGN:PB_ASSIGN --> 383<!-- removed HID SFX2:PUSHBUTTON:RID_SFX_SMALLTP_MACROASSIGN:PB_ASSIGN --> 384<paragraph role="heading" id="hd_id3145173" xml-lang="en-US" level="2" l10n="U" oldref="11">Assign</paragraph> 385<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> 386<!-- removed HID SFX2:PUSHBUTTON:RID_SFX_TP_MACROASSIGN:PB_DELETE --> 387<!-- removed HID SFX2:PUSHBUTTON:RID_SFX_SMALLTP_MACROASSIGN:PB_DELETE --> 388<paragraph role="heading" id="hd_id3150811" xml-lang="en-US" level="2" l10n="U" oldref="15">Remove</paragraph> 389<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> 390</variable></paragraph> 391</body> 392</helpdocument> 393