#include <string>
-
class Buffer;
class BufferParams;
class LyXFont;
class LyXLex;
-class InsetOld;
+class InsetBase;
+
///
void breakParagraph(BufferParams const & bparams,
ParagraphList const & plist);
/// read a paragraph from a .lyx file. Returns number of unrecognised tokens
-int readParagraph(Buffer & buf, Paragraph & par, LyXLex & lex);
+int readParagraph(Buffer const & buf, Paragraph & par, LyXLex & lex);
LyXFont const outerFont(ParagraphList::iterator pit,
ParagraphList const & plist);
/// find outermost paragraph containing an inset
-ParagraphList::iterator outerPar(Buffer const & buf, InsetOld const * inset);
+ParagraphList::iterator outerPar(Buffer const & buf, InsetBase const * inset);
/// find owning paragraph containing an inset
-Paragraph const & ownerPar(Buffer const & buf, InsetOld const * inset);
+Paragraph const & ownerPar(Buffer const & buf, InsetBase const * inset);
-/// stretch range beg,end to the minimum containing ystart, yend
+/// return the range of pars [beg, end[ owning the range of y [ystart, yend]
void getParsInRange(ParagraphList & pl,
- int ystart, int yend,
- ParagraphList::iterator & beg,
- ParagraphList::iterator & end);
-
-
+ int ystart, int yend,
+ ParagraphList::iterator & beg,
+ ParagraphList::iterator & end);
#endif // PARAGRAPH_FUNCS_H