Am Sonntag, 14. November 2004 20:36 schrieb Alfredo Braunstein:
> Acutally actcell_ *is* wrong, as we shouldn't store a view-dependent 
state
> in the view-independent [wanna-be] data struct insettabular...

This explains why it is so difficult to get this data inside the inset ;-)

> Dunno what is the correct fix, as I'm not very familiar with the mailer
> stuff. The fact is that we need a bufferview somehow: with that you can 
get
> bv.cursor() and check if the cursor is in the tabular, then use 
the .idx()
> if yes.

Would the following work?

- static int InsetTabularMailer::string2params(...)
+ static void InsetTabularMailer::string2params(...)

and then use kernel().bufferview() in the controller to get the cursor 
(and active cell). InsetTabularMailer::string2params is btw the only 
string2params that returns an int (the active cell), all others return 
nothing.
We don't need the active cell with this solution in 
InsetTabularMailer::string2params() anymore.


Georg

Reply via email to