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