]> git.lyx.org Git - lyx.git/blobdiff - src/paragraph_funcs.h
The Gtk patch.
[lyx.git] / src / paragraph_funcs.h
index c730090dc8ca8ab037388a07e0952a24efe0c254..7a7c763f0dbc0f640b6ff3751388ed9b65720815 100644 (file)
@@ -6,14 +6,13 @@
  *
  * \author Lars Gullik Bjønnes
  *
- * Full author contact details are available in file CREDITS
+ * Full author contact details are available in file CREDITS.
  */
 
 #ifndef PARAGRAPH_FUNCS_H
 #define PARAGRAPH_FUNCS_H
 
 #include "ParagraphList.h"
-#include "paragraph.h"
 #include "support/types.h"
 
 class Buffer;
@@ -21,6 +20,7 @@ class BufferParams;
 class TexRow;
 class LatexRunParams;
 class LyXLex;
+class InsetOld;
 
 ///
 void breakParagraph(BufferParams const & bparams,
@@ -62,21 +62,24 @@ int getEndLabel(ParagraphList::iterator pit,
                ParagraphList const & plist);
 
 
-void latexParagraphs(Buffer const * buf,
+void latexParagraphs(Buffer const & buf,
                     ParagraphList const & paragraphs,
                     std::ostream & ofs,
                     TexRow & texrow,
                     LatexRunParams const &,
-                    bool moving_arg,
                     string const & everypar = string());
 
 /// read a paragraph from a .lyx file. Returns number of unrecognised tokens
 int readParagraph(Buffer & buf, Paragraph & par, LyXLex & lex);
 
-LyXFont const realizeFont(LyXFont const & font,
-                         BufferParams const & params);
-
 LyXFont const outerFont(ParagraphList::iterator pit,
                        ParagraphList const & plist);
 
+/// find outermost paragraph containing an inset
+ParagraphList::iterator outerPar(Buffer const & buf, InsetOld const * inset);
+
+/// find owning paragraph containing an inset
+Paragraph const & ownerPar(Buffer const & buf, InsetOld const * inset);
+
+
 #endif // PARAGRAPH_FUNCS_H