Travail avec les styles de cadre

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

Jump to: navigation, search


Les cadres sont souvent utilisés comme conteneurs pour du texte ou des images. Pour conserver une certaine cohérence dans l'apparence des cadres utilisés pour illustrer des propos similaires, c'est une bonne idée de définir des styles de cadre. Par exemple, vous souhaitez que des photos soient enfermées dans un cadre avec une bordure ombrée, les lignes dessinées dans un cadre avec une bordure pleine, des notes en marge avec un cadre sans bordure mais avec un arrière-plan ombré, et ainsi de suite.

Writer fournit plusieurs styles de cadre prédéfinis que vous pouvez modifier à loisir ; et vous pouvez définir de nouveaux styles de cadre. La technique pour définir et appliquer des styles de cadre est similaire à celle des autres styles.

Template:Documentation/Tip

Comment fonctionnent les styles de cadre

Lorsqu'un objet est ajouté à Writer, il est automatiquement inclus dans un cadre d'un type prédéterminé. Le cadre définit comment l'objet est placé dans la page et comment il interagit avec les autres éléments dans le document. Vous pouvez éditer le cadre en modifiant le style de cadre qu'il utilise ou en l'écrasant manuellement lorsque le cadre est ajouté au document.

Parce que les cadres et les objets sont utilisés ensemble, il est parfois facile d'oublier qu'ils sont des éléments séparés. Dans certains cas, tels que les diagrammes, vous pouvez éditer le cadre et l'objet séparément, il est donc important de se rappeler cette distinction.

À la différence des autres éléments qui utilisent des styles, les cadres peuvent être définis uniquement par leur style parce que leur usage est très varié. Plusieurs éléments des cadres, tels que l'ancre et les éléments protégés, doivent être définis manuellement pour des cadres individuels.

Vous ne pouvez pas formater un cadre manuellement lorsque vous sélectionnez Insertion > Cadre. La boîte de dialogue qui s'ouvre contient tous les paramétrages disponibles lorsque les styles de cadres sont définis, ainsi que ceux qui sont disponibles uniquement lorsque le cadre est inséré. Comme pour les autres styles, la façon la plus efficace de formater les cadres se fait à partir de la fenêtre Styles et formatage.

Planning the styles

If you are using a mix of graphics, you may want to define two related styles, one with a border line for graphics with white backgrounds and one without a border for all other backgrounds. You also may want to design one or more frames for text only.

Otherwise, the default frame styles (listed in Table 1) cover most users’ needs. The only significant addition that many users might need is one or more styles for text frames.

Table 1. Various frame styles and their uses

Style Comments and Use
Formula The frame style used for formulas. The default includes AutoSize, which adjusts the size of the frame to the formula.
Frame The default frame style.
Graphics The default style for graphics. The defaults include autosizing to fit the graphic, no text wrap, and a thin border around the frame. These are reasonable defaults, except for the border. Unless the background of the graphic is white and the document’s background also is white, the border usually is unnecessary.
Labels The default style for use with File > New > Labels. It seems to be used by OpenOffice.org automatically and is not intended for users at all.
Marginalia A style for placing a frame beside the left margin. As the name suggests, the Marginalia style is intended for comments added in the margin of text. The style also is useful for creating sideheads—headings against the left margin, which often are used in technical documentation. To set up sideheads, create body-text paragraph styles with two inches or more indentation from the left. Then, place the cursor at the start of a body-text paragraph, add the frame, and apply the Marginalia style.
OLE The default style for OLE objects and floating frames. The default places the frame at the top and center of a body of text.
Watermark The default style for a watermark, a graphic placed as the background to a body of text. The default is a Through wrap, with text passing over the frame and anything in it. The graphic should be faint enough that text still is readable over top of it.

Creating new frame styles

You can access frame settings by selecting New or Modify in the Styles and Formatting window for a frame style.

Frame settings are available from the following tabbed pages:

  • Type page: sets the size and position of the frame. One of the most useful options here is AutoSize, which automatically adjusts the frame to the object it contains. If the frame style is one used automatically, then this option should be selected.
  • Options page: sets whether the contents of the frame are printed and able to be edited in a read-only document. The tab also sets the text direction, which is useful if you are using the frame for contents in a language that uses right-to-left text direction.
  • Wrap page: sets how text is positioned in relation to the frame and how close text comes to a frame. If you want the frame contents to stand out from the paragraphs around it, set the wrap to None. This probably is the single most important tab for frames.
  • Background page: sets the background color or graphic. This tab is useful mostly for text frames in complex page layouts, in which a text frame has an appearance different from the general background of the page.
  • Border page: sets the line around the frame, if any. Many beginning designers make the mistake of adding a border to every frame. However, when a colored background distinctly marks the division between the frame’s contents and the rest of the page, borders are unnecessary.
  • Columns page: this tab can be ignored unless the frame is being used for text. The page is the same that is used to set up a page style, and its parameters are described in the section Columns page.
  • Macro page: sets a macro to use with the frame in order to trigger some action when the user interacts with the frame. These options are useful only in an on-line Writer or HTML document.


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