X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FBufferView.h;h=31b6e94fc484d70f451592857780e07cabc7c6b9;hb=5a8e91d1c5381d8c152b12269707b547d5241624;hp=bfdb0bac429ac912613f1b08344534ef65a497f4;hpb=f6c6416f289af0e21486c7a157dac7e5fab98623;p=lyx.git diff --git a/src/BufferView.h b/src/BufferView.h index bfdb0bac42..31b6e94fc4 100644 --- a/src/BufferView.h +++ b/src/BufferView.h @@ -44,6 +44,7 @@ class PainterInfo; class ParIterator; class ParagraphMetrics; class Point; +class TexRow; class Text; class TextMetrics; @@ -159,6 +160,8 @@ public: /// set the cursor based on the given TeX source row. void setCursorFromRow(int row); + /// + void setCursorFromRow(int row, TexRow const & texrow); /// set cursor to the given inset. Return true if found. bool setCursorFromInset(Inset const *); @@ -349,7 +352,7 @@ private: // Check whether the row where the cursor lives needs to be scrolled. // Update the drawing strategy if needed. - void checkCursorScrollOffset(); + void checkCursorScrollOffset(PainterInfo & pi); /// The minimal size of the document that is visible. Used /// when it is allowed to scroll below the document.