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