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