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