]> git.lyx.org Git - lyx.git/blobdiff - src/TextMetrics.h
Fix scale parameter for fonts.
[lyx.git] / src / TextMetrics.h
index dfd7d13bd1c03564792f9bafaf7e8047eee79b16..2acded9067be39194ad9062ac6e7ad78dddf78a8 100644 (file)
@@ -15,6 +15,7 @@
 #define TEXT_METRICS_H
 
 #include "Font.h"
+#include "InsetList.h"
 #include "ParagraphMetrics.h"
 
 #include "support/types.h"
@@ -36,7 +37,7 @@ public:
        TextMetrics() : text_(0) {}
        /// The only useful constructor.
        TextMetrics(BufferView *, Text *);
-       
+
        ///
        bool contains(pit_type pit) const;
        ///
@@ -99,7 +100,7 @@ public:
        int descent() const { return dim_.des; }
        /// current text width.
        int width() const { return dim_.wid; }
-       /// current text heigth.
+       /// current text height.
        int height() const { return dim_.height(); }
 
        ///
@@ -155,9 +156,9 @@ private:
                pos_type const end
                ) const;
 
-       /// draw selection for a single row
-       void drawRowSelection(PainterInfo & pi, int x, Row const & row,
-               Cursor const & cur, pit_type const pit) const;
+       // Helper function for the other checkInsetHit method.
+       InsetList::InsetTable * checkInsetHit(pit_type pit, int x, int y);
+
 
 // Temporary public:
 public: