]> git.lyx.org Git - lyx.git/blobdiff - src/buffer.h
next step...
[lyx.git] / src / buffer.h
index bf384d461517fca035c69ae7b0e972744fefa302..a5acfada54c0306518aed693dfd3d2aea39a0ea7 100644 (file)
@@ -30,6 +30,12 @@ class LyXRC;
 class TeXErrors;
 class LaTeXFeatures;
 class Language;
+class ParIterator;
+
+// When lyx 1.3.x starts we should enable this
+// btw. we should also test this with 1.2 so that we
+// do not get any surprises. (Lgb)
+//#define NO_COMPABILITY 1
 
 ///
 struct DEPCLEAN {
@@ -125,9 +131,16 @@ public:
                                        Paragraph::depth_type & depth, 
                                        LyXFont &);
        ///
+       void insertStringAsLines(Paragraph *&, Paragraph::size_type &,
+                                LyXFont const &, string const &) const;
+#ifndef NO_COMPABILITY
+       ///
        void insertErtContents(Paragraph * par, int & pos,
                               LyXFont const & font,
                               bool set_inactive = true);
+#endif
+       ///
+       Paragraph * getParFromID(int id) const;
 private:
        /// Parse a single inset.
        void readInset(LyXLex &, Paragraph *& par, int & pos, LyXFont &);
@@ -314,10 +327,6 @@ public:
        /// Used when typesetting to place errorboxes.
        TexRow texrow;
 private:
-        ///
-       void docBookHandleCaption(std::ostream & os, string & inner_tag,
-                                 Paragraph::depth_type depth, int desc_on,
-                                 Paragraph * & par);
        /// Open SGML/XML tag.
         void sgmlOpenTag(std::ostream & os, Paragraph::depth_type depth,
                         string const & latexname) const;
@@ -439,6 +448,12 @@ public:
        inset_iterator inset_const_iterator_end() const {
                return inset_iterator();
        }
+
+       ///
+       ParIterator par_iterator_begin();
+       ///
+       ParIterator par_iterator_end();
+
        ///
        Inset * getInsetFromID(int id_arg) const;
 };
@@ -588,4 +603,5 @@ bool operator!=(Buffer::inset_iterator const & iter1,
                Buffer::inset_iterator const & iter2) {
        return !(iter1 == iter2);
 }
+
 #endif