~ubuntu-branches/ubuntu/trusty/gnome-doc-utils/trusty

« back to all changes in this revision

Viewing changes to doc/mallard/C/mal_inline_guiseq.page

  • Committer: Bazaar Package Importer
  • Author(s): Didier Roche
  • Date: 2009-06-15 11:03:13 UTC
  • mfrom: (1.1.24 upstream)
  • Revision ID: james.westby@ubuntu.com-20090615110313-b4vn2m00muam19tc
Tags: 0.17.1-0ubuntu1
* New upstream release: (LP: #387210)
  - Integrated Mallard support
  - Fix file-not-found warnings from config.status (Christian Persch)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<page xmlns="http://projectmallard.org/1.0/"
 
2
      type="topic"
 
3
      id="mal_inline_guiseq">
 
4
 
 
5
<info>
 
6
  <link type="guide" xref="mal_inline#elements"/>
 
7
  <link type="seealso" xref="mal_inline_gui"/>
 
8
 
 
9
  <revision version="0.1" date="2008-12-16" status="review"/>
 
10
 
 
11
  <credit type="author">
 
12
    <name>Shaun McCance</name>
 
13
    <email>shaunm@gnome.org</email>
 
14
  </credit>
 
15
  <copyright>
 
16
    <year>2008-2009</year>
 
17
    <name>Shaun McCance</name>
 
18
  </copyright>
 
19
 
 
20
  <include href="legal.xml" xmlns="http://www.w3.org/2001/XInclude" />
 
21
 
 
22
  <desc>Mark up a sequence of interface controls to navigate.</desc>
 
23
</info>
 
24
 
 
25
<title>GUI Sequences</title>
 
26
 
 
27
<synopsis><code mime="application/relax-ng-compact-syntax">
 
28
mal_inline_guiseq = element guiseq {
 
29
  attribute style { xsd:NMTOKENS } ?,
 
30
  attribute * - (mal:* | local:*) { text } *,
 
31
 
 
32
  mixed { <link xref="mal_inline_gui">mal_inline_gui</link> + }
 
33
}
 
34
</code></synopsis>
 
35
 
 
36
<p>Use the <code>guiseq</code> element to mark up a sequence of graphical
 
37
interface elements.  This is typically used to present a sequence of menu
 
38
items.</p>
 
39
 
 
40
 
 
41
<!-- BEGIN notes -->
 
42
<section id="notes">
 
43
  <title>Notes</title>
 
44
  <list>
 
45
    <item><p>The <code>guiseq</code> element can contain a mixture of text and
 
46
    <code xref="mal_inline_gui">gui</code> elements.</p></item>
 
47
 
 
48
    <item><p>The <code>guiseq</code> element can occur in any
 
49
    general inline context, including inside most
 
50
    <link xref="mal_inline">inline elements</link>, some
 
51
    <link xref="mal_block#basic">basic block elements</link>, and certain
 
52
    <link xref="mal_info">informational elements</link>.</p></item>
 
53
 
 
54
    <item><p>The <code>style</code> attribute takes a space-separated list of
 
55
    style hints.  Processing tools should adjust their behavior according to
 
56
    those style hints they understand.</p></item>
 
57
 
 
58
    <item><p>The <code>guiseq</code> element can have attributes from external
 
59
    namespaces.  See <link xref="mal_external"/> for more information
 
60
    on external-namespace attributes.</p></item>
 
61
  </list>
 
62
</section>
 
63
<!-- END notes -->
 
64
 
 
65
 
 
66
<!-- BEGIN examples -->
 
67
<section id="examples">
 
68
  <title>Examples</title>
 
69
 
 
70
  <p>Use <code>guiseq</code> to mark up a sequence of menu items:</p>
 
71
 
 
72
  <example>
 
73
    <code><![CDATA[
 
74
Select <guiseq><gui>File</gui><gui>New</gui></guiseq> to open
 
75
a new document.
 
76
]]></code>
 
77
    <p>Select <guiseq><gui>File</gui><gui>New</gui></guiseq> to open
 
78
    a new document.</p>
 
79
  </example>
 
80
</section>
 
81
<!-- END examples -->
 
82
 
 
83
 
 
84
<!-- BEGIN processing -->
 
85
<section id="processing">
 
86
  <title>Processing Expectations</title>
 
87
 
 
88
  <p>Each of the child <code>key</code> elements and text nodes, except
 
89
  whitespace-only text nodes, is displayed as described below, adding a
 
90
  separator between them.  The exact separator may vary according to the
 
91
  language and style preferences, but it will typically be some sort of
 
92
  right-pointing arrow or triangle, or left-pointing for right-to-left
 
93
  languages.</p>
 
94
 
 
95
  <p>Child <code>gui</code> elements are shown as normal.  Text nodes
 
96
  have their whitespace normalized to strip leading and trailing spaces.
 
97
  Text nodes may be rendered using a font variation.</p>
 
98
</section>
 
99
<!-- END processing -->
 
100
 
 
101
 
 
102
<!-- BEGIN comparison -->
 
103
<section id="comparison">
 
104
  <title>Comparison to Other Formats</title>
 
105
  <p>The <code>guiseq</code> element is similar to the
 
106
  <code href="http://www.docbook.org/tdg/en/html/menuchoice.html">menuchoice</code>
 
107
  element in DocBook.  Since Mallard does not provide different elements for
 
108
  different types of interface elements, the contents of <code>guiseq</code>
 
109
  are all <code>gui</code> elements or text.  Currently, Mallard does not
 
110
  provide a way to encode shortcut keys like the
 
111
  <code href="http://www.docbook.org/tdg/en/html/shortcut.html">shortcut</code>
 
112
  element in DocBook.  It is recommended that shortcuts, when necessary, be
 
113
  written into prose separately.</p>
 
114
</section>
 
115
<!-- END comparison -->
 
116
 
 
117
</page>