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="textsbasicshared05060700xml" indexer="include" status="PUBLISH"> 36<title id="tit" xml-lang="en-US">Macro</title> 37<filename>/text/sbasic/shared/05060700.xhp</filename> 38</topic> 39<history> 40<created date="2003-10-31T00:00:00">Sun Microsystems, Inc.</created> 41<lastedited date="2006-02-24T10:51:24">converted from old format - fpe</lastedited> 42</history> 43</meta> 44<body> 45<section id="makro"> 46<bookmark xml-lang="en-US" branch="index" id="bm_id3153894"><bookmark_value>events;linked to objects</bookmark_value> 47</bookmark><comment>UFI: removed all help ids</comment> 48<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> 49<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> 50</section> 51<paragraph role="heading" id="hd_id3150503" xml-lang="en-US" level="2" l10n="U" oldref="3">Event</paragraph> 52<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> 53<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> 54<table id="tbl_id3148944"> 55<tablerow> 56<tablecell colspan="" rowspan=""> 57<paragraph role="paragraph" id="par_id3153360" xml-lang="en-US" l10n="U" oldref="24">Event</paragraph> 58</tablecell> 59<tablecell colspan="" rowspan=""> 60<paragraph role="paragraph" id="par_id3154365" xml-lang="en-US" l10n="U" oldref="25">Event trigger</paragraph> 61</tablecell> 62<tablecell colspan="" rowspan=""> 63<paragraph role="paragraph" id="par_id3159149" xml-lang="en-US" l10n="U" oldref="26">OLE object</paragraph> 64</tablecell> 65<tablecell colspan="" rowspan=""> 66<paragraph role="paragraph" id="par_id3148451" xml-lang="en-US" l10n="U" oldref="27">Graphics</paragraph> 67</tablecell> 68<tablecell colspan="" rowspan=""> 69<paragraph role="paragraph" id="par_id3125863" xml-lang="en-US" l10n="U" oldref="28">Frame</paragraph> 70</tablecell> 71<tablecell colspan="" rowspan=""> 72<paragraph role="paragraph" id="par_id3154216" xml-lang="en-US" l10n="U" oldref="29">AutoText</paragraph> 73</tablecell> 74<tablecell colspan="" rowspan=""> 75<paragraph role="paragraph" id="par_id3145785" xml-lang="en-US" l10n="U" oldref="30">ImageMap area</paragraph> 76</tablecell> 77<tablecell colspan="" rowspan=""> 78<paragraph role="paragraph" id="par_id3153138" xml-lang="en-US" l10n="U" oldref="31">Hyperlink</paragraph> 79</tablecell> 80</tablerow> 81<tablerow> 82<tablecell colspan="" rowspan=""> 83<paragraph role="paragraph" id="par_id3155306" xml-lang="en-US" l10n="U" oldref="32">Click object</paragraph> 84</tablecell> 85<tablecell colspan="" rowspan=""> 86<paragraph role="paragraph" id="par_id3152460" xml-lang="en-US" l10n="U" oldref="33">Object is selected.</paragraph> 87</tablecell> 88<tablecell colspan="" rowspan=""> 89<paragraph role="paragraph" id="par_id3147348" xml-lang="en-US" l10n="U" oldref="34">x</paragraph> 90</tablecell> 91<tablecell colspan="" rowspan=""> 92<paragraph role="paragraph" id="par_id3147426" xml-lang="en-US" l10n="U" oldref="35">x</paragraph> 93</tablecell> 94<tablecell colspan="" rowspan=""> 95<paragraph role="paragraph" id="par_id3153951" xml-lang="en-US" l10n="U" oldref="36">x</paragraph> 96</tablecell> 97<tablecell colspan="" rowspan=""> 98</tablecell> 99<tablecell colspan="" rowspan=""> 100</tablecell> 101<tablecell colspan="" rowspan=""> 102</tablecell> 103</tablerow> 104<tablerow> 105<tablecell colspan="" rowspan=""> 106<paragraph role="paragraph" id="par_id3150116" xml-lang="en-US" l10n="U" oldref="37">Mouse over object</paragraph> 107</tablecell> 108<tablecell colspan="" rowspan=""> 109<paragraph role="paragraph" id="par_id3145253" xml-lang="en-US" l10n="U" oldref="38">Mouse moves over the object.</paragraph> 110</tablecell> 111<tablecell colspan="" rowspan=""> 112<paragraph role="paragraph" id="par_id3144765" xml-lang="en-US" l10n="U" oldref="39">x</paragraph> 113</tablecell> 114<tablecell colspan="" rowspan=""> 115<paragraph role="paragraph" id="par_id3153418" xml-lang="en-US" l10n="U" oldref="40">x</paragraph> 116</tablecell> 117<tablecell colspan="" rowspan=""> 118<paragraph role="paragraph" id="par_id3153948" xml-lang="en-US" l10n="U" oldref="41">x</paragraph> 119</tablecell> 120<tablecell colspan="" rowspan=""> 121</tablecell> 122<tablecell colspan="" rowspan=""> 123<paragraph role="paragraph" id="par_id3145652" xml-lang="en-US" l10n="U" oldref="42">x</paragraph> 124</tablecell> 125<tablecell colspan="" rowspan=""> 126<paragraph role="paragraph" id="par_id3155066" xml-lang="en-US" l10n="U" oldref="43">x</paragraph> 127</tablecell> 128</tablerow> 129<tablerow> 130<tablecell colspan="" rowspan=""> 131<paragraph role="paragraph" id="par_id3155446" xml-lang="en-US" l10n="U" oldref="44">Trigger Hyperlink</paragraph> 132</tablecell> 133<tablecell colspan="" rowspan=""> 134<paragraph role="paragraph" id="par_id3154756" xml-lang="en-US" l10n="U" oldref="45">Hyperlink assigned to the object is clicked.</paragraph> 135</tablecell> 136<tablecell colspan="" rowspan=""> 137<paragraph role="paragraph" id="par_id3150042" xml-lang="en-US" l10n="U" oldref="46">x</paragraph> 138</tablecell> 139<tablecell colspan="" rowspan=""> 140<paragraph role="paragraph" id="par_id3151252" xml-lang="en-US" l10n="U" oldref="47">x</paragraph> 141</tablecell> 142<tablecell colspan="" rowspan=""> 143<paragraph role="paragraph" id="par_id3147344" xml-lang="en-US" l10n="U" oldref="48">x</paragraph> 144</tablecell> 145<tablecell colspan="" rowspan=""> 146</tablecell> 147<tablecell colspan="" rowspan=""> 148</tablecell> 149<tablecell colspan="" rowspan=""> 150<paragraph role="paragraph" id="par_id3146920" xml-lang="en-US" l10n="U" oldref="49">x</paragraph> 151</tablecell> 152</tablerow> 153<tablerow> 154<tablecell colspan="" rowspan=""> 155<paragraph role="paragraph" id="par_id3159333" xml-lang="en-US" l10n="U" oldref="50">Mouse leaves object </paragraph> 156</tablecell> 157<tablecell colspan="" rowspan=""> 158<paragraph role="paragraph" id="par_id3147003" xml-lang="en-US" l10n="U" oldref="51">Mouse moves off of the object.</paragraph> 159</tablecell> 160<tablecell colspan="" rowspan=""> 161<paragraph role="paragraph" id="par_id3151278" xml-lang="en-US" l10n="U" oldref="52">x</paragraph> 162</tablecell> 163<tablecell colspan="" rowspan=""> 164<paragraph role="paragraph" id="par_id3145257" xml-lang="en-US" l10n="U" oldref="53">x</paragraph> 165</tablecell> 166<tablecell colspan="" rowspan=""> 167<paragraph role="paragraph" id="par_id3154122" xml-lang="en-US" l10n="U" oldref="54">x</paragraph> 168</tablecell> 169<tablecell colspan="" rowspan=""> 170</tablecell> 171<tablecell colspan="" rowspan=""> 172<paragraph role="paragraph" id="par_id3156139" xml-lang="en-US" l10n="U" oldref="55">x</paragraph> 173</tablecell> 174<tablecell colspan="" rowspan=""> 175<paragraph role="paragraph" id="par_id3149036" xml-lang="en-US" l10n="U" oldref="56">x</paragraph> 176</tablecell> 177</tablerow> 178<tablerow> 179<tablecell colspan="" rowspan=""> 180<paragraph role="paragraph" id="par_id3150785" xml-lang="en-US" l10n="U" oldref="57">Graphics load successful </paragraph> 181</tablecell> 182<tablecell colspan="" rowspan=""> 183<paragraph role="paragraph" id="par_id3153705" xml-lang="en-US" l10n="U" oldref="58">Graphics are loaded successfully.</paragraph> 184</tablecell> 185<tablecell colspan="" rowspan=""> 186</tablecell> 187<tablecell colspan="" rowspan=""> 188<paragraph role="paragraph" id="par_id3150343" xml-lang="en-US" l10n="U" oldref="59">x</paragraph> 189</tablecell> 190<tablecell colspan="" rowspan=""> 191</tablecell> 192<tablecell colspan="" rowspan=""> 193</tablecell> 194<tablecell colspan="" rowspan=""> 195</tablecell> 196<tablecell colspan="" rowspan=""> 197</tablecell> 198</tablerow> 199<tablerow> 200<tablecell colspan="" rowspan=""> 201<paragraph role="paragraph" id="par_id3150202" xml-lang="en-US" l10n="U" oldref="60">Graphics load terminated</paragraph> 202</tablecell> 203<tablecell colspan="" rowspan=""> 204<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> 205</tablecell> 206<tablecell colspan="" rowspan=""> 207</tablecell> 208<tablecell colspan="" rowspan=""> 209<paragraph role="paragraph" id="par_id3154259" xml-lang="en-US" l10n="U" oldref="62">x</paragraph> 210</tablecell> 211<tablecell colspan="" rowspan=""> 212</tablecell> 213<tablecell colspan="" rowspan=""> 214</tablecell> 215<tablecell colspan="" rowspan=""> 216</tablecell> 217<tablecell colspan="" rowspan=""> 218</tablecell> 219</tablerow> 220<tablerow> 221<tablecell colspan="" rowspan=""> 222<paragraph role="paragraph" id="par_id3155089" xml-lang="en-US" l10n="U" oldref="63">Graphics load faulty</paragraph> 223</tablecell> 224<tablecell colspan="" rowspan=""> 225<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> 226</tablecell> 227<tablecell colspan="" rowspan=""> 228</tablecell> 229<tablecell colspan="" rowspan=""> 230<paragraph role="paragraph" id="par_id3148840" xml-lang="en-US" l10n="U" oldref="65">x</paragraph> 231</tablecell> 232<tablecell colspan="" rowspan=""> 233</tablecell> 234<tablecell colspan="" rowspan=""> 235</tablecell> 236<tablecell colspan="" rowspan=""> 237</tablecell> 238<tablecell colspan="" rowspan=""> 239</tablecell> 240</tablerow> 241<tablerow> 242<tablecell colspan="" rowspan=""> 243<paragraph role="paragraph" id="par_id3154533" xml-lang="en-US" l10n="U" oldref="66">Input of alpha characters </paragraph> 244</tablecell> 245<tablecell colspan="" rowspan=""> 246<paragraph role="paragraph" id="par_id3155266" xml-lang="en-US" l10n="U" oldref="67">Text is entered from the keyboard.</paragraph> 247</tablecell> 248<tablecell colspan="" rowspan=""> 249</tablecell> 250<tablecell colspan="" rowspan=""> 251</tablecell> 252<tablecell colspan="" rowspan=""> 253<paragraph role="paragraph" id="par_id3144768" xml-lang="en-US" l10n="U" oldref="68">x</paragraph> 254</tablecell> 255<tablecell colspan="" rowspan=""> 256</tablecell> 257<tablecell colspan="" rowspan=""> 258</tablecell> 259<tablecell colspan="" rowspan=""> 260</tablecell> 261</tablerow> 262<tablerow> 263<tablecell colspan="" rowspan=""> 264<paragraph role="paragraph" id="par_id3145659" xml-lang="en-US" l10n="U" oldref="69">Input of non-alpha characters </paragraph> 265</tablecell> 266<tablecell colspan="" rowspan=""> 267<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> 268</tablecell> 269<tablecell colspan="" rowspan=""> 270</tablecell> 271<tablecell colspan="" rowspan=""> 272</tablecell> 273<tablecell colspan="" rowspan=""> 274<paragraph role="paragraph" id="par_id3159206" xml-lang="en-US" l10n="U" oldref="71">x</paragraph> 275</tablecell> 276<tablecell colspan="" rowspan=""> 277</tablecell> 278<tablecell colspan="" rowspan=""> 279</tablecell> 280<tablecell colspan="" rowspan=""> 281</tablecell> 282</tablerow> 283<tablerow> 284<tablecell colspan="" rowspan=""> 285<paragraph role="paragraph" id="par_id3150405" xml-lang="en-US" l10n="U" oldref="72">Resize frame</paragraph> 286</tablecell> 287<tablecell colspan="" rowspan=""> 288<paragraph role="paragraph" id="par_id3153972" xml-lang="en-US" l10n="U" oldref="73">Frame is resized with the mouse.</paragraph> 289</tablecell> 290<tablecell colspan="" rowspan=""> 291</tablecell> 292<tablecell colspan="" rowspan=""> 293</tablecell> 294<tablecell colspan="" rowspan=""> 295<paragraph role="paragraph" id="par_id3152873" xml-lang="en-US" l10n="U" oldref="74">x</paragraph> 296</tablecell> 297<tablecell colspan="" rowspan=""> 298</tablecell> 299<tablecell colspan="" rowspan=""> 300</tablecell> 301<tablecell colspan="" rowspan=""> 302</tablecell> 303</tablerow> 304<tablerow> 305<tablecell colspan="" rowspan=""> 306<paragraph role="paragraph" id="par_id3148900" xml-lang="en-US" l10n="U" oldref="75">Move frame</paragraph> 307</tablecell> 308<tablecell colspan="" rowspan=""> 309<paragraph role="paragraph" id="par_id3154767" xml-lang="en-US" l10n="U" oldref="76">Frame is moved with the mouse.</paragraph> 310</tablecell> 311<tablecell colspan="" rowspan=""> 312</tablecell> 313<tablecell colspan="" rowspan=""> 314</tablecell> 315<tablecell colspan="" rowspan=""> 316<paragraph role="paragraph" id="par_id3155914" xml-lang="en-US" l10n="U" oldref="77">x</paragraph> 317</tablecell> 318<tablecell colspan="" rowspan=""> 319</tablecell> 320<tablecell colspan="" rowspan=""> 321</tablecell> 322<tablecell colspan="" rowspan=""> 323</tablecell> 324</tablerow> 325<tablerow> 326<tablecell colspan="" rowspan=""> 327<paragraph role="paragraph" id="par_id3153010" xml-lang="en-US" l10n="U" oldref="78">Before inserting AutoText</paragraph> 328</tablecell> 329<tablecell colspan="" rowspan=""> 330<paragraph role="paragraph" id="par_id3147515" xml-lang="en-US" l10n="U" oldref="79">Before a text block is inserted.</paragraph> 331</tablecell> 332<tablecell colspan="" rowspan=""> 333</tablecell> 334<tablecell colspan="" rowspan=""> 335</tablecell> 336<tablecell colspan="" rowspan=""> 337</tablecell> 338<tablecell colspan="" rowspan=""> 339<paragraph role="paragraph" id="par_id3151191" xml-lang="en-US" l10n="U" oldref="80">x</paragraph> 340</tablecell> 341<tablecell colspan="" rowspan=""> 342</tablecell> 343<tablecell colspan="" rowspan=""> 344</tablecell> 345</tablerow> 346<tablerow> 347<tablecell colspan="" rowspan=""> 348<paragraph role="paragraph" id="par_id3150956" xml-lang="en-US" l10n="U" oldref="81">After inserting AutoText</paragraph> 349</tablecell> 350<tablecell colspan="" rowspan=""> 351<paragraph role="paragraph" id="par_id3147502" xml-lang="en-US" l10n="U" oldref="82">After a text block is inserted.</paragraph> 352</tablecell> 353<tablecell colspan="" rowspan=""> 354</tablecell> 355<tablecell colspan="" rowspan=""> 356</tablecell> 357<tablecell colspan="" rowspan=""> 358</tablecell> 359<tablecell colspan="" rowspan=""> 360<paragraph role="paragraph" id="par_id3147555" xml-lang="en-US" l10n="U" oldref="83">x</paragraph> 361</tablecell> 362<tablecell colspan="" rowspan=""> 363</tablecell> 364<tablecell colspan="" rowspan=""> 365</tablecell> 366</tablerow> 367</table> 368 369<paragraph role="heading" id="hd_id3153958" xml-lang="en-US" level="2" l10n="U" oldref="5">Macros</paragraph> 370<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> 371<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> 372<paragraph role="heading" id="hd_id3155587" xml-lang="en-US" level="3" l10n="U" oldref="7">Category</paragraph> 373<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> 374<paragraph role="heading" id="hd_id3149744" xml-lang="en-US" level="3" l10n="U" oldref="9">Macro name</paragraph> 375<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> 376<paragraph role="heading" id="hd_id3159260" xml-lang="en-US" level="2" l10n="U" oldref="11">Assign</paragraph> 377<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> 378<paragraph role="heading" id="hd_id3150533" xml-lang="en-US" level="2" l10n="U" oldref="15">Remove</paragraph> 379<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> 380</variable></paragraph> 381<paragraph role="heading" id="hd_id3159126" xml-lang="en-US" level="2" l10n="U" oldref="85">Macro selection</paragraph> 382<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> 383</body> 384</helpdocument> 385