Difference between revisions of "Template:SpecUIElement/MenuHeading"

From Apache OpenOffice Wiki
Jump to: navigation, search
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>'''Menu'''
+
<includeonly>'''Menu Item(s)'''
 
{| border="2" cellpadding="4" cellspacing="0" style="margin: 1em 1em 1em 0;  border: 1px #cccccc solid; border-collapse: collapse; width: 100%"
 
{| border="2" cellpadding="4" cellspacing="0" style="margin: 1em 1em 1em 0;  border: 1px #cccccc solid; border-collapse: collapse; width: 100%"
 
|- style="background-color:#dddddd;"
 
|- style="background-color:#dddddd;"
Line 8: Line 8:
  
 
=== Looks Like ===
 
=== Looks Like ===
 +
 
{{SpecUIElement/MenuHeading}}
 
{{SpecUIElement/MenuHeading}}
 
|}
 
|}
Line 13: Line 14:
 
=== Example ===
 
=== Example ===
 
{{SpecUIElement/MenuHeading}}
 
{{SpecUIElement/MenuHeading}}
{{SpecUIElement/MenuRow|en-US=File|comment=This is the top level entry point, in the main menu bar, for all file related actions.}}
+
{{SpecUIElement/MenuRow|text=File|comment=This is the top level entry point, in the main menu bar, for all file related actions.}}
{{SpecUIElement/MenuRow|en-US=|sub-item=Open|kbd=Ctrl+O|comment=invokes the [[File Open Dialog]], letting the user choose a document to load in OpenOffice.org.}}
+
{{SpecUIElement/MenuRow|text=|sub-item=Open|kbd=Ctrl+O|comment=invokes the [[File Open Dialog]], letting the user choose a document to load in OpenOffice.org.}}
{{SpecUIElement/MenuRow|en-US=|sub-item=Save|kbd=Ctrl+S|comment=saves the current document. Only available when the document is actually modified.}}
+
{{SpecUIElement/MenuRow|text=|sub-item=Save|kbd=Ctrl+S|comment=saves the current document. Only available when the document is actually modified.}}
 
|}
 
|}
  
Line 21: Line 22:
 
  <pre>
 
  <pre>
 
  {{SpecUIElement/MenuHeading}}
 
  {{SpecUIElement/MenuHeading}}
  {{SpecUIElement/MenuRow|en-US=File|comment=This is the top level entry point, in the main menu bar, for all file related actions.}}
+
  {{SpecUIElement/MenuRow|text=File|comment=This is the top level entry point, in the main menu bar, for all file related actions.}}
  {{SpecUIElement/MenuRow|en-US=|sub-item=Open|kbd=Ctrl+O|comment=invokes the [[File Open Dialog]], letting the user choose a document to load in OpenOffice.org.}}
+
  {{SpecUIElement/MenuRow|text=|sub-item=Open|kbd=Ctrl+O|comment=invokes the [[File Open Dialog]], letting the user choose a document to load in OpenOffice.org.}}
  {{SpecUIElement/MenuRow|en-US=|sub-item=Save|kbd=Ctrl+S|comment=saves the current document. Only available when the document is actually modified.}}
+
  {{SpecUIElement/MenuRow|text=|sub-item=Save|kbd=Ctrl+S|comment=saves the current document. Only available when the document is actually modified.}}
 
  |}
 
  |}
 
</pre>
 
</pre>
Line 34: Line 35:
 
* [[Template:SpecUIElement/MenuRow]]
 
* [[Template:SpecUIElement/MenuRow]]
 
* [[Template:SpecUIElement/Menu]]
 
* [[Template:SpecUIElement/Menu]]
 
+
[[Category:Specification Particle Templates]]
 
</noinclude>
 
</noinclude>

Latest revision as of 21:28, 28 November 2007


Use this template, together with the MenuRow template, to create, within a specification document, a table describing multiple menu items.

Looks Like

Menu Item(s)

Item Sub Item Sub Item KBD Shortcut Icon Comment

Example

Menu Item(s)

Item Sub Item Sub Item KBD Shortcut Icon Comment
File This is the top level entry point, in the main menu bar, for all file related actions.
Open Ctrl+O invokes the File Open Dialog, letting the user choose a document to load in OpenOffice.org.
Save Ctrl+S saves the current document. Only available when the document is actually modified.

was produced by this code:

 {{SpecUIElement/MenuHeading}}
 {{SpecUIElement/MenuRow|text=File|comment=This is the top level entry point, in the main menu bar, for all file related actions.}}
 {{SpecUIElement/MenuRow|text=|sub-item=Open|kbd=Ctrl+O|comment=invokes the [[File Open Dialog]], letting the user choose a document to load in OpenOffice.org.}}
 {{SpecUIElement/MenuRow|text=|sub-item=Save|kbd=Ctrl+S|comment=saves the current document. Only available when the document is actually modified.}}
 |}

Parameters

n/a

See Also

Personal tools