Re: passing down buffer

2005-02-12 Thread Andre Poenitz
On Mon, Feb 07, 2005 at 12:58:16PM +0100, Jean-Marc Lasgouttes wrote: > > "Andre" == Andre Poenitz <[EMAIL PROTECTED]> writes: > > Andre> mbox needs access to a buffer pretty much the same way as > Andre> LyXText does. So do some preparation. > > Where is this information needed? Can't it be

Re: passing down buffer

2005-02-12 Thread Andre Poenitz
On Mon, Feb 07, 2005 at 09:51:45PM +0100, Georg Baum wrote: > Am Montag, 7. Februar 2005 12:58 schrieb Jean-Marc Lasgouttes: > > Another idea that I had recently was to pas a LCursor object the > > various inset methods (like latex() or draw()) so that they can get > > all the necessary information

Re: passing down buffer

2005-02-11 Thread Andre Poenitz
On Mon, Feb 07, 2005 at 12:58:16PM +0100, Jean-Marc Lasgouttes wrote: > > "Andre" == Andre Poenitz <[EMAIL PROTECTED]> writes: > > Andre> mbox needs access to a buffer pretty much the same way as > Andre> LyXText does. So do some preparation. > > Where is this information needed? Can't it be

Re: passing down buffer

2005-02-07 Thread Georg Baum
Am Montag, 7. Februar 2005 12:58 schrieb Jean-Marc Lasgouttes: > Another idea that I had recently was to pas a LCursor object the > various inset methods (like latex() or draw()) so that they can get > all the necessary information about where they live. I guess this > would make OutputParams mostl

Re: passing down buffer

2005-02-07 Thread Jean-Marc Lasgouttes
> "Andre" == Andre Poenitz <[EMAIL PROTECTED]> writes: Andre> mbox needs access to a buffer pretty much the same way as Andre> LyXText does. So do some preparation. Where is this information needed? Can't it be added to OutputParams if only latex() needs it? I really do not like the idea of a

Re: passing down buffer

2005-02-06 Thread Andre Poenitz
On Sun, Feb 06, 2005 at 12:08:37PM +0100, Lars Gullik Bjønnes wrote: > Why are we increasing an int that is not used? Probably some dead code? Andre'

Re: passing down buffer

2005-02-06 Thread Lars Gullik Bjønnes
Andre Poenitz <[EMAIL PROTECTED]> writes: | On Sat, Feb 05, 2005 at 09:47:33PM +0100, Lars Gullik Bjønnes wrote: >> Andre Poenitz <[EMAIL PROTECTED]> writes: >> >> | @@ -1132,7 +1132,7 @@ >> |bv().buffer()->params(), >> |sl.pos(), >> |outerFont(sl.pit(), text.p

Re: passing down buffer

2005-02-06 Thread Andre Poenitz
On Sat, Feb 05, 2005 at 09:47:33PM +0100, Lars Gullik Bjønnes wrote: > Andre Poenitz <[EMAIL PROTECTED]> writes: > > | @@ -1132,7 +1132,7 @@ > | bv().buffer()->params(), > | sl.pos(), > | outerFont(sl.pit(), text.paragraphs())); > | - for (; s < size(); ++s) >

Re: passing down buffer

2005-02-05 Thread Lars Gullik Bjønnes
Andre Poenitz <[EMAIL PROTECTED]> writes: | @@ -1132,7 +1132,7 @@ | bv().buffer()->params(), | sl.pos(), | outerFont(sl.pit(), text.paragraphs())); | - for (; s < size(); ++s) | + for (; s < int(size()); ++s) | ; Are you sure that 's

passing down buffer

2005-02-05 Thread Andre Poenitz
mbox needs access to a buffer pretty much the same way as LyXText does. So do some preparation. The patch itself does not change anything yet as (a) the 'wrong case' buf==0 is explicitly checked for in math_mboxinset.C and (b) currently no mboxes are produced anyway (factory code is dead...) The