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