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