]> git.lyx.org Git - features.git/commit
Make inset-select-all select all cells only in tables
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Mon, 14 Mar 2016 10:46:28 +0000 (11:46 +0100)
committerRichard Heck <rgheck@lyx.org>
Sat, 28 May 2016 21:43:01 +0000 (17:43 -0400)
commitd8f6e65ec73e3a4aa4bfba510ee42dbe353e2742
tree911a916f87f11849b39b099e836ba0c1c16242af
parentfd3a41e035a44a66a3adcb9fa0f970f32e9d260c
Make inset-select-all select all cells only in tables

inset-select-all has 3 levels
1. select current cell
2. select all cells
3. select inset from outside.

The second level makes sense for tables (text and math), but not for things like a math fraction.

Introduce a new method Inset::isTable() that allows to detect this case properly and skip level 2.
src/BufferView.cpp
src/insets/Inset.h
src/insets/InsetTabular.h
src/mathed/InsetMathGrid.h