]> git.lyx.org Git - lyx.git/blobdiff - src/paragraph_funcs.h
more cursor dispatch
[lyx.git] / src / paragraph_funcs.h
index 3c0ea7e8bc30e2dfdd9e70f9bf418269b834a5fc..5b22c421171edfcb3ee1a83a8ddc3525bbe1245f 100644 (file)
 
 #include <string>
 
-
 class Buffer;
 class BufferParams;
 class LyXFont;
 class LyXLex;
-class InsetOld;
+class InsetBase;
+
 
 ///
 void breakParagraph(BufferParams const & bparams,
@@ -64,23 +64,21 @@ int getEndLabel(ParagraphList::iterator pit,
                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);
 
 /// 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