]> git.lyx.org Git - lyx.git/blob - lib/ui/stdmenus.inc
Allow users to specify toolbar icons for commands with a backslash. This is in the...
[lyx.git] / lib / ui / stdmenus.inc
1 # -*- text -*-
2
3 # file stdmenus.inc
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 "Save All|l" "buffer-write-all"
44                 Item "Revert to Saved|R" "buffer-reload"
45                 Submenu "Version Control|V" "file_vc"
46                 Separator
47                 Submenu "Import|I" "file_import"
48                 Submenu "Export|E" "file_export"
49                 Item "Print...|P" "dialog-show print"
50                 OptItem "Fax...|F" "buffer-export fax"
51                 Separator
52                 Item "New Window|W" "window-new"
53                 Item "Close Window|d" "window-close"
54                 Separator
55                 Item "Exit|x" "lyx-quit"
56         End
57
58         Menu "file_lastfiles"
59                 Lastfiles
60         End
61
62         Menu "file_vc"
63                 OptItem "Register...|R" "vc-register"
64                 OptItem "Check In Changes...|I" "vc-check-in"
65                 OptItem "Check Out for Edit|O" "vc-check-out"
66                 OptItem "Revert to Repository Version|R" "vc-revert"
67                 OptItem "Undo Last Check In|U" "vc-undo-last"
68                 OptItem "Show History...|H" "dialog-show vclog"
69         End
70
71         Menu "file_import"
72                 ImportFormats
73         End
74
75         Menu "file_export"
76                 ExportFormats
77                 Item "Custom...|C" "buffer-export custom"
78         End
79
80 #
81 # EDIT MENU
82 #
83
84         Menu "edit"
85                 Item "Undo|U" "undo"
86                 Item "Redo|R" "redo"
87                 Separator
88                 Item "Cut" "cut"
89                 Item "Copy" "copy"
90                 Item "Paste" "paste"
91                 Submenu "Paste Recent|e" "edit_pasterecent"
92                 Submenu "Paste Special" "edit_paste"
93                 Separator
94                 Item "Select All" "command-sequence buffer-begin ; buffer-end-select"
95                 Separator
96                 Item "Find & Replace...|F" "dialog-show findreplace"
97                 Item "Find LyX...|X" "dialog-show findreplaceadv"
98                 Separator
99                 Item "Move Paragraph Up|o" "paragraph-move-up"
100                 Item "Move Paragraph Down|v" "paragraph-move-down"
101                 Separator
102                 Submenu "Text Style|S" "edit_textstyles"
103                 Item "Paragraph Settings...|P" "layout-paragraph"
104                 Separator
105 # Mathed b0rkage means these don't work properly
106                 OptSubmenu "Table|T" "edit_tabular"
107                 OptSubmenu "Math|M" "edit_math"
108                 OptSubmenu "Rows & Columns|C" "edit_tabular_features"
109                 Separator
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 "Increase List Depth|I" "depth-increment"
116                 OptItem "Decrease List Depth|D" "depth-decrement"
117                 OptItem "Dissolve Inset|l" "inset-dissolve"
118                 OptItem "TeX Code Settings...|C" "inset-settings ert"
119 # 'a' shortcut to match Insert entry, shouldn't clash with Table Settings
120                 OptItem "Float Settings...|a" "inset-settings float"
121                 OptItem "Text Wrap Settings...|W" "inset-settings wrap"
122                 OptItem "Note Settings...|N" "inset-settings note"
123                 OptItem "Branch Settings...|B" "inset-settings branch"
124                 OptItem "Box Settings...|x" "inset-settings box"
125 # Hey, guess what's broken ? Surprise surprise, it's tabular stuff
126 # This is in the Table submenu instead for now.
127 #       OptItem "Table Settings...|a" "inset-settings tabular"
128                 OptItem "Table Settings...|a" "layout-tabular"
129         End
130
131         Menu "edit_paste"
132                 Item "Plain Text|T" "clipboard-paste"
133                 Item "Plain Text, Join Lines|J" "clipboard-paste paragraph"
134                 Separator
135                 Item "Selection|S" "primary-selection-paste"
136                 Item "Selection, Join Lines|i" "primary-selection-paste paragraph"
137                 Separator
138                 Item "Paste As LinkBack PDF" "paste linkback"
139                 Item "Paste As PDF" "paste pdf"
140                 Item "Paste As PNG" "paste png"
141                 Item "Paste As JPEG" "paste jpeg"
142         End
143
144         Menu "edit_pasterecent"
145                 PasteRecent
146         End
147
148         Menu "edit_textstyles"
149                 Item "Dissolve CharStyle" "inset-dissolve charstyle"
150                 CharStyles
151                 Elements
152                 Separator
153                 Item "Customized...|C" "dialog-show character"
154                 Separator
155                 Item "Capitalize|a" "word-capitalize"
156                 Item "Uppercase|U" "word-upcase"
157                 Item "Lowercase|L" "word-lowcase"
158         End
159
160 # not much we can do to help here
161         Menu "edit_tabular"
162                 Item "Multicolumn|M" "tabular-feature multicolumn"
163                 Separator
164                 Item "Top Line|T" "tabular-feature toggle-line-top"
165                 Item "Bottom Line|B" "tabular-feature toggle-line-bottom"
166                 Item "Left Line|L" "tabular-feature toggle-line-left"
167                 Item "Right Line|R" "tabular-feature toggle-line-right"
168                 Separator
169                 Item "Top|p" "tabular-feature tabular-valign-top"
170                 Item "Middle|M" "tabular-feature tabular-valign-middle"
171                 Item "Bottom|o" "tabular-feature tabular-valign-bottom" 
172         End
173
174         Menu "edit_tabular_features"
175                 Item "Left|L" "tabular-feature align-left"
176                 Item "Center|C" "tabular-feature align-center"
177                 Item "Right|R" "tabular-feature align-right"
178                 Separator
179                 Item "Top|T" "tabular-feature valign-top"
180                 Item "Middle|M" "tabular-feature valign-middle"
181                 Item "Bottom|B" "tabular-feature valign-bottom"
182                 Separator
183                 Item "Add Row|A" "tabular-feature append-row"
184                 Item "Delete Row|D" "tabular-feature delete-row"
185                 Item "Copy Row|o" "tabular-feature copy-row"
186                 # Item "Swap Rows|S" "tabular-feature swap-row" # currently broken
187                 Separator
188                 Item "Add Column|u" "tabular-feature append-column"
189                 Item "Delete Column|e" "tabular-feature delete-column"
190                 Item "Copy Column|p" "tabular-feature copy-column"
191                 # Item "Swap Columns|w" "tabular-feature swap-column" # currently broken
192         End
193
194         Menu "edit_math"
195                 Item "Number whole Formula|N" "math-number-toggle"
196                 Item "Number this Line|u" "math-number-line-toggle"
197                 Submenu "Change Limits Type|L" "edit_math_limits"
198                 Submenu "Macro Definition" "edit_math_macro_definition"
199                 Separator
200                 Submenu "Change Formula Type|F" "edit_math_mutate"
201                 Separator
202                 Submenu "Text Style|T" "edit_math_textstyles"
203                 Separator
204                 Submenu "Use Computer Algebra System|S" "edit_math_extern"
205                 Separator
206                 Item "Split Cell|C" "cell-split"
207                 Separator
208                 Item "Add Line Above|A" "tabular-feature add-hline-above"
209                 Item "Add Line Below|B" "tabular-feature add-hline-below"
210                 Item "Delete Line Above|D" "tabular-feature delete-hline-above"
211                 Item "Delete Line Below|e" "tabular-feature delete-hline-below"
212                 Separator
213                 Item "Add Line to Left" "tabular-feature add-vline-left"
214                 Item "Add Line to Right" "tabular-feature add-vline-right"
215                 Item "Delete Line to Left" "tabular-feature delete-vline-left"
216                 Item "Delete Line to Right" "tabular-feature delete-vline-right"
217         End
218
219         Menu "edit_math_macro_definition"
220                 Item "Append Argument" "math-macro-add-param"
221                 Item "Remove Last Argument" "math-macro-remove-param"
222                 Separator
223                 Item "Make First Non-Optional into Optional Argument" "math-macro-make-optional"
224                 Item "Make Last Optional into Non-Optional Argument" "math-macro-make-nonoptional"
225                 Item "Insert Optional Argument" "math-macro-add-optional-param"
226                 Item "Remove Optional Argument" "math-macro-remove-optional-param"
227                 Separator
228                 Item "Append Argument Eating From The Right" "math-macro-append-greedy-param"
229                 Item "Append Optional Argument Eating From The Right" "math-macro-add-greedy-optional-param"
230                 Item "Remove Last Argument Spitting Out To The Right" "math-macro-remove-greedy-param"
231         End
232
233         Menu "edit_math_limits"
234                  Item "Default|t"  "math-limits empty"
235                  Item "Display|D"  "math-limits limits"
236                  Item "Inline|I"  "math-limits nolimits"
237         End
238
239         Menu "edit_math_textstyles"
240                 Item "Math Normal Font|N" "math-insert \mathnormal"
241                 Separator
242                 Item "Math Calligraphic Family|C" "math-insert \mathcal"
243                 Item "Math Fraktur Family|F" "math-insert \mathfrak"
244                 Item "Math Roman Family|R" "math-insert \mathrm"
245                 Item "Math Sans Serif Family|S" "math-insert \mathsf"
246                 Separator
247                 Item "Math Bold Series|B" "math-insert \mathbf"
248                 Separator
249                 Item "Text Normal Font|T" "math-insert \textnormal"
250                 Separator
251                 Item "Text Roman Family" "math-insert \textrm"
252                 Item "Text Sans Serif Family" "math-insert \textsf"
253                 Item "Text Typewriter Family" "math-insert \texttt"
254                 Separator
255                 Item "Text Bold Series" "math-insert \textbf"
256                 Item "Text Medium Series" "math-insert \textmd"
257                 Separator
258                 Item "Text Italic Shape" "math-insert \textit"
259                 Item "Text Small Caps Shape" "math-insert \textsc"
260                 Item "Text Slanted Shape" "math-insert \textsl"
261                 Item "Text Upright Shape" "math-insert \textup"
262         End
263
264         Menu "edit_math_extern"
265                 Item "Octave|O" "math-extern octave"
266                 Item "Maxima|M" "math-extern maxima"
267                 Item "Mathematica|a" "math-extern mathematica"
268                 Separator
269                 Item "Maple, simplify|s" "math-extern maple simplify"
270                 Item "Maple, factor|f" "math-extern maple factor"
271                 Item "Maple, evalm|e" "math-extern maple evalm"
272                 Item "Maple, evalf|v" "math-extern maple evalf"
273         End
274
275         Menu "edit_math_mutate"
276                 Item "Inline Formula|I" "math-mutate simple"
277                 Item "Displayed Formula|D" "math-mutate equation"
278                 Item "Eqnarray Environment|E" "math-mutate eqnarray"
279                 Item "AMS align Environment|a" "math-mutate align"
280                 Item "AMS alignat Environment|t" "math-mutate alignat"
281                 Item "AMS flalign Environment|f" "math-mutate flalign"
282                 Item "AMS gather Environment|g" "math-mutate gather"
283                 Item "AMS multline Environment|m" "math-mutate multline"
284         End
285
286 #
287 # VIEW MENU
288 #
289
290         Menu "view"
291                 Item "Open All Insets|O" "all-insets-toggle open"
292                 Item "Close All Insets|C" "all-insets-toggle close"
293                 Separator
294                 Item "Unfold Math Macro" "math-macro-unfold"
295                 Item "Fold Math Macro" "math-macro-fold"
296                 Separator
297                 Item "View Source|S" "dialog-toggle view-source"
298                 Submenu "Update|U" "view_update"
299                 ViewFormats
300                 Separator
301                 Item "Split View Into Left And Right Half|i" "split-view horizontal"
302                 Item "Split View Into Upper And Lower Half|V" "split-view vertical"
303                 Item "Close Tab Group|G" "close-tab-group"
304                 Item "Fullscreen|l" "ui-toggle fullscreen"
305                 Submenu "Toolbars|b" "toolbars"
306                 Separator
307             Documents
308         End
309
310         Menu "view_update"
311                 UpdateFormats
312         End
313
314         Menu "toolbars"
315                 Toolbars
316         End
317 #
318 # INSERT MENU
319 #
320         Menu "insert"
321 # Try and group things a little better, and percolate the most
322 # commonly used to good positions (exception being mathed, but
323 # most people using mathed learn key shortcuts quite quickly anyway)
324                 Submenu "Math|h" "insert_math"
325                 Submenu "Special Character|p" "insert_special"
326                 Submenu "Formatting|o" "insert_formatting"
327                 Submenu "List / TOC|i" "insert_toc"
328                 Submenu "Float|a" "insert_float"
329                 Submenu "Note|N" "insert_note"
330                 Submenu "Branch|B" "insert_branches"
331                 Submenu "Custom insets" "insert_custom"
332                 Submenu "File|e" "insert_file"
333                 Item "Box[[Menu]]" "box-insert Frameless"
334                 Separator
335                 Item "Citation...|C" "dialog-show-new-inset citation"
336                 Item "Cross-Reference...|R" "dialog-show-new-inset ref"
337                 Item "Label...|L" "label-insert"
338                 Item "Caption" "caption-insert"
339                 Item "Index Entry|d" "index-insert"
340                 Item "Nomenclature Entry...|y" "nomencl-insert"
341                 Separator
342                 Item "Table...|T" "tabular-insert"
343                 Item "Graphics...|G" "dialog-show-new-inset graphics"
344                 Item "URL" "flex-insert URL"
345                 Item "Hyperlink|k" "href-insert"
346                 Item "Footnote|F" "footnote-insert"
347                 Item "Marginal Note|M" "marginalnote-insert"
348                 Item "Short Title|S" "optional-insert"
349                 Item "TeX Code|X" "ert-insert"
350                 Item "Program Listing[[Menu]]" "listing-insert"
351                 Item "Date" "date-insert"
352                 Item "Regexp" "regexp-mode"
353         End
354
355         Menu "insert_special"
356                 Item "Symbols...|b" "dialog-show symbols"
357                 Item "Ellipsis|i" "specialchar-insert dots"
358                 Item "End of Sentence|E" "specialchar-insert end-of-sentence"
359                 Item "Ordinary Quote|Q" "self-insert \""
360                 Item "Single Quote|S" "quote-insert single"
361                 Item "Protected Hyphen|y" "specialchar-insert nobreakdash"
362                 Item "Breakable Slash|a" "specialchar-insert slash"
363                 Item "Menu Separator|M" "specialchar-insert menu-separator"
364                 Item "Phonetic Symbols|P" "command-sequence math-mode on; math-insert \text\textipa ; char-forward ;"
365         End
366
367         Menu "insert_formatting"
368                 Item "Superscript|S" "command-sequence math-mode on; math-superscript; math-insert \text;"
369                 Item "Subscript|u" "command-sequence math-mode on; math-subscript; math-insert \text;"
370                 Separator
371                 Item "Protected Space|P" "space-insert protected"
372                 Item "Inter-word Space|w" "space-insert normal"
373                 Item "Thin Space|T" "space-insert thin"
374                 Item "Horizontal Space...|o" "dialog-show-new-inset space"
375                 Item "Horizontal Line|L" "line-insert"
376                 Item "Vertical Space...|V" "dialog-show-new-inset vspace"
377                 Separator
378                 Item "Hyphenation Point|H" "specialchar-insert hyphenation"
379                 Item "Ligature Break|k" "specialchar-insert ligature-break"
380                 Item "Ragged Line Break|R" "newline-insert newline"
381                 Item "Justified Line Break|J" "newline-insert linebreak"
382                 Separator
383                 Item "New Page|N" "newpage-insert newpage"
384                 Item "Page Break|a" "newpage-insert pagebreak"
385                 Item "Clear Page|C" "newpage-insert clearpage"
386                 Item "Clear Double Page|D" "newpage-insert cleardoublepage"
387         End
388
389         Menu "insert_math"
390                 Item "Inline Formula|I" "math-mode on"
391                 Item "Display Formula|D" "math-display"
392                 Item "Numbered Formula|N" "command-sequence math-display; math-number-toggle;"
393                 Item "Eqnarray Environment|E" "command-sequence math-mode on; math-mutate eqnarray;"
394                 Item "AMS align Environment|a" "command-sequence math-mode on; math-mutate align;"
395                 Item "AMS alignat Environment|t" "command-sequence math-mode on; math-mutate alignat;"
396                 Item "AMS flalign Environment|f" "command-sequence math-mode on; math-mutate flalign;"
397                 Item "AMS gather Environment|g" "command-sequence math-mode on; math-mutate gather;"
398                 Item "AMS multline Environment|m" "command-sequence math-mode on; math-mutate multline;"
399                 Separator
400                 Item "Array Environment|y" "math-matrix 2 2"
401                 Item "Cases Environment|C" "command-sequence math-mode on; math-insert \cases"
402                 Item "Aligned Environment|l" "command-sequence math-mode on; math-insert \aligned; tabular-feature append-column"
403                 Item "AlignedAt Environment|v" "command-sequence math-mode on; math-insert \alignedat; tabular-feature append-column"
404                 Item "Gathered Environment|h" "command-sequence math-mode on; math-insert \gathered"
405                 Item "Split Environment|S" "command-sequence math-mode on; math-insert \split; tabular-feature append-column"
406                 Separator
407                 Item "Delimiters...|r" "dialog-show mathdelimiter"
408                 Item "Matrix...|x" "dialog-show mathmatrix"
409                 Item "Macro|o" "math-macro newmacroname newcommand"
410         End
411
412         Menu "insert_float"
413                 FloatInsert
414 # This has got to be better than "Wrap", anyway
415                 Item "Figure Wrap Float|F" "wrap-insert figure"
416                 Item "Table Wrap Float|T" "wrap-insert table"
417         End
418
419         Menu "insert_toc"
420                 Item "Table of Contents|C" "toc-insert"
421                 FloatListInsert
422                 Item "Index List|I" "index-print"
423                 Item "Nomenclature|N" "nomencl-print"
424                 Item "BibTeX Bibliography...|B" "dialog-show-new-inset bibtex"
425         End
426
427         Menu "insert_file"
428                 Item "LyX Document...|X" "file-insert"
429                 Item "Plain Text...|T" "file-insert-plaintext"
430                 Item "Plain Text, Join Lines...|J" "file-insert-plaintext-para"
431                 Separator
432                 Item "External Material...|M" "dialog-show-new-inset external"
433                 Item "Child Document...|d" "dialog-show-new-inset include"
434         End
435
436         Menu "insert_note"
437                 Item "LyX Note|N" "note-insert Note"
438                 Item "Comment|C" "note-insert Comment"
439                 Item "Greyed Out|G" "note-insert Greyedout"
440         End
441
442         Menu "insert_branches"
443                 Branches
444         End
445
446         Menu "insert_custom"
447                 Custom
448         End
449
450 #
451 # DOCUMENT MENU
452 #
453
454         Menu "document"
455                 Submenu "Change Tracking|C" "document_change"
456                 OptItem "Build Program|B" "build-program"
457                 Item "LaTeX Log|L" "dialog-show latexlog"
458                 Item "Outline|O" "dialog-toggle toc"
459                 Item "Start Appendix Here|A" "appendix"
460                 Separator
461                 Item "Save in Bundled Format|F" "buffer-toggle-embedding"
462                 Item "Compressed|m" "buffer-toggle-compression"
463                 Item "Settings...|S" "dialog-show document"
464         End
465
466         Menu "document_change"
467                 Item "Track Changes|T" "changes-track"
468                 Item "Merge Changes...|M" "changes-merge"
469                 Item "Accept Change|A" "change-accept"
470                 Item "Reject Change|R" "change-reject"
471                 Item "Accept All Changes|c" "all-changes-accept"
472                 Item "Reject All Changes|e" "all-changes-reject"
473                 Item "Show Changes in Output|S" "changes-output"
474         End
475
476 #
477 # NAVIGATE MENU
478 #
479         Menu "navigate"
480                 Submenu "Bookmarks|B" "navigate_bookmarks"
481                 Item "Next Note|N" "note-next"
482                 Item "Next Change|C" "change-next"
483                 Item "Next Cross-Reference|R" "reference-next"
484                 Item "Go to Label|L" "label-goto"
485                 Separator
486                 Toc
487         End
488
489         Menu "navigate_bookmarks"
490                 Item "Save Bookmark 1|S" "bookmark-save 1"
491                 Item "Save Bookmark 2" "bookmark-save 2"
492                 Item "Save Bookmark 3" "bookmark-save 3"
493                 Item "Save Bookmark 4" "bookmark-save 4"
494                 Item "Save Bookmark 5" "bookmark-save 5"
495                 Item "Clear Bookmarks|C" "bookmark-clear"
496                 Separator
497                 Bookmarks
498         End
499
500 #
501 # TOOLS MENU
502 #
503
504         Menu "tools"
505                 Item "Spellchecker...|S" "dialog-show spellchecker"
506                 OptItem "Thesaurus...|T" "thesaurus-entry"
507                 Item "Statistics...|a" "statistics"
508                 OptItem "Check TeX|h" "buffer-chktex"
509                 Item "TeX Information|I" "dialog-show texinfo"
510                 Separator
511 # A LOT of applications have Tools->Prefs. Remember this
512 # should be rarely used - Edit menu is not a good place to
513 # have it.
514                 Item "Reconfigure|R" "reconfigure"
515                 Item "Preferences...|P" "dialog-show prefs"
516         End
517
518 #
519 # HELP MENU
520 #
521         Menu "help"
522                 Item "Introduction|I" "help-open Intro"
523                 Item "Tutorial|T" "help-open Tutorial"
524                 Item "User's Guide|U" "help-open UserGuide"
525                 Item "Additional Features|F" "help-open Extended"
526                 Item "Embedded Objects|O" "help-open EmbeddedObjects"
527                 Item "Math|M" "help-open Math"
528                 Item "Customization|C" "help-open Customization"
529                 Item "Shortcuts|S" "help-open Shortcuts"
530                 Item "LyX Functions|y" "help-open LFUNs"
531                 Item "LaTeX Configuration|L" "help-open LaTeXConfig"
532                 Submenu "Specific Manuals|p" "examples"
533                 Separator
534                 Item "About LyX|X" "dialog-show aboutlyx"
535         End
536
537         Menu "examples"
538                 Item "Linguistics Manual|L" "help-open linguistics"
539                 Item "Braille Manual|B" "help-open Braille"
540                 Item "XY-pic Manual|X" "help-open xypic"
541                 Item "Multicolumn Manual|M" "help-open multicol"
542         End
543
544
545 End
546