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