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