X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FBufferView.h;h=765267b421b0aaa68a9ea3b33ad8f8a926d85a15;hb=1b56057e1f739551f2c410a4b0b3941246123531;hp=53821b76931c1cecee2765e303a9f9a370a3edc8;hpb=02110a3d5ba8d3484133470760117db643324473;p=lyx.git diff --git a/src/BufferView.h b/src/BufferView.h index 53821b7693..765267b421 100644 --- a/src/BufferView.h +++ b/src/BufferView.h @@ -108,7 +108,7 @@ public: /// \return Tool tip for the given position. docstring toolTip(int x, int y) const; /// \return the context menu for the given position. - Menu const & contextMenu(int x, int y) const; + docstring contextMenu(int x, int y) const; /// Save the current position as bookmark. /// if idx == 0, save to temp_bookmark @@ -134,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.