/// A map from a Text to the map of paragraphs metrics
class TextMetrics
{
+ /// noncopyable
+ TextMetrics(TextMetrics const &);
+ void operator=(TextMetrics const &);
public:
/// Default constructor (only here for STL containers).
TextMetrics() : bv_(0), text_(0), max_width_(0) {}
bool isLastRow(Row const & row) const;
/// is this row the first in the text?
bool isFirstRow(Row const & row) const;
+ ///
+ void setRowChanged(pit_type pit, pos_type pos);
///
Dimension const & dim() const { return dim_; }
///
Point const & origin() const { return origin_; }
-
///
ParagraphMetrics const & parMetrics(pit_type) const;
+ ///
+ ParagraphMetrics & parMetrics(pit_type);
+
///
void newParMetricsDown();
///
Dimension & dim) const;
private:
- friend class BufferView;
/// The BufferView owner.
BufferView * bv_;