]> git.lyx.org Git - lyx.git/blob - lib/ui/stdmenus.ui
add/fix menu prefix for submenus;
[lyx.git] / lib / ui / stdmenus.ui
1 # -*- text -*-
2
3 # file stdmenus.ui
4 # This file is part of LyX, the document processor.
5 # Licence details can be found in the file COPYING.
6
7 # author Jean-Marc Lasgouttes
8 # author John Levon
9 # author Michael Gerz
10
11 # Full author contact details are available in file CREDITS.
12
13 # The interface is designed (partially) following the KDE Human Interface
14 # Guidelines (http://usability.kde.org/hig/)
15
16 Menuset
17
18         Menubar
19 # Make the first 4 menus be as much as expected as possible
20                 Submenu "File|F" "file"
21                 Submenu "Edit|E" "edit"
22                 Submenu "View|V" "view"
23                 Submenu "Insert|I" "insert"
24                 Submenu "Navigate|N" "navigate"
25                 Submenu "Document|D" "document"
26                 Submenu "Tools|T" "tools"
27                 Submenu "Help|H" "help"
28         End
29
30 #
31 # FILE MENU
32 #
33
34         Menu "file"
35                 Item "New|N" "buffer-new"
36                 Item "New from Template...|m" "buffer-new-template"
37                 Item "Open...|O" "file-open"
38                 Submenu "Open recent|t" "file_lastfiles"
39                 Separator
40                 Item "Close|C" "buffer-close"
41                 Item "Save|S" "buffer-write"
42                 Item "Save As...|A" "buffer-write-as"
43                 Item "Revert|R" "buffer-reload"
44                 Submenu "Version Control|V" "file_vc"
45                 Separator
46                 Submenu "Import|I" "file_import"
47                 Submenu "Export|E" "file_export"
48                 Item "Print...|P" "dialog-show print"
49                 OptItem "Fax...|F" "buffer-export fax"
50                 Separator
51                 Item "Exit|x" "lyx-quit"
52         End
53
54         Menu "file_lastfiles"
55                 Lastfiles
56         End
57
58         Menu "file_vc"
59                 OptItem "Register...|R" "vc-register"
60                 OptItem "Check In Changes...|I" "vc-check-in"
61                 OptItem "Check Out for Edit|O" "vc-check-out"
62                 OptItem "Revert to Last Version|L" "vc-revert"
63                 OptItem "Undo Last Check In|U" "vc-undo-last"
64                 OptItem "Show History|H" "dialog-show vclog"
65         End
66
67         Menu "file_import"
68                 ImportFormats
69         End
70
71         Menu "file_export"
72                 ExportFormats
73                 Item "Custom...|C" "buffer-export custom"
74         End
75
76 #
77 # EDIT MENU
78 #
79
80         Menu "edit"
81                 Item "Undo|U" "undo"
82                 Item "Redo|R" "redo"
83                 Separator
84                 Item "Cut" "cut"
85                 Item "Copy" "copy"
86                 Item "Paste" "paste"
87                 Submenu "Paste Recent" "edit_pasterecent"
88                 Submenu "Paste External Clipboard/Selection" "edit_paste"
89                 Separator
90                 Item "Find & Replace...|F" "dialog-show findreplace"
91                 Separator
92                 Item "Word in Small Capitals" "word-capitalize"
93                 Item "Word in Uppercase" "word-upcase"
94                 Item "Word in Lowercase" "word-lowcase"
95                 Separator
96                 Item "Move Paragraph Up|o" "paragraph-move-up"
97                 Item "Move Paragraph Down|v" "paragraph-move-down"
98                 Separator
99                 Item "Text Style...|S" "dialog-show character"
100                 Item "Paragraph Settings...|P" "layout-paragraph"
101                 Separator
102 # Mathed b0rkage means these don't work properly
103                 OptSubmenu "Table|T" "edit_tabular"
104                 OptSubmenu "Math|M" "edit_math"
105                 OptSubmenu "Rows & Columns|C" "edit_tabular_features"
106                 Separator
107                 OptItem "Increase List Depth|I" "depth-increment"
108                 OptItem "Decrease List Depth|D" "depth-decrement"
109                 OptItem "Dissolve Inset|s" "inset-dissolve"
110 # This is where the context-specific stuff is supposed to go.
111 # The idea is that everything on here can disappear and should
112 # only appear when relevant (getStatus). Only stuff that needs
113 # a right-click to bring up the dialog should appear here (it is not
114 # obvious what the context is for the others)
115                 OptItem "TeX Code Settings...|C" "inset-settings ert"
116 # 'a' shortcut to match Insert entry, shouldn't clash with Table Settings
117                 OptItem "Float Settings...|a" "inset-settings float"
118                 OptItem "Text Wrap Settings...|W" "inset-settings wrap"
119                 OptItem "Note Settings...|N" "inset-settings note"
120                 OptItem "Branch Settings...|B" "inset-settings branch"
121                 OptItem "Box Settings...|x" "inset-settings box"
122 # Hey, guess what's broken ? Surprise surprise, it's tabular stuff
123 # This is in the Table submenu instead for now.
124 #       OptItem "Table Settings...|a" "inset-settings tabular"
125                 OptItem "Table Settings...|a" "layout-tabular"
126         End
127
128         Menu "edit_paste"
129                 Item "Clipboard as Lines|C" "clipboard-paste"
130                 Item "Clipboard as Paragraphs|a" "clipboard-paste paragraph"
131                 Item "Selection as Lines|L" "primary-selection-paste"
132                 Item "Selection as Paragraphs|P" "primary-selection-paste paragraph"
133         End
134
135         Menu "edit_pasterecent"
136                 PasteRecent
137         End
138
139 # not much we can do to help here
140         Menu "edit_tabular"
141                 Item "Multicolumn|M" "tabular-feature multicolumn"
142                 Separator
143                 Item "Top Line|T" "tabular-feature toggle-line-top"
144                 Item "Bottom Line|B" "tabular-feature toggle-line-bottom"
145                 Item "Left Line|L" "tabular-feature toggle-line-left"
146                 Item "Right Line|R" "tabular-feature toggle-line-right"
147                 Separator
148         End
149
150         Menu "edit_tabular_features"
151                 Item "Left|L" "tabular-feature align-left"
152                 Item "Center|C" "tabular-feature align-center"
153                 Item "Right|R" "tabular-feature align-right"
154                 Separator
155                 Item "Top|T" "tabular-feature valign-top"
156                 Item "Middle|M" "tabular-feature valign-middle"
157                 Item "Bottom|B" "tabular-feature valign-bottom"
158                 Separator
159                 Item "Add Row" "tabular-feature append-row"
160                 Item "Delete Row" "tabular-feature delete-row"
161                 Item "Copy Row" "tabular-feature copy-row"
162                 Item "Swap Rows" "tabular-feature swap-row"
163                 Separator
164                 Item "Add Column" "tabular-feature append-column"
165                 Item "Delete Column" "tabular-feature delete-column"
166                 Item "Copy Column" "tabular-feature copy-column"
167                 Item "Swap Columns" "tabular-feature swap-column"
168         End
169
170         Menu "edit_math"
171                 Item "Toggle Numbering|N" "math-number"
172                 Item "Toggle Numbering of Line|u" "math-nonumber"
173                 Submenu "Change Limits Type|L" "edit_math_limits"
174                 Separator
175                 Submenu "Change Formula Type|F" "edit_math_mutate"
176                 Separator
177                 Submenu "Use Computer Algebra System|S" "edit_math_extern"
178                 Separator
179                 Item "Split Cell|C" "cell-split"
180                 Separator
181                 Item "Add Line Above" "tabular-feature add-hline-above"
182                 Item "Add Line Below" "tabular-feature add-hline-below"
183                 Item "Delete Line Above" "tabular-feature delete-hline-above"
184                 Item "Delete Line Below" "tabular-feature delete-hline-below"
185                 Separator
186                 Item "Add Line to Left" "tabular-feature add-vline-left"
187                 Item "Add Line to Right" "tabular-feature add-vline-right"
188                 Item "Delete Line to Left" "tabular-feature delete-vline-left"
189                 Item "Delete Line to Right" "tabular-feature delete-vline-right"
190         End
191
192         Menu "edit_math_limits"
193                  Item "Default|t"  "math-limits empty"
194                  Item "Display|D"  "math-limits limits"
195                  Item "Inline|I"  "math-limits nolimits"
196         End
197
198         Menu "edit_math_extern"
199                 Item "Octave" "math-extern octave"
200                 Item "Maxima" "math-extern maxima"
201                 Item "Mathematica" "math-extern mathematica"
202                 Separator
203                 Item "Maple, simplify" "math-extern maple simplify"
204                 Item "Maple, factor" "math-extern maple factor"
205                 Item "Maple, evalm" "math-extern maple evalm"
206                 Item "Maple, evalf" "math-extern maple evalf"
207         End
208
209         Menu "edit_math_mutate"
210                 Item "Inline Formula|I" "math-mutate simple"
211                 Item "Displayed Formula|D" "math-mutate equation"
212                 Item "Eqnarray Environment|q" "math-mutate eqnarray"
213                 Item "AMS align Environment|a" "math-mutate align"
214                 Item "AMS alignat Environment|t" "math-mutate alignat"
215                 Item "AMS flalign Environment|f" "math-mutate flalign"
216                 Item "AMS gather Environment|g" "math-mutate gather"
217                 Item "AMS multline Environment|m" "math-mutate multline"
218         End
219
220 #
221 # VIEW MENU
222 #
223
224         Menu "view"
225                 Item "Open All Insets|O" "all-insets-toggle open"
226                 Item "Close All Insets|C" "all-insets-toggle close"
227                 Separator
228                 Item "Display Tooltips|i" "tooltips-toggle"
229                 Separator
230                 Item "View source|s" "dialog-show view-source"
231                 Submenu "Update|U" "view_update"
232                 ViewFormats
233                 Separator
234             Documents
235         End
236
237         Menu "view_update"
238                 UpdateFormats
239         End
240
241 #
242 # INSERT MENU
243 #
244         Menu "insert"
245 # Try and group things a little better, and percolate the most
246 # commonly used to good positions (exception being mathed, but
247 # most people using mathed learn key shortcuts quite quickly anyway)
248                 Submenu "Math|h" "insert_math"
249                 Submenu "Special Character|S" "insert_special"
250                 Submenu "Special Formatting|o" "insert_formatting"
251                 Submenu "List / TOC|i" "insert_toc"
252                 Submenu "Float|a" "insert_float"
253 # YUCK
254                 Submenu "Note|N" "insert_note"
255                 OptSubmenu "Branch|B" "insert_branches"
256                 OptSubmenu "Character Style|y" "insert_charstyles"
257                 Submenu "File|e" "insert_file"
258                 Item "Box" "box-insert Frameless"
259                 Separator
260                 Item "Citation...|C" "dialog-show-new-inset citation"
261                 Item "Cross-reference...|r" "dialog-show-new-inset ref"
262                 Item "Label...|L" "label-insert"
263                 Item "Index Entry|d" "index-insert"
264                 Item "Date" "date-insert"
265 # I'm going to kill this dumb dialog, but for now ...
266                 Separator
267                 Item "Table...|T" "tabular-insert"
268                 Item "Graphics...|G" "dialog-show-new-inset graphics"
269                 Item "URL...|U" "url-insert"
270                 Item "Footnote|F" "footnote-insert"
271                 Item "Marginal Note|M" "marginalnote-insert"
272                 Item "Short Title" "optional-insert"
273                 Item "TeX Code|X" "ert-insert"
274         End
275
276         Menu "insert_special"
277                 Item "Ellipsis|i" "dots-insert"
278                 Item "End of Sentence|E" "end-of-sentence-period-insert"
279                 Item "Ordinary Quote|Q" "self-insert \""
280                 Item "Single Quote|S" "quote-insert single"
281                 Item "Menu Separator|M" "menu-separator-insert"
282                 Item "Phonetic Symbols|y" "command-sequence math-mode on; math-insert \text\textipa ; char-forward ;"
283         End
284
285         Menu "insert_formatting"
286                 Item "Superscript|S" "command-sequence math-mode on; math-superscript; math-insert \text;"
287                 Item "Subscript|u" "command-sequence math-mode on; math-subscript; math-insert \text;"
288                 Separator
289                 Item "Protected Space|r" "space-insert protected"
290                 Item "Inter-word Space|w" "space-insert normal"
291                 Item "Thin Space|T" "space-insert thin"
292                 Item "Horizontal Fill|H" "hfill-insert"
293                 Item "Horizontal Line" "line-insert"
294                 Item "Vertical Space..." "dialog-show-new-inset vspace"
295                 Separator
296                 Item "Hyphenation Point|P" "hyphenation-point-insert"
297                 Item "Ligature Break|k" "ligature-break-insert"
298                 Item "Line Break|L" "break-line"
299                 Item "Page Break" "pagebreak-insert"
300         End
301
302         Menu "insert_math"
303                 Item "Inline Formula|I" "math-mode on"
304                 Item "Display Formula|D" "math-display"
305                 Item "Eqnarray Environment|E" "command-sequence math-mode on; math-mutate eqnarray;"
306                 Item "AMS align Environment|a" "command-sequence math-mode on; math-mutate align;"
307                 Item "AMS alignat Environment|t" "command-sequence math-mode on; math-mutate alignat;"
308                 Item "AMS flalign Environment|f" "command-sequence math-mode on; math-mutate flalign;"
309                 Item "AMS gather Environment|g" "command-sequence math-mode on; math-mutate gather;"
310                 Item "AMS multline Environment|m" "command-sequence math-mode on; math-mutate multline;"
311                 Separator
312                 Item "Array Environment|y" "math-matrix 2 2"
313                 Item "Cases Environment|C" "math-insert \cases"
314                 Item "Aligned Environment" "command-sequence math-insert \aligned; tabular-feature append-column"
315                 Item "AlignedAt Environment" "command-sequence math-insert \alignedat; tabular-feature append-column"
316                 Item "Gathered Environment" "math-insert \gathered"
317                 Item "Split Environment|S" "command-sequence math-insert \split; tabular-feature append-column"
318                 Separator
319                 Submenu "Font Change|o" "insert_math_font"
320                 Item "Math Panel|P" "dialog-show mathpanel"
321         End
322
323         Menu "insert_math_font"
324                 Item "Math Normal Font" "math-insert \mathnormal"
325                 Separator
326                 Item "Math Calligraphic Family" "math-insert \mathcal"
327                 Item "Math Fraktur Family" "math-insert \mathfrak"
328                 Item "Math Roman Family" "math-insert \mathrm"
329                 Item "Math Sans Serif Family" "math-insert \mathsf"
330                 Separator
331                 Item "Math Bold Series" "math-insert \mathbf"
332                 Separator
333                 Item "Text Normal Font" "math-insert \textnormal"
334                 Separator
335                 Item "Text Roman Family" "math-insert \textrm"
336                 Item "Text Sans Serif Family" "math-insert \textsf"
337                 Item "Text Typewriter Family" "math-insert \texttt"
338                 Separator
339                 Item "Text Bold Series" "math-insert \textbf"
340                 Item "Text Medium Series" "math-insert \textmd"
341                 Separator
342                 Item "Text Italic Shape" "math-insert \textit"
343                 Item "Text Small Caps Shape" "math-insert \textsc"
344                 Item "Text Slanted Shape" "math-insert \textsl"
345                 Item "Text Upright Shape" "math-insert \textup"
346                         End
347
348         Menu "insert_float"
349                 FloatInsert
350 # This has got to be better than "Wrap", anyway
351                 Item "Text Wrap Float|W" "wrap-insert figure"
352         End
353
354         Menu "insert_toc"
355                 Item "Table of Contents|C" "toc-insert"
356                 FloatListInsert
357                 Item "Index List|I" "index-print"
358                 Item "BibTeX Bibliography...|B" "dialog-show-new-inset bibtex"
359         End
360
361         Menu "insert_file"
362                 Item "LyX Document...|X" "file-insert"
363                 Item "Plain Text as Lines...|L" "file-insert-ascii"
364                 Item "Plain Text as Paragraphs...|P" "file-insert-ascii-para"
365                 Separator
366                 Item "External Material...|M" "dialog-show-new-inset external"
367                 Item "Child Document...|d" "dialog-show-new-inset include"
368         End
369
370         Menu "insert_note"
371                 Item "LyX Note|N" "note-insert Note"
372                 Item "Comment|C" "note-insert Comment"
373                 Item "Greyed Out|G" "note-insert Greyedout"
374         End
375
376         Menu "insert_branches"
377                 Branches
378         End
379
380         Menu "insert_charstyles"
381                 CharStyles
382         End
383
384 #
385 # DOCUMENT MENU
386 #
387
388         Menu "document"
389                 Submenu "Change Tracking|C" "document_change"
390                 OptItem "Build Program|B" "build-program"
391                 Item "LaTeX Log|L" "dialog-show latexlog"
392                 Item "Table of Contents|T" "toc-view"
393                 Item "Start Appendix Here|A" "appendix"
394                 Separator
395                 Item "Compressed|o" "buffer-toggle-compression"
396                 Item "Settings...|S" "dialog-show document"
397         End
398
399         Menu "document_change"
400                 Item "Track Changes|T" "changes-track"
401                 Item "Merge Changes...|M" "changes-merge"
402                 Item "Accept Change|A" "change-accept"
403                 Item "Reject Change|R" "change-reject"
404                 Item "Accept All Changes|c" "all-changes-accept"
405                 Item "Reject All Changes|e" "all-changes-reject"
406                 Item "Show Changes in Output|S" "changes-output"
407         End
408
409 #
410 # NAVIGATE MENU
411 #
412         Menu "navigate"
413                 Submenu "Bookmarks|B" "navigate_bookmarks"
414                 Item "Next Note|N" "note-next"
415                 Item "Next Reference|R" "reference-next"
416                 Item "Go to Label|L" "label-goto"
417                 Separator
418                 Toc
419         End
420
421         Menu "navigate_bookmarks"
422                 Item "Go to Bookmark 1|1" "bookmark-goto 1"
423                 Item "Go to Bookmark 2|2" "bookmark-goto 2"
424                 Item "Go to Bookmark 3|3" "bookmark-goto 3"
425                 Item "Go to Bookmark 4|4" "bookmark-goto 4"
426                 Item "Go to Bookmark 5|5" "bookmark-goto 5"
427                 Separator
428                 Item "Save Bookmark 1|S" "bookmark-save 1"
429                 Item "Save Bookmark 2" "bookmark-save 2"
430                 Item "Save Bookmark 3" "bookmark-save 3"
431                 Item "Save Bookmark 4" "bookmark-save 4"
432                 Item "Save Bookmark 5" "bookmark-save 5"
433         End
434
435 #
436 # TOOLS MENU
437 #
438
439         Menu "tools"
440                 Item "Spellchecker...|S" "dialog-show spellchecker"
441                 OptItem "Thesaurus...|T" "thesaurus-entry"
442                 Item "Count Words|W" "words-count"
443                 OptItem "Check TeX|h" "buffer-chktex"
444                 Item "TeX Information|I" "dialog-show texinfo"
445                 Separator
446 # A LOT of applications have Tools->Prefs. Remember this
447 # should be rarely used - Edit menu is not a good place to
448 # have it.
449                 Item "Reconfigure|R" "reconfigure"
450                 Item "Preferences...|P" "dialog-show prefs"
451         End
452
453 #
454 # HELP MENU
455 #
456         Menu "help"
457                 Item "Introduction|I" "help-open Intro"
458                 Item "Tutorial|T" "help-open Tutorial"
459                 Item "User's Guide|U" "help-open UserGuide"
460                 Item "Extended Features|E" "help-open Extended"
461                 Item "Customization|C" "help-open Customization"
462                 Item "FAQ|F" "help-open FAQ"
463                 Item "Table of Contents|a" "help-open TOC"
464                 Item "LaTeX Configuration|L" "help-open LaTeXConfig"
465                 Separator
466                 Item "About LyX|X" "dialog-show aboutlyx"
467         End
468
469 #
470 #  LYX MENU - this menu is only used by LyX/Mac
471 #
472
473         Menu "LyX"
474                 Item "About LyX" "dialog-show aboutlyx"
475                 Item "Preferences..." "dialog-show prefs"
476                 Item "Quit LyX" "lyx-quit"
477         End
478
479 End