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