#define PARAGRAPH_PIMPL_H
#include "paragraph.h"
-#include "ParagraphParameters.h"
+
#include "changes.h"
-#include "counters.h"
+#include "lyxfont.h"
+#include "ParagraphParameters.h"
#include <boost/scoped_ptr.hpp>
class LyXLayout;
struct Paragraph::Pimpl {
- ///
- typedef std::vector<value_type> TextContainer;
-
///
Pimpl(Paragraph * owner);
/// Copy constructor
Pimpl(Pimpl const &, Paragraph * owner);
///
- lyx::pos_type size() const {
- return text.size();
- }
- ///
- bool empty() const {
- return text.empty();
- }
- ///
- void clear();
- ///
void setContentsFromPar(Paragraph const & par);
/// set tracking mode
void trackChanges(Change::Type type = Change::UNCHANGED);
LyXFont const & font,
LyXLayout const & style);
///
- void simpleTeXSpecialChars(Buffer const *, BufferParams const &,
+ void simpleTeXSpecialChars(Buffer const &, BufferParams const &,
std::ostream &, TexRow & texrow,
LatexRunParams const &,
LyXFont & font, LyXFont & running_font,
ParagraphParameters params;
private:
+ ///
+ lyx::pos_type size() const { return owner_->size(); }
/// match a string against a particular point in the paragraph
- bool isTextAt(string const & str, lyx::pos_type pos) const;
+ bool isTextAt(std::string const & str, lyx::pos_type pos) const;
/// for recording and looking up changes in revision tracking mode
boost::scoped_ptr<Changes> changes_;
/// Who owns us?
Paragraph * owner_;
- ///
- TextContainer text;
};
#endif