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