On Mon, Aug 18, 2003 at 01:22:25PM +0300, Martin Vermeer wrote:
> On Mon, Aug 18, 2003 at 10:18:16AM +0200, Andre Poenitz spake thusly:
> 
> > > 
> > > BTW do I understand correctly that paintRows only actually repaints
> > > one row, the one the cursor is on (rowpainter.C:1087)? What do I miss?
> > 
> > No, paintRows paints everything from 'rit' to the end of screen or end
> > of text - whatever happens first.
> > 
> > RowPainter::paint() paints a single row.
> 
> Heck yes, I see that now.
> 
> ... trying to find out where 'width' comes from. rowBreakPoint...
> rightMargin... am I right in suspecting that this code in text.C:
> 
> 622     InsetOld * ins;
> 623 
> 624     if (row.pos() < pit->size())
> 625         if ((pit->getChar(row.pos()) == Paragraph::META_INSET) &&
> 626             (ins = pit->getInset(row.pos())) &&
> 627             (ins->needFullRow() || ins->display()))
> 628             return PAPER_MARGIN;
> 
> makes all insets extend to the right edge of the window?
> 
> ... would it be possible to make redoParagraph return the x pixel
> position of the end of the row?

Of which row?

Why not have a separate function in LyXText for whatever you are trying
to achieve?

> And then in LyXText::metrics the
> dimension dim should have an additional member 'end_x' or something to
> that effect,

LyXText could have that member, but not Dimension.

> so it would be possible to consider a text inset that
> ends in mid-row -- like the inlined ERT inset did once ;-)
> 
> Do I sound sensible?

Sort of. But you've lost me already when quoting that code above. I have
no cluu what this is good for.

Andre'


-- 
Those who desire to give up Freedom in order to gain Security, will not have,
nor do they deserve, either one.     (T. Jefferson or B. Franklin or both...)

Reply via email to