Abdelrazak Younes eed6514dd0 Move selection painting closer to row painting. Single row painting is now possible for selection.
* Row:
- setSelection(): set selection begin and end for this row.
- sel_beg, sel_end: new public members.

* BufferView::draw()
- do not trigger a full repaint for selection.
- use TextMetrics::draw() instead of hand calling TextMetrics::drawParagraph().

* InsetText::draw(): don't call TextMetrics::drawSelection().

* InsetMathMBox::drawSelection(): remove.

* TextMetrics:
- drawSelection(): simplify a bit. Now private.
- redoParagraph(): memorize Row selection status.
- x2pos(): fix crash when selecting with PageDown.
- draw(): fill-in the ParPos cache before everything else and not in drawParagraph().
- drawParagraph(): take care of row selection painting.







git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20066 a592a061-630c-0410-9148-cb99ea01b6c8
2007-09-05 13:04:05 +00:00
..
2007-04-22 10:11:16 +00:00
2007-04-26 14:56:30 +00:00
2007-08-30 18:03:17 +00:00
2007-08-30 18:03:17 +00:00
2007-08-30 18:03:17 +00:00
2007-08-30 18:03:17 +00:00
2007-08-30 18:03:17 +00:00
2007-08-30 18:03:17 +00:00
2007-08-30 18:03:17 +00:00
2007-08-30 18:03:17 +00:00
2007-08-30 18:03:17 +00:00
2007-08-30 18:03:17 +00:00
2007-08-30 18:03:17 +00:00
2007-08-30 18:03:17 +00:00
2007-08-30 18:03:17 +00:00
2007-08-30 18:03:17 +00:00
2007-08-30 18:03:17 +00:00
2007-08-30 18:03:17 +00:00
2007-08-30 18:03:17 +00:00
2007-08-30 18:03:17 +00:00
2007-08-30 18:03:17 +00:00
2007-08-30 18:03:17 +00:00
2007-08-30 18:03:17 +00:00
2007-08-30 18:03:17 +00:00
2007-08-30 18:03:17 +00:00
2007-08-30 18:03:17 +00:00
2007-08-30 18:03:17 +00:00
2007-08-30 18:03:17 +00:00
2007-08-30 18:03:17 +00:00
2007-08-30 18:03:17 +00:00
2007-08-30 18:03:17 +00:00
2007-08-30 18:03:17 +00:00
2007-04-26 14:56:30 +00:00
2007-08-30 18:03:17 +00:00
2007-08-30 18:03:17 +00:00
2007-08-30 22:30:31 +00:00
2007-08-30 18:03:17 +00:00
2007-08-30 18:03:17 +00:00
2007-08-30 18:03:17 +00:00
2007-08-30 18:03:17 +00:00
2007-08-30 18:03:17 +00:00
2007-08-30 18:03:17 +00:00
2007-08-19 13:32:21 +00:00
2007-08-30 18:03:17 +00:00
2007-08-30 18:03:17 +00:00
2007-08-30 18:03:17 +00:00
2007-08-30 18:03:17 +00:00
2007-08-30 18:03:17 +00:00
2007-08-30 18:03:17 +00:00
2007-08-30 18:03:17 +00:00
2007-08-30 18:03:17 +00:00
2007-08-30 18:03:17 +00:00
2007-08-30 18:03:17 +00:00
2007-08-30 18:03:17 +00:00
2007-08-30 18:03:17 +00:00
2007-08-30 18:03:17 +00:00
2007-08-30 18:03:17 +00:00
2007-08-30 18:03:17 +00:00
2007-08-30 18:03:17 +00:00
2007-08-30 18:03:17 +00:00
2007-08-30 22:30:31 +00:00
2007-04-29 13:39:47 +00:00
2007-05-28 22:27:45 +00:00
2007-08-30 18:03:17 +00:00
2007-04-29 13:39:47 +00:00
2007-05-28 22:27:45 +00:00
2007-08-30 18:03:17 +00:00
2007-04-26 16:05:57 +00:00
2007-04-26 16:05:57 +00:00
2006-10-22 10:15:23 +00:00
2007-08-30 18:03:17 +00:00
2007-08-30 18:03:17 +00:00
2007-08-30 22:30:31 +00:00
2007-04-26 16:05:57 +00:00
2007-04-26 16:05:57 +00:00
2004-04-20 08:51:15 +00:00
2007-04-26 16:05:57 +00:00

Inset 'Xyz' is implemented by 'MathXyzInset' in 'math_xyzinset.[hC]'


Inset hierarchy:

                                   MathInset
                                (abstract base)

                         /            |               \

              Dim                  Char               Symbol, Space, ...
         (thing that need       (for things formerly
          the width_/ascent_     known as characters)
          /descent_ cache)

          /             \

       Nest              Dots,  Func, ...
  (for thing with
   nested content)

        |         \

      Grid        Decoration   Delim   Frac  Macro  Root  Script  Sqrt

      /   \

 Array    Hull
         (base for eqnarray/align/...)