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