Commit Graph

54 Commits

Author SHA1 Message Date
Scott Kostyshak
3c84267d8d Implement move row/column in tabular inset
This patch implements 'move row' and 'move column' features for tabular.
The purpose is to provide a useful behavior in tabular that is
consistent with PARAGRAPH_MOVE_UP and PARAGRAPH_MOVE_DOWN so that the
user can, for example, do alt-<up> to move a row up. Alternatively,
icons for these features are also added to the table toolbar and
context menu.

If there is any selection, the feature is disabled. This is consistent
with how PARAGRAPH_MOVE_UP works in other contexts. Additionally, 'move
row' is disabled if there is a multi-row in the current or target row;
and 'move column' is disabled if there is a multi-column in the current
or target column.

'move row' moves only the left and right borders of a cell along with
the row. Similarly, 'move column' moves only the the top and bottom
borders.

Implementing similar functionality for other insets, such as arrays and
array environments, is on my TODO list.
2013-01-20 21:54:30 -05:00
Pavel Sanda
541828ebf5 Another witch hunting case: break-paragraph -> paragraph-break. 2012-09-29 18:06:42 +02:00
Stephan Witt
159108786d Fix bug #8129: add zoom-in binding for Cmd-plus for US-keyboards 2012-07-27 11:59:44 +02:00
Stephan Witt
c0bbc020a5 #7894 explain the status column of mac bindings
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40221 a592a061-630c-0410-9148-cb99ea01b6c8
2011-11-19 21:55:18 +00:00
Jürgen Spitzmüller
014a1a36ed revive Ctrl-space in mathed.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39649 a592a061-630c-0410-9148-cb99ea01b6c8
2011-09-10 05:35:54 +00:00
Stephan Witt
306cb190c8 #7292 LyX is able to transpose chars - add it to mac.bind
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37806 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-28 16:12:59 +00:00
Stephan Witt
14bf8c4c3a #7292 correct word-delete-forward/backward and change special spaces binding - thanks, bennett
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37775 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-23 17:09:31 +00:00
Stephan Witt
e9d943aeb8 #7292 make the modifiers Option and Control act on there own on mac - adjust the key bindings to apple standards where possible
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37770 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-23 14:30:41 +00:00
Stephan Witt
b0771e2364 #5258 synchronize pdf-preview key binding of mac.bind with cua.bind
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37748 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-21 06:42:03 +00:00
Richard Heck
e5b25ce78e Update all of our bind and ui files to format 1.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37253 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-18 15:42:27 +00:00
Pavel Sanda
5544800152 Fix #6885. Alt+x shortcuts should be preserved for menus.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35669 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-17 17:49:21 +00:00
Stephan Witt
4f4d32da4b change key-bindings to support cmd-plus/minus text size adjust on mac
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35006 a592a061-630c-0410-9148-cb99ea01b6c8
2010-07-22 16:38:26 +00:00
Vincent van Ravesteijn
f8d64b4799 Fix bug #3871: Shortcut to switch from TOC to text pane.
M-o now switches to the TOC pane, and Esc always returns from any DockView to the main window.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34293 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-26 10:03:09 +00:00
Vincent van Ravesteijn
7e7f519293 Fix bug #6416: Error in mac.bind: end-of-sentence-period.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32619 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-23 13:18:36 +00:00
Vincent van Ravesteijn
c11f031df6 Fix bug #5991: Select function in environments.
C-M-a now selects the contents of an inset, if the whole inset is already selected, it will jump out the inset and selects everything in that inset.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31200 a592a061-630c-0410-9148-cb99ea01b6c8
2009-08-22 14:44:08 +00:00
Jean-Marc Lasgouttes
24dbfa13fa mac bindings for inset-begin/end
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30179 a592a061-630c-0410-9148-cb99ea01b6c8
2009-06-19 13:10:22 +00:00
Pavel Sanda
e3e11d5d39 Update MAC bindings
Patch from Bennett


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29631 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-11 12:15:36 +00:00
Pavel Sanda
9651724de1 Add bindings
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg150999.html


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29622 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-11 00:05:51 +00:00
Jean-Marc Lasgouttes
30afece93d Kill next-inset-toggle and expand inset-toggle to provide the same functionality
* src/LyXAction.h: introduce new function attribute AtPoint: this is 
	for lfuns that should first look at cursor postion whether there
	is an inset, before dispatching to container inset.
	* src/LyXAction.cpp: remove LFUN_NEXT_INSET_TOGGLE; 
	mark LFUN_INSET_TOGGLE as AtPoint.
	* src/BufferView.cpp (dispatch, getStatus): remove handling of
	LFUN_NEXT_INSET_TOGGLE.
	* src/LyXFunc.cpp (dispatch, getStatus): handle functions marked 
	AtPoint.	
	* lib/*/*: replace next-inset-toggle with inset-toggle.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28980 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-30 13:49:52 +00:00
Pavel Sanda
1048d14341 Spot by Anders.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27337 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-08 10:55:59 +00:00
Jean-Marc Lasgouttes
420603311d fix bug 5341: http://bugzilla.lyx.org/show_bug.cgi?id=5341
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27235 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-03 11:30:11 +00:00
Jürgen Spitzmüller
542651b0e1 fix binding of breakable slash.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26865 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-12 14:42:38 +00:00
Pavel Sanda
d36e010fdf Patch from Bennett.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26434 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-17 21:28:57 +00:00
Enrico Forestieri
3e55de70dd Introduce LFUN_FONT_BOLDSYMBOL, performing the same as LFUN_FONT_BOLD
except when in math mode, where \boldsymbol is used instead of \mathbf.
Restore the previous binding of Ctrl-B and make sure that LFUN_FONT_BOLDSYMBOL,
now bound to Ctrl-Alt-B, can be toggled.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26418 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-15 16:49:11 +00:00
Pavel Sanda
aeec42c050 Leftovers from error-next removal. Some manuals still have references.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25180 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-07 01:57:07 +00:00
Pavel Sanda
d450553e6a Add shortcut for find-next.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23985 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-26 19:39:53 +00:00
Jürgen Spitzmüller
c876a2e7c7 Merge the two linebreak insets into one.
* src/Buffer.cpp:
	- file format change to 324
* development/FORMAT:
	- document file format change

* src/insets/InsetNewline.{cpp,h}:
	- the former two separate derivates are now merged into one inset
	  with proper Params and Mailer. This simplifies the structure and allows for
	  switching between the two kinds.

* src/Text3.cpp:
	- The newline insets are now being generated with 
	   newline-insert [newline|linebreak]

* src/factory.cpp:
* src/Text.cpp:
	- Newline inset is now a proper inset with opening and closing tag.

* src/FuncCode.h:
* src/LyXAction.cpp:
* src/Text3.cpp:
* src/insets/InsetCollapsable.cpp:
* src/insets/InsetTabular.cpp:
* src/mathed/InsetMathGrid.cpp:
* src/mathed/InsetMathHull.cpp:
	- remove LFUN_NEW_LINE, LFUN_LINE_BREAK,
	  add LFUN_NEWLINE_INSERT

* lib/lyx2lyx/LyX.py:
* lib/lyx2lyx/lyx_1_6.py:
	- conversion and reversion routines for newline insets.

* lib/ui/stdmenus.inc:
* lib/ui/stdcontext.inc
	- adapt menu and add context menu to switch between newpage variants.

* lib/bind/*.bind:
	- adapt to new lfuns.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23966 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-26 08:10:01 +00:00
Jürgen Spitzmüller
ae8197abb9 Fix hyphenation point in bind files.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23873 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-21 16:20:32 +00:00
Enrico Forestieri
ba496b94ac Merge InsetMathBoldSymbol and InsetMathBM by providing \boldsymbol
through the bm package.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23684 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-12 14:33:16 +00:00
Jürgen Spitzmüller
61e1643821 Support for \slash and \nobreakdash-
* src/lfuns.h:
* src/Text3.cpp:
* src/insets/InsetMathNest.cpp:
* src/insets/insetCollapsable:
	- new LFUN_SPECIALCHAR_INSERT
	- nuke LFUN_HYPHENATION_POINT_INSERT, 
	  LFUN_LIGATURE_BREAK_INSERT,
	  LFUN_DOTS_INSERT,
               LFUN_END_OF_SENTENCE_PERIOD_INSERT,
	  LFUN_MENU_SEPARATOR_INSERT
	  (functions now handled as arguments of the above)

* src/insets/InsetSpecialChar.{cpp,h}:
	- implement \slash and \nobreakdash-

* src/Buffer.cpp:
	- increment format to 307.
* lib/lyx2lyx/LyX.py:
* lib/lyx2lyx/lyx_1_6.py:
	- reversion methods for SpecialChar \slash{} and
	  SpecialChar \nobreakdash-
* development/FORMAT:
	- document file format change

* lib/ui/stdmenus.inc:
* lib/ui/classic.ui:
	- add new SpecialChars to the menus, adapt lfuns to new scheme

* lib/bind/aqua.bind:
* lib/bind/cua.bind:
* lib/bind/emacs.bind:
* lib/bind/fi/menus.bind:
* lib/bind/mac.bind:
* lib/bind/menus.bind:
* lib/bind/sciword.bind:
* lib/bind/xemacs.bind:
	- add shortcuts for new SpecialChars, adapt lfuns to new scheme

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21989 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-06 11:04:56 +00:00
Uwe Stöhr
12f7869ac0 support for \linebreak:
- fileformat change
- tex2lyx support
- rename LFUN_BREAK_LINE to LFUN_NEW_LINE because this is what the lfun does and to avoid confusions
- new menu entry
- new shortcut C-S-Return

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21778 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-25 18:34:37 +00:00
Dov Feldstern
b4372a37d9 Getting rid of LTR bias --- part 2/?
This is a continuation of r21128. This round fixes the "Word" movement
functions and LFUNS.

Behavior should remain unchanged by this fix.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21244 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-28 20:35:57 +00:00
Dov Feldstern
662b58497e Getting rid of LTR bias --- part 1/?
This is the first patch in a series meant to remove LTR bias from the code.
Currently, there are many places in the code where "right" and "left" are used,
but where we actually mean "forward" and "backwards" --- which is the same 
thing in LTR text, but not in RTL/Bidi text.

See full details in http://permalink.gmane.org/gmane.editors.lyx.devel/97550.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21128 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-22 22:18:52 +00:00
Bo Peng
c37b495ca0 InsetInfo: add shortcut C-S-I. (there will be no menu item, because this feature is for developers and document maintainers)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20906 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-11 15:08:30 +00:00
Jean-Marc Lasgouttes
1a53e1099a * src/paragraph_funcs.cpp (breakParagraph): change parameter 'flag' to
simpler 'keep_layout'

	* src/Text.cpp (breakParagraph): change parameter keep_layout to 
	inverse_logic.

	* src/Text3.cpp (dispatch): remove LFUN_BREAK_PARAGRAPH_KEEP_LAYOUT;
	implement "inverse" flag to LFUN_BREAK_PARAGRAPH.

	* src/LyXAction.cpp:
	* src/insets/InsetCaption.cpp (doDispatch):
	* src/insets/InsetFlex.cpp (doDispatch):
	* src/insets/InsetTabular.cpp (doDispatch): 
	* src/insets/InsetIndex.cpp (doDispatch):
	* src/lfuns.h: remove all traces of LFUN_BREAK_PARAGRAPH_KEEP_LAYOUT.

	* lib/bind/cua.bind:
	* lib/bind/xemacs.bind: 
	* lib/bind/emacs.bind:
	* lib/bind/mac.bind: adapt bindings.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20846 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-08 13:17:15 +00:00
Richard Heck
ee40d49bea font-code --> font-typewriter
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20418 a592a061-630c-0410-9148-cb99ea01b6c8
2007-09-21 20:01:53 +00:00
Richard Heck
5a71504289 Remove shortcuts for buffer-reload, per JMarc.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18528 a592a061-630c-0410-9148-cb99ea01b6c8
2007-05-26 17:45:23 +00:00
Bo Peng
6fc7d47a5f Restore old bookmark behaviors (stop using bookmark queue)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17628 a592a061-630c-0410-9148-cb99ea01b6c8
2007-03-29 03:41:55 +00:00
Michael Schmitt
6f2529e569 * lib/bind/cua.bind:
* lib/bind/sciword.bind:
	* lib/bind/mac.bind: bind "select all" to "C-a"


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16955 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-30 22:26:50 +00:00
Bo Peng
57686e9d61 Fix bug 3062, bookmark-goto x crashes lyx for invalid bookmark
* src/session.C: check validity of temp bookmark
	* src/lyxfunc.C: check validity of bookmark in GOTO_BOOKMARK
	* lib/bind/*.bind: remove shortcuts to bookmark-save 2/3/4/5


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16589 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-07 22:41:54 +00:00
Georg Baum
1103be3d85 Fix thinko: default paste method for plain text
* src/lyxtext.h
	* src/text3.C
	(pasteString): Change argument to bool

	* src/text3.C
	(LyXText::dispatch): (LFUN_PASTE): Paste plain text as paragraphs,
	not as lines
	(LyXText::dispatch): Adjust to pasteString change

	* lib/bind/cua.bind:
	* lib/bind/sciword.bind:
	* lib/bind/mac.bind: Move shortcuts from "clipboard-paste paragraph"
	and "primary-selection-paste paragraph" to "primary-selection-paste"
	and "clipboard-paste", since the "paragaph" versions are used in
	LFUN_PASTE and middle-mouse-button paste. Now "primary-selection-paste"
	has the same shortcut it always had, and "clipboard-paste" has the
	shortcut that was originally assigned to
	"primary-selection-paste paragraph".


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16553 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-06 15:33:07 +00:00
Michael Schmitt
1eecab0885 * lib/bind/cua.bind:
* lib/bind/mac.bind:
* lib/bind/sciword.bind: move the shortcut C-M-v from "primary-selection-paste" to "clipboard-paste paragraph"

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16550 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-06 13:56:58 +00:00
Michael Schmitt
1396ade8b1 fix LFUN enum values (some of them were broken by r13801)
adjust some commands according to the LyX naming conventions
(toggle-tooltip => tooltip-toggle, *-change(s) => change(s)-*) 


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13811 a592a061-630c-0410-9148-cb99ea01b6c8
2006-05-08 18:09:19 +00:00
Edwin Leuven
513ea10589 Adding PARAGRAPH_MOVE_UP/DOWN + key bindings:
* src/LyXAction.C
   * src/text3.C
   * src/lfuns.h
   * lib/bind/cua.bind
   * lib/bind/sciword.bind
   * lib/bind/xemacs.bind
   * lib/bind/emacs.bind
   * lib/bind/mac.bind
			


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13752 a592a061-630c-0410-9148-cb99ea01b6c8
2006-04-26 22:43:26 +00:00
Jean-Marc Lasgouttes
8a7ef247d8 fix bindings for quote insertion
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10571 a592a061-630c-0410-9148-cb99ea01b6c8
2005-10-25 08:39:15 +00:00
Lars Gullik Bjønnes
6a05cd6a5c couple of mac updates from Bennet Helm
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10539 a592a061-630c-0410-9148-cb99ea01b6c8
2005-10-11 17:58:38 +00:00
Michael Schmitt
805232656b bind "paste-primary-selection (paragraph)"
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10413 a592a061-630c-0410-9148-cb99ea01b6c8
2005-09-06 16:41:52 +00:00
Georg Baum
7e41f0b392 s/reference-goto/label-goto/ by Michael
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9927 a592a061-630c-0410-9148-cb99ea01b6c8
2005-05-09 18:28:30 +00:00
Georg Baum
46e21249ef increase number of default bookmarks to 5
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9480 a592a061-630c-0410-9148-cb99ea01b6c8
2005-01-15 18:36:02 +00:00
Jean-Marc Lasgouttes
cf4269a299 use <cmd>-Tab and <cmd>-backtab as shortcuts for
buffer-next/previous (bug 1639)


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9177 a592a061-630c-0410-9148-cb99ea01b6c8
2004-11-05 13:28:01 +00:00