Text completion not working in tables?

2008-03-14 Thread Dov Feldstern

Hi!

Stefan --- the completion stuff looks really, really nice. Thanks!

It seems to me that text completion is not working in tables. Math 
completion *does* work, though. Can anything be done about this?


Thanks!
Dov


Re: Text completion not working in tables?

2008-03-14 Thread Dov Feldstern

Stefan Schimanski wrote:


Am 14.03.2008 um 14:14 schrieb Dov Feldstern:


Hi!

Stefan --- the completion stuff looks really, really nice. Thanks!

It seems to me that text completion is not working in tables. Math 
completion *does* work, though. Can anything be done about this?


It can. But at the moment the support is only in InsetMathNest and 
InsetText. Have to try it for InsetTabular. Probably one can just copy 
the code from InsetText.


Is the text inside a table cell not an InsetText? I sort of assumed that 
every cell contains an InsetText for its text...




Stefan




Re: Text completion not working in tables?

2008-03-14 Thread Stefan Schimanski


Am 14.03.2008 um 14:14 schrieb Dov Feldstern:


Hi!

Stefan --- the completion stuff looks really, really nice. Thanks!

It seems to me that text completion is not working in tables. Math  
completion *does* work, though. Can anything be done about this?


It can. But at the moment the support is only in InsetMathNest and  
InsetText. Have to try it for InsetTabular. Probably one can just copy  
the code from InsetText.


Stefan


Re: Text completion not working in tables?

2008-03-14 Thread Stefan Schimanski


Am 14.03.2008 um 15:26 schrieb Dov Feldstern:


Stefan Schimanski wrote:

Am 14.03.2008 um 14:14 schrieb Dov Feldstern:

Hi!

Stefan --- the completion stuff looks really, really nice. Thanks!

It seems to me that text completion is not working in tables. Math  
completion *does* work, though. Can anything be done about this?
It can. But at the moment the support is only in InsetMathNest and  
InsetText. Have to try it for InsetTabular. Probably one can just  
copy the code from InsetText.


Is the text inside a table cell not an InsetText? I sort of assumed  
that every cell contains an InsetText for its text...


AFAIK it only uses the Text class for every cell. Otherwise the cursor  
would need another slice for the table and the InsetText, and hence  
many special handling to avoid strange positions which are in the  
table, but not in the InsetText.


Stefan


Re: Text completion not working in tables?

2008-03-14 Thread Andre Poenitz
On Fri, Mar 14, 2008 at 03:19:32PM +0100, Stefan Schimanski wrote:

 Am 14.03.2008 um 14:14 schrieb Dov Feldstern:

 Hi!

 Stefan --- the completion stuff looks really, really nice. Thanks!

 It seems to me that text completion is not working in tables. Math 
 completion *does* work, though. Can anything be done about this?

 It can. But at the moment the support is only in InsetMathNest and 
 InsetText. Have to try it for InsetTabular. Probably one can just copy the 
 code from InsetText.

Or move it to Text, which is shared by InsetText and InsetTabular?

Andre'


Re: Text completion not working in tables?

2008-03-14 Thread Stefan Schimanski


Am 14.03.2008 um 20:13 schrieb Andre Poenitz:


On Fri, Mar 14, 2008 at 03:19:32PM +0100, Stefan Schimanski wrote:


Am 14.03.2008 um 14:14 schrieb Dov Feldstern:


Hi!

Stefan --- the completion stuff looks really, really nice. Thanks!

It seems to me that text completion is not working in tables. Math
completion *does* work, though. Can anything be done about this?


It can. But at the moment the support is only in InsetMathNest and
InsetText. Have to try it for InsetTabular. Probably one can just  
copy the

code from InsetText.


Or move it to Text, which is shared by InsetText and InsetTabular?


Will try that.

Stefan


Re: Text completion not working in tables?

2008-03-14 Thread Abdelrazak Younes

Stefan Schimanski wrote:


Am 14.03.2008 um 15:26 schrieb Dov Feldstern:


Stefan Schimanski wrote:

Am 14.03.2008 um 14:14 schrieb Dov Feldstern:

Hi!

Stefan --- the completion stuff looks really, really nice. Thanks!

It seems to me that text completion is not working in tables. Math 
completion *does* work, though. Can anything be done about this?
It can. But at the moment the support is only in InsetMathNest and 
InsetText. Have to try it for InsetTabular. Probably one can just 
copy the code from InsetText.


Is the text inside a table cell not an InsetText? I sort of assumed 
that every cell contains an InsetText for its text...


AFAIK it only uses the Text class for every cell. Otherwise the cursor 
would need another slice for the table and the InsetText, and hence many 
special handling to avoid strange positions which are in the table, but 
not in the InsetText.


I don't think this is a good thing personally. Cells should be insets. I 
am pretty sure the code will be less complicated if that was the case.


Abdel.



Re: Text completion not working in tables?

2008-03-14 Thread Andre Poenitz
On Fri, Mar 14, 2008 at 11:15:48PM +0100, Abdelrazak Younes wrote:
 Stefan Schimanski wrote:
 Am 14.03.2008 um 15:26 schrieb Dov Feldstern:
 Stefan Schimanski wrote:
 Am 14.03.2008 um 14:14 schrieb Dov Feldstern:
 Hi!

 Stefan --- the completion stuff looks really, really nice. Thanks!

 It seems to me that text completion is not working in tables. Math 
 completion *does* work, though. Can anything be done about this?
 It can. But at the moment the support is only in InsetMathNest and 
 InsetText. Have to try it for InsetTabular. Probably one can just copy 
 the code from InsetText.

 Is the text inside a table cell not an InsetText? I sort of assumed that 
 every cell contains an InsetText for its text...
 AFAIK it only uses the Text class for every cell. Otherwise the cursor 
 would need another slice for the table and the InsetText, and hence many 
 special handling to avoid strange positions which are in the table, but 
 not in the InsetText.

 I don't think this is a good thing personally. Cells should be insets. I am 
 pretty sure the code will be less complicated if that was the case.

I always thought a bit like Text == Model, InsetText == View.

But of course, the metrics stuff completely defeats this...

Andre'


Text completion not working in tables?

2008-03-14 Thread Dov Feldstern

Hi!

Stefan --- the completion stuff looks really, really nice. Thanks!

It seems to me that text completion is not working in tables. Math 
completion *does* work, though. Can anything be done about this?


Thanks!
Dov


Re: Text completion not working in tables?

2008-03-14 Thread Dov Feldstern

Stefan Schimanski wrote:


Am 14.03.2008 um 14:14 schrieb Dov Feldstern:


Hi!

Stefan --- the completion stuff looks really, really nice. Thanks!

It seems to me that text completion is not working in tables. Math 
completion *does* work, though. Can anything be done about this?


It can. But at the moment the support is only in InsetMathNest and 
InsetText. Have to try it for InsetTabular. Probably one can just copy 
the code from InsetText.


Is the text inside a table cell not an InsetText? I sort of assumed that 
every cell contains an InsetText for its text...




Stefan




Re: Text completion not working in tables?

2008-03-14 Thread Stefan Schimanski


Am 14.03.2008 um 14:14 schrieb Dov Feldstern:


Hi!

Stefan --- the completion stuff looks really, really nice. Thanks!

It seems to me that text completion is not working in tables. Math  
completion *does* work, though. Can anything be done about this?


It can. But at the moment the support is only in InsetMathNest and  
InsetText. Have to try it for InsetTabular. Probably one can just copy  
the code from InsetText.


Stefan


Re: Text completion not working in tables?

2008-03-14 Thread Stefan Schimanski


Am 14.03.2008 um 15:26 schrieb Dov Feldstern:


Stefan Schimanski wrote:

Am 14.03.2008 um 14:14 schrieb Dov Feldstern:

Hi!

Stefan --- the completion stuff looks really, really nice. Thanks!

It seems to me that text completion is not working in tables. Math  
completion *does* work, though. Can anything be done about this?
It can. But at the moment the support is only in InsetMathNest and  
InsetText. Have to try it for InsetTabular. Probably one can just  
copy the code from InsetText.


Is the text inside a table cell not an InsetText? I sort of assumed  
that every cell contains an InsetText for its text...


AFAIK it only uses the Text class for every cell. Otherwise the cursor  
would need another slice for the table and the InsetText, and hence  
many special handling to avoid strange positions which are in the  
table, but not in the InsetText.


Stefan


Re: Text completion not working in tables?

2008-03-14 Thread Andre Poenitz
On Fri, Mar 14, 2008 at 03:19:32PM +0100, Stefan Schimanski wrote:
>
> Am 14.03.2008 um 14:14 schrieb Dov Feldstern:
>
>> Hi!
>>
>> Stefan --- the completion stuff looks really, really nice. Thanks!
>>
>> It seems to me that text completion is not working in tables. Math 
>> completion *does* work, though. Can anything be done about this?
>
> It can. But at the moment the support is only in InsetMathNest and 
> InsetText. Have to try it for InsetTabular. Probably one can just copy the 
> code from InsetText.

Or move it to Text, which is shared by InsetText and InsetTabular?

Andre'


Re: Text completion not working in tables?

2008-03-14 Thread Stefan Schimanski


Am 14.03.2008 um 20:13 schrieb Andre Poenitz:


On Fri, Mar 14, 2008 at 03:19:32PM +0100, Stefan Schimanski wrote:


Am 14.03.2008 um 14:14 schrieb Dov Feldstern:


Hi!

Stefan --- the completion stuff looks really, really nice. Thanks!

It seems to me that text completion is not working in tables. Math
completion *does* work, though. Can anything be done about this?


It can. But at the moment the support is only in InsetMathNest and
InsetText. Have to try it for InsetTabular. Probably one can just  
copy the

code from InsetText.


Or move it to Text, which is shared by InsetText and InsetTabular?


Will try that.

Stefan


Re: Text completion not working in tables?

2008-03-14 Thread Abdelrazak Younes

Stefan Schimanski wrote:


Am 14.03.2008 um 15:26 schrieb Dov Feldstern:


Stefan Schimanski wrote:

Am 14.03.2008 um 14:14 schrieb Dov Feldstern:

Hi!

Stefan --- the completion stuff looks really, really nice. Thanks!

It seems to me that text completion is not working in tables. Math 
completion *does* work, though. Can anything be done about this?
It can. But at the moment the support is only in InsetMathNest and 
InsetText. Have to try it for InsetTabular. Probably one can just 
copy the code from InsetText.


Is the text inside a table cell not an InsetText? I sort of assumed 
that every cell contains an InsetText for its text...


AFAIK it only uses the Text class for every cell. Otherwise the cursor 
would need another slice for the table and the InsetText, and hence many 
special handling to avoid strange positions which are in the table, but 
not in the InsetText.


I don't think this is a good thing personally. Cells should be insets. I 
am pretty sure the code will be less complicated if that was the case.


Abdel.



Re: Text completion not working in tables?

2008-03-14 Thread Andre Poenitz
On Fri, Mar 14, 2008 at 11:15:48PM +0100, Abdelrazak Younes wrote:
> Stefan Schimanski wrote:
>> Am 14.03.2008 um 15:26 schrieb Dov Feldstern:
>>> Stefan Schimanski wrote:
 Am 14.03.2008 um 14:14 schrieb Dov Feldstern:
> Hi!
>
> Stefan --- the completion stuff looks really, really nice. Thanks!
>
> It seems to me that text completion is not working in tables. Math 
> completion *does* work, though. Can anything be done about this?
 It can. But at the moment the support is only in InsetMathNest and 
 InsetText. Have to try it for InsetTabular. Probably one can just copy 
 the code from InsetText.
>>>
>>> Is the text inside a table cell not an InsetText? I sort of assumed that 
>>> every cell contains an InsetText for its text...
>> AFAIK it only uses the Text class for every cell. Otherwise the cursor 
>> would need another slice for the table and the InsetText, and hence many 
>> special handling to avoid strange positions which are in the table, but 
>> not in the InsetText.
>
> I don't think this is a good thing personally. Cells should be insets. I am 
> pretty sure the code will be less complicated if that was the case.

I always thought a bit like Text == Model, InsetText == View.

But of course, the metrics stuff completely defeats this...

Andre'