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
|
<?xml version="1.0" encoding="UTF-8"?>
<helpdocument version="1.0">
<!--
* 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 .
-->
<meta>
<topic id="textshared0106130000xml" indexer="include">
<title id="tit" xml-lang="en-US">Macro</title>
<filename>/text/shared/01/06130000.xhp</filename>
</topic>
</meta>
<body>
<bookmark xml-lang="en-US" branch="hid/.uno:MacroDialog" id="bm_id870519" localize="false"/>
<bookmark xml-lang="en-US" branch="hid/modules/BasicIDE/ui/basicmacrodialog/BasicMacroDialog" id="bm_id3149948" localize="false"/>
<bookmark xml-lang="en-US" branch="hid/modules/BasicIDE/ui/basicmacrodialog/@@nowidget@@" id="bm_id3149948" localize="false"/>
<paragraph role="heading" id="hd_id3157552" xml-lang="en-US" level="1">Macro</paragraph>
<paragraph role="paragraph" id="par_id3148765" xml-lang="en-US"><variable id="makro"><ahelp hid=".uno:MacroDialog">Opens a dialog to organize macros.</ahelp>
</variable><comment>UFI: it is not the dialog to run a macro</comment></paragraph>
<section id="howtoget">
<embed href="text/shared/00/00000406.xhp#makro"/>
</section>
<bookmark xml-lang="en-US" branch="hid/modules/BasicIDE/ui/basicmacrodialog/macronameedit" id="bm_id3155351" localize="false"/>
<paragraph role="heading" id="par_id3154863" xml-lang="en-US" level="2">Macro name</paragraph>
<paragraph role="paragraph" id="par_id3150040" xml-lang="en-US"><ahelp hid="modules/BasicIDE/ui/basicmacrodialog/macronameedit">Displays the name of the selected macro. To create or to change the name of a macro, enter a name here.</ahelp></paragraph>
<bookmark xml-lang="en-US" branch="hid/modules/BasicIDE/ui/basicmacrodialog/macros" id="bm_id3149283" localize="false"/>
<paragraph role="paragraph" id="par_id3150902" xml-lang="en-US"><ahelp hid="." visibility="hidden">Lists the macros that are contained in the module selected in the <emph>Macro from </emph>list.</ahelp></paragraph>
<paragraph role="paragraph" id="par_idN10642" xml-lang="en-US" localize="false"><comment>UFI: Important: do not add Help IDS for SELECTOR_COMMANDS and SELECTOR_CATEGORIES, because they are reused for Customize dialog and will lead to display errors there if assigned. See #i51556#</comment></paragraph>
<bookmark xml-lang="en-US" branch="hid/modules/BasicIDE/ui/basicmacrodialog/libraries" id="bm_id3152867" localize="false"/>
<paragraph role="heading" id="hd_id3153750" xml-lang="en-US" level="2">Macro from / Save macro in</paragraph>
<paragraph role="paragraph" id="par_id3153394" xml-lang="en-US"><ahelp hid="modules/BasicIDE/ui/basicmacrodialog/libraries">Lists the libraries and the modules where you can open or save your macros. To save a macro with a particular document, open the document, and then open this dialog.</ahelp></paragraph>
<bookmark xml-lang="en-US" branch="hid/modules/BasicIDE/ui/basicmacrodialog/ok" id="bm_id3147577" localize="false"/>
<paragraph role="heading" id="hd_id3147373" xml-lang="en-US" level="2">Run / Save<comment>unfortunately both have the same Help ID</comment></paragraph>
<paragraph role="paragraph" id="par_id3153748" xml-lang="en-US"><ahelp hid="modules/BasicIDE/ui/basicmacrodialog/ok">Runs or saves the current macro.</ahelp></paragraph>
<bookmark xml-lang="en-US" branch="hid/modules/BasicIDE/ui/basicmacrodialog/assign" id="bm_id3150694" localize="false"/>
<paragraph role="heading" id="hd_id3149388" xml-lang="en-US" level="2">Assign</paragraph>
<paragraph role="paragraph" id="par_id3153577" xml-lang="en-US"><ahelp hid="modules/BasicIDE/ui/basicmacrodialog/assign">Opens the <link href="text/shared/01/06140000.xhp" name="Customize">Customize</link> dialog, where you can assign the selected macro to a menu command, a toolbar, or an event.</ahelp></paragraph>
<bookmark xml-lang="en-US" branch="hid/modules/BasicIDE/ui/basicmacrodialog/edit" id="bm_id3147276" localize="false"/>
<bookmark xml-lang="en-US" branch="hid/modules/BasicIDE/ui/macropage/edit" id="bm_id5118869" localize="false"/>
<paragraph role="heading" id="hd_id3153662" xml-lang="en-US" level="2">Edit</paragraph>
<paragraph role="paragraph" id="par_id3150355" xml-lang="en-US"><ahelp hid="modules/BasicIDE/ui/basicmacrodialog/edit">Starts the $[officename] Basic editor and opens the selected macro or dialog for editing.</ahelp></paragraph>
<bookmark xml-lang="en-US" branch="hid/modules/BasicIDE/ui/basicmacrodialog/delete" id="bm_id3155393" localize="false"/>
<paragraph role="heading" id="hd_id3150772" xml-lang="en-US" level="2">New / Delete</paragraph>
<paragraph role="paragraph" id="par_id3153257" xml-lang="en-US"><ahelp hid="modules/BasicIDE/ui/basicmacrodialog/delete">Creates a new macro, or deletes the selected macro.</ahelp></paragraph>
<paragraph role="paragraph" id="par_id3154514" xml-lang="en-US">To create a new macro, select the "Standard" module in the <emph>Macro from</emph> list, and then click <emph>New</emph>.</paragraph>
<paragraph role="paragraph" id="par_id3148474" xml-lang="en-US">To delete a macro, select it, and then click <emph>Delete</emph>.</paragraph>
<bookmark xml-lang="en-US" branch="hid/modules/BasicIDE/ui/basicmacrodialog/newlibrary" id="bm_id3152910" localize="false"/>
<paragraph role="heading" id="hd_id3159342" xml-lang="en-US" level="2">New Library</paragraph>
<paragraph role="paragraph" id="par_id3154897" xml-lang="en-US"><ahelp hid="modules/BasicIDE/ui/basicmacrodialog/newlibrary">Saves the recorded macro in a new library.</ahelp></paragraph>
<bookmark xml-lang="en-US" branch="hid/modules/BasicIDE/ui/basicmacrodialog/newmodule" id="bm_id3155262" localize="false"/>
<paragraph role="heading" id="hd_id3154173" xml-lang="en-US" level="2">New Module</paragraph>
<paragraph role="paragraph" id="par_id3155628" xml-lang="en-US"><ahelp hid="modules/BasicIDE/ui/basicmacrodialog/newmodule">Saves the recorded macro in a new module.</ahelp></paragraph>
<bookmark xml-lang="en-US" branch="hid/modules/BasicIDE/ui/basicmacrodialog/organize" id="bm_id3150118" localize="false"/>
<paragraph role="heading" id="hd_id3153665" xml-lang="en-US" level="2">Organizer</paragraph>
<paragraph role="paragraph" id="par_id3147618" xml-lang="en-US"><ahelp hid="modules/BasicIDE/ui/basicmacrodialog/organize">Opens the <emph>Macro Organizer</emph> dialog, where you can add, edit, or delete existing macro modules, dialogs, and libraries.</ahelp></paragraph>
<paragraph role="heading" id="hd_id3145609" xml-lang="en-US" level="3">Module/Dialog tab page</paragraph>
<paragraph role="paragraph" id="par_id3155923" xml-lang="en-US"><ahelp hid="modules/BasicIDE/ui/basicmacrodialog/organize">Lets you manage modules or dialog boxes.</ahelp></paragraph>
<bookmark xml-lang="en-US" branch="hid/modules/BasicIDE/ui/modulepage/ModulePage" id="bm_id3147304" localize="false"/>
<bookmark xml-lang="en-US" branch="hid/modules/BasicIDE/ui/modulepage/@@nowidget@@" id="bm_id3147304" localize="false"/>
<bookmark xml-lang="en-US" branch="hid/modules/BasicIDE/ui/modulepage/library" id="bm_id3147304" localize="false"/>
<bookmark xml-lang="en-US" branch="hid/modules/BasicIDE/ui/dialogpage/DialogPage" id="bm_id3547305" localize="false"/>
<bookmark xml-lang="en-US" branch="hid/modules/BasicIDE/ui/dialogpage/@@nowidget@@" id="bm_id3547305" localize="false"/>
<bookmark xml-lang="en-US" branch="hid/modules/BasicIDE/ui/dialogpage/library" id="bm_id3147305" localize="false"/>
<paragraph role="heading" id="hd_id3148944" xml-lang="en-US" level="3">Module/Dialog</paragraph>
<paragraph role="paragraph" id="par_id3145068" xml-lang="en-US"><ahelp hid="modules/BasicIDE/ui/modulepage/library">Lists the existing macros and dialogs.</ahelp></paragraph>
<bookmark xml-lang="en-US" branch="hid/modules/BasicIDE/ui/modulepage/edit" id="bm_id3153779" localize="false"/>
<bookmark xml-lang="en-US" branch="hid/modules/BasicIDE/ui/dialogpage/edit" id="bm_id3153780" localize="false"/>
<paragraph role="heading" id="hd_id3150398" xml-lang="en-US" level="3">Edit</paragraph>
<paragraph role="paragraph" id="par_id3150543" xml-lang="en-US"><ahelp hid="modules/BasicIDE/ui/modulepage/edit">Opens the selected macro or dialog for editing.</ahelp></paragraph>
<embed href="text/shared/00/00000001.xhp#schliessen"/>
<bookmark xml-lang="en-US" branch="hid/modules/BasicIDE/ui/modulepage/newmodule" id="bm_id3156080" localize="false"/>
<paragraph role="heading" id="hd_id3151210" xml-lang="en-US" level="3">New<comment>UFI: i40875</comment></paragraph>
<paragraph role="paragraph" id="par_id3149291" xml-lang="en-US"><ahelp hid="modules/BasicIDE/ui/modulepage/newmodule">Opens the editor and creates a new module.</ahelp></paragraph>
<bookmark xml-lang="en-US" branch="hid/modules/BasicIDE/ui/dialogpage/newdialog" id="bm_id3150496" localize="false"/>
<paragraph role="heading" id="hd_id3145173" xml-lang="en-US" level="3">New</paragraph>
<paragraph role="paragraph" id="par_id3150767" xml-lang="en-US"><ahelp hid="modules/BasicIDE/ui/dialogpage/newdialog">Opens the editor and creates a new dialog.</ahelp></paragraph>
<embed href="text/shared/00/00000001.xhp#loeschen"/>
<paragraph role="heading" id="hd_id3151177" xml-lang="en-US" level="3">Libraries tab page</paragraph><comment>the three tab pages have no Help button, so no need to have three help pages</comment>
<paragraph role="paragraph" id="par_id3156281" xml-lang="en-US"><ahelp hid="modules/BasicIDE/ui/dialogpage/delete">Lets you manage the macro libraries for the current application and any open documents.</ahelp></paragraph>
<bookmark xml-lang="en-US" branch="hid/modules/BasicIDE/ui/libpage/LibPage" id="bm_id3150650" localize="false"/>
<bookmark xml-lang="en-US" branch="hid/modules/BasicIDE/ui/libpage/@@nowidget@@" id="bm_id3150650" localize="false"/>
<bookmark xml-lang="en-US" branch="hid/modules/BasicIDE/ui/libpage/location" id="bm_id3150650" localize="false"/>
<paragraph role="heading" id="hd_id3144760" xml-lang="en-US" level="3">Location</paragraph>
<paragraph role="paragraph" id="par_id3150290" xml-lang="en-US"><ahelp hid="modules/BasicIDE/ui/libpage/location">Select the application or the document containing the macro libraries that you want to organize.</ahelp></paragraph>
<bookmark xml-lang="en-US" branch="hid/modules/BasicIDE/ui/libpage/library" id="bm_id3154910" localize="false"/>
<paragraph role="heading" id="hd_id3159149" xml-lang="en-US" level="3">Library</paragraph>
<paragraph role="paragraph" id="par_id3147500" xml-lang="en-US"><ahelp hid="modules/BasicIDE/ui/libpage/library">Lists the existing macro libraries for the current application and any open documents.</ahelp></paragraph>
<bookmark xml-lang="en-US" branch="hid/modules/BasicIDE/ui/libpage/edit" id="bm_id3156212" localize="false"/>
<paragraph role="heading" id="hd_id3157320" xml-lang="en-US" level="3">Edit</paragraph>
<paragraph role="paragraph" id="par_id3150868" xml-lang="en-US"><ahelp hid="modules/BasicIDE/ui/libpage/edit">Opens the $[officename] Basic editor so that you can modify the selected library.</ahelp></paragraph>
<embed href="text/shared/00/00000001.xhp#schliessen"/>
<bookmark xml-lang="en-US" branch="hid/modules/BasicIDE/ui/libpage/password" id="bm_id3148561" localize="false"/>
<paragraph role="heading" id="hd_id3153104" xml-lang="en-US" level="3">Password</paragraph>
<paragraph role="paragraph" id="par_id3154299" xml-lang="en-US"><ahelp hid="modules/BasicIDE/ui/libpage/password">Assigns or edits the <link href="text/shared/01/06130100.xhp" name="password">password</link> for the selected library.</ahelp></paragraph>
<bookmark xml-lang="en-US" branch="hid/modules/BasicIDE/ui/libpage/new" id="bm_id3153056" localize="false"/>
<paragraph role="heading" id="hd_id3147502" xml-lang="en-US" level="3">New</paragraph>
<paragraph role="paragraph" id="par_id3149560" xml-lang="en-US"><ahelp hid="modules/BasicIDE/ui/libpage/new">Creates a new library.</ahelp></paragraph>
<bookmark xml-lang="en-US" branch="hid/modules/BasicIDE/ui/newlibdialog/NewLibDialog" id="bm_id3154985" localize="false"/>
<bookmark xml-lang="en-US" branch="hid/modules/BasicIDE/ui/newlibdialog/@@nowidget@@" id="bm_id3154985" localize="false"/>
<paragraph role="heading" id="hd_id3153770" xml-lang="en-US" level="3">Name</paragraph>
<paragraph role="paragraph" id="par_id3153726" xml-lang="en-US"><ahelp hid="modules/BasicIDE/ui/newlibdialog/NewLibDialog">Enter a name for the new library or module.</ahelp></paragraph>
<bookmark xml-lang="en-US" branch="hid/modules/BasicIDE/ui/libpage/import" id="bm_id3153951" localize="false"/>
<paragraph role="heading" id="hd_id3154693" xml-lang="en-US" level="3">Import<comment>changed in #i64102</comment></paragraph>
<paragraph role="paragraph" id="par_id3147441" xml-lang="en-US"><ahelp hid="modules/BasicIDE/ui/libpage/import">Locate that $[officename] Basic library that you want to add to the current list, and then click Open.</ahelp></paragraph>
<embed href="text/shared/00/00000001.xhp#loeschen"/>
<paragraph role="heading" level="1" id="par_idN10A39" xml-lang="en-US"><variable id="script">Scripts
</variable></paragraph>
<section id="howtoget">
<embed href="text/shared/00/00000406.xhp#beanshell"/>
<embed href="text/shared/00/00000406.xhp#javascript"/>
</section>
<paragraph role="heading" id="hd_id6963408" xml-lang="en-US" level="2">Export</paragraph>
<paragraph role="paragraph" id="par_id8968169" xml-lang="en-US"><ahelp hid=".">Opens a dialog to export the selected library either as an extension or as a Basic library.</ahelp></paragraph>
<bookmark xml-lang="en-US" branch="hid/cui/ui/scriptorganizer/ScriptOrganizerDialog" id="bm_id7982421" localize="false"/>
<bookmark xml-lang="en-US" branch="hid/cui/ui/scriptorganizer/@@nowidget@@" id="bm_id7982421" localize="false"/>
<paragraph role="heading" id="par_idN109BE" xml-lang="en-US" level="2">Macros</paragraph>
<paragraph role="paragraph" id="par_idN109C2" xml-lang="en-US"><ahelp hid="cui/ui/scriptorganizer/ScriptOrganizerDialog">Select a macro or script from "user", "share", or an open document. To view the available macros or scripts, double-click an entry.</ahelp></paragraph>
<bookmark xml-lang="en-US" branch="hid/cui/ui/scriptorganizer/run" id="bm_id8628498" localize="false"/>
<paragraph role="heading" id="par_idN109CD" xml-lang="en-US" level="3">Run</paragraph>
<paragraph role="paragraph" id="par_idN109D1" xml-lang="en-US"><ahelp hid="cui/ui/scriptorganizer/run">To run a script, select a script in the list, and then click Run.</ahelp></paragraph>
<bookmark xml-lang="en-US" branch="hid/cui/ui/scriptorganizer/create" id="bm_id6405835" localize="false"/>
<paragraph role="heading" id="par_idN109E8" xml-lang="en-US" level="3">Create</paragraph>
<paragraph role="paragraph" id="par_idN109EC" xml-lang="en-US"><ahelp hid="cui/ui/scriptorganizer/create">Creates a new script.</ahelp> The default script editor opens after you enter a name for the script.</paragraph>
<paragraph role="paragraph" id="par_idN10A04" xml-lang="en-US"><ahelp hid="modules/BasicIDE/ui/newlibdialog/NewLibDialog">Enter a name for the script.</ahelp><comment>UFI: called from Create and from Rename</comment></paragraph>
<bookmark xml-lang="en-US" branch="hid/cui/ui/scriptorganizer/edit" id="bm_id1055330" localize="false"/>
<paragraph role="heading" id="par_idN10A2F" xml-lang="en-US" level="3">Edit</paragraph>
<paragraph role="paragraph" id="par_idN10A33" xml-lang="en-US"><ahelp hid="cui/ui/scriptorganizer/edit">Opens the default script editor for your operating system.</ahelp></paragraph>
<bookmark xml-lang="en-US" branch="hid/cui/ui/scriptorganizer/rename" id="bm_id9843745.00000001" localize="false"/>
<paragraph role="heading" id="par_idN10A4B" xml-lang="en-US" level="3">Rename</paragraph>
<paragraph role="paragraph" id="par_idN10A4F" xml-lang="en-US"><ahelp hid="cui/ui/scriptorganizer/rename">Opens a dialog where you can change the name of the selected script.</ahelp></paragraph>
<bookmark xml-lang="en-US" branch="hid/cui/ui/scriptorganizer/delete" id="bm_id4198736" localize="false"/>
<paragraph role="heading" id="par_idN10A66" xml-lang="en-US" level="3">Delete</paragraph>
<paragraph role="paragraph" id="par_idN10A6A" xml-lang="en-US"><ahelp hid="cui/ui/scriptorganizer/delete">Prompts you to delete the selected script.</ahelp></paragraph>
<paragraph role="paragraph" id="par_idN10AE5" xml-lang="en-US">The Macro Selector dialog contains two list boxes, namely the Library list box and the Macro name list box.</paragraph>
<paragraph role="heading" id="par_idN10AFC" xml-lang="en-US" level="3">Library</paragraph>
<paragraph role="paragraph" id="par_idN10B00" xml-lang="en-US">Select a macro or script from "user", "share", or an open document. To view the contents of a library, double-click an entry in the list.</paragraph>
<paragraph role="heading" id="par_idN10B17" xml-lang="en-US" level="3">Macro name</paragraph>
<paragraph role="paragraph" id="par_idN10B1B" xml-lang="en-US">Click a script, and then click a command button.</paragraph>
<paragraph role="heading" level="1" id="par_id381543352048115" xml-lang="en-US">Python</paragraph>
<section id="howtoget">
<embed href="text/shared/00/00000406.xhp#python"/>
</section>
<paragraph role="heading" id="par_idN109as" xml-lang="en-US" level="2">Macros</paragraph>
<paragraph role="paragraph" id="par_idN134C2" xml-lang="en-US"><ahelp hid="cui/ui/scriptorganizer/ScriptOrganizerDialog">Select a macro or script from "user", "share", or an open document.</ahelp></paragraph>
<paragraph role="heading" level="3" id="par_id641543351777423" xml-lang="en-US">Run</paragraph>
<paragraph role="paragraph" id="par_id31543351781865" xml-lang="en-US"><ahelp hid="cui/ui/scriptorganizer/run">To run a script, select a script in the list, and then click Run.</ahelp></paragraph>
<section id="relatedtopics">
<embed href="text/shared/guide/scripting.xhp#scripting"/>
<embed href="text/shared/guide/macro_recording.xhp#macro_recording"/>
</section>
</body>
</helpdocument>
|