issue64:tutolibre
Différences
Ci-dessous, les différences entre deux révisions de la page.
Prochaine révision | Révision précédente | ||
issue64:tutolibre [2012/09/13 22:59] – créée fredphil91 | issue64:tutolibre [2012/10/08 23:05] (Version actuelle) – nouvelles traduction de "you will want to" et "you don't want to" cqfd93 | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
+ | ** | ||
I recently got a request for a tutorial on LibreOffice macros, so we will take a short break from our work in Impress to briefly cover macros. Macros allow you to automate repetitious actions like typing a letterhead. This frees you from having to type or do the same task over and over again. In this how-to, we will cover how to record macros and use them. LibreOffice has a Basic scripting language which is beyond the scope of this particular how-to. Perhaps we will revisit macros at a later time to discuss the Basic scripting language. | I recently got a request for a tutorial on LibreOffice macros, so we will take a short break from our work in Impress to briefly cover macros. Macros allow you to automate repetitious actions like typing a letterhead. This frees you from having to type or do the same task over and over again. In this how-to, we will cover how to record macros and use them. LibreOffice has a Basic scripting language which is beyond the scope of this particular how-to. Perhaps we will revisit macros at a later time to discuss the Basic scripting language. | ||
NOTE: You can find information on LibreOffice Basic in the help, or download the documentation at http:// | NOTE: You can find information on LibreOffice Basic in the help, or download the documentation at http:// | ||
+ | ** | ||
+ | J'ai récemment reçu une demande de tutoriel sur les macros LibreOffice ; nous allons donc faire une courte pause dans notre travail dans Présentation pour expliquer brièvement les macros. Les macros vous permettent d' | ||
+ | |||
+ | REMARQUE : Vous pouvez trouver des informations sur LibreOffice Basic dans l'aide ou télécharger la documentation sur http:// | ||
+ | |||
+ | ** | ||
Enabling Macro Recording | Enabling Macro Recording | ||
Ligne 12: | Ligne 19: | ||
As a demonstration of recording a macro, we will create a macro called Closing. Every time you write a letter, you have to end with a closing, so why not make it into a macro. | As a demonstration of recording a macro, we will create a macro called Closing. Every time you write a letter, you have to end with a closing, so why not make it into a macro. | ||
+ | ** | ||
+ | Activer l' | ||
+ | |||
+ | Par défaut, l' | ||
+ | |||
+ | Enregistrer une macro | ||
+ | |||
+ | En mode d' | ||
+ | |||
+ | Comme démonstration d' | ||
+ | |||
+ | ** | ||
Start with a new text document. Tools > Macros > Record Macro to start the macro recorder. The macro recorder toolbar will show. There is only one choice on this toolbar, Stop Recording. Press the Tab key on your keyboard three or four times (this should place the cursor close to the center of the page). Type Best wishes, love, or your favorite closing. Press Enter twice to leave room for a signature. Press Tab the same number of times you did before. Change the text to bold by clicking the Bold button on the formatting toolbar, and type in your name. Lastly, let's add a title under the name. Press Enter, Tab the same number of times as before, click the Bold button to turn off bold, and click the Italic button to change to italics. Type in your title. Press Enter. Click on Stop Recording. | Start with a new text document. Tools > Macros > Record Macro to start the macro recorder. The macro recorder toolbar will show. There is only one choice on this toolbar, Stop Recording. Press the Tab key on your keyboard three or four times (this should place the cursor close to the center of the page). Type Best wishes, love, or your favorite closing. Press Enter twice to leave room for a signature. Press Tab the same number of times you did before. Change the text to bold by clicking the Bold button on the formatting toolbar, and type in your name. Lastly, let's add a title under the name. Press Enter, Tab the same number of times as before, click the Bold button to turn off bold, and click the Italic button to change to italics. Type in your title. Press Enter. Click on Stop Recording. | ||
The Basic Macros dialog box will show. Select the library where you want to save your macro, usually My Macros. Enter a name in the Macro name textbox, and click the Save button. | The Basic Macros dialog box will show. Select the library where you want to save your macro, usually My Macros. Enter a name in the Macro name textbox, and click the Save button. | ||
+ | ** | ||
+ | Commencez avec un nouveau document texte. Outils > Macros > Enregistrer une Macro pour démarrer l' | ||
+ | |||
+ | La boite de dialogue Macros LibreOffice Basic va apparaître. Choisissez le répertoire où vous souhaitez enregistrer votre macro, habituellement Mes macros. Entrez un nom dans le champ Nom de la macro, puis cliquez sur le bouton Enregistrer. | ||
+ | |||
+ | ** | ||
Testing Your Macro | Testing Your Macro | ||
Ligne 25: | Ligne 50: | ||
If you use a macro a lot, you don't want to go to Tools > Macros > Run Macro every time you need to use the macro. LibreOffice allows you to add your macros to menus, toolbars, keyboard shortcuts, and application events. You can add your macros through Tools > Customize. | If you use a macro a lot, you don't want to go to Tools > Macros > Run Macro every time you need to use the macro. LibreOffice allows you to add your macros to menus, toolbars, keyboard shortcuts, and application events. You can add your macros through Tools > Customize. | ||
+ | ** | ||
+ | Test de votre macro | ||
+ | |||
+ | Vous devez tester votre macro pour vous assurer que tout est enregistré correctement, | ||
+ | Si quelque chose ne vous convient pas, vous pouvez supprimer la macro et en créer une autre. Pour supprimer une macro, Outils > Macros > Gérer les macros > LibreOffice Basic. Trouvez votre macro dans le répertoire, | ||
+ | |||
+ | Créer un raccourci vers votre macro | ||
+ | |||
+ | Si vous utilisez souvent une macro, vous ne souhaitez sûrement pas aller dans Outils > Macros > Exécuter la macro, à chaque fois que vous en avez besoin. LibreOffice vous permet d' | ||
+ | |||
+ | ** | ||
As an example, let's add a menu named Macros in Writer and add our Closing macro to it. Tools > Customize. Select the Menus tab. Click the New button. Name the new menu Macros. Use the arrow buttons to move it from the bottom to the position before Help. Click OK. Your new menu is empty right now. Click on the Add button. Under category, find LibreOffice Macros and navigate through the tree to find your macro. Select the Closing macro and click the add button. The macro is added to the menu. Click on the Close button. Click OK on the Customize dialog box. You will now have a menu item named Macros, and, under it, the Closing macro. Now, you can select it from the menu when you need it, which is faster than having to navigate to Run Macro. | As an example, let's add a menu named Macros in Writer and add our Closing macro to it. Tools > Customize. Select the Menus tab. Click the New button. Name the new menu Macros. Use the arrow buttons to move it from the bottom to the position before Help. Click OK. Your new menu is empty right now. Click on the Add button. Under category, find LibreOffice Macros and navigate through the tree to find your macro. Select the Closing macro and click the add button. The macro is added to the menu. Click on the Close button. Click OK on the Customize dialog box. You will now have a menu item named Macros, and, under it, the Closing macro. Now, you can select it from the menu when you need it, which is faster than having to navigate to Run Macro. | ||
Ligne 31: | Ligne 67: | ||
Next time, we are back to Impress and working with slides. | Next time, we are back to Impress and working with slides. | ||
+ | ** | ||
+ | |||
+ | À titre d' | ||
+ | |||
+ | C' | ||
+ | |||
+ | La prochaine fois, nous reviendrons à Présentation et au travail sur des diapositives. | ||
issue64/tutolibre.1347569967.txt.gz · Dernière modification : 2012/09/13 22:59 de fredphil91