]> git.lyx.org Git - lyx.git/blob - lib/ui/stdcontext.inc
* stdcontext.inc:
[lyx.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"
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 "Show 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 "Open All Notes|A" "all-insets-toggle open note"
173                 Item "Close All Notes|l" "all-insets-toggle close note"
174                 Separator
175                 Item "Dissolve Inset|D" "inset-dissolve"
176         End
177
178 #
179 # InsetPhantom context menu
180 #
181
182         Menu "context-phantom"
183                 Item "Phantom" "next-inset-modify phantom Phantom Phantom"
184                 Item "Horiz. Phantom" "next-inset-modify phantom Phantom HPhantom"
185                 Item "Vert. Phantom" "next-inset-modify phantom Phantom VPhantom"
186                 Separator
187                 Item "Dissolve Inset|D" "inset-dissolve"
188         End
189
190 #
191 # InsetSpace context menu
192 #
193         Menu "context-space"
194                 Item "Interword Space|w" "next-inset-modify space \space{}"
195                 Item "Protected Space|o" "next-inset-modify space ~"
196                 Item "Thin Space|T" "next-inset-modify space \thinspace{}"
197                 Item "Negative Thin Space|N" "next-inset-modify space \negthinspace{}"
198                 Item "Half Quad Space (Enskip)|k" "next-inset-modify space \enskip{}"
199                 Item "Protected Half Quad Space (Enspace)|E" "next-inset-modify space \enspace{}"
200                 Item "Quad Space|Q" "next-inset-modify space \quad{}"
201                 Item "Double Quad Space|u" "next-inset-modify space \qquad{}"
202                 Item "Horizontal Fill|F" "next-inset-modify space \hfill{}"
203                 Item "Protected Horizontal Fill|i" "next-inset-modify space \hspace*{\fill}"
204                 Item "Horizontal Fill (Dots)|D" "next-inset-modify space \dotfill{}"
205                 Item "Horizontal Fill (Rule)|R" "next-inset-modify space \hrulefill{}"
206                 Item "Horizontal Fill (Left Arrow)|L" "next-inset-modify space \leftarrowfill{}"
207                 Item "Horizontal Fill (Right Arrow)|g" "next-inset-modify space \rightarrowfill{}"
208                 Item "Horizontal Fill (Up Brace)|p" "next-inset-modify space \upbracefill{}"
209                 Item "Horizontal Fill (Down Brace)|B" "next-inset-modify space \downbracefill{}"
210                 Item "Custom Length|C" "command-sequence next-inset-modify space \hspace{} \length 1in; inset-settings"
211                 Separator
212                 Item "Settings...|S" "inset-settings"
213         End
214
215 #
216 # InsetMathSpace context menu
217 #
218         Menu "context-mathspace"
219                 Item "Thin Space|T" "next-inset-modify mathspace \thinspace{}"
220                 Item "Medium Space|M" "next-inset-modify mathspace \medspace{}"
221                 Item "Thick Space|h" "next-inset-modify mathspace \thickspace{}"
222                 Item "Negative Thin Space|N" "next-inset-modify mathspace \negthinspace{}"
223                 Item "Negative Medium Space|u" "next-inset-modify mathspace \negmedspace{}"
224                 Item "Negative Thick Space|i" "next-inset-modify mathspace \negthickspace{}"
225                 Item "Half Quad Space (Enskip)|k" "next-inset-modify mathspace \enskip{}"
226                 Item "Quad Space|Q" "next-inset-modify mathspace \quad{}"
227                 Item "Double Quad Space|u" "next-inset-modify mathspace \qquad{}"
228                 Item "Custom Length|C" "command-sequence next-inset-modify mathspace \hspace{} \length 1in; inset-settings"
229                 Separator
230                 Item "Settings...|S" "inset-settings"
231         End
232
233 #
234 # InsetVSpace context menu
235 #
236         Menu "context-vspace"
237                 Item "DefSkip|D" "next-inset-modify vspace defskip"
238                 Item "SmallSkip|S" "next-inset-modify vspace smallskip"
239                 Item "MedSkip|M" "next-inset-modify vspace medskip"
240                 Item "BigSkip|B" "next-inset-modify vspace bigskip"
241                 Item "VFill|F" "next-inset-modify vspace vfill"
242                 Item "Custom|C" "command-sequence next-inset-modify vspace 1in; inset-settings"
243                 Separator
244                 Item "Settings...|e" "inset-settings"
245         End
246
247 #
248 # InsetInclude context menu
249 #
250         Menu "context-include"
251                 Item "Include|c" "next-inset-modify changetype include"
252                 Item "Input|p" "next-inset-modify changetype input"
253                 Item "Verbatim|V" "next-inset-modify changetype verbatiminput"
254                 Item "Verbatim (marked blanks)|b" "next-inset-modify changetype verbatiminput*"
255                 Item "Listing|L" "next-inset-modify changetype lstinputlisting"
256                 Separator
257                 Item "Settings...|S" "inset-settings"
258                 Separator
259                 Item "Edit included file...|E" "inset-edit"
260         End
261
262 #
263 # InsetNewpage context menu
264 #
265         Menu "context-newpage"
266                 Item "New Page|N" "next-inset-modify newpage newpage"
267                 Item "Page Break|a" "next-inset-modify newpage pagebreak"
268                 Item "Clear Page|C" "next-inset-modify newpage clearpage"
269                 Item "Clear Double Page|D" "next-inset-modify newpage cleardoublepage"
270         End
271
272 #
273 # InsetNewline context menu
274 #
275         Menu "context-newline"
276                 Item "Ragged Line Break|R" "next-inset-modify newline newline"
277                 Item "Justified Line Break|J" "next-inset-modify newline linebreak"
278         End
279
280 #
281 # Edit context menu
282 #
283         Menu "context-edit"
284                 spellingsuggestions
285                 Separator
286                 Item "Cut" "cut"
287                 Item "Copy" "copy"
288                 Item "Paste" "paste"
289                 Submenu "Paste Recent|e" "edit_pasterecent"
290                 Separator
291                 Item "Jump Back to Saved Bookmark|B" "bookmark-goto 0"
292                 Separator
293                 Item "Move Paragraph Up|o" "paragraph-move-up"
294                 Item "Move Paragraph Down|v" "paragraph-move-down"
295                 Separator
296                 OptItem "Promote Section|r" "outline-out"
297                 OptItem "Demote Section|m" "outline-in"
298                 OptItem "Move Section down|d" "outline-down"
299                 OptItem "Move Section up|u" "outline-up"
300                 OptItem "Insert Short Title|T" "optional-insert"
301                 Separator
302                 OptItem "Accept Change|c" "change-accept"
303                 OptItem "Reject Change|j" "change-reject"
304                 Separator
305                 Item "Apply Last Text Style|A" "textstyle-apply"
306                 Submenu "Text Style|S" "edit_textstyles"
307                 Item "Paragraph Settings...|P" "layout-paragraph"
308                 Separator
309                 Item "Fullscreen Mode" "ui-toggle fullscreen"
310         End
311
312 #
313 # Math Macro context menu
314 #
315
316         Menu "context-math-macro-definition"
317                 Item "Append Argument" "math-macro-add-param"
318                 Item "Remove Last Argument" "math-macro-remove-param"
319                 Separator
320                 Item "Make First Non-Optional into Optional Argument" "math-macro-make-optional"
321                 Item "Make Last Optional into Non-Optional Argument" "math-macro-make-nonoptional"
322                 Item "Insert Optional Argument" "math-macro-add-optional-param"
323                 Item "Remove Optional Argument" "math-macro-remove-optional-param"
324                 Separator
325                 Item "Append Argument Eating From The Right" "math-macro-append-greedy-param"
326                 Item "Append Optional Argument Eating From The Right" "math-macro-add-greedy-optional-param"
327                 Item "Remove Last Argument Spitting Out To The Right" "math-macro-remove-greedy-param"
328         End
329
330 #
331 # InsetListing context menu
332 #
333
334         Menu "context-listings"
335                 Item "Cut" "cut"
336                 Item "Copy" "copy"
337                 Item "Paste" "paste"
338                 Submenu "Paste Recent|e" "edit_pasterecent"
339                 Separator
340                 OptItem "Open Inset|O" "inset-toggle open"
341                 OptItem "Close Inset|C" "inset-toggle close"
342                 Separator
343                 Item "Dissolve Inset|D" "inset-dissolve"
344                 Item "Settings...|S" "inset-settings listings"
345         End
346
347 #
348 # InsetGraphics context menu
349 #
350
351         Menu "context-graphics"
352                 Item "Settings...|S" "inset-settings"
353                 Separator
354                 Item "Edit externally...|x" "inset-edit"
355                 Separator
356                 GraphicsGroups
357         End
358
359 #
360 # InsetExternal context menu
361 #
362
363         Menu "context-external"
364                 Item "Settings...|S" "inset-settings"
365                 Separator
366                 Item "Edit externally...|x" "inset-edit"
367         End
368
369 #
370 # InsetTabular context menu
371 #
372
373         Menu "context-tabular"
374                 Item "Multicolumn|M" "tabular-feature multicolumn"
375                 Separator
376                 Item "Top Line|T" "tabular-feature toggle-line-top"
377                 Item "Bottom Line|B" "tabular-feature toggle-line-bottom"
378                 Item "Left Line|L" "tabular-feature toggle-line-left"
379                 Item "Right Line|R" "tabular-feature toggle-line-right"
380                 Separator
381                 Item "Left|L" "tabular-feature align-left"
382                 Item "Center|C" "tabular-feature align-center"
383                 Item "Right|R" "tabular-feature align-right"
384                 Separator
385                 Item "Top|T" "tabular-feature valign-top"
386                 Item "Middle|M" "tabular-feature valign-middle"
387                 Item "Bottom|B" "tabular-feature valign-bottom"
388                 Separator
389                 Item "Add Row|A" "tabular-feature append-row"
390                 Item "Delete Row|D" "tabular-feature delete-row"
391                 Item "Copy Row|o" "tabular-feature copy-row"
392                 # Item "Swap Rows|S" "tabular-feature swap-row" # currently broken
393                 Separator
394                 Item "Add Column|u" "tabular-feature append-column"
395                 Item "Delete Column|e" "tabular-feature delete-column"
396                 Item "Copy Column|p" "tabular-feature copy-column"
397                 # Item "Swap Columns|w" "tabular-feature swap-column" # currently broken
398                 Separator
399                 Item "Settings...|S" "inset-settings tabular"
400         End
401
402
403 #
404 # InsetInfo context menu
405 #
406
407         Menu "context-info"
408                 Item "Settings...|S" "inset-settings info"
409         End
410
411 #
412 # InsetBranch context menu
413 #
414
415         Menu "context-branch"
416                 OptItem "Open Inset|O" "inset-toggle open"
417                 OptItem "Close Inset|C" "inset-toggle close"
418                 Separator
419                 OptItem "Activate Branch|A" "branch-activate"
420                 OptItem "Deactivate Branch|e" "branch-deactivate"
421                 Separator
422                 Item "Dissolve Inset|D" "inset-dissolve"
423                 OptItem "Settings...|S" "inset-settings"
424         End
425
426 #
427 # Toc Labels and References context menu
428 #
429
430         Menu "context-toc-label"
431                 OptItem "Copy as Reference|C" "copy-label-as-reference"
432                 OptItem "Insert Reference at Cursor Position|I" "label-insert-as-reference"
433                 Separator
434                 Item "Settings...|S" "inset-settings"
435         End
436
437 #
438 # Toc Branches context menu
439 #
440
441         Menu "context-toc-branch"
442                 OptItem "Activate Branch|A" "branch-activate"
443                 OptItem "Deactivate Branch|e" "branch-deactivate"
444                 Separator
445                 Item "Settings...|S" "inset-settings"
446         End
447
448 #
449 # Toc Graphics context menu
450 #
451
452         Menu "context-toc-graphics"
453                 Item "Settings...|S" "inset-settings"
454                 Separator
455                 Item "Edit externally...|x" "inset-edit"
456         End
457
458 #
459 # Toc Citation context menu
460 #
461
462         Menu "context-toc-citation"
463                 Item "Settings...|S" "inset-settings"
464         End
465
466 #
467 # Toc Figures context menu
468 #
469
470         Menu "context-toc-figure"
471                 Item "Settings...|S" "inset-settings"
472         End
473
474 #
475 # Toc Listings context menu
476 #
477
478         Menu "context-toc-listing"
479                 Item "Settings...|S" "inset-settings"
480         End
481
482 #
483 # Toc Tables context menu
484 #
485
486         Menu "context-toc-table"
487                 Item "Settings...|S" "inset-settings"
488         End
489
490 #
491 # Toc Childs context menu
492 #
493         Menu "context-toc-child"
494                 Item "Include|c" "inset-modify changetype include"
495                 Item "Input|p" "inset-modify changetype input"
496                 Item "Verbatim|V" "inset-modify changetype verbatiminput"
497                 Item "Verbatim (marked blanks)|b" "inset-modify changetype verbatiminput*"
498                 Item "Listing|L" "inset-modify changetype lstinputlisting"
499                 Separator
500                 Item "Settings...|S" "inset-settings"
501                 Separator
502                 Item "Edit included file...|E" "inset-edit"
503         End
504
505 #
506 # Toc Indices context menu
507 #
508
509         Menu "context-toc-index"
510                 OptItem "Settings...|S" "inset-settings"
511         End
512
513 #
514 # Index context menu
515 #
516
517         Menu "context-index"
518                 IndicesContext
519                 Separator
520                 OptItem "Open Inset|O" "inset-toggle open"
521                 OptItem "Close Inset|C" "inset-toggle close"
522                 Separator
523                 Item "Dissolve Inset|D" "inset-dissolve"
524                 Separator
525                 OptItem "Settings...|S" "inset-settings"
526         End
527
528 #
529 # Index Lists context menu
530 #
531
532         Menu "context-indexprint"
533                 Item "All Indexes|A" "next-inset-modify check-printindex*"
534                 IndicesListsContext
535                 Separator
536                 Item "Subindex|b" "next-inset-modify toggle-subindex"
537                 Separator
538                 OptItem "Settings...|S" "inset-settings"
539         End
540
541 #
542 # Nomencl List context menu
543 #
544
545         Menu "context-nomenclprint"
546                 OptItem "Settings...|S" "inset-settings"
547         End
548
549
550 #
551 # Toc Changes context menu
552 #
553
554         Menu "context-toc-change"
555                 Item "Accept Change|c" "change-accept"
556                 Item "Reject Change|R" "change-reject"
557         End     
558         
559 #
560 # Toc Table of Context context menu
561 #
562
563         Menu "context-toc-tableofcontents"
564                 Item "Promote Section|P" "outline-out"
565                 Item "Demote Section|D" "outline-in"
566                 Item "Move Section Up|U" "outline-up"
567                 Item "Move Section Down|w" "outline-down"
568                 Separator
569                 Item "Select Section|S" "section-select"
570         End     
571
572 End