The DocIterator stuff is documented somewhere in the Wiki. You must read that 
before doing
anything else.

Indeed! I found this page:
http://wiki.lyx.org/Devel/Diagrams
and I understand now a lot more. Many thanks Pavel, for your devel Wiki pages!
This explains also my question from the last post:

When I replace "++it" by "--it" the compiler quites with the message that there 
are unresolved
externals because a variable beginning with "--" doesn't exist.

InsetIterator is only defined as forward iterator.

---

'this' is 'Inset *' so in this cas you must use '*this'.

I already tried this but this also doesn't compile:

D:\LyXSVN\lyx-devel\src\insets\InsetTabular.cpp(4318) : error C2664: 'lyx::inset_iterator_begin' : cannot convert parameter 1 from 'const lyx::InsetTabular' to 'lyx::Inset &'
        Conversion loses qualifiers

The pointer stuff is still magic to me.

> I forgot to say: you can just use cursor().innerInsetOfType(FLOAT_CODE)

Thanks, I used this for the fix: http://www.lyx.org/trac/changeset/35894

One last question: How do I explicitly specify that the "0" in my patch is a pointer? I mean "0" could also refer an int or double. The compiler doesn't complain and "0" is the default return value of innerInsetOfType but I'm wondering why this works.

many thanks and regards
Uwe

Reply via email to