#include "paragraph.h"
#include "ParagraphParameters.h"
-
-#include <boost/array.hpp>
+#include "counters.h"
class LyXLayout;
return text.size();
}
///
+ bool empty() const {
+ return text.empty();
+ }
+ ///
void clear();
///
void setContentsFromPar(Paragraph const * par);
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
LyXLayout const & style,
lyx::pos_type & i,
int & column, value_type const c);
+
+ ///
+ void validate(LaTeXFeatures & features,
+ LyXLayout const & layout) const;
+
///
Paragraph * getParFromID(int id) const;
///
static unsigned int paragraph_id;
///
ParagraphParameters params;
+
private:
/// match a string against a particular point in the paragraph
- bool isTextAt(BufferParams const &,
- string const & str, lyx::pos_type pos);
+ bool isTextAt(string const & str, lyx::pos_type pos) const;
/// Who owns us?
Paragraph * owner_;