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