>>>>> "Abdelrazak" == Abdelrazak Younes <[EMAIL PROTECTED]> writes:

Abdelrazak> No Paragraph is an element of the LyXText. TextMetrics is
Abdelrazak> related to the view.

But the dispatch that is done at view level is in LyXText... I fail to
see what is the the real objects that acts as a view on the data
(except BufferView, but this is too coarse, isn't it?)

>>  OK, OK. But I really do not understand the tenuous difference
>> between setting cur or cur.top().

Abdelrazak> LCursor brings BufferView and cur.top() comes from
Abdelrazak> DocIterator::top() and is a CursorSlice. DocIterator knows
Abdelrazak> nothing about where the cursor is and the selection state.

I understand this. But if breakParagraph adjusts the cursor, it is not to
set some DocIterator, it is to set the View cursor, which is and has to
be a LCursor. It do not see why this part should become a Model
action. You can see the bugs that this produces in the View.

JMarc

Reply via email to