Le 9 août 10 à 21:17, rgh...@lyx.org a écrit :
Help needed here. Why isn't this equivalent?
-void InsetBibitem::fillWithBibKeys(BiblioInfo & keys) const
+void InsetBibitem::fillWithBibKeys(BiblioInfo & keys, InsetIterator
const & it) const
{
docstring const key = getParam("key");
- // false means it's not BibTeX
BibTeXInfo keyvalmap(false);
keyvalmap.label(bibLabel());
- // The indirection here is a little annoying, but
- // DocIterator(Buffer *, Inset *)
- // is private.
- InsetBibitem & me = const_cast<InsetBibitem &>(*this);
- InsetIterator it(me);
DocIterator doc_it(it);
doc_it.forwardPos();
keyvalmap[from_ascii("ref")] = doc_it.paragraph().asString();
A bibitem is a button, you cannot iterate inside it. I think you want
the inset that owns the paragraph that owns the bibitem.
JMarc