]> git.lyx.org Git - lyx.git/blobdiff - src/paragraph_pimpl.h
update no.po
[lyx.git] / src / paragraph_pimpl.h
index 014bcdaea3595cc9040b079fec6168476829aa12..7fd48bafadd2c20b774e0f8cb94812e2299ea279 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
@@ -130,7 +121,8 @@ struct Paragraph::Pimpl {
        ///
        void simpleTeXBlanks(std::ostream &, TexRow & texrow,
                             lyx::pos_type const i,
-                            int & column, LyXFont const & font,
+                            unsigned int & column,
+                            LyXFont const & font,
                             LyXLayout const & style);
        ///
        void simpleTeXSpecialChars(Buffer const *, BufferParams const &,
@@ -140,7 +132,7 @@ struct Paragraph::Pimpl {
                                   LyXFont & basefont, bool & open_font,
                                   LyXLayout const & style,
                                   lyx::pos_type & i,
-                                  int & column, value_type const c);
+                                  unsigned int & column, value_type const c);
 
        ///
        void validate(LaTeXFeatures & features,
@@ -154,6 +146,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;