]> 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>
Wed, 15 Jun 2016 21:32:53 +0000 (22:32 +0100)
commitf3cb98c784cea4c778ad11496985f452a703d6a2
tree169d44e5a7a394be906a9efccffe095a3a59f314
parent108cb35b64d927b1ad4d50fec1f66071b181efcf
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