Re: Inset(Box) with fixed width

2007-09-18 Thread Andre Poenitz
On Tue, Sep 18, 2007 at 09:55:05PM +0200, Edwin Leuven wrote: > Andre Poenitz wrote: > >>perhaps start with writing an InsetGrid class and then have InsetTabular > >>derive from this? > > > >"NestInset" ;-} > > isn't there something like that in mathed? Sort of. MathArray is basically the equiva

Re: Inset(Box) with fixed width

2007-09-18 Thread Edwin Leuven
Andre Poenitz wrote: perhaps start with writing an InsetGrid class and then have InsetTabular derive from this? "NestInset" ;-} isn't there something like that in mathed? I think we should ponder the "everything is an inset - also paragraphs are insets" idea next time we are sufficiently dr

Re: Inset(Box) with fixed width

2007-09-18 Thread Pavel Sanda
> Without too much hackery I think InsetTabular is the only choice. to be frank, i already escaped from tabular code, after that started playing with insetbox :) > > i though about insetbox too - one would need to > > -forbid editing inside C > > This migth be possible. > > > -make the cursor

Re: Inset(Box) with fixed width

2007-09-18 Thread Andre Poenitz
On Tue, Sep 18, 2007 at 08:49:44PM +0200, Edwin Leuven wrote: > Andre Poenitz wrote: > >Without too much hackery I think InsetTabular is the only choice. > > this sounds like a contradiction in terms to me... It will be ugly as heel, but everything else is probably worse. > >As I said: InsetTabu

Re: Inset(Box) with fixed width

2007-09-18 Thread Abdelrazak Younes
Edwin Leuven wrote: Andre Poenitz wrote: Without too much hackery I think InsetTabular is the only choice. this sounds like a contradiction in terms to me... As I said: InsetTabular might be the best start. But it's not easy this way either. perhaps start with writing an InsetGrid class an

Re: Inset(Box) with fixed width

2007-09-18 Thread Edwin Leuven
Andre Poenitz wrote: Without too much hackery I think InsetTabular is the only choice. this sounds like a contradiction in terms to me... As I said: InsetTabular might be the best start. But it's not easy this way either. perhaps start with writing an InsetGrid class and then have InsetTabu

Re: Inset(Box) with fixed width

2007-09-18 Thread Abdelrazak Younes
Andre Poenitz wrote: On Tue, Sep 18, 2007 at 01:17:07PM +0200, Pavel Sanda wrote: This is now working like that. thank you Abdel :) i'd like to ask one question more. first my intenstion: i'd like to have one inset C containing two derivates of insetbox A,B. C is not supposed to do anything

Re: Inset(Box) with fixed width

2007-09-18 Thread Andre Poenitz
On Tue, Sep 18, 2007 at 01:17:07PM +0200, Pavel Sanda wrote: > > This is now working like that. > > thank you Abdel :) > > i'd like to ask one question more. > first my intenstion: i'd like to have one inset C > containing two derivates of insetbox A,B. C is not > supposed to do anything else th

Re: Inset(Box) with fixed width

2007-09-18 Thread Abdelrazak Younes
Pavel Sanda wrote: This is now working like that. thank you Abdel :) i'd like to ask one question more. first my intenstion: i'd like to have one inset C containing two derivates of insetbox A,B. C is not supposed to do anything else than provide these two boxes and have one special settings

Re: Inset(Box) with fixed width

2007-09-18 Thread Pavel Sanda
> This is now working like that. thank you Abdel :) i'd like to ask one question more. first my intenstion: i'd like to have one inset C containing two derivates of insetbox A,B. C is not supposed to do anything else than provide these two boxes and have one special settings dialog on mouse clic

Re: Inset(Box) with fixed width

2007-09-18 Thread Jean-Marc Lasgouttes
Abdelrazak Younes <[EMAIL PROTECTED]> writes: >> Isn't it already supposed to work like that? > > This is now working like that. Very good. JMarc

Re: Inset(Box) with fixed width

2007-09-18 Thread Abdelrazak Younes
Jean-Marc Lasgouttes wrote: Pavel Sanda <[EMAIL PROTECTED]> writes: hello, i'm trying to derive new kind of inset, which would be similar to InsetBox, but i need it to be fixed-width (i mean really fixed, not that after reaching .width the inset is magnified to wider text). Isn't it already

Re: Inset(Box) with fixed width

2007-09-18 Thread Jürgen Spitzmüller
Abdelrazak Younes wrote: > Yep, I verified that... it will be even better fixed: the inner inset > will resize nicely inside. > > Will commit once I'd done some more testing... Cool. One more hack is gone. Jürgen

Re: Inset(Box) with fixed width

2007-09-18 Thread Abdelrazak Younes
Jürgen Spitzmüller wrote: Abdelrazak Younes wrote: So the fix would be to revert your change now that the wide() thing is gone, wouldn't it? I guess so, yes. We'll have to double-check that bug 2884 and bug 3437 remein fixed, though. Yep, I verified that... it will be even better fixed: the

Re: Inset(Box) with fixed width

2007-09-18 Thread Jean-Marc Lasgouttes
Pavel Sanda <[EMAIL PROTECTED]> writes: > hello, > > i'm trying to derive new kind of inset, which would be similar to > InsetBox, but i need it to be fixed-width (i mean really fixed, not > that after reaching .width the inset is magnified to wider text). Isn't it already supposed to work like t

Re: Inset(Box) with fixed width

2007-09-18 Thread Jürgen Spitzmüller
Abdelrazak Younes wrote: > So the fix would be to revert your change now that the wide() thing is > gone, wouldn't it? I guess so, yes. We'll have to double-check that bug 2884 and bug 3437 remein fixed, though. Jürgen

Re: Inset(Box) with fixed width

2007-09-18 Thread Abdelrazak Younes
Jürgen Spitzmüller wrote: Abdelrazak Younes wrote: I tried to test 1.4 and 1.5 to get a sense on how InsetBox should behave but I get painting and size problems in both. Could someone explain me how this should behave on screen? This thing looks really broken... It is broken: http://bugzilla.l

Re: Inset(Box) with fixed width

2007-09-18 Thread Jürgen Spitzmüller
Abdelrazak Younes wrote: > I tried to test 1.4 and 1.5 to get a sense on how InsetBox should behave > but I get painting and size problems in both. Could someone explain me > how this should behave on screen? > This thing looks really broken... It is broken: http://bugzilla.lyx.org/show_bug.cgi?id

Re: Inset(Box) with fixed width

2007-09-18 Thread Abdelrazak Younes
Pavel Sanda wrote: hello, i'm trying to derive new kind of inset, which would be similar to InsetBox, but i need it to be fixed-width (i mean really fixed, not that after reaching .width the inset is magnified to wider text). I tried to test 1.4 and 1.5 to get a sense on how InsetBox should be

Re: Inset(Box) with fixed width

2007-09-17 Thread Abdelrazak Younes
Abdelrazak Younes wrote: Pavel Sanda wrote: hello, i'm trying to derive new kind of inset, which would be similar to InsetBox, but i need it to be fixed-width (i mean really fixed, not that after reaching .width the inset is magnified to wider text). Why not adding a new option to InsetBox in

Re: Inset(Box) with fixed width

2007-09-17 Thread Abdelrazak Younes
Pavel Sanda wrote: hello, i'm trying to derive new kind of inset, which would be similar to InsetBox, but i need it to be fixed-width (i mean really fixed, not that after reaching .width the inset is magnified to wider text). Why not adding a new option to InsetBox instead? is this somehow

Inset(Box) with fixed width

2007-09-17 Thread Pavel Sanda
hello, i'm trying to derive new kind of inset, which would be similar to InsetBox, but i need it to be fixed-width (i mean really fixed, not that after reaching .width the inset is magnified to wider text). is this somehow possible to do just by deriving from eg InsetBox/InsetText with just adjus