]> git.lyx.org Git - lyx.git/blob - lib/ui/stdmenus.ui
* ui/stdmenus.ui: move "New Window" and "Close Window" to the bottom of the menu
[lyx.git] / lib / ui / stdmenus.ui
1 # -*- text -*-
2
3 # file stdmenus.ui
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" "edit_pasterecent"
91                 Submenu "Paste External Clipboard/Selection" "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                 OptItem "Increase List Depth|I" "depth-increment"
107                 OptItem "Decrease List Depth|D" "depth-decrement"
108                 OptItem "Dissolve Inset|s" "inset-dissolve"
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 "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" "tabular-feature append-row"
169                 Item "Delete Row" "tabular-feature delete-row"
170                 Item "Copy Row" "tabular-feature copy-row"
171                 Item "Swap Rows" "tabular-feature swap-row"
172                 Separator
173                 Item "Add Column" "tabular-feature append-column"
174                 Item "Delete Column" "tabular-feature delete-column"
175                 Item "Copy Column" "tabular-feature copy-column"
176                 Item "Swap Columns" "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" "tabular-feature add-hline-above"
193                 Item "Add Line Below" "tabular-feature add-hline-below"
194                 Item "Delete Line Above" "tabular-feature delete-hline-above"
195                 Item "Delete Line Below" "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" "math-insert \mathnormal"
211                 Separator
212                 Item "Math Calligraphic Family" "math-insert \mathcal"
213                 Item "Math Fraktur Family" "math-insert \mathfrak"
214                 Item "Math Roman Family" "math-insert \mathrm"
215                 Item "Math Sans Serif Family" "math-insert \mathsf"
216                 Separator
217                 Item "Math Bold Series" "math-insert \mathbf"
218                 Separator
219                 Item "Text Normal Font" "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" "math-extern octave"
236                 Item "Maxima" "math-extern maxima"
237                 Item "Mathematica" "math-extern mathematica"
238                 Separator
239                 Item "Maple, simplify" "math-extern maple simplify"
240                 Item "Maple, factor" "math-extern maple factor"
241                 Item "Maple, evalm" "math-extern maple evalm"
242                 Item "Maple, evalf" "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|q" "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             Documents
269         End
270
271         Menu "view_update"
272                 UpdateFormats
273         End
274
275 #
276 # INSERT MENU
277 #
278         Menu "insert"
279 # Try and group things a little better, and percolate the most
280 # commonly used to good positions (exception being mathed, but
281 # most people using mathed learn key shortcuts quite quickly anyway)
282                 Submenu "Math|h" "insert_math"
283                 Submenu "Special Character|S" "insert_special"
284                 Submenu "Special Formatting|o" "insert_formatting"
285                 Submenu "List / TOC|i" "insert_toc"
286                 Submenu "Float|a" "insert_float"
287 # YUCK
288                 Submenu "Note|N" "insert_note"
289                 OptSubmenu "Branch|B" "insert_branches"
290                 Submenu "File|e" "insert_file"
291                 Item "Box" "box-insert Frameless"
292                 Separator
293                 Item "Citation...|C" "dialog-show-new-inset citation"
294                 Item "Cross-reference...|r" "dialog-show-new-inset ref"
295                 Item "Label...|L" "label-insert"
296                 Item "Index Entry|d" "index-insert"
297                 Item "Date" "date-insert"
298 # I'm going to kill this dumb dialog, but for now ...
299                 Separator
300                 Item "Table...|T" "tabular-insert"
301                 Item "Graphics...|G" "dialog-show-new-inset graphics"
302                 Item "URL...|U" "url-insert"
303                 Item "Footnote|F" "footnote-insert"
304                 Item "Marginal Note|M" "marginalnote-insert"
305                 Item "Short Title" "optional-insert"
306                 Item "TeX Code|X" "ert-insert"
307         End
308
309         Menu "insert_special"
310                 Item "Ellipsis|i" "dots-insert"
311                 Item "End of Sentence|E" "end-of-sentence-period-insert"
312                 Item "Ordinary Quote|Q" "self-insert \""
313                 Item "Single Quote|S" "quote-insert single"
314                 Item "Menu Separator|M" "menu-separator-insert"
315                 Item "Phonetic Symbols|y" "command-sequence math-mode on; math-insert \text\textipa ; char-forward ;"
316         End
317
318         Menu "insert_formatting"
319                 Item "Superscript|S" "command-sequence math-mode on; math-superscript; math-insert \text;"
320                 Item "Subscript|u" "command-sequence math-mode on; math-subscript; math-insert \text;"
321                 Separator
322                 Item "Protected Space|r" "space-insert protected"
323                 Item "Inter-word Space|w" "space-insert normal"
324                 Item "Thin Space|T" "space-insert thin"
325                 Item "Horizontal Fill|H" "hfill-insert"
326                 Item "Horizontal Line" "line-insert"
327                 Item "Vertical Space..." "dialog-show-new-inset vspace"
328                 Separator
329                 Item "Hyphenation Point|P" "hyphenation-point-insert"
330                 Item "Ligature Break|k" "ligature-break-insert"
331                 Item "Line Break|L" "break-line"
332                 Item "Page Break" "pagebreak-insert"
333         End
334
335         Menu "insert_math"
336                 Item "Inline Formula|I" "math-mode on"
337                 Item "Display Formula|D" "math-display"
338                 Item "Numbered Formula|N" "command-sequence math-display; math-number;"
339                 Item "Eqnarray Environment|E" "command-sequence math-mode on; math-mutate eqnarray;"
340                 Item "AMS align Environment|a" "command-sequence math-mode on; math-mutate align;"
341                 Item "AMS alignat Environment|t" "command-sequence math-mode on; math-mutate alignat;"
342                 Item "AMS flalign Environment|f" "command-sequence math-mode on; math-mutate flalign;"
343                 Item "AMS gather Environment|g" "command-sequence math-mode on; math-mutate gather;"
344                 Item "AMS multline Environment|m" "command-sequence math-mode on; math-mutate multline;"
345                 Separator
346                 Item "Array Environment|y" "math-matrix 2 2"
347                 Item "Cases Environment|C" "command-sequence math-mode on; math-insert \cases"
348                 Item "Aligned Environment" "command-sequence math-mode on; math-insert \aligned; tabular-feature append-column"
349                 Item "AlignedAt Environment" "command-sequence math-mode on; math-insert \alignedat; tabular-feature append-column"
350                 Item "Gathered Environment" "command-sequence math-mode on; math-insert \gathered"
351                 Item "Split Environment|S" "command-sequence math-mode on; math-insert \split; tabular-feature append-column"
352                 Separator
353                 Item "Math Panel|P" "dialog-show mathpanel"
354         End
355
356         Menu "insert_float"
357                 FloatInsert
358 # This has got to be better than "Wrap", anyway
359                 Item "Text Wrap Float|W" "wrap-insert figure"
360         End
361
362         Menu "insert_toc"
363                 Item "Table of Contents|C" "toc-insert"
364                 FloatListInsert
365                 Item "Index List|I" "index-print"
366                 Item "BibTeX Bibliography...|B" "dialog-show-new-inset bibtex"
367         End
368
369         Menu "insert_file"
370                 Item "LyX Document...|X" "file-insert"
371                 Item "Plain Text as Lines...|L" "file-insert-ascii"
372                 Item "Plain Text as Paragraphs...|P" "file-insert-ascii-para"
373                 Separator
374                 Item "External Material...|M" "dialog-show-new-inset external"
375                 Item "Child Document...|d" "dialog-show-new-inset include"
376         End
377
378         Menu "insert_note"
379                 Item "LyX Note|N" "note-insert Note"
380                 Item "Comment|C" "note-insert Comment"
381                 Item "Greyed Out|G" "note-insert Greyedout"
382         End
383
384         Menu "insert_branches"
385                 Branches
386         End
387
388 #
389 # DOCUMENT MENU
390 #
391
392         Menu "document"
393                 Submenu "Change Tracking|C" "document_change"
394                 OptItem "Build Program|B" "build-program"
395                 Item "LaTeX Log|L" "dialog-show latexlog"
396                 Item "Table of Contents|T" "toc-view"
397                 Item "Start Appendix Here|A" "appendix"
398                 Separator
399                 Item "Compressed|o" "buffer-toggle-compression"
400                 Item "Settings...|S" "dialog-show document"
401         End
402
403         Menu "document_change"
404                 Item "Track Changes|T" "changes-track"
405                 Item "Merge Changes...|M" "changes-merge"
406                 Item "Accept Change|A" "change-accept"
407                 Item "Reject Change|R" "change-reject"
408                 Item "Accept All Changes|c" "all-changes-accept"
409                 Item "Reject All Changes|e" "all-changes-reject"
410                 Item "Show Changes in Output|S" "changes-output"
411         End
412
413 #
414 # NAVIGATE MENU
415 #
416         Menu "navigate"
417                 Submenu "Bookmarks|B" "navigate_bookmarks"
418                 Item "Next Note|N" "note-next"
419                 Item "Next Change|C" "change-next"
420                 Item "Next Reference|R" "reference-next"
421                 Item "Go to Label|L" "label-goto"
422                 Separator
423                 Toc
424         End
425
426         Menu "navigate_bookmarks"
427                 Item "Go to Bookmark 1|1" "bookmark-goto 1"
428                 Item "Go to Bookmark 2|2" "bookmark-goto 2"
429                 Item "Go to Bookmark 3|3" "bookmark-goto 3"
430                 Item "Go to Bookmark 4|4" "bookmark-goto 4"
431                 Item "Go to Bookmark 5|5" "bookmark-goto 5"
432                 Separator
433                 Item "Save Bookmark 1|S" "bookmark-save 1"
434                 Item "Save Bookmark 2" "bookmark-save 2"
435                 Item "Save Bookmark 3" "bookmark-save 3"
436                 Item "Save Bookmark 4" "bookmark-save 4"
437                 Item "Save Bookmark 5" "bookmark-save 5"
438         End
439
440 #
441 # TOOLS MENU
442 #
443
444         Menu "tools"
445                 Item "Spellchecker...|S" "dialog-show spellchecker"
446                 OptItem "Thesaurus...|T" "thesaurus-entry"
447                 Item "Count Words|W" "words-count"
448                 OptItem "Check TeX|h" "buffer-chktex"
449                 Item "TeX Information|I" "dialog-show texinfo"
450                 Separator
451 # A LOT of applications have Tools->Prefs. Remember this
452 # should be rarely used - Edit menu is not a good place to
453 # have it.
454                 Item "Reconfigure|R" "reconfigure"
455                 Item "Preferences...|P" "dialog-show prefs"
456         End
457
458 #
459 # HELP MENU
460 #
461         Menu "help"
462                 Item "Introduction|I" "help-open Intro"
463                 Item "Tutorial|T" "help-open Tutorial"
464                 Item "User's Guide|U" "help-open UserGuide"
465                 Item "Extended Features|E" "help-open Extended"
466                 Item "Customization|C" "help-open Customization"
467                 Item "FAQ|F" "help-open FAQ"
468                 Item "Table of Contents|a" "help-open TOC"
469                 Item "LaTeX Configuration|L" "help-open LaTeXConfig"
470                 Separator
471                 Item "About LyX|X" "dialog-show aboutlyx"
472         End
473
474 #
475 #  LYX MENU - this menu is only used by LyX/Mac
476 #
477
478         Menu "LyX"
479                 Item "About LyX" "dialog-show aboutlyx"
480                 Item "Preferences..." "dialog-show prefs"
481                 Item "Quit LyX" "lyx-quit"
482         End
483
484 End