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