Re: What is offset_ref_ ?

2007-09-16 Thread Martin Vermeer
On Sun, Sep 16, 2007 at 04:27:04AM +0200, Tommaso Cucinotta wrote: Hi, I couldn't really understand what information is stored inside the BufferView.offset_ref_ variable. At a first glance, it would seem that anchor_ref_ stores the paragraph offset that is displayed from the WorkArea top

Re: What is offset_ref_ ?

2007-09-16 Thread Andre Poenitz
On Sun, Sep 16, 2007 at 09:00:50AM +0300, Martin Vermeer wrote: On Sun, Sep 16, 2007 at 04:27:04AM +0200, Tommaso Cucinotta wrote: Hi, I couldn't really understand what information is stored inside the BufferView.offset_ref_ variable. At a first glance, it would seem that anchor_ref_

Re: What is offset_ref_ ?

2007-09-16 Thread Abdelrazak Younes
Martin Vermeer wrote: On Sun, Sep 16, 2007 at 04:27:04AM +0200, Tommaso Cucinotta wrote: Hi, I couldn't really understand what information is stored inside the BufferView.offset_ref_ variable. At a first glance, it would seem that anchor_ref_ stores the paragraph offset that is displayed from

Re: What is offset_ref_ ?

2007-09-16 Thread Martin Vermeer
On Sun, Sep 16, 2007 at 10:41:21AM +0200, Abdelrazak Younes wrote: Martin Vermeer wrote: On Sun, Sep 16, 2007 at 04:27:04AM +0200, Tommaso Cucinotta wrote: Hi, I couldn't really understand what information is stored inside the BufferView.offset_ref_ variable. At a first glance, it would

Re: What is offset_ref_ ?

2007-09-16 Thread Abdelrazak Younes
Martin Vermeer wrote: On Sun, Sep 16, 2007 at 10:41:21AM +0200, Abdelrazak Younes wrote: Martin Vermeer wrote: On Sun, Sep 16, 2007 at 04:27:04AM +0200, Tommaso Cucinotta wrote: Hi, I couldn't really understand what information is stored inside the BufferView.offset_ref_ variable. At a first

Re: What is offset_ref_ ?

2007-09-16 Thread Martin Vermeer
On Sun, Sep 16, 2007 at 11:35:09AM +0200, Abdelrazak Younes wrote: Martin Vermeer wrote: On Sun, Sep 16, 2007 at 10:41:21AM +0200, Abdelrazak Younes wrote: Martin Vermeer wrote: On Sun, Sep 16, 2007 at 04:27:04AM +0200, Tommaso Cucinotta wrote: Hi, I couldn't really understand what

Re: What is offset_ref_ ?

2007-09-16 Thread Tommaso Cucinotta
And, what about ParagraphMetrics.position_, ascent and discent ? Ok, they're y coords, they represent the paragraph vertical dimension and position, but I couldn't really figure out what are they relative to, and why I always see in the code *) position()-ascent() *) position()+descent() Thanx

Re: What is offset_ref_ ?

2007-09-16 Thread Andre Poenitz
On Sun, Sep 16, 2007 at 02:42:11PM +0200, Tommaso Cucinotta wrote: And, what about ParagraphMetrics.position_, ascent and discent ? Ok, they're y coords, they represent the paragraph vertical dimension and position, but I couldn't really figure out what are they relative to, and why I

Re: What is offset_ref_ ?

2007-09-16 Thread Martin Vermeer
On Sun, Sep 16, 2007 at 02:53:56PM +0200, Andre Poenitz wrote: On Sun, Sep 16, 2007 at 02:42:11PM +0200, Tommaso Cucinotta wrote: And, what about ParagraphMetrics.position_, ascent and discent ? Ok, they're y coords, they represent the paragraph vertical dimension and position, but I

Re: What is offset_ref_ ?

2007-09-16 Thread Abdelrazak Younes
Tommaso Cucinotta wrote: And, what about ParagraphMetrics.position_, ascent and discent ? Ok, they're y coords, they represent the paragraph vertical dimension and position, but I couldn't really figure out what are they relative to, All inset and paragraph coords are absolute WRT the screen.

Re: What is offset_ref_ ?

2007-09-16 Thread Abdelrazak Younes
Martin Vermeer wrote: On Sun, Sep 16, 2007 at 11:35:09AM +0200, Abdelrazak Younes wrote: Moreover, what var decides how the gray text background is cut at the end of the doc ? Yes, that is tricky. It's years ago that I looked at this :-( I suspect it is in GuiWorkArea::setScrollbarParams():

Re: What is offset_ref_ ?

2007-09-16 Thread Pavel Sanda
Hope this helps. Feel free to synthesize all these information and write some documentation ;-) btw i'm trying to catch such threads and put them into http://wiki.lyx.org/Devel/Diagrams . pavel

Re: What is offset_ref_ ?

2007-09-16 Thread Abdelrazak Younes
Pavel Sanda wrote: Hope this helps. Feel free to synthesize all these information and write some documentation ;-) btw i'm trying to catch such threads and put them into http://wiki.lyx.org/Devel/Diagrams . Very good initiative. Proper doxygen documentation should also go in the header...

Re: What is offset_ref_ ?

2007-09-16 Thread Tommaso Cucinotta
Pavel Sanda ha scritto: btw i'm trying to catch such threads and put them into http://wiki.lyx.org/Devel/Diagrams . Great. Also, the (reference point of the) return value of buffer_view::coordOffset() and buffer_view::getPos(), and the role of BufferView.wh_ would complete the picture.

Re: What is offset_ref_ ?

2007-09-16 Thread Martin Vermeer
On Sun, Sep 16, 2007 at 04:27:04AM +0200, Tommaso Cucinotta wrote: > Hi, > > I couldn't really understand what information is > stored inside the BufferView.offset_ref_ variable. > At a first glance, it would seem that anchor_ref_ > stores the "paragraph offset" that is displayed from > the

Re: What is offset_ref_ ?

2007-09-16 Thread Andre Poenitz
On Sun, Sep 16, 2007 at 09:00:50AM +0300, Martin Vermeer wrote: > On Sun, Sep 16, 2007 at 04:27:04AM +0200, Tommaso Cucinotta wrote: > > Hi, > > > > I couldn't really understand what information is > > stored inside the BufferView.offset_ref_ variable. > > At a first glance, it would seem that

Re: What is offset_ref_ ?

2007-09-16 Thread Abdelrazak Younes
Martin Vermeer wrote: On Sun, Sep 16, 2007 at 04:27:04AM +0200, Tommaso Cucinotta wrote: Hi, I couldn't really understand what information is stored inside the BufferView.offset_ref_ variable. At a first glance, it would seem that anchor_ref_ stores the "paragraph offset" that is displayed

Re: What is offset_ref_ ?

2007-09-16 Thread Martin Vermeer
On Sun, Sep 16, 2007 at 10:41:21AM +0200, Abdelrazak Younes wrote: > Martin Vermeer wrote: > >On Sun, Sep 16, 2007 at 04:27:04AM +0200, Tommaso Cucinotta wrote: > >>Hi, > >> > >>I couldn't really understand what information is > >>stored inside the BufferView.offset_ref_ variable. > >>At a first

Re: What is offset_ref_ ?

2007-09-16 Thread Abdelrazak Younes
Martin Vermeer wrote: On Sun, Sep 16, 2007 at 10:41:21AM +0200, Abdelrazak Younes wrote: Martin Vermeer wrote: On Sun, Sep 16, 2007 at 04:27:04AM +0200, Tommaso Cucinotta wrote: Hi, I couldn't really understand what information is stored inside the BufferView.offset_ref_ variable. At a first

Re: What is offset_ref_ ?

2007-09-16 Thread Martin Vermeer
On Sun, Sep 16, 2007 at 11:35:09AM +0200, Abdelrazak Younes wrote: > Martin Vermeer wrote: > >On Sun, Sep 16, 2007 at 10:41:21AM +0200, Abdelrazak Younes wrote: > >>Martin Vermeer wrote: > >>>On Sun, Sep 16, 2007 at 04:27:04AM +0200, Tommaso Cucinotta wrote: > Hi, > > I couldn't

Re: What is offset_ref_ ?

2007-09-16 Thread Tommaso Cucinotta
And, what about ParagraphMetrics.position_, ascent and discent ? Ok, they're y coords, they represent the paragraph vertical dimension and position, but I couldn't really figure out what are they relative to, and why I always see in the code *) position()-ascent() *) position()+descent() Thanx

Re: What is offset_ref_ ?

2007-09-16 Thread Andre Poenitz
On Sun, Sep 16, 2007 at 02:42:11PM +0200, Tommaso Cucinotta wrote: > And, what about ParagraphMetrics.position_, ascent > and discent ? > > Ok, they're y coords, they represent the paragraph vertical > dimension and position, but I couldn't really figure out what > are they relative to, and why I

Re: What is offset_ref_ ?

2007-09-16 Thread Martin Vermeer
On Sun, Sep 16, 2007 at 02:53:56PM +0200, Andre Poenitz wrote: > On Sun, Sep 16, 2007 at 02:42:11PM +0200, Tommaso Cucinotta wrote: > > And, what about ParagraphMetrics.position_, ascent > > and discent ? > > > > Ok, they're y coords, they represent the paragraph vertical > > dimension and

Re: What is offset_ref_ ?

2007-09-16 Thread Abdelrazak Younes
Tommaso Cucinotta wrote: And, what about ParagraphMetrics.position_, ascent and discent ? Ok, they're y coords, they represent the paragraph vertical dimension and position, but I couldn't really figure out what are they relative to, All inset and paragraph coords are absolute WRT the screen.

Re: What is offset_ref_ ?

2007-09-16 Thread Abdelrazak Younes
Martin Vermeer wrote: On Sun, Sep 16, 2007 at 11:35:09AM +0200, Abdelrazak Younes wrote: Moreover, what var decides how the gray text background is cut at the end of the doc ? Yes, that is tricky. It's years ago that I looked at this :-( I suspect it is in GuiWorkArea::setScrollbarParams():

Re: What is offset_ref_ ?

2007-09-16 Thread Pavel Sanda
> Hope this helps. Feel free to synthesize all these information and write > some documentation ;-) btw i'm trying to catch such threads and put them into http://wiki.lyx.org/Devel/Diagrams . pavel

Re: What is offset_ref_ ?

2007-09-16 Thread Abdelrazak Younes
Pavel Sanda wrote: Hope this helps. Feel free to synthesize all these information and write some documentation ;-) btw i'm trying to catch such threads and put them into http://wiki.lyx.org/Devel/Diagrams . Very good initiative. Proper doxygen documentation should also go in the header...

Re: What is offset_ref_ ?

2007-09-16 Thread Tommaso Cucinotta
Pavel Sanda ha scritto: btw i'm trying to catch such threads and put them into http://wiki.lyx.org/Devel/Diagrams . Great. Also, the (reference point of the) return value of buffer_view::coordOffset() and buffer_view::getPos(), and the role of BufferView.wh_ would complete the picture.