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