]> git.lyx.org Git - lyx.git/blob - lib/ui/stdcontext.inc
16fd69f3fdc8a740170d3f310e41a9b968752181
[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 to Reference|G" "bookmark-goto 0"
92                 Separator
93                 Item "Settings...|S" "next-inset-toggle"
94         End
95
96
97 #
98 # InsetCitation context menu
99 #
100         Menu "context-citation"
101                 CiteStyles
102                 Separator
103                 Item "Settings...|S" "next-inset-toggle"
104         End
105
106
107 #
108 # InsetBibtex context menu
109 #
110         Menu "context-bibtex"
111                 Item "Settings...|S" "next-inset-toggle"
112                 Separator
113                 Item "Edit Database(s) externally...|x" "inset-edit"
114         End
115
116
117 #
118 # InsetCollapsable context menu
119 #
120         Menu "context-collapsable"
121                 OptItem "Open Inset|O" "next-inset-toggle open"
122                 OptItem "Close Inset|C" "next-inset-toggle close"
123                 Separator
124                 Item "Dissolve Inset|D" "inset-dissolve"
125                 OptItem "Settings...|S" "inset-settings"
126         End
127
128         Menu "context-conglomerate"
129                 Item "Toggle Label|L" "next-inset-toggle"
130                 Item "Dissolve Inset|D" "inset-dissolve charstyle"
131                 Separator
132                 OptItem "Settings...|S" "inset-settings"
133         End
134
135 #
136 # InsetBox context menu
137 #
138
139         Menu "context-box"
140                 Item "Frameless|l" "next-inset-modify changetype Frameless"
141                 Item "Simple frame|f" "next-inset-modify changetype Boxed"
142                 Item "Simple frame, page breaks|p" "next-inset-modify changetype Framed"
143                 Item "Oval, thin|O" "next-inset-modify changetype ovalbox"
144                 Item "Oval, thick|v" "next-inset-modify changetype Ovalbox"
145                 Item "Drop Shadow|w" "next-inset-modify changetype Shadowbox"
146                 Item "Shaded background|b" "next-inset-modify changetype Shaded"
147                 Item "Double frame|D" "next-inset-modify changetype Doublebox"
148                 Separator
149                 Item "Dissolve Inset|D" "inset-dissolve"
150                 Item "Settings...|S" "inset-settings box"
151         End
152
153 #
154 # InsetNote context menu
155 #
156
157         Menu "context-note"
158                 Item "LyX Note|N" "next-inset-modify note Note Note"
159                 Item "Comment|C" "next-inset-modify note Note Comment"
160                 Item "Greyed Out|G" "next-inset-modify note Note Greyedout"
161                 Separator
162                 Item "Dissolve Inset|D" "inset-dissolve"
163         End
164
165
166 #
167 # InsetSpace context menu
168 #
169         Menu "context-space"
170                 Item "Interword Space|w" "next-inset-modify space \space{}"
171                 Item "Protected Space|o" "next-inset-modify space ~"
172                 Item "Thin Space|T" "next-inset-modify space \thinspace{}"
173                 Item "Negative Thin Space|N" "next-inset-modify space \negthinspace{}"
174                 Item "Half Quad Space (Enskip)|k" "next-inset-modify space \enskip{}"
175                 Item "Protected Half Quad Space (Enspace)|E" "next-inset-modify space \enspace{}"
176                 Item "Quad Space|Q" "next-inset-modify space \quad{}"
177                 Item "Double Quad Space|u" "next-inset-modify space \qquad{}"
178                 Item "Horizontal Fill|F" "next-inset-modify space \hfill{}"
179                 Item "Protected Horizontal Fill|i" "next-inset-modify space \hspace*{\fill}"
180                 Item "Horizontal Fill (Dots)|D" "next-inset-modify space \dotfill{}"
181                 Item "Horizontal Fill (Rule)|R" "next-inset-modify space \hrulefill{}"
182                 Item "Custom Length|C" "command-sequence next-inset-modify space \hspace{} \length 1in; next-inset-toggle"
183                 Separator
184                 Item "Settings...|S" "next-inset-toggle"
185         End
186
187 #
188 # InsetVSpace context menu
189 #
190         Menu "context-vspace"
191                 Item "DefSkip|D" "next-inset-modify vspace defskip"
192                 Item "SmallSkip|S" "next-inset-modify vspace smallskip"
193                 Item "MedSkip|M" "next-inset-modify vspace medskip"
194                 Item "BigSkip|B" "next-inset-modify vspace bigskip"
195                 Item "VFill|F" "next-inset-modify vspace vfill"
196                 Item "Custom|C" "command-sequence next-inset-modify vspace 1in; next-inset-toggle"
197                 Separator
198                 Item "Settings...|S" "next-inset-toggle"
199         End
200
201 #
202 # InsetInclude context menu
203 #
204         Menu "context-include"
205                 Item "Include|c" "next-inset-modify changetype include"
206                 Item "Input|p" "next-inset-modify changetype input"
207                 Item "Verbatim|V" "next-inset-modify changetype verbatiminput"
208                 Item "Verbatim (marked blanks)|b" "next-inset-modify changetype verbatiminput*"
209                 Item "Listing|L" "next-inset-modify changetype lstinputlisting"
210                 Separator
211                 Item "Settings...|S" "next-inset-toggle"
212                 Separator
213                 Item "Edit included file...|E" "inset-edit"
214         End
215
216 #
217 # InsetNewpage context menu
218 #
219         Menu "context-newpage"
220                 Item "New Page|N" "next-inset-modify newpage newpage"
221                 Item "Page Break|a" "next-inset-modify newpage pagebreak"
222                 Item "Clear Page|C" "next-inset-modify newpage clearpage"
223                 Item "Clear Double Page|D" "next-inset-modify newpage cleardoublepage"
224         End
225
226 #
227 # InsetNewline context menu
228 #
229         Menu "context-newline"
230                 Item "Ragged Line Break|R" "next-inset-modify newline newline"
231                 Item "Justified Line Break|J" "next-inset-modify newline linebreak"
232         End
233
234 #
235 # Edit context menu
236 #
237         Menu "context-edit"
238                 Item "Cut" "cut"
239                 Item "Copy" "copy"
240                 Item "Paste" "paste"
241                 Submenu "Paste Recent|e" "edit_pasterecent"
242                 Separator
243                 Item "Jump to Saved Bookmark|B" "bookmark-goto 0"
244                 Separator
245                 Item "Move Paragraph Up|o" "paragraph-move-up"
246                 Item "Move Paragraph Down|v" "paragraph-move-down"
247                 Separator
248                 Item "Apply Last Text Style|A" "font-free-apply"
249                 Submenu "Text Style|S" "edit_textstyles"
250                 Item "Paragraph Settings...|P" "layout-paragraph"
251                 Separator
252                 Item "Fullscreen Mode" "ui-toggle fullscreen"
253         End
254
255 #
256 # Math Macro context menu
257 #
258
259         Menu "context-math-macro-definition"
260                 Item "Append Parameter" "math-macro-add-param"
261                 Item "Remove Last Parameter" "math-macro-remove-param"
262                 Separator
263                 Item "Make First Non-Optional into Optional Parameter" "math-macro-make-optional"
264                 Item "Make Last Optional into Non-Optional Parameter" "math-macro-make-nonoptional"
265                 Item "Insert Optional Parameter" "math-macro-add-optional-param"
266                 Item "Remove Optional Parameter" "math-macro-remove-optional-param"
267                 Separator
268                 Item "Append Parameter Eating From The Right" "math-macro-append-greedy-param"
269                 Item "Append Optional Parameter Eating From The Right" "math-macro-add-greedy-optional-param"
270                 Item "Remove Last Parameter Spitting Out To The Right" "math-macro-remove-greedy-param"
271         End
272
273 #
274 # InsetListing context menu
275 #
276
277         Menu "context-listings"
278                 Item "Cut" "cut"
279                 Item "Copy" "copy"
280                 Item "Paste" "paste"
281                 Submenu "Paste Recent|e" "edit_pasterecent"
282                 Separator
283                 Item "Settings...|S" "inset-settings listings"
284         End
285
286 #
287 # InsetGraphics context menu
288 #
289
290         Menu "context-graphics"
291                 Item "Settings...|S" "next-inset-toggle"
292                 Separator
293                 Item "Edit externally...|x" "inset-edit"
294         End
295
296 #
297 # InsetExternal context menu
298 #
299
300         Menu "context-external"
301                 Item "Settings...|S" "next-inset-toggle"
302                 Separator
303                 Item "Edit externally...|x" "inset-edit"
304         End
305
306 #
307 # InsetTabular context menu
308 #
309
310         Menu "context-tabular"
311                 Item "Multicolumn|M" "tabular-feature multicolumn"
312                 Separator
313                 Item "Top Line|T" "tabular-feature toggle-line-top"
314                 Item "Bottom Line|B" "tabular-feature toggle-line-bottom"
315                 Item "Left Line|L" "tabular-feature toggle-line-left"
316                 Item "Right Line|R" "tabular-feature toggle-line-right"
317                 Separator
318                 Item "Left|L" "tabular-feature align-left"
319                 Item "Center|C" "tabular-feature align-center"
320                 Item "Right|R" "tabular-feature align-right"
321                 Separator
322                 Item "Top|T" "tabular-feature valign-top"
323                 Item "Middle|M" "tabular-feature valign-middle"
324                 Item "Bottom|B" "tabular-feature valign-bottom"
325                 Separator
326                 Item "Add Row|A" "tabular-feature append-row"
327                 Item "Delete Row|D" "tabular-feature delete-row"
328                 Item "Copy Row|o" "tabular-feature copy-row"
329                 # Item "Swap Rows|S" "tabular-feature swap-row" # currently broken
330                 Separator
331                 Item "Add Column|u" "tabular-feature append-column"
332                 Item "Delete Column|e" "tabular-feature delete-column"
333                 Item "Copy Column|p" "tabular-feature copy-column"
334                 # Item "Swap Columns|w" "tabular-feature swap-column" # currently broken
335                 Separator
336                 Item "Settings...|S" "inset-settings tabular"
337         End
338
339 End