]> git.lyx.org Git - lyx.git/blobdiff - src/buffer.h
remove noload/don't typeset
[lyx.git] / src / buffer.h
index 8aad387abe94167ebad97c37c6ad4d740827751b..6e5a97c29e8442664d94340b0d8dcb951c949ac6 100644 (file)
 #include "ParagraphList.h"
 #include "paragraph.h"
 
-#include <boost/scoped_ptr.hpp>
 #include <boost/shared_ptr.hpp>
 
 class BufferView;
-class Counters;
 class LyXRC;
 class TeXErrors;
 class LaTeXFeatures;
 class Language;
 class ParIterator;
 
-#define NO_COMPABILITY 1
 
 ///
 struct DEPCLEAN {
@@ -128,13 +125,6 @@ public:
        ///
        void insertStringAsLines(Paragraph *&, lyx::pos_type &,
                                 LyXFont const &, string const &) const;
-#ifndef NO_COMPABILITY
-       ///
-       Inset * isErtInset(Paragraph * par, int pos) const;
-       ///
-       void insertErtContents(Paragraph * par, int & pos,
-                              bool set_inactive = true);
-#endif
        ///
        Paragraph * getParFromID(int id) const;
 private:
@@ -275,8 +265,6 @@ public:
        */
        void validate(LaTeXFeatures &) const;
 
-       ///
-       string const getIncludeonlyList(char delim = ',');
        ///
        std::vector<std::pair<string, string> > const getBibkeyList() const;
        ///
@@ -319,9 +307,6 @@ public:
 
        /// Used when typesetting to place errorboxes.
        TexRow texrow;
-       /// Buffer-wide counter array
-       Counters & counters() const;
-       
 private:
        /// is save needed
        mutable bool lyx_clean;
@@ -354,10 +339,6 @@ private:
            of the buffers in the list of users to do a #updateLayoutChoice#.
        */
        BufferView * users;
-
-       /// The pointer is const although its contents may not be
-       boost::scoped_ptr<Counters> const ctrs;
-       
 public:
        ///
        class inset_iterator {
@@ -369,15 +350,15 @@ public:
                typedef Inset & reference;
                typedef ParagraphList::iterator base_type;
 
-               ///
-               inset_iterator();
-               ///
-               inset_iterator(base_type p, base_type e);
-               ///
-               inset_iterator(base_type p, lyx::pos_type pos, base_type e);
+               ///
+               inset_iterator();
+               ///
+               inset_iterator(base_type p, base_type e);
+               ///
+               inset_iterator(base_type p, lyx::pos_type pos, base_type e);
 
-               /// prefix ++
-               inset_iterator & operator++();
+               /// prefix ++
+               inset_iterator & operator++();
                /// postfix ++
                inset_iterator operator++(int);
                ///
@@ -433,4 +414,9 @@ public:
        Inset * getInsetFromID(int id_arg) const;
 };
 
+bool operator==(Buffer::inset_iterator const & iter1,
+               Buffer::inset_iterator const & iter2);
+
+bool operator!=(Buffer::inset_iterator const & iter1,
+               Buffer::inset_iterator const & iter2);
 #endif