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