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