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