#include "paragraph.h"
#include "changes.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);
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