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