Re: [Cvslog] r24200 - in /lyx-devel/trunk/src/insets: InsetCaption.cpp...

2008-04-10 Thread Jean-Marc Lasgouttes
Juergen Spitzmueller <[EMAIL PROTECTED]> writes: > Jean-Marc Lasgouttes wrote: > >> Instead of reinventing the wheel, it looks like you should move >> findInset from BufferView.cpp to a place where other code can use it >> and then use it with a DocIterator that initially contains only the >> Floa

Re: [Cvslog] r24200 - in /lyx-devel/trunk/src/insets: InsetCaption.cpp...

2008-04-10 Thread Juergen Spitzmueller
Jean-Marc Lasgouttes wrote: > Instead of reinventing the wheel, it looks like you should move > findInset from BufferView.cpp to a place where other code can use it > and then use it with a DocIterator that initially contains only the > Float inset as a slice. Could you do this? Jürgen

Re: [Cvslog] r24200 - in /lyx-devel/trunk/src/insets: InsetCaption.cpp...

2008-04-10 Thread Jean-Marc Lasgouttes
[EMAIL PROTECTED] writes: > +docstring InsetFloat::getCaptionText(OutputParams const & runparams) const > +{ > + if (paragraphs().empty()) > + return docstring(); > + > + ParagraphList::const_iterator pit = paragraphs().begin(); > + for (; pit != paragraphs().end(); ++pit)