]> git.lyx.org Git - lyx.git/blob - lib/ui/stdcontext.inc
50486b6993902bb72944ccada3e4769e89fd17c1
[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|v" "inset-modify tabular delete-hline-above"
66                 OptItem "Delete Line Below|w" "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" "inset-forall Note inset-toggle open"
183                 Item "Close All Notes|l" "inset-forall Note inset-toggle close"
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                 OptItem "Forward search|F" "forward-search"
303                 Separator
304                 Item "Move Paragraph Up|o" "paragraph-move-up"
305                 Item "Move Paragraph Down|v" "paragraph-move-down"
306                 Separator
307                 OptItem "Promote Section|r" "outline-out"
308                 OptItem "Demote Section|m" "outline-in"
309                 OptItem "Move Section Down|D" "outline-down"
310                 OptItem "Move Section Up|U" "outline-up"
311                 OptItem "Insert Short Title|T" "optional-insert"
312                 OptSubMenu "Insert Regular Expression..." "context-edit-regexp"
313                 Separator
314                 OptItem "Accept Change|c" "change-accept"
315                 OptItem "Reject Change|j" "change-reject"
316                 Separator
317                 Item "Apply Last Text Style|A" "textstyle-apply"
318                 Submenu "Text Style|S" "edit_textstyles"
319                 Item "Paragraph Settings...|P" "layout-paragraph"
320                 LanguageSelector
321                 Separator
322                 Item "Fullscreen Mode" "ui-toggle fullscreen"
323         End
324
325
326 #
327 # Regular Expression context menu
328 #
329         Menu "context-edit-regexp"
330                 Item "Anything|A" "command-sequence regexp-mode; self-insert .*"
331                 Item "Anything Non-Empty|o" "command-sequence regexp-mode; self-insert .+"
332                 Item "Any Word|W" "command-sequence regexp-mode; self-insert [a-z]+"
333                 Item "Any Number|N" "command-sequence regexp-mode; self-insert [0-9]+"
334                 Item "User Defined|U" "regexp-mode"
335         End
336
337
338 #
339 # Math Macro context menu
340 #
341
342         Menu "context-math-macro-definition"
343                 Item "Append Argument" "math-macro-add-param"
344                 Item "Remove Last Argument" "math-macro-remove-param"
345                 Separator
346                 Item "Make First Non-Optional Into Optional Argument" "math-macro-make-optional"
347                 Item "Make Last Optional Into Non-Optional Argument" "math-macro-make-nonoptional"
348                 Item "Insert Optional Argument" "math-macro-add-optional-param"
349                 Item "Remove Optional Argument" "math-macro-remove-optional-param"
350                 Separator
351                 Item "Append Argument Eating From the Right" "math-macro-append-greedy-param"
352                 Item "Append Optional Argument Eating From the Right" "math-macro-add-greedy-optional-param"
353                 Item "Remove Last Argument Spitting Out to the Right" "math-macro-remove-greedy-param"
354         End
355
356 #
357 # InsetListing context menu
358 #
359
360         Menu "context-listings"
361                 Item "Cut" "cut"
362                 Item "Copy" "copy"
363                 Item "Paste" "paste"
364                 Submenu "Paste Recent|e" "edit_pasterecent"
365                 Separator
366                 OptItem "Open Inset|O" "inset-toggle open"
367                 OptItem "Close Inset|C" "inset-toggle close"
368                 Separator
369                 Item "Dissolve Inset|D" "inset-dissolve"
370                 Item "Settings...|S" "inset-settings listings"
371         End
372
373 #
374 # InsetGraphics context menu
375 #
376
377         Menu "context-graphics"
378                 Item "Settings...|S" "inset-settings"
379                 Item "Reload|R" "graphics-reload"
380                 Separator
381                 Item "Edit Externally...|x" "inset-edit"
382                 Separator
383                 GraphicsGroups
384         End
385
386 #
387 # InsetExternal context menu
388 #
389
390         Menu "context-external"
391                 Item "Settings...|S" "inset-settings"
392                 Separator
393                 Item "Edit Externally...|x" "inset-edit"
394         End
395
396 #
397 # InsetTabular context menu
398 #
399
400         Menu "context-tabular"
401                 Item "Multicolumn|M" "inset-modify tabular multicolumn"
402                 Item "Multirow|i" "inset-modify tabular multirow"
403                 Separator
404                 Item "Top Line|T" "inset-modify tabular toggle-line-top"
405                 Item "Bottom Line|B" "inset-modify tabular toggle-line-bottom"
406                 Item "Left Line|L" "inset-modify tabular toggle-line-left"
407                 Item "Right Line|R" "inset-modify tabular toggle-line-right"
408                 Separator
409                 Item "Left|f" "inset-modify tabular align-left"
410                 Item "Center|C" "inset-modify tabular align-center"
411                 Item "Right|h" "inset-modify tabular align-right"
412                 Separator
413                 Item "Top|T" "inset-modify tabular valign-top"
414                 Item "Middle|d" "inset-modify tabular valign-middle"
415                 Item "Bottom|B" "inset-modify tabular valign-bottom"
416                 Separator
417                 Item "Add Row|A" "inset-modify tabular append-row"
418                 Item "Delete Row|D" "inset-modify tabular delete-row"
419                 Item "Copy Row|o" "inset-modify tabular copy-row"
420                 # Item "Swap Rows|S" "inset-modify tabular swap-row" # currently broken
421                 Separator
422                 Item "Add Column|u" "inset-modify tabular append-column"
423                 Item "Delete Column|e" "inset-modify tabular delete-column"
424                 Item "Copy Column|p" "inset-modify tabular copy-column"
425                 # Item "Swap Columns|w" "inset-modify tabular swap-column" # currently broken
426                 Separator
427                 Item "Settings...|g" "inset-settings tabular"
428         End
429
430 #
431 # InsetInfo context menu
432 #
433
434         Menu "buffer-info"
435                 Item "File|F" "inset-modify buffer name"
436                 Item "Path|P" "inset-modify buffer path"
437                 Item "Class|C" "inset-modify buffer class"
438                 Separator
439                 Item "File Revision|R" "inset-modify buffer vcs-revision"
440                 Item "Tree Revision|T" "inset-modify buffer vcs-tree-revision"
441                 Item "Revision Author|A" "inset-modify buffer vcs-author"
442                 Item "Revision Date|D" "inset-modify buffer vcs-date"
443                 Item "Revision Time|i" "inset-modify buffer vcs-time"
444                 Separator
445                 Item "LyX Version|X" "inset-modify lyxinfo version"
446         End
447
448
449 #
450 # InsetInfo context menu
451 #
452
453         Menu "context-info"
454                 Submenu "Document Info|D" "buffer-info"
455                 Separator
456                 Item "Copy Text|o" "inset-copy-as"
457                 Item "Settings...|S" "inset-settings info"
458         End
459
460 #
461 # InsetBranch context menu
462 #
463
464         Menu "context-branch"
465                 OptItem "Open Inset|O" "inset-toggle open"
466                 OptItem "Close Inset|C" "inset-toggle close"
467                 Separator
468                 OptItem "Activate Branch|A" "branch-activate"
469                 OptItem "Deactivate Branch|e" "branch-deactivate"
470                 Separator
471                 Item "Dissolve Inset|D" "inset-dissolve"
472                 OptItem "Settings...|S" "inset-settings"
473         End
474
475 #
476 # Toc Labels and References context menu
477 #
478
479         Menu "context-toc-label"
480                 OptItem "Copy as Reference|C" "copy-label-as-reference"
481                 OptItem "Insert Reference at Cursor Position|I" "label-insert-as-reference"
482                 Separator
483                 Item "Settings...|S" "inset-settings"
484         End
485
486 #
487 # Toc Branches context menu
488 #
489
490         Menu "context-toc-branch"
491                 OptItem "Activate Branch|A" "branch-activate"
492                 OptItem "Deactivate Branch|e" "branch-deactivate"
493                 Separator
494                 Item "Settings...|S" "inset-settings"
495         End
496
497 #
498 # Toc Graphics context menu
499 #
500
501         Menu "context-toc-graphics"
502                 Item "Settings...|S" "inset-settings"
503                 Separator
504                 Item "Edit Externally...|x" "inset-edit"
505         End
506
507 #
508 # Toc Citation context menu
509 #
510
511         Menu "context-toc-citation"
512                 Item "Settings...|S" "inset-settings"
513         End
514
515 #
516 # Toc Figures context menu
517 #
518
519         Menu "context-toc-figure"
520                 Item "Settings...|S" "inset-settings"
521         End
522
523 #
524 # Toc Listings context menu
525 #
526
527         Menu "context-toc-listing"
528                 Item "Settings...|S" "inset-settings"
529         End
530
531 #
532 # Toc Tables context menu
533 #
534
535         Menu "context-toc-table"
536                 Item "Settings...|S" "inset-settings"
537         End
538
539 #
540 # Toc Childs context menu
541 #
542         Menu "context-toc-child"
543                 Item "Include|c" "inset-modify changetype include"
544                 Item "Input|p" "inset-modify changetype input"
545                 Item "Verbatim|V" "inset-modify changetype verbatiminput"
546                 Item "Verbatim (marked blanks)|b" "inset-modify changetype verbatiminput*"
547                 Item "Listing|L" "inset-modify changetype lstinputlisting"
548                 Separator
549                 Item "Settings...|S" "inset-settings"
550                 Separator
551                 Item "Edit Included File...|E" "inset-edit"
552         End
553
554 #
555 # Toc Indices context menu
556 #
557
558         Menu "context-toc-index"
559                 OptItem "Settings...|S" "inset-settings"
560         End
561
562 #
563 # Index context menu
564 #
565
566         Menu "context-index"
567                 IndicesContext
568                 Separator
569                 OptItem "Open Inset|O" "inset-toggle open"
570                 OptItem "Close Inset|C" "inset-toggle close"
571                 Separator
572                 Item "Dissolve Inset|D" "inset-dissolve"
573                 Separator
574                 OptItem "Settings...|S" "inset-settings"
575         End
576
577 #
578 # Index Lists context menu
579 #
580
581         Menu "context-indexprint"
582                 Item "All Indexes|A" "inset-modify check-printindex*"
583                 IndicesListsContext
584                 Separator
585                 Item "Subindex|b" "inset-modify toggle-subindex"
586                 Separator
587                 OptItem "Settings...|S" "inset-settings"
588         End
589
590 #
591 # Nomencl List context menu
592 #
593
594         Menu "context-nomenclprint"
595                 OptItem "Settings...|S" "inset-settings"
596         End
597
598
599 # InsetPreview context menu
600 #
601
602         Menu "context-preview"
603                 Item "Dissolve Inset|D" "inset-dissolve"
604         End
605
606
607 #
608 # Toc Changes context menu
609 #
610
611         Menu "context-toc-change"
612                 Item "Accept Change|c" "change-accept"
613                 Item "Reject Change|R" "change-reject"
614         End     
615         
616 #
617 # Toc Table of Context context menu
618 #
619
620         Menu "context-toc-tableofcontents"
621                 Item "Promote Section|P" "outline-out"
622                 Item "Demote Section|D" "outline-in"
623                 Item "Move Section Up|U" "outline-up"
624                 Item "Move Section Down|w" "outline-down"
625                 Separator
626                 Item "Select Section|S" "section-select"
627         End     
628
629 #
630 # InsetERT context menu
631 #
632         Menu "context-ert"
633                 OptItem "Open Inset|O" "inset-toggle open"
634                 OptItem "Close Inset|C" "inset-toggle close"
635                 Separator
636                 Item "Wrap by Preview|P" "command-sequence inset-begin;char-backward;char-forward-select;preview-insert"
637                 Separator
638                 Item "Dissolve Inset|D" "inset-dissolve"
639                 OptItem "Settings...|S" "inset-settings"
640         End
641
642 End