]> 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)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Mon, 9 May 2016 09:15:17 +0000 (11:15 +0200)
commit1f2d7bf7e65ffc9be576b05a862f7c01bff61031
tree0206b94bc3286a33265f7f1381c357aa1f12b9e3
parent1a836459fbc492c031a3b3761b7b0a765ca0754a
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.

(cherry picked from commit 5de28b9ac6736c791146a1a3ebe7f4826c22a9b7)
src/BufferView.cpp
src/insets/Inset.h
src/insets/InsetTabular.h
src/mathed/InsetMathGrid.h
status.22x