]> git.lyx.org Git - lyx.git/blob - lib/ui/stdcontext.inc
301608c211cfc0439ced133f084fe3d962544386
[lyx.git] / lib / ui / stdcontext.inc
1 # -*- text -*-
2
3 # file stdcontext.inc
4 # This file is part of LyX, the document processor.
5 # Licence details can be found in the file COPYING.
6
7 # author The LyX Team
8
9 # Full author contact details are available in file CREDITS.
10
11 # The interface is designed (partially) following the KDE Human Interface
12 # Guidelines (http://usability.kde.org/hig/)
13
14 Menuset
15
16 #
17 # InsetMath context menu
18 #
19         Menu "insert_math_context"
20                 Item "Array Environment|y" "math-matrix 2 2"
21                 Item "Cases Environment|C" "command-sequence math-mode on; math-insert \cases"
22                 Item "Aligned Environment|l" "command-sequence math-mode on; math-insert \aligned; tabular-feature append-column"
23                 Item "AlignedAt Environment|v" "command-sequence math-mode on; math-insert \alignedat; tabular-feature append-column"
24                 Item "Gathered Environment|h" "command-sequence math-mode on; math-insert \gathered"
25                 Item "Split Environment|S" "command-sequence math-mode on; math-insert \split; tabular-feature append-column"
26                 Separator
27                 Item "Delimiters...|r" "dialog-show mathdelimiter"
28                 Item "Matrix...|x" "dialog-show mathmatrix"
29                 Item "Macro|o" "math-macro newmacroname newcommand"
30         End
31
32         Menu "ams_environment"
33                 Item "AMS align Environment|a" "math-mutate align"
34                 Item "AMS alignat Environment|t" "math-mutate alignat"
35                 Item "AMS flalign Environment|f" "math-mutate flalign"
36                 Item "AMS gather Environment|g" "math-mutate gather"
37                 Item "AMS multline Environment|m" "math-mutate multline"
38         End
39         
40         Menu "context-math"
41                 Item "Inline Formula|I" "math-mutate simple"
42                 Item "Displayed Formula|D" "math-mutate equation"
43                 Item "Eqnarray Environment|E" "math-mutate eqnarray"
44                 Submenu "AMS Environment|A" "ams_environment"
45                 Separator               
46                 OptItem "Equation Label|L" "label-insert"
47                 OptItem "Toggle Labeling/Numbering|T" "math-number-toggle"
48                 Separator
49                 Item "Split Cell|C" "cell-split"
50                 Separator
51                 Submenu "Insert|n" "insert_math_context"
52                 Separator
53                 OptItem "Add Line Above|o" "tabular-feature add-hline-above"
54                 OptItem "Add Line Below|B" "tabular-feature add-hline-below"
55                 OptItem "Delete Line Above|D" "tabular-feature delete-hline-above"
56                 OptItem "Delete Line Below|e" "tabular-feature delete-hline-below"
57                 Separator
58                 OptItem "Add Line to Left" "tabular-feature add-vline-left"
59                 OptItem "Add Line to Right" "tabular-feature add-vline-right"
60                 OptItem "Delete Line to Left" "tabular-feature delete-vline-left"
61                 OptItem "Delete Line to Right" "tabular-feature delete-vline-right"
62                 Separator
63                 Item "Toggle Math Toolbar" "toolbar-toggle math toggle"
64                 Item "Toggle Math-Panels Toolbar" "toolbar-toggle math_panels toggle"
65                 Item "Toggle Table Toolbar" "toolbar-toggle table toggle"
66         End
67
68
69 #
70 # InsetRef context menu
71 #
72         Menu "context-ref"
73                 Item "Next Cross-Reference|N" "reference-next"
74                 Item "Go to Label|G" "label-goto"
75                 Separator
76                 Item "<reference>|r" "next-inset-modify changetype ref"
77                 Item "(<reference>)|e" "next-inset-modify changetype eqref"
78                 Item "<page>|p" "next-inset-modify changetype pageref"
79                 Item "on page <page>|o" "next-inset-modify changetype vpageref"
80                 Item "<reference> on page <page>|f" "next-inset-modify changetype vref"
81                 Item "Formatted reference|t" "next-inset-modify changetype prettyref"
82                 Separator
83                 Item "Settings...|S" "next-inset-toggle"
84         End
85
86 #
87 # InsetLabel context menu
88 #
89         Menu "context-label"
90                 Item "Next Cross-Reference|N" "reference-next"
91                 Item "Go back|G" "bookmark-goto 0"
92                 Separator
93                 Item "Copy as Reference|C" "copy-label-as-reference"
94                 Separator
95                 Item "Settings...|S" "next-inset-toggle"
96         End
97
98
99 #
100 # InsetCitation context menu
101 #
102         Menu "context-citation"
103                 CiteStyles
104                 Separator
105                 Item "Settings...|S" "next-inset-toggle"
106         End
107
108
109 #
110 # InsetBibtex context menu
111 #
112         Menu "context-bibtex"
113                 Item "Settings...|S" "next-inset-toggle"
114                 Separator
115                 Item "Edit Database(s) externally...|x" "inset-edit"
116         End
117
118
119 #
120 # InsetCollapsable context menu
121 #
122         Menu "context-collapsable"
123                 OptItem "Open Inset|O" "next-inset-toggle open"
124                 OptItem "Close Inset|C" "next-inset-toggle close"
125                 Separator
126                 Item "Dissolve Inset|D" "inset-dissolve"
127                 OptItem "Settings...|S" "inset-settings"
128         End
129
130         Menu "context-conglomerate"
131                 Item "Toggle Label|L" "next-inset-toggle"
132                 Item "Dissolve Inset|D" "inset-dissolve charstyle"
133                 Separator
134                 OptItem "Settings...|S" "inset-settings"
135         End
136
137 #
138 # InsetBox context menu
139 #
140
141         Menu "context-box"
142                 Item "Frameless|l" "next-inset-modify changetype Frameless"
143                 Item "Simple frame|f" "next-inset-modify changetype Boxed"
144                 Item "Simple frame, page breaks|p" "next-inset-modify changetype Framed"
145                 Item "Oval, thin|O" "next-inset-modify changetype ovalbox"
146                 Item "Oval, thick|v" "next-inset-modify changetype Ovalbox"
147                 Item "Drop Shadow|w" "next-inset-modify changetype Shadowbox"
148                 Item "Shaded background|b" "next-inset-modify changetype Shaded"
149                 Item "Double frame|D" "next-inset-modify changetype Doublebox"
150                 Separator
151                 Item "Dissolve Inset|D" "inset-dissolve"
152                 Item "Settings...|S" "inset-settings box"
153         End
154
155 #
156 # InsetNote context menu
157 #
158
159         Menu "context-note"
160                 Item "LyX Note|N" "next-inset-modify note Note Note"
161                 Item "Comment|C" "next-inset-modify note Note Comment"
162                 Item "Greyed Out|G" "next-inset-modify note Note Greyedout"
163                 Separator
164                 Item "Dissolve Inset|D" "inset-dissolve"
165         End
166
167 #
168 # InsetPhantom context menu
169 #
170
171         Menu "context-phantom"
172                 Item "Phantom" "next-inset-modify phantom Phantom Phantom"
173                 Item "Horiz. Phantom" "next-inset-modify phantom Phantom HPhantom"
174                 Item "Vert. Phantom" "next-inset-modify phantom Phantom VPhantom"
175                 Separator
176                 Item "Dissolve Inset|D" "inset-dissolve"
177         End
178
179 #
180 # InsetSpace context menu
181 #
182         Menu "context-space"
183                 Item "Interword Space|w" "next-inset-modify space \space{}"
184                 Item "Protected Space|o" "next-inset-modify space ~"
185                 Item "Thin Space|T" "next-inset-modify space \thinspace{}"
186                 Item "Negative Thin Space|N" "next-inset-modify space \negthinspace{}"
187                 Item "Half Quad Space (Enskip)|k" "next-inset-modify space \enskip{}"
188                 Item "Protected Half Quad Space (Enspace)|E" "next-inset-modify space \enspace{}"
189                 Item "Quad Space|Q" "next-inset-modify space \quad{}"
190                 Item "Double Quad Space|u" "next-inset-modify space \qquad{}"
191                 Item "Horizontal Fill|F" "next-inset-modify space \hfill{}"
192                 Item "Protected Horizontal Fill|i" "next-inset-modify space \hspace*{\fill}"
193                 Item "Horizontal Fill (Dots)|D" "next-inset-modify space \dotfill{}"
194                 Item "Horizontal Fill (Rule)|R" "next-inset-modify space \hrulefill{}"
195                 Item "Horizontal Fill (Left Arrow)|L" "next-inset-modify space \leftarrowfill{}"
196                 Item "Horizontal Fill (Right Arrow)|g" "next-inset-modify space \rightarrowfill{}"
197                 Item "Horizontal Fill (Up Brace)|p" "next-inset-modify space \upbracefill{}"
198                 Item "Horizontal Fill (Down Brace)|B" "next-inset-modify space \downbracefill{}"
199                 Item "Custom Length|C" "command-sequence next-inset-modify space \hspace{} \length 1in; next-inset-toggle"
200                 Separator
201                 Item "Settings...|S" "next-inset-toggle"
202         End
203
204 #
205 # InsetMathSpace context menu
206 #
207         Menu "context-mathspace"
208                 Item "Thin Space|T" "next-inset-modify mathspace \thinspace{}"
209                 Item "Medium Space|M" "next-inset-modify mathspace \medspace{}"
210                 Item "Thick Space|h" "next-inset-modify mathspace \thickspace{}"
211                 Item "Negative Thin Space|N" "next-inset-modify mathspace \negthinspace{}"
212                 Item "Negative Medium Space|u" "next-inset-modify mathspace \negmedspace{}"
213                 Item "Negative Thick Space|i" "next-inset-modify mathspace \negthickspace{}"
214                 Item "Half Quad Space (Enskip)|k" "next-inset-modify mathspace \enskip{}"
215                 Item "Quad Space|Q" "next-inset-modify mathspace \quad{}"
216                 Item "Double Quad Space|u" "next-inset-modify mathspace \qquad{}"
217                 Item "Custom Length|C" "command-sequence next-inset-modify mathspace \hspace{} \length 1in; next-inset-toggle"
218                 Separator
219                 Item "Settings...|S" "next-inset-toggle"
220         End
221
222 #
223 # InsetVSpace context menu
224 #
225         Menu "context-vspace"
226                 Item "DefSkip|D" "next-inset-modify vspace defskip"
227                 Item "SmallSkip|S" "next-inset-modify vspace smallskip"
228                 Item "MedSkip|M" "next-inset-modify vspace medskip"
229                 Item "BigSkip|B" "next-inset-modify vspace bigskip"
230                 Item "VFill|F" "next-inset-modify vspace vfill"
231                 Item "Custom|C" "command-sequence next-inset-modify vspace 1in; next-inset-toggle"
232                 Separator
233                 Item "Settings...|e" "next-inset-toggle"
234         End
235
236 #
237 # InsetInclude context menu
238 #
239         Menu "context-include"
240                 Item "Include|c" "next-inset-modify changetype include"
241                 Item "Input|p" "next-inset-modify changetype input"
242                 Item "Verbatim|V" "next-inset-modify changetype verbatiminput"
243                 Item "Verbatim (marked blanks)|b" "next-inset-modify changetype verbatiminput*"
244                 Item "Listing|L" "next-inset-modify changetype lstinputlisting"
245                 Separator
246                 Item "Settings...|S" "next-inset-toggle"
247                 Separator
248                 Item "Edit included file...|E" "inset-edit"
249         End
250
251 #
252 # InsetNewpage context menu
253 #
254         Menu "context-newpage"
255                 Item "New Page|N" "next-inset-modify newpage newpage"
256                 Item "Page Break|a" "next-inset-modify newpage pagebreak"
257                 Item "Clear Page|C" "next-inset-modify newpage clearpage"
258                 Item "Clear Double Page|D" "next-inset-modify newpage cleardoublepage"
259         End
260
261 #
262 # InsetNewline context menu
263 #
264         Menu "context-newline"
265                 Item "Ragged Line Break|R" "next-inset-modify newline newline"
266                 Item "Justified Line Break|J" "next-inset-modify newline linebreak"
267         End
268
269 #
270 # Edit context menu
271 #
272         Menu "context-edit"
273                 Item "Cut" "cut"
274                 Item "Copy" "copy"
275                 Item "Paste" "paste"
276                 Submenu "Paste Recent|e" "edit_pasterecent"
277                 Separator
278                 Item "Jump Back to Saved Bookmark|B" "bookmark-goto 0"
279                 Separator
280                 Item "Move Paragraph Up|o" "paragraph-move-up"
281                 Item "Move Paragraph Down|v" "paragraph-move-down"
282                 Separator
283                 OptItem "Promote Section|r" "outline-out"
284                 OptItem "Demote Section|m" "outline-in"
285                 OptItem "Move Section down|d" "outline-down"
286                 OptItem "Move Section up|u" "outline-up"
287                 OptItem "Insert Short Title|T" "optional-insert"
288                 Separator
289                 Item "Apply Last Text Style|A" "textstyle-apply"
290                 Submenu "Text Style|S" "edit_textstyles"
291                 Item "Paragraph Settings...|P" "layout-paragraph"
292                 Separator
293                 Item "Fullscreen Mode" "ui-toggle fullscreen"
294         End
295
296 #
297 # Math Macro context menu
298 #
299
300         Menu "context-math-macro-definition"
301                 Item "Append Argument" "math-macro-add-param"
302                 Item "Remove Last Argument" "math-macro-remove-param"
303                 Separator
304                 Item "Make First Non-Optional into Optional Argument" "math-macro-make-optional"
305                 Item "Make Last Optional into Non-Optional Argument" "math-macro-make-nonoptional"
306                 Item "Insert Optional Argument" "math-macro-add-optional-param"
307                 Item "Remove Optional Argument" "math-macro-remove-optional-param"
308                 Separator
309                 Item "Append Argument Eating From The Right" "math-macro-append-greedy-param"
310                 Item "Append Optional Argument Eating From The Right" "math-macro-add-greedy-optional-param"
311                 Item "Remove Last Argument Spitting Out To The Right" "math-macro-remove-greedy-param"
312         End
313
314 #
315 # InsetListing context menu
316 #
317
318         Menu "context-listings"
319                 Item "Cut" "cut"
320                 Item "Copy" "copy"
321                 Item "Paste" "paste"
322                 Submenu "Paste Recent|e" "edit_pasterecent"
323                 Separator
324                 OptItem "Open Inset|O" "next-inset-toggle open"
325                 OptItem "Close Inset|C" "next-inset-toggle close"
326                 Separator
327                 Item "Dissolve Inset|D" "inset-dissolve"
328                 Item "Settings...|S" "inset-settings listings"
329         End
330
331 #
332 # InsetGraphics context menu
333 #
334
335         Menu "context-graphics"
336                 Item "Settings...|S" "next-inset-toggle"
337                 Separator
338                 Item "Edit externally...|x" "inset-edit"
339                 Separator
340                 GraphicsGroups
341         End
342
343 #
344 # InsetExternal context menu
345 #
346
347         Menu "context-external"
348                 Item "Settings...|S" "next-inset-toggle"
349                 Separator
350                 Item "Edit externally...|x" "inset-edit"
351         End
352
353 #
354 # InsetTabular context menu
355 #
356
357         Menu "context-tabular"
358                 Item "Multicolumn|M" "tabular-feature multicolumn"
359                 Separator
360                 Item "Top Line|T" "tabular-feature toggle-line-top"
361                 Item "Bottom Line|B" "tabular-feature toggle-line-bottom"
362                 Item "Left Line|L" "tabular-feature toggle-line-left"
363                 Item "Right Line|R" "tabular-feature toggle-line-right"
364                 Separator
365                 Item "Left|L" "tabular-feature align-left"
366                 Item "Center|C" "tabular-feature align-center"
367                 Item "Right|R" "tabular-feature align-right"
368                 Separator
369                 Item "Top|T" "tabular-feature valign-top"
370                 Item "Middle|M" "tabular-feature valign-middle"
371                 Item "Bottom|B" "tabular-feature valign-bottom"
372                 Separator
373                 Item "Add Row|A" "tabular-feature append-row"
374                 Item "Delete Row|D" "tabular-feature delete-row"
375                 Item "Copy Row|o" "tabular-feature copy-row"
376                 # Item "Swap Rows|S" "tabular-feature swap-row" # currently broken
377                 Separator
378                 Item "Add Column|u" "tabular-feature append-column"
379                 Item "Delete Column|e" "tabular-feature delete-column"
380                 Item "Copy Column|p" "tabular-feature copy-column"
381                 # Item "Swap Columns|w" "tabular-feature swap-column" # currently broken
382                 Separator
383                 Item "Settings...|S" "inset-settings tabular"
384         End
385
386
387 #
388 # InsetInfo context menu
389 #
390
391         Menu "context-info"
392                 Item "Settings...|S" "inset-settings info"
393         End
394
395 End