]> git.lyx.org Git - lyx.git/blobdiff - src/ParagraphMetrics.h
grammar
[lyx.git] / src / ParagraphMetrics.h
index 63ed0f3cdf689bc6aecf3459c6430b065c228f2c..988947355e7615d05e227e1faf213dc23343a456 100644 (file)
@@ -20,7 +20,6 @@
 #include "Dimension.h"
 #include "Row.h"
 
-#include <map>
 #include <vector>
 
 namespace lyx {
@@ -32,14 +31,8 @@ namespace lyx {
  */
 typedef std::vector<Row> RowList;
 
-class Buffer;
 class BufferView;
-class BufferParams;
-class Font;
-class Inset;
 class Paragraph;
-class MetricsInfo;
-class PainterInfo;
 
 /// Helper class for paragraph metrics.
 class ParagraphMetrics {
@@ -54,8 +47,6 @@ public:
 
        void reset(Paragraph const & par);
 
-       ///
-       Row & getRow(pos_type pos, bool boundary);
        ///
        Row const & getRow(pos_type pos, bool boundary) const;
        ///
@@ -78,6 +69,8 @@ public:
        RowList const & rows() const { return rows_; }
        ///
        int rightMargin(BufferView const & bv) const;
+       ///
+       Paragraph const & par() const { return *par_; }
 
        /// dump some information to lyxerr
        void dump() const;