Georg Baum wrote:

> Alfredo Braunstein wrote:
> 
>> Btw, please shout if you need a hand with the cursor stuff.
> 
> I don't understand it, but I figured out that I somehow need idx(), and
> that is enough for now.
> 
>> For "in" being the pointer to the tabular, you could do something like
> 
> The problem is now: How to get "in" from the controller? It seems that we
> have the bufferview in the controller, but no inset, and no bufferview,
> but the inset in the mailer.

I thought that dialogs were associated with insets somehow. No idea how ;-)

We could just apply the change to the most inner InsetTabular. Would this be
acceptable behaviour?

Something like

for (unsigned i = cur.size() - 1; i >= 0; --i)
ÂÂÂÂÂÂÂÂifÂ(cur[i].inset().lyxCode()Â==ÂInsetBase::TABULAR_CODE) {
                in = cur[i].inset();
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂidxÂ=Âcur[i].idx();
                ...
        }       


Regards, Alfredo


Reply via email to