La fenêtre Styles et formatage

From Apache OpenOffice Wiki
< FR‎ | Documentation‎ | Writer Guide
Revision as of 19:22, 20 April 2009 by Sgauti (Talk | contribs)

Jump to: navigation, search


Les styles sont mis à disposition à travers un fenêtre flottante ou ancrable appelée Styles et Formatage. Cette fenêtre est centrale dans la gestion des styles. Ne vous inquiétez pas si, au début, le contenu de cette section ou celui du chapitre suivant semble obscure pendant que vous la réalisez. Ce guide décrit comment utiliser toutes ces fonctions.

Les boutons de la fenêtre Styles et formatage.

Pour ouvrir la fenêtre Styles et formatage, faites l'une des actions suivantes :

  • Cliquez sur l'icône Styles3Icon.png situé à l'extrémité gauche de la barre de formatage.
  • Sélectionnez Format > Styles et formatage.
  • Appuyer sur F11.

Template:Documentation/Tip

Bases pour la sélection d'un style

Les cinq premières icônes en haut de la fenêtre Styles et formatage permettent de sélectionner la catégorie de styles sur laquelle on souhaite travailler. Cliquez sur l'une de ces icônes pour afficher la liste de styles appartenant à cette catégorie, telle que styles de paragraphe ou de caractère, dans la fenêtre principale.

Pour appliquer un style caractère à du texte existant, sélectionnez le texte et double cliquez sur le nom du style dans la liste Styles de caractère. Pour appliquer un autre style, mettez le curseur dans le paragraphe, le cadre ou la page que vous souhaitez modifier et double cliquez sur le nom du style dans la section correspondante. Vous pouvez sélectionner plus d'un paragraphe ou plus d'un cadre et leur appliquer le même style en une seule fois.

Utiliser le mode Tout remplir

La sixième icône en haut de la fenêtre Styles et formatage active le mode Tout remplir. Utilisez le mode Tout remplir pour appliquer un style à plusieurs zones différentes rapidement sans avoir à revenir à la fenêtre Styles et formatage et double cliquer à chaque fois. Cette méthode est utile pour formater plusieurs paragraphes, mots ou autres éléments, éparpillés dans le document, avec le même style et peut être plus simple d'utilisation que d'effectuer d'abord une sélection multiple et d'appliquer ensuite le style à chacun d'eux.

  1. Ouvrez la fenêtre Styles et formatage et sélectionnez un style.
  2. Cliquez sur l'icône Mode tout remplir FillFormatIcon.png.
  3. Pour appliquer un style de paragraphe, de page ou de cadre, survolez le paragraphe, la page ou le cadre avec la souris et cliquez. Pour appliquer un style de caractère, maintenez le bouton de la souris pendant la sélection des caractères. Cliquer sur un mot applique le style de caractère à ce mot.
  4. Répétez l'étape 3 jusqu'à ce que vous ayez fait toutes les modifications au style.
  5. Pour quitter le Mode tout remplir, cliquez de nouveau sur l'icône ou appuyez sur la touche Échap.
Documentation caution.png Lorsque ce mode est actif, un clic avec le bouton droit n'importe où dans le document annule la dernière action du Mode tout remplir. Faites attention de ne pas faire un clic avec le bouton droit et annuler ainsi une action que vous souhaitiez garder.

New Style from Selection, Update Style, and Load Styles functions

The last button in the toolbar of the Styles and Formatting window is a multipurpose button that gives access to three different functions: New Style from Selection, Update Style, and Load Styles.

Using New Style from Selection

Use the first function of the multipurpose button to create a new style from the formatting of an object in the current document. For instance, you can change the formatting of a paragraph or frame until it appears as you like, and then you can turn that object’s formatting into a new style. This procedure can save time because you do not have remember all the formatting settings you want, as is necessary when creating a new style with the Style dialog box. Besides, unlike when setting the formatting parameters in dialog box pages as you will learn to do later, you can immediately see how the objects will look like when formatted with the style you are creating.

Follow these steps to create a new style from a selection:

  1. Change the formatting of the object (paragraph, frame, etc.) to your liking.
  2. From the icons at the top of the window, choose the type of style to create (paragraph, character, and so on).
  3. In the document, select the item to save as a style.
  4. Go back to the Styles and Formatting window and click the New Style from Selection icon.

In the Create Style dialog box, enter a name for the new style. The list shows the names of existing custom styles of the selected type, if any. Click OK to save the new style.

Naming a new style created from a selection.

Update Style (from a selection)

Let’s use paragraph styles as an example.

  1. Create a new paragraph (or modify an existing paragraph) and edit all the properties you want to go into the style (such as indentation, font properties, alignment, among others).
Documentation caution.png Make sure that there are unique properties in this paragraph. For example, if there are two different font sizes in the paragraph selected to update the style, that particular property will not be updated.
  1. Select the paragraph by clicking anywhere in the paragraph.
  2. In the Styles and Formatting window, select the style you want to update (single-click, not double-click) and then click on the New Style from Selection icon and select Update Style.
Updating a style from a selection.

The procedure to update another type of style (character, page, or frame styles) is the same. Just select the item in question, select the style you want to update, and choose Update Style.

Load Styles (from a template or document)

The last option in the New Style from Selection icon is used to copy styles into the current document by loading them from a template or another document. This method copies all styles, or groups of styles, at one time.

  1. Open the document to copy styles into.
  2. In the Styles and Formatting window, click on the New Style from Selection icon and then on Load Styles.
  3. In the Load Styles dialog box, find and select the template to copy styles from. Click on the From File button if the styles you want are contained in a text document rather than a template. In this case, a standard file selection dialog box opens up, allowing you to select the desired document.
  4. Select the check boxes for the types of styles to be copied. If you select Overwrite, the styles being copied will replace any styles of the same names in the target document.
  5. Click OK to copy the styles.
Loading styles from a template.

Using the visible styles filters

At the bottom of the Styles and Formatting window, use the drop-down menu to select a filtering criterion for the contents of the main body of the window. Normally, you will find that only a handful of styles are needed in any given document, and it makes sense to have only these styles shown.

So, at the beginning of the writing process, you may want to have access to all the available styles (by selecting All Styles). However, as the document develops, it is useful to reduce the size of the list displayed to only the styles already in use (by selecting Applied Styles). If you work on a document where you want to apply special-purpose styles only (such as those styles used in writing this user guide), select instead Custom Styles. The Hierarchical Styles view is most useful when modifying styles as it reveals which styles are linked together. This topic is discussed in more detail in Chapter 7 (Working with Styles).

If you select the Paragraph Styles view in the Styles and Formatting window, the drop-down menu contains many more filtering options so you can view, for example, only Text Styles, Special Styles, and so on.

Drag-and-drop a selection to create a style

Another little known property of the Styles and Formatting window is the capability of creating a new style with a simple drag-and-drop of a text selection into the Styles and Formatting window.

  1. Open the Styles and Formatting window.
  2. Select the style category you are going to create (for example a character style) using one of the five icons in the top left part of the window.
  3. Select the object you want to base the style on and drag it to the Styles and Formatting window. The cursor changes its shape indicating whether the operation is possible or not.
  4. In the Create Style dialog box, enter a name for the new style. The list shows the names of existing custom styles of the selected type, if any. Click OK to save the new style.
Documentation caution.png You cannot use the drag-and-drop method to create a custom page style.


Content on this page is licensed under the Creative Common Attribution 3.0 license (CC-BY).
Personal tools