]> git.lyx.org Git - lyx.git/blobdiff - src/TextMetrics.h
Correct tex2lyx/roundtrip/test-structure.tex test.
[lyx.git] / src / TextMetrics.h
index eb48224212c11652b4182033ee83ac2506ad0c24..f100cb862dc92c1bb38083dec4a77b2aff8c4827 100644 (file)
@@ -191,12 +191,16 @@ public:
        /// x,y are screen coordinates
        void setCursorFromCoordinates(Cursor & cur, int x, int y);
 
+       /// Helper function: find row element that contains pos, and
+       /// compute x offset.
+       Row::const_iterator const
+       findRowElement(Row const & row, pos_type const pos,
+                   bool const boundary, double & x) const;
+
        ///
-       int cursorX(CursorSlice const & cursor,
-               bool boundary) const;
+       int cursorX(CursorSlice const & cursor, bool boundary) const;
        ///
-       int cursorY(CursorSlice const & cursor,
-               bool boundary) const;
+       int cursorY(CursorSlice const & cursor, bool boundary) const;
 
        ///
        bool cursorHome(Cursor & cur);