X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FBufferView.h;h=765267b421b0aaa68a9ea3b33ad8f8a926d85a15;hb=1b56057e1f739551f2c410a4b0b3941246123531;hp=f518f0026ad99f4660288c281a3122b4a1238aa3;hpb=96d2d6fc50c6efc735650839bbe41f12e10b49cc;p=lyx.git diff --git a/src/BufferView.h b/src/BufferView.h index f518f0026a..765267b421 100644 --- a/src/BufferView.h +++ b/src/BufferView.h @@ -36,6 +36,7 @@ class FuncRequest; class FuncStatus; class Intl; class Inset; +class Menu; class ParIterator; class ParagraphMetrics; class Point; @@ -104,6 +105,10 @@ public: void updateScrollbar(); /// return the Scrollbar Parameters. ScrollbarParameters const & scrollbarParameters() const; + /// \return Tool tip for the given position. + docstring toolTip(int x, int y) const; + /// \return the context menu for the given position. + docstring contextMenu(int x, int y) const; /// Save the current position as bookmark. /// if idx == 0, save to temp_bookmark @@ -129,6 +134,8 @@ public: /// This method will automatically scroll and update the BufferView and updated /// if needed. void showCursor(); + /// LFUN_SCROLL Helper. + void lfunScroll(FuncRequest const & cmd); /// scroll down document by the given number of pixels. void scrollDown(int pixels); /// scroll up document by the given number of pixels. @@ -145,6 +152,7 @@ public: /// return the pixel height of the document view. int workHeight() const; + /// translate and insert a character, using the correct keymap. void translateAndInsert(char_type c, Text * t, Cursor & cur); @@ -266,7 +274,7 @@ private: Text const & text, //< The Text where we start searching. int x, //< x-coordinate on screen int y //< y-coordinate on screen - ); + ) const; /// int width_;