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