]> git.lyx.org Git - lyx.git/blob - lib/ui/stdmenus.inc
amsmaths.inc: allow Theorems and the like to be empty, fixes bug 4304.
[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 Last Version|L" "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                 Separator
98                 Item "Move Paragraph Up|o" "paragraph-move-up"
99                 Item "Move Paragraph Down|v" "paragraph-move-down"
100                 Separator
101                 Submenu "Text Style|S" "edit_textstyles"
102                 Item "Paragraph Settings...|P" "layout-paragraph"
103                 Separator
104 # Mathed b0rkage means these don't work properly
105                 OptSubmenu "Table|T" "edit_tabular"
106                 OptSubmenu "Math|M" "edit_math"
107                 OptSubmenu "Rows & Columns|C" "edit_tabular_features"
108                 Separator
109 # This is where the context-specific stuff is supposed to go.
110 # The idea is that everything on here can disappear and should
111 # only appear when relevant (getStatus). Only stuff that needs
112 # a right-click to bring up the dialog should appear here (it is not
113 # obvious what the context is for the others)
114                 OptItem "Increase List Depth|I" "depth-increment"
115                 OptItem "Decrease List Depth|D" "depth-decrement"
116                 OptItem "Dissolve Inset|l" "inset-dissolve"
117                 OptItem "TeX Code Settings...|C" "inset-settings ert"
118 # 'a' shortcut to match Insert entry, shouldn't clash with Table Settings
119                 OptItem "Float Settings...|a" "inset-settings float"
120                 OptItem "Text Wrap Settings...|W" "inset-settings wrap"
121                 OptItem "Note Settings...|N" "inset-settings note"
122                 OptItem "Branch Settings...|B" "inset-settings branch"
123                 OptItem "Box Settings...|x" "inset-settings box"
124 # Hey, guess what's broken ? Surprise surprise, it's tabular stuff
125 # This is in the Table submenu instead for now.
126 #       OptItem "Table Settings...|a" "inset-settings tabular"
127                 OptItem "Table Settings...|a" "layout-tabular"
128         End
129
130         Menu "edit_paste"
131                 Item "Plain Text|T" "clipboard-paste"
132                 Item "Plain Text, Join Lines|J" "clipboard-paste paragraph"
133                 Separator
134                 Item "Selection|S" "primary-selection-paste"
135                 Item "Selection, Join Lines|i" "primary-selection-paste paragraph"
136         End
137
138         Menu "edit_pasterecent"
139                 PasteRecent
140         End
141
142         Menu "edit_textstyles"
143                 Item "Dissolve CharStyle" "inset-dissolve charstyle"
144                 CharStyles
145                 Elements
146                 Separator
147                 Item "Customized...|C" "dialog-show character"
148                 Separator
149                 Item "Capitalize|a" "word-capitalize"
150                 Item "Uppercase|U" "word-upcase"
151                 Item "Lowercase|L" "word-lowcase"
152         End
153
154 # not much we can do to help here
155         Menu "edit_tabular"
156                 Item "Multicolumn|M" "tabular-feature multicolumn"
157                 Separator
158                 Item "Top Line|T" "tabular-feature toggle-line-top"
159                 Item "Bottom Line|B" "tabular-feature toggle-line-bottom"
160                 Item "Left Line|L" "tabular-feature toggle-line-left"
161                 Item "Right Line|R" "tabular-feature toggle-line-right"
162                 Separator
163         End
164
165         Menu "edit_tabular_features"
166                 Item "Left|L" "tabular-feature align-left"
167                 Item "Center|C" "tabular-feature align-center"
168                 Item "Right|R" "tabular-feature align-right"
169                 Separator
170                 Item "Top|T" "tabular-feature valign-top"
171                 Item "Middle|M" "tabular-feature valign-middle"
172                 Item "Bottom|B" "tabular-feature valign-bottom"
173                 Separator
174                 Item "Add Row|A" "tabular-feature append-row"
175                 Item "Delete Row|D" "tabular-feature delete-row"
176                 Item "Copy Row|o" "tabular-feature copy-row"
177                 Item "Swap Rows|S" "tabular-feature swap-row"
178                 Separator
179                 Item "Add Column|u" "tabular-feature append-column"
180                 Item "Delete Column|e" "tabular-feature delete-column"
181                 Item "Copy Column|p" "tabular-feature copy-column"
182                 Item "Swap Columns|w" "tabular-feature swap-column"
183         End
184
185         Menu "edit_math"
186                 Item "Toggle Numbering|N" "math-number"
187                 Item "Toggle Numbering of Line|u" "math-nonumber"
188                 Submenu "Change Limits Type|L" "edit_math_limits"
189                 Separator
190                 Submenu "Change Formula Type|F" "edit_math_mutate"
191                 Separator
192                 Submenu "Text Style|T" "edit_math_textstyles"
193                 Separator
194                 Submenu "Use Computer Algebra System|S" "edit_math_extern"
195                 Separator
196                 Item "Split Cell|C" "cell-split"
197                 Separator
198                 Item "Add Line Above|A" "tabular-feature add-hline-above"
199                 Item "Add Line Below|B" "tabular-feature add-hline-below"
200                 Item "Delete Line Above|D" "tabular-feature delete-hline-above"
201                 Item "Delete Line Below|e" "tabular-feature delete-hline-below"
202                 Separator
203                 Item "Add Line to Left" "tabular-feature add-vline-left"
204                 Item "Add Line to Right" "tabular-feature add-vline-right"
205                 Item "Delete Line to Left" "tabular-feature delete-vline-left"
206                 Item "Delete Line to Right" "tabular-feature delete-vline-right"
207         End
208
209         Menu "edit_math_limits"
210                  Item "Default|t"  "math-limits empty"
211                  Item "Display|D"  "math-limits limits"
212                  Item "Inline|I"  "math-limits nolimits"
213         End
214
215         Menu "edit_math_textstyles"
216                 Item "Math Normal Font|N" "math-insert \mathnormal"
217                 Separator
218                 Item "Math Calligraphic Family|C" "math-insert \mathcal"
219                 Item "Math Fraktur Family|F" "math-insert \mathfrak"
220                 Item "Math Roman Family|R" "math-insert \mathrm"
221                 Item "Math Sans Serif Family|S" "math-insert \mathsf"
222                 Separator
223                 Item "Math Bold Series|B" "math-insert \mathbf"
224                 Separator
225                 Item "Text Normal Font|T" "math-insert \textnormal"
226                 Separator
227                 Item "Text Roman Family" "math-insert \textrm"
228                 Item "Text Sans Serif Family" "math-insert \textsf"
229                 Item "Text Typewriter Family" "math-insert \texttt"
230                 Separator
231                 Item "Text Bold Series" "math-insert \textbf"
232                 Item "Text Medium Series" "math-insert \textmd"
233                 Separator
234                 Item "Text Italic Shape" "math-insert \textit"
235                 Item "Text Small Caps Shape" "math-insert \textsc"
236                 Item "Text Slanted Shape" "math-insert \textsl"
237                 Item "Text Upright Shape" "math-insert \textup"
238         End
239
240         Menu "edit_math_extern"
241                 Item "Octave|O" "math-extern octave"
242                 Item "Maxima|M" "math-extern maxima"
243                 Item "Mathematica|a" "math-extern mathematica"
244                 Separator
245                 Item "Maple, simplify|s" "math-extern maple simplify"
246                 Item "Maple, factor|f" "math-extern maple factor"
247                 Item "Maple, evalm|e" "math-extern maple evalm"
248                 Item "Maple, evalf|v" "math-extern maple evalf"
249         End
250
251         Menu "edit_math_mutate"
252                 Item "Inline Formula|I" "math-mutate simple"
253                 Item "Displayed Formula|D" "math-mutate equation"
254                 Item "Eqnarray Environment|E" "math-mutate eqnarray"
255                 Item "AMS align Environment|a" "math-mutate align"
256                 Item "AMS alignat Environment|t" "math-mutate alignat"
257                 Item "AMS flalign Environment|f" "math-mutate flalign"
258                 Item "AMS gather Environment|g" "math-mutate gather"
259                 Item "AMS multline Environment|m" "math-mutate multline"
260         End
261
262 #
263 # VIEW MENU
264 #
265
266         Menu "view"
267                 Item "Open All Insets|O" "all-insets-toggle open"
268                 Item "Close All Insets|C" "all-insets-toggle close"
269                 Separator
270                 Item "View Source|S" "dialog-toggle view-source"
271                 Submenu "Update|U" "view_update"
272                 ViewFormats
273                 Separator
274                 Submenu "Toolbars|b" "toolbars"
275                 Separator
276             Documents
277         End
278
279         Menu "view_update"
280                 UpdateFormats
281         End
282
283         Menu "toolbars"
284                 Toolbars
285         End
286 #
287 # INSERT MENU
288 #
289         Menu "insert"
290 # Try and group things a little better, and percolate the most
291 # commonly used to good positions (exception being mathed, but
292 # most people using mathed learn key shortcuts quite quickly anyway)
293                 Submenu "Math|h" "insert_math"
294                 Submenu "Special Character|p" "insert_special"
295                 Submenu "Formatting|o" "insert_formatting"
296                 Submenu "List / TOC|i" "insert_toc"
297                 Submenu "Float|a" "insert_float"
298                 Submenu "Note|N" "insert_note"
299                 Submenu "Branch|B" "insert_branches"
300                 Submenu "Custom insets" "insert_custom"
301                 Submenu "File|e" "insert_file"
302                 Item "Box[[Menu]]" "box-insert Frameless"
303                 Separator
304                 Item "Citation...|C" "dialog-show-new-inset citation"
305                 Item "Cross-Reference...|R" "dialog-show-new-inset ref"
306                 Item "Label...|L" "label-insert"
307                 Item "Caption" "caption-insert"
308                 Item "Index Entry|d" "index-insert"
309                 Item "Nomenclature Entry...|y" "nomencl-insert"
310                 Separator
311                 Item "Table...|T" "tabular-insert"
312                 Item "Graphics...|G" "dialog-show-new-inset graphics"
313                 Item "Hyperlink|k" "href-insert"
314                 Item "Footnote|F" "footnote-insert"
315                 Item "Marginal Note|M" "marginalnote-insert"
316                 Item "Short Title|S" "optional-insert"
317                 Item "TeX Code|X" "ert-insert"
318                 Item "Program Listing[[Menu]]" "listing-insert"
319                 Item "Date" "date-insert"
320         End
321
322         Menu "insert_special"
323                 Item "Ellipsis|i" "dots-insert"
324                 Item "End of Sentence|E" "end-of-sentence-period-insert"
325                 Item "Ordinary Quote|Q" "self-insert \""
326                 Item "Single Quote|S" "quote-insert single"
327                 Item "Menu Separator|M" "menu-separator-insert"
328                 Item "Phonetic Symbols|y" "command-sequence math-mode on; math-insert \text\textipa ; char-forward ;"
329         End
330
331         Menu "insert_formatting"
332                 Item "Superscript|S" "command-sequence math-mode on; math-superscript; math-insert \text;"
333                 Item "Subscript|u" "command-sequence math-mode on; math-subscript; math-insert \text;"
334                 Separator
335                 Item "Protected Space|P" "space-insert protected"
336                 Item "Inter-word Space|w" "space-insert normal"
337                 Item "Thin Space|T" "space-insert thin"
338                 Item "Horizontal Fill|F" "hfill-insert"
339                 Item "Horizontal Line|L" "line-insert"
340                 Item "Vertical Space...|V" "dialog-show-new-inset vspace"
341                 Separator
342                 Item "Hyphenation Point|H" "hyphenation-point-insert"
343                 Item "Ligature Break|k" "ligature-break-insert"
344                 Item "Line Break|B" "break-line"
345                 Separator
346                 Item "Page Break|a" "pagebreak-insert"
347                 Item "Clear Page|C" "clearpage-insert"
348                 Item "Clear Double Page|D" "cleardoublepage-insert"
349         End
350
351         Menu "insert_math"
352                 Item "Inline Formula|I" "math-mode on"
353                 Item "Display Formula|D" "math-display"
354                 Item "Numbered Formula|N" "command-sequence math-display; math-number;"
355                 Item "Eqnarray Environment|E" "command-sequence math-mode on; math-mutate eqnarray;"
356                 Item "AMS align Environment|a" "command-sequence math-mode on; math-mutate align;"
357                 Item "AMS alignat Environment|t" "command-sequence math-mode on; math-mutate alignat;"
358                 Item "AMS flalign Environment|f" "command-sequence math-mode on; math-mutate flalign;"
359                 Item "AMS gather Environment|g" "command-sequence math-mode on; math-mutate gather;"
360                 Item "AMS multline Environment|m" "command-sequence math-mode on; math-mutate multline;"
361                 Separator
362                 Item "Array Environment|y" "math-matrix 2 2"
363                 Item "Cases Environment|C" "command-sequence math-mode on; math-insert \cases"
364                 Item "Aligned Environment|l" "command-sequence math-mode on; math-insert \aligned; tabular-feature append-column"
365                 Item "AlignedAt Environment|v" "command-sequence math-mode on; math-insert \alignedat; tabular-feature append-column"
366                 Item "Gathered Environment|h" "command-sequence math-mode on; math-insert \gathered"
367                 Item "Split Environment|S" "command-sequence math-mode on; math-insert \split; tabular-feature append-column"
368                 Separator
369                 Item "Delimiters|r" "dialog-show mathdelimiter"
370                 Item "Matrix|x" "dialog-show mathmatrix"
371                 Separator
372                 Item "Toggle Math Panels" "toolbar-toggle math_panels"
373         End
374
375         Menu "insert_float"
376                 FloatInsert
377 # This has got to be better than "Wrap", anyway
378                 Item "Figure Wrap Float|F" "wrap-insert figure"
379                 Item "Table Wrap Float|T" "wrap-insert table"
380         End
381
382         Menu "insert_toc"
383                 Item "Table of Contents|C" "toc-insert"
384                 FloatListInsert
385                 Item "Index List|I" "index-print"
386                 Item "Nomenclature|N" "nomencl-print"
387                 Item "BibTeX Bibliography...|B" "dialog-show-new-inset bibtex"
388         End
389
390         Menu "insert_file"
391                 Item "LyX Document...|X" "file-insert"
392                 Item "Plain Text...|T" "file-insert-plaintext"
393                 Item "Plain Text, Join Lines...|J" "file-insert-plaintext-para"
394                 Separator
395                 Item "External Material...|M" "dialog-show-new-inset external"
396                 Item "Child Document...|d" "dialog-show-new-inset include"
397         End
398
399         Menu "insert_note"
400                 Item "LyX Note|N" "note-insert Note"
401                 Item "Comment|C" "note-insert Comment"
402                 Item "Framed|F" "note-insert Framed"
403                 Item "Greyed Out|G" "note-insert Greyedout"
404                 Item "Shaded|S" "note-insert Shaded"
405         End
406
407         Menu "insert_branches"
408                 Branches
409         End
410
411         Menu "insert_custom"
412                 Custom
413         End
414
415 #
416 # DOCUMENT MENU
417 #
418
419         Menu "document"
420                 Submenu "Change Tracking|C" "document_change"
421                 OptItem "Build Program|B" "build-program"
422                 Item "LaTeX Log|L" "dialog-show latexlog"
423                 Item "Outline|O" "dialog-toggle toc"
424                 Item "Start Appendix Here|A" "appendix"
425                 Separator
426                 Item "Save in Bundled Format|F" "buffer-toggle-embedding"
427                 Item "Compressed|m" "buffer-toggle-compression"
428                 Item "Settings...|S" "dialog-show document"
429         End
430
431         Menu "document_change"
432                 Item "Track Changes|T" "changes-track"
433                 Item "Merge Changes...|M" "changes-merge"
434                 Item "Accept Change|A" "change-accept"
435                 Item "Reject Change|R" "change-reject"
436                 Item "Accept All Changes|c" "all-changes-accept"
437                 Item "Reject All Changes|e" "all-changes-reject"
438                 Item "Show Changes in Output|S" "changes-output"
439         End
440
441 #
442 # NAVIGATE MENU
443 #
444         Menu "navigate"
445                 Submenu "Bookmarks|B" "navigate_bookmarks"
446                 Item "Next Note|N" "note-next"
447                 Item "Next Change|C" "change-next"
448                 Item "Next Cross-Reference|R" "reference-next"
449                 Item "Go to Label|L" "label-goto"
450                 Separator
451                 Toc
452         End
453
454         Menu "navigate_bookmarks"
455                 Item "Save Bookmark 1|S" "bookmark-save 1"
456                 Item "Save Bookmark 2" "bookmark-save 2"
457                 Item "Save Bookmark 3" "bookmark-save 3"
458                 Item "Save Bookmark 4" "bookmark-save 4"
459                 Item "Save Bookmark 5" "bookmark-save 5"
460                 Item "Clear Bookmarks|C" "bookmark-clear"
461                 Separator
462                 Bookmarks
463         End
464
465 #
466 # TOOLS MENU
467 #
468
469         Menu "tools"
470                 Item "Spellchecker...|S" "dialog-show spellchecker"
471                 OptItem "Thesaurus...|T" "thesaurus-entry"
472                 Item "Count Words|W" "words-count"
473                 OptItem "Check TeX|h" "buffer-chktex"
474                 Item "TeX Information|I" "dialog-show texinfo"
475                 Separator
476 # A LOT of applications have Tools->Prefs. Remember this
477 # should be rarely used - Edit menu is not a good place to
478 # have it.
479                 Item "Reconfigure|R" "reconfigure"
480                 Item "Preferences...|P" "dialog-show prefs"
481         End
482
483 #
484 # HELP MENU
485 #
486         Menu "help"
487                 Item "Introduction|I" "help-open Intro"
488                 Item "Tutorial|T" "help-open Tutorial"
489                 Item "User's Guide|U" "help-open UserGuide"
490                 Item "Extended Features|E" "help-open Extended"
491                 Item "Embedded Objects|m" "help-open EmbeddedObjects" 
492                 Item "Customization|C" "help-open Customization"
493                 Item "Shortcuts|S" "help-open Shortcuts"
494                 Item "FAQ|F" "help-open FAQ"
495                 Item "Table of Contents|a" "help-open TOC"
496                 Item "LaTeX Configuration|L" "help-open LaTeXConfig"
497                 Separator
498                 Item "About LyX|X" "dialog-show aboutlyx"
499         End
500
501 End