]> git.lyx.org Git - lyx.git/commit
Add math cell positions to TexRow
authorGuillaume Munch <gm@lyx.org>
Tue, 13 Oct 2015 23:17:05 +0000 (00:17 +0100)
committerGuillaume Munch <gm@lyx.org>
Mon, 19 Oct 2015 05:55:17 +0000 (06:55 +0100)
commit65d61e7a2786172da95ed9433ed0c49a7398f405
tree8cf640d29e40e18f9939e3cace04da8a483f3a2d
parente2d7a4534ae9dc66962771d17165e68b54f6044f
Add math cell positions to TexRow

This is preliminary work for extending the cursor<->row tracking to math.

TexRow used to associate, to each row, a location id/pos where id determines a
paragraph and pos the position in the paragraph.

TexRow now associates to each row a list of entries, text or math. A math is a
pair uid/idx where uid will determine a math inset and idx is the number of the
cell.

The analogy id/pos<->inset/idx works better than the analogy id/pos<->idx/pos,
because what matters for the TexRow algorithm(TM) is the behaviour in terms of
line breaks.

This only improves the source view and the forward search, not the error report
and the reverse search (though this could be easily added now).
src/Paragraph.cpp
src/TexRow.cpp
src/TexRow.h