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