]> git.lyx.org Git - lyx.git/blobdiff - src/paragraph_pimpl.h
remove noload/don't typeset
[lyx.git] / src / paragraph_pimpl.h
index 014bcdaea3595cc9040b079fec6168476829aa12..a29de09e2446db3415a0737e4132ef26936a7c0e 100644 (file)
@@ -18,8 +18,7 @@
 
 #include "paragraph.h"
 #include "ParagraphParameters.h"
-
-#include <boost/array.hpp>
+#include "counters.h"
 
 class LyXLayout;
 
@@ -36,6 +35,10 @@ struct Paragraph::Pimpl {
                return text.size();
        }
        ///
+       bool empty() const {
+               return text.empty();
+       }
+       ///
        void clear();
        ///
        void setContentsFromPar(Paragraph const * par);
@@ -54,19 +57,7 @@ struct Paragraph::Pimpl {
                                  BufferParams const & bparams) const;
        ///
        Inset * inset_owner;
-       ///
-       boost::array<int, 10> counter_;
-
-       ///
-       friend struct matchIT;
-       ///
-       struct matchIT {
-               /// used by lower_bound and upper_bound
-               inline
-               int operator()(InsetTable const & a, InsetTable const & b) const {
-                       return a.pos < b.pos;
-               }
-       };
+       
        /** A font entry covers a range of positions. Notice that the
            entries in the list are inserted in random order.
            I don't think it's worth the effort to implement a more effective
@@ -154,6 +145,7 @@ struct Paragraph::Pimpl {
        static unsigned int paragraph_id;
        ///
        ParagraphParameters params;
+
 private:
        /// match a string against a particular point in the paragraph
        bool isTextAt(string const & str, lyx::pos_type pos) const;