]> git.lyx.org Git - lyx.git/blob - lib/ui/default.ui
Use contains() instead of strchr().
[lyx.git] / lib / ui / default.ui
1 # This is the default LyX user interface definition file. The syntax
2 # should be straightforward enough. The menubar "main_nobuffer" (if it
3 # exists) is used when there is no buffer open; otherwise, the menubar
4 # "main" is used. 
5
6 Menuset
7
8     Menubar "main_nobuffer"
9         Submenu "File|F" "file_nobuffer"
10         Submenu "Edit|E" "edit_nobuffer"
11         Submenu "Help|H" "help"
12     End
13
14     Menubar "main"
15         Submenu "File|F" "file"
16         Submenu "Edit|E" "edit"
17         Submenu "Insert|I" "insert"
18         Submenu "Layout|L" "layout"
19         Submenu "View|V" "view"
20         Submenu "Navigate|N" "navigate"
21         Submenu "Documents|D" "documents"
22         Submenu "Help|H" "help"
23     End
24
25 #
26 # FILE MENU
27 #
28     Menu "file_nobuffer"
29         Item "New...|N" "buffer-new"
30         Item "New from Template...|T" "buffer-new-template"
31         Item "Open...|O" "buffer-open"
32         Separator
33         Submenu "Import|I" "file_import"
34         Separator
35         Item "Exit|x" "lyx-quit"
36         Separator
37         Lastfiles
38     End
39
40     Menu "file"
41         Item "New...|N" "buffer-new"
42         Item "New from Template...|T" "buffer-new-template"
43         Item "Open...|O" "buffer-open"
44         Separator
45         Item "Close|C" "buffer-close"
46         Item "Save|S" "buffer-write"
47         Item "Save As...|A" "buffer-write-as"
48         Item "Revert to Saved|d" "buffer-reload"
49         Submenu "Version Control|V" "file_vc"
50         Separator
51         Submenu "Import|I" "file_import"
52         Submenu "Export|E" "file_export"
53         Item "Print...|P" "buffer-print"
54         OptItem "Fax...|F" "buffer-export fax"
55         Separator
56         Item "Exit|x" "lyx-quit"
57         Separator
58         Lastfiles
59     End
60
61     Menu "file_vc"
62         OptItem "Register|R" "vc-register"
63         OptItem "Check In Changes|I" "vc-check-in"
64         OptItem "Check Out for Edit|O" "vc-check-out"
65         OptItem "Revert to Last Version|L" "vc-revert"
66         OptItem "Undo Last Check In|U" "vc-undo-last"
67         OptItem "Show History|H" "vc-history"
68     End
69
70     Menu "file_import"
71         ImportFormats
72     End
73
74     Menu "file_export"
75         ExportFormats
76     End
77
78 #
79 # EDIT MENU
80 #
81     Menu "edit_nobuffer"
82         Item "Preferences...|P" "dialog-preferences"
83         Item "Reconfigure|R" "reconfigure"
84     End
85
86     Menu "edit"
87         Item "Undo|U" "undo"
88         Item "Redo|d" "redo"
89         Separator
90         Item "Cut|C" "cut"
91         Item "Copy|o" "copy"
92         Item "Paste|a" "paste"
93         Submenu "Paste External Selection|x" "edit_paste"
94         Separator
95         Item "Find & Replace...|F" "find-replace"
96         Submenu "Tabular|T" "edit_tabular"
97         Submenu "Floats & Insets|I" "edit_floats"
98         Item "Math Panel|l" "math-panel"
99         Separator
100         Item "Spellchecker...|S" "spellchecker"
101         Item "Check TeX|h" "buffer-chktex"
102         Item "Remove All Error Boxes|E" "error-remove-all"
103         Separator
104         Item "Preferences...|P" "dialog-preferences"
105         Item "Reconfigure|R" "reconfigure"
106     End
107
108     Menu "edit_paste"
109         Item "as Lines|L" "primary-selection-paste"
110         Item "as Paragraphs|P" "primary-selection-paste paragraph"
111     End
112
113     Menu "edit_floats"
114         Item "Open/Close|O" "open-stuff"
115         Item "Melt|M" "melt"
116         Item "Open All Figures/Tables|F" "floats-operate openfig"
117         Item "Close All Figures/Tables|T" "floats-operate closefig"
118         Item "Open All Footnotes/Marginal Notes|A" "floats-operate openfoot"
119         Item "Close All Footnotes/Marginal Notes|C" "floats-operate closefoot"
120     End
121
122     Menu "edit_tabular"
123         Item "Multicolumn|M" "tabular-feature multicolumn"
124         Separator
125         Item "Line Top|T" "tabular-feature toggle-line-top"
126         Item "Line Bottom|B" "tabular-feature toggle-line-bottom"
127         Item "Line Left|L" "tabular-feature toggle-line-left"
128         Item "Line Right|R" "tabular-feature toggle-line-right"
129         Separator
130         Item "Align Left|e" "tabular-feature align-left"
131         Item "Align Center|C" "tabular-feature align-center"
132         Item "Align Right|i" "tabular-feature align-right"
133         Separator
134         Item "V.Align Top|o" "tabular-feature valign-top"
135         Item "V.Align Center|n" "tabular-feature valign-center"
136         Item "V.Align Bottom|V" "tabular-feature valign-bottom"
137         Separator
138         Item "Append Row|A" "tabular-feature append-row"
139         Item "Append Column|u" "tabular-feature append-column"
140         Separator
141         Item "Delete Row|w" "tabular-feature delete-row"
142         Item "Delete Column|D" "tabular-feature delete-column"
143     End
144
145 #
146 # INSERT MENU
147 #
148     Menu "insert"
149         Item "Math Formula|h" "math-mode"
150         Item "Display Formula|D" "math-display"
151         Separator
152         Submenu "Special Character|S" "insert_special"
153         Item "Citation Reference...|C" "citation-insert"
154         Item "Cross Reference...|R" "reference-insert"
155         Item "Label...|L" "label-insert"
156         Item "Footnote|F" "footnote-insert"
157         Item "Marginal Note|M" "marginpar-insert"
158         Item "Index Entry...|I" "index-insert"
159         Item "Index Entry of Preceeding Word|W" "index-insert-last"
160         Item "URL...|U" "url-insert"
161         Item "Note...|N" "note-insert"
162         Submenu "Lists & TOC|O" "insert_toc"
163         Separator
164         Item "Figure...|g" "figure-insert"
165         Item "Tabular...|b" "dialog-tabular-insert"
166         Submenu "Floats|a" "insert_floats"
167         Separator
168         Item "Include File|e" "buffer-child-insert"
169         Submenu "Insert File|t" "insert_file"
170         Item "External Material...|x" "external-insert"
171     End
172
173     Menu "insert_special"
174         Item "Superscript|S" "command-sequence math-insert ^;math-mode;"
175         Item "Subscript|u" "command-sequence math-insert _;math-mode;"
176         Item "HFill|H" "hfill-insert"
177         Item "Hyphenation Point|P" "hyphenation-point-insert"
178         Item "Protected Blank|B" "protected-space-insert"
179         Item "Linebreak|L" "break-line"
180         Item "Ellipsis|i" "dots-insert"
181         Item "End of Sentence|E" "end-of-sentence-period-insert"
182         Item "Ordinary Quote|Q" "quote-insert"
183         Item "Menu Separator|M" "menu-separator-insert"
184     End
185
186     Menu "insert_floats"
187         Item "Figure Float|F" "buffer-float-insert figure"
188         Item "Table Float|T" "buffer-float-insert table"
189         Item "Wide Figure Float|W" "buffer-float-insert wide-fig"
190         Item "Wide Table Float|d" "buffer-float-insert wide-tab"
191         Separator
192         Item "Algorithm Float|A" "buffer-float-insert algorithm"
193     End
194
195     Menu "insert_toc"
196         Item "Table of Contents|C" "toc-insert"
197         Item "List of Figures|F" "lof-insert"
198         Item "List of Tables|T" "lot-insert"
199         Item "List of Algorithms|A" "loa-insert"
200         Item "Index List|I" "index-print"
201         Item "BibTeX Reference...|B" "bibtex-insert"
202     End
203
204     Menu "insert_file"
205         Item "LyX Document...|X" "file-insert"
206         Item "Ascii as Lines...|L" "file-insert-ascii lines"
207         Item "Ascii as Paragraphs...|P" "file-insert-ascii paragraphs"
208     End
209
210 #
211 # LAYOUT MENU
212 #
213     Menu "layout"
214         Item "Character...|C" "layout-character"
215         Item "Paragraph...|P" "layout-paragraph"
216         Item "Document...|D" "layout-document"
217         OptItem "Tabular...|T" "layout-tabular"
218         Separator
219         Item "Emphasize Style|E" "font-emph"
220         Item "Noun Style|N" "font-noun"
221         Item "Bold Style|B" "font-bold"
222         Item "TeX Style|X" "tex-mode"
223         Separator
224         Item "Change Environment Depth|v" "depth-increment"
225         Item "LaTeX Preamble...|L" "layout-preamble"
226         Item "Toggle Appendix|A" "appendix"
227         Separator
228         Item "Save Layout as Default|S" "layout-save-default"
229     End
230
231
232 #
233 # VIEW MENU
234 #
235     Menu "view"
236         ViewFormats
237         OptItem "Build Program|B" "build-program"
238         Submenu "Update|U" "update"
239         Separator
240         Item "LaTeX Logfile|L" "latex-view-log"
241         Item "Table of Contents|T" "toc-view"
242     End
243
244     Menu "update"
245         UpdateFormats
246     End
247
248 #
249 # NAVIGATE MENU
250 #
251     Menu "navigate"
252         Toc
253         Separator
254         Item "Error|E" "error-next"
255         Item "Note|N" "note-next"
256     End
257
258     Menu "documents"
259         Documents
260     End
261
262 #
263 # HELP MENU
264 #
265     Menu "help"
266         Item "Introduction|I" "help-open Intro"
267         Item "Tutorial|T" "help-open Tutorial"
268         Item "User's Guide|U" "help-open UserGuide"
269         Item "Extended Features|E" "help-open Extended"
270         Item "Customization|C" "help-open Customization"
271         Item "Reference Manual|R" "help-open Reference"
272         Item "FAQ|F" "help-open FAQ"
273         Item "Table of Contents|a" "help-open TOC"
274         Item "Known Bugs|K" "help-open BUGS"
275         Item "LaTeX Configuration|L" "help-open LaTeXConfig"
276         Separator
277         Item "Copyright and Warranty...|o" "help-copyright"
278         Item "Credits...|d" "help-credits"
279         Item "Version...|V" "help-version"
280     End
281
282 End
283
284 # Setup your favorite Toolbar here:
285 # Only three commands are allowed inside the begin_toolbar and end_toolbar
286 # directives: 
287 #   Icon "<action> [<parameter>]" adds an icon to the toolbar performing
288 #          "<action> <parameter>"
289 #      Examples:
290 #      Icon "font-size small"
291 #      Icon set-emph
292 #
293 #   Layouts adds the layouts combo-box to the toolbar
294 #
295 #   Separator adds some spacing to the toolbar
296 #
297 # The icons are found in the lib/image direcory under the name
298 # action.xpm or action_parameter.xpm.
299 #
300 #  All other lyx commands will get a "unknown" icon.
301 #
302 # This is the default toolbar:
303
304 Toolbar
305     Layouts
306     Icon "buffer-open"
307     Icon "buffer-write"
308     Icon "buffer-print"
309     Separator
310     Icon "cut"
311     Icon "copy"
312     Icon "paste"
313     Separator
314     Icon "font-emph"
315     Icon "font-noun"
316     Icon "font-free"
317     Separator
318     Icon "tex-mode"
319     Icon "math-mode"
320     Separator
321     Icon "footnote-insert"
322     Icon "marginpar-insert"
323     Icon "depth-next"
324     Separator
325     Icon "figure-insert"
326     Icon "dialog-tabular-insert"
327 End