]> git.lyx.org Git - features.git/blob - lib/ui/stdcontext.inc
Context menu of equations:
[features.git] / lib / ui / stdcontext.inc
1 # -*- text -*-
2
3 # file stdcontext.inc
4 # This file is part of LyX, the document processor.
5 # Licence details can be found in the file COPYING.
6
7 # author The LyX Team
8
9 # Full author contact details are available in file CREDITS.
10
11 # The interface is designed (partially) following the KDE Human Interface
12 # Guidelines (http://usability.kde.org/hig/)
13
14 Menuset
15
16 #
17 # InsetMath context menu
18 #
19         Menu "insert_math_context"
20                 Item "Array Environment|y" "math-matrix 2 2"
21                 Item "Cases Environment|C" "command-sequence math-mode on; math-insert \cases"
22                 Item "Aligned Environment|l" "command-sequence math-mode on; math-insert \aligned; tabular-feature append-column"
23                 Item "AlignedAt Environment|v" "command-sequence math-mode on; math-insert \alignedat; tabular-feature append-column"
24                 Item "Gathered Environment|h" "command-sequence math-mode on; math-insert \gathered"
25                 Item "Split Environment|S" "command-sequence math-mode on; math-insert \split; tabular-feature append-column"
26                 Separator
27                 Item "Delimiters...|r" "dialog-show mathdelimiter"
28                 Item "Matrix...|x" "dialog-show mathmatrix"
29                 Item "Macro|o" "math-macro newmacroname newcommand"
30         End
31
32         Menu "ams_environment"
33                 Item "AMS align Environment|a" "math-mutate align"
34                 Item "AMS alignat Environment|t" "math-mutate alignat"
35                 Item "AMS flalign Environment|f" "math-mutate flalign"
36                 Item "AMS gather Environment|g" "math-mutate gather"
37                 Item "AMS multline Environment|m" "math-mutate multline"
38         End
39         
40         Menu "context-math"
41                 Item "Inline Formula|I" "math-mutate simple"
42                 Item "Displayed Formula|D" "math-mutate equation"
43                 Item "Eqnarray Environment|E" "math-mutate eqnarray"
44                 Submenu "AMS Environment|A" "ams_environment"
45                 Separator               
46                 OptItem "Number whole Formula|N" "math-number-toggle"\r
47                 OptItem "Number this Line|u" "math-number-line-toggle"
48                 OptItem "Equation Label|L" "label-insert"
49                 OptItem "Copy as Reference|R" "copy-label-as-reference"
50                 Separator
51                 Item "Split Cell|C" "cell-split"
52                 Separator
53                 Submenu "Insert|n" "insert_math_context"
54                 Separator
55                 OptItem "Add Line Above|o" "tabular-feature add-hline-above"
56                 OptItem "Add Line Below|B" "tabular-feature add-hline-below"
57                 OptItem "Delete Line Above|D" "tabular-feature delete-hline-above"
58                 OptItem "Delete Line Below|e" "tabular-feature delete-hline-below"
59                 Separator
60                 OptItem "Add Line to Left" "tabular-feature add-vline-left"
61                 OptItem "Add Line to Right" "tabular-feature add-vline-right"
62                 OptItem "Delete Line to Left" "tabular-feature delete-vline-left"
63                 OptItem "Delete Line to Right" "tabular-feature delete-vline-right"
64                 Separator
65                 Item "Show Math Toolbar" "toolbar-toggle math toggle"
66                 Item "Show Math-Panels Toolbar" "toolbar-toggle math_panels toggle"
67                 Item "Show Table Toolbar" "toolbar-toggle table toggle"
68         End
69
70
71 #
72 # InsetRef context menu
73 #
74         Menu "context-ref"
75                 Item "Next Cross-Reference|N" "reference-next"
76                 Item "Go to Label|G" "label-goto"
77                 Separator
78                 Item "<reference>|r" "next-inset-modify changetype ref"
79                 Item "(<reference>)|e" "next-inset-modify changetype eqref"
80                 Item "<page>|p" "next-inset-modify changetype pageref"
81                 Item "on page <page>|o" "next-inset-modify changetype vpageref"
82                 Item "<reference> on page <page>|f" "next-inset-modify changetype vref"
83                 Item "Formatted reference|t" "next-inset-modify changetype prettyref"
84                 Separator
85                 Item "Settings...|S" "inset-settings"
86         End
87
88 #
89 # InsetLabel context menu
90 #
91         Menu "context-label"
92                 Item "Next Cross-Reference|N" "reference-next"
93                 Item "Go back|G" "bookmark-goto 0"
94                 Separator
95                 Item "Copy as Reference|C" "copy-label-as-reference"
96                 Separator
97                 Item "Settings...|S" "inset-settings"
98         End
99
100
101 #
102 # InsetCitation context menu
103 #
104         Menu "context-citation"
105                 CiteStyles
106                 Separator
107                 Item "Settings...|S" "inset-settings"
108         End
109
110
111 #
112 # InsetBibtex context menu
113 #
114         Menu "context-bibtex"
115                 Item "Settings...|S" "inset-settings"
116                 Separator
117                 Item "Edit Database(s) externally...|x" "inset-edit"
118         End
119
120
121 #
122 # InsetCollapsable context menu
123 #
124         Menu "context-collapsable"
125                 OptItem "Open Inset|O" "inset-toggle open"
126                 OptItem "Close Inset|C" "inset-toggle close"
127                 Separator
128                 Item "Dissolve Inset|D" "inset-dissolve"
129                 OptItem "Settings...|S" "inset-settings"
130         End
131
132         Menu "context-conglomerate"
133                 Item "Toggle Label|L" "inset-toggle"
134                 Item "Dissolve Inset|D" "inset-dissolve charstyle"
135                 Separator
136                 OptItem "Settings...|S" "inset-settings"
137         End
138
139 #
140 # InsetBox context menu
141 #
142
143         Menu "context-box"
144                 Item "Frameless|l" "next-inset-modify changetype Frameless"
145                 Item "Simple frame|f" "next-inset-modify changetype Boxed"
146                 Item "Simple frame, page breaks|p" "next-inset-modify changetype Framed"
147                 Item "Oval, thin|a" "next-inset-modify changetype ovalbox"
148                 Item "Oval, thick|v" "next-inset-modify changetype Ovalbox"
149                 Item "Drop Shadow|w" "next-inset-modify changetype Shadowbox"
150                 Item "Shaded background|b" "next-inset-modify changetype Shaded"
151                 Item "Double frame|u" "next-inset-modify changetype Doublebox"
152                 Separator
153                 OptItem "Open Inset|O" "inset-toggle open"
154                 OptItem "Close Inset|C" "inset-toggle close"
155                 Separator
156                 Item "Dissolve Inset|D" "inset-dissolve"
157                 Item "Settings...|S" "inset-settings box"
158         End
159
160 #
161 # InsetNote context menu
162 #
163
164         Menu "context-note"
165                 Item "LyX Note|N" "next-inset-modify note Note Note"
166                 Item "Comment|m" "next-inset-modify note Note Comment"
167                 Item "Greyed Out|G" "next-inset-modify note Note Greyedout"
168                 Separator
169                 OptItem "Open Inset|O" "inset-toggle open"
170                 OptItem "Close Inset|C" "inset-toggle close"
171                 Separator
172                 Item "Dissolve Inset|D" "inset-dissolve"
173         End
174
175 #
176 # InsetPhantom context menu
177 #
178
179         Menu "context-phantom"
180                 Item "Phantom" "next-inset-modify phantom Phantom Phantom"
181                 Item "Horiz. Phantom" "next-inset-modify phantom Phantom HPhantom"
182                 Item "Vert. Phantom" "next-inset-modify phantom Phantom VPhantom"
183                 Separator
184                 Item "Dissolve Inset|D" "inset-dissolve"
185         End
186
187 #
188 # InsetSpace context menu
189 #
190         Menu "context-space"
191                 Item "Interword Space|w" "next-inset-modify space \space{}"
192                 Item "Protected Space|o" "next-inset-modify space ~"
193                 Item "Thin Space|T" "next-inset-modify space \thinspace{}"
194                 Item "Negative Thin Space|N" "next-inset-modify space \negthinspace{}"
195                 Item "Half Quad Space (Enskip)|k" "next-inset-modify space \enskip{}"
196                 Item "Protected Half Quad Space (Enspace)|E" "next-inset-modify space \enspace{}"
197                 Item "Quad Space|Q" "next-inset-modify space \quad{}"
198                 Item "Double Quad Space|u" "next-inset-modify space \qquad{}"
199                 Item "Horizontal Fill|F" "next-inset-modify space \hfill{}"
200                 Item "Protected Horizontal Fill|i" "next-inset-modify space \hspace*{\fill}"
201                 Item "Horizontal Fill (Dots)|D" "next-inset-modify space \dotfill{}"
202                 Item "Horizontal Fill (Rule)|R" "next-inset-modify space \hrulefill{}"
203                 Item "Horizontal Fill (Left Arrow)|L" "next-inset-modify space \leftarrowfill{}"
204                 Item "Horizontal Fill (Right Arrow)|g" "next-inset-modify space \rightarrowfill{}"
205                 Item "Horizontal Fill (Up Brace)|p" "next-inset-modify space \upbracefill{}"
206                 Item "Horizontal Fill (Down Brace)|B" "next-inset-modify space \downbracefill{}"
207                 Item "Custom Length|C" "command-sequence next-inset-modify space \hspace{} \length 1in; inset-settings"
208                 Separator
209                 Item "Settings...|S" "inset-settings"
210         End
211
212 #
213 # InsetMathSpace context menu
214 #
215         Menu "context-mathspace"
216                 Item "Thin Space|T" "next-inset-modify mathspace \thinspace{}"
217                 Item "Medium Space|M" "next-inset-modify mathspace \medspace{}"
218                 Item "Thick Space|h" "next-inset-modify mathspace \thickspace{}"
219                 Item "Negative Thin Space|N" "next-inset-modify mathspace \negthinspace{}"
220                 Item "Negative Medium Space|u" "next-inset-modify mathspace \negmedspace{}"
221                 Item "Negative Thick Space|i" "next-inset-modify mathspace \negthickspace{}"
222                 Item "Half Quad Space (Enskip)|k" "next-inset-modify mathspace \enskip{}"
223                 Item "Quad Space|Q" "next-inset-modify mathspace \quad{}"
224                 Item "Double Quad Space|u" "next-inset-modify mathspace \qquad{}"
225                 Item "Custom Length|C" "command-sequence next-inset-modify mathspace \hspace{} \length 1in; inset-settings"
226                 Separator
227                 Item "Settings...|S" "inset-settings"
228         End
229
230 #
231 # InsetVSpace context menu
232 #
233         Menu "context-vspace"
234                 Item "DefSkip|D" "next-inset-modify vspace defskip"
235                 Item "SmallSkip|S" "next-inset-modify vspace smallskip"
236                 Item "MedSkip|M" "next-inset-modify vspace medskip"
237                 Item "BigSkip|B" "next-inset-modify vspace bigskip"
238                 Item "VFill|F" "next-inset-modify vspace vfill"
239                 Item "Custom|C" "command-sequence next-inset-modify vspace 1in; inset-settings"
240                 Separator
241                 Item "Settings...|e" "inset-settings"
242         End
243
244 #
245 # InsetInclude context menu
246 #
247         Menu "context-include"
248                 Item "Include|c" "next-inset-modify changetype include"
249                 Item "Input|p" "next-inset-modify changetype input"
250                 Item "Verbatim|V" "next-inset-modify changetype verbatiminput"
251                 Item "Verbatim (marked blanks)|b" "next-inset-modify changetype verbatiminput*"
252                 Item "Listing|L" "next-inset-modify changetype lstinputlisting"
253                 Separator
254                 Item "Settings...|S" "inset-settings"
255                 Separator
256                 Item "Edit included file...|E" "inset-edit"
257         End
258
259 #
260 # InsetNewpage context menu
261 #
262         Menu "context-newpage"
263                 Item "New Page|N" "next-inset-modify newpage newpage"
264                 Item "Page Break|a" "next-inset-modify newpage pagebreak"
265                 Item "Clear Page|C" "next-inset-modify newpage clearpage"
266                 Item "Clear Double Page|D" "next-inset-modify newpage cleardoublepage"
267         End
268
269 #
270 # InsetNewline context menu
271 #
272         Menu "context-newline"
273                 Item "Ragged Line Break|R" "next-inset-modify newline newline"
274                 Item "Justified Line Break|J" "next-inset-modify newline linebreak"
275         End
276
277 #
278 # Edit context menu
279 #
280         Menu "context-edit"
281                 Item "Cut" "cut"
282                 Item "Copy" "copy"
283                 Item "Paste" "paste"
284                 spellingsuggestions
285                 Submenu "Paste Recent|e" "edit_pasterecent"
286                 Separator
287                 Item "Jump Back to Saved Bookmark|B" "bookmark-goto 0"
288                 Separator
289                 Item "Move Paragraph Up|o" "paragraph-move-up"
290                 Item "Move Paragraph Down|v" "paragraph-move-down"
291                 Separator
292                 OptItem "Promote Section|r" "outline-out"
293                 OptItem "Demote Section|m" "outline-in"
294                 OptItem "Move Section down|d" "outline-down"
295                 OptItem "Move Section up|u" "outline-up"
296                 OptItem "Insert Short Title|T" "optional-insert"
297                 Separator
298                 OptItem "Accept Change|c" "change-accept"
299                 OptItem "Reject Change|j" "change-reject"
300                 Separator
301                 Item "Apply Last Text Style|A" "textstyle-apply"
302                 Submenu "Text Style|S" "edit_textstyles"
303                 Item "Paragraph Settings...|P" "layout-paragraph"
304                 Separator
305                 Item "Fullscreen Mode" "ui-toggle fullscreen"
306         End
307
308 #
309 # Math Macro context menu
310 #
311
312         Menu "context-math-macro-definition"
313                 Item "Append Argument" "math-macro-add-param"
314                 Item "Remove Last Argument" "math-macro-remove-param"
315                 Separator
316                 Item "Make First Non-Optional into Optional Argument" "math-macro-make-optional"
317                 Item "Make Last Optional into Non-Optional Argument" "math-macro-make-nonoptional"
318                 Item "Insert Optional Argument" "math-macro-add-optional-param"
319                 Item "Remove Optional Argument" "math-macro-remove-optional-param"
320                 Separator
321                 Item "Append Argument Eating From The Right" "math-macro-append-greedy-param"
322                 Item "Append Optional Argument Eating From The Right" "math-macro-add-greedy-optional-param"
323                 Item "Remove Last Argument Spitting Out To The Right" "math-macro-remove-greedy-param"
324         End
325
326 #
327 # InsetListing context menu
328 #
329
330         Menu "context-listings"
331                 Item "Cut" "cut"
332                 Item "Copy" "copy"
333                 Item "Paste" "paste"
334                 Submenu "Paste Recent|e" "edit_pasterecent"
335                 Separator
336                 OptItem "Open Inset|O" "inset-toggle open"
337                 OptItem "Close Inset|C" "inset-toggle close"
338                 Separator
339                 Item "Dissolve Inset|D" "inset-dissolve"
340                 Item "Settings...|S" "inset-settings listings"
341         End
342
343 #
344 # InsetGraphics context menu
345 #
346
347         Menu "context-graphics"
348                 Item "Settings...|S" "inset-settings"
349                 Separator
350                 Item "Edit externally...|x" "inset-edit"
351                 Separator
352                 GraphicsGroups
353         End
354
355 #
356 # InsetExternal context menu
357 #
358
359         Menu "context-external"
360                 Item "Settings...|S" "inset-settings"
361                 Separator
362                 Item "Edit externally...|x" "inset-edit"
363         End
364
365 #
366 # InsetTabular context menu
367 #
368
369         Menu "context-tabular"
370                 Item "Multicolumn|M" "tabular-feature multicolumn"
371                 Separator
372                 Item "Top Line|T" "tabular-feature toggle-line-top"
373                 Item "Bottom Line|B" "tabular-feature toggle-line-bottom"
374                 Item "Left Line|L" "tabular-feature toggle-line-left"
375                 Item "Right Line|R" "tabular-feature toggle-line-right"
376                 Separator
377                 Item "Left|L" "tabular-feature align-left"
378                 Item "Center|C" "tabular-feature align-center"
379                 Item "Right|R" "tabular-feature align-right"
380                 Separator
381                 Item "Top|T" "tabular-feature valign-top"
382                 Item "Middle|M" "tabular-feature valign-middle"
383                 Item "Bottom|B" "tabular-feature valign-bottom"
384                 Separator
385                 Item "Add Row|A" "tabular-feature append-row"
386                 Item "Delete Row|D" "tabular-feature delete-row"
387                 Item "Copy Row|o" "tabular-feature copy-row"
388                 # Item "Swap Rows|S" "tabular-feature swap-row" # currently broken
389                 Separator
390                 Item "Add Column|u" "tabular-feature append-column"
391                 Item "Delete Column|e" "tabular-feature delete-column"
392                 Item "Copy Column|p" "tabular-feature copy-column"
393                 # Item "Swap Columns|w" "tabular-feature swap-column" # currently broken
394                 Separator
395                 Item "Settings...|S" "inset-settings tabular"
396         End
397
398
399 #
400 # InsetInfo context menu
401 #
402
403         Menu "context-info"
404                 Item "Settings...|S" "inset-settings info"
405         End
406
407 #
408 # InsetBranch context menu
409 #
410
411         Menu "context-branch"
412                 OptItem "Open Inset|O" "inset-toggle open"
413                 OptItem "Close Inset|C" "inset-toggle close"
414                 Separator
415                 OptItem "Activate Branch|A" "branch-activate"
416                 OptItem "Deactivate Branch|e" "branch-deactivate"
417                 Separator
418                 Item "Dissolve Inset|D" "inset-dissolve"
419                 OptItem "Settings...|S" "inset-settings"
420         End
421
422 #
423 # Toc Labels and References context menu
424 #
425
426         Menu "context-toc-label"
427                 OptItem "Copy as Reference|C" "copy-label-as-reference"
428                 OptItem "Insert Reference at Cursor Position|I" "label-insert-as-reference"
429                 Separator
430                 Item "Settings...|S" "inset-settings"
431         End
432
433 #
434 # Toc Branches context menu
435 #
436
437         Menu "context-toc-branch"
438                 OptItem "Activate Branch|A" "branch-activate"
439                 OptItem "Deactivate Branch|e" "branch-deactivate"
440                 Separator
441                 Item "Settings...|S" "inset-settings"
442         End
443
444 #
445 # Toc Graphics context menu
446 #
447
448         Menu "context-toc-graphics"
449                 Item "Settings...|S" "inset-settings"
450                 Separator
451                 Item "Edit externally...|x" "inset-edit"
452         End
453
454 #
455 # Toc Citation context menu
456 #
457
458         Menu "context-toc-citation"
459                 Item "Settings...|S" "inset-settings"
460         End
461
462 #
463 # Toc Figures context menu
464 #
465
466         Menu "context-toc-figure"
467                 Item "Settings...|S" "inset-settings"
468         End
469
470 #
471 # Toc Listings context menu
472 #
473
474         Menu "context-toc-listing"
475                 Item "Settings...|S" "inset-settings"
476         End
477
478 #
479 # Toc Tables context menu
480 #
481
482         Menu "context-toc-table"
483                 Item "Settings...|S" "inset-settings"
484         End
485
486 #
487 # Toc Childs context menu
488 #
489         Menu "context-toc-child"
490                 Item "Include|c" "inset-modify changetype include"
491                 Item "Input|p" "inset-modify changetype input"
492                 Item "Verbatim|V" "inset-modify changetype verbatiminput"
493                 Item "Verbatim (marked blanks)|b" "inset-modify changetype verbatiminput*"
494                 Item "Listing|L" "inset-modify changetype lstinputlisting"
495                 Separator
496                 Item "Settings...|S" "inset-settings"
497                 Separator
498                 Item "Edit included file...|E" "inset-edit"
499         End
500
501 #
502 # Toc Indices context menu
503 #
504
505         Menu "context-toc-index"
506                 OptItem "Settings...|S" "inset-settings"
507         End
508
509 #
510 # Index context menu
511 #
512
513         Menu "context-index"
514                 IndicesContext
515                 Separator
516                 OptItem "Open Inset|O" "inset-toggle open"
517                 OptItem "Close Inset|C" "inset-toggle close"
518                 Separator
519                 Item "Dissolve Inset|D" "inset-dissolve"
520                 Separator
521                 OptItem "Settings...|S" "inset-settings"
522         End
523
524 #
525 # Index Lists context menu
526 #
527
528         Menu "context-indexprint"
529                 Item "All Indexes|A" "next-inset-modify check-printindex*"
530                 IndicesListsContext
531                 Separator
532                 Item "Subindex|b" "next-inset-modify toggle-subindex"
533                 Separator
534                 OptItem "Settings...|S" "inset-settings"
535         End
536
537
538 #
539 # Toc Changes context menu
540 #
541
542         Menu "context-toc-change"
543                 Item "Accept Change|C" "change-accept"
544                 Item "Reject Change|R" "change-reject"
545         End     
546         
547 #
548 # Toc Table of Context context menu
549 #
550
551         Menu "context-toc-tableofcontents"
552                 Item "Promote Section|P" "outline-out"
553                 Item "Demote Section|D" "outline-in"
554                 Item "Move Section Up|U" "outline-up"
555                 Item "Move Section Down|w" "outline-down"
556                 Separator
557                 Item "Select Section|S" "section-select"
558         End     
559
560 End