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