X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FBufferView.h;h=afe153561e2c5bd3bff1619ab253189b29ec0a22;hb=ebef7baa265f097b3372ed6239495255c6b64e49;hp=b3d510f24d943bad5c6d40d5df6950baf13bd3c6;hpb=3c7c7a3209eabc681ba53fe499f5d15b6d32007a;p=lyx.git diff --git a/src/BufferView.h b/src/BufferView.h index b3d510f24d..afe153561e 100644 --- a/src/BufferView.h +++ b/src/BufferView.h @@ -30,7 +30,6 @@ class Language; class Painter; class UpdatableInset; class WordLangTuple; -class WorkArea; /// class BufferView : boost::noncopyable { @@ -57,8 +56,6 @@ public: Painter & painter() const; /// LyXScreen & screen() const; - /// return the work area for this bview - WorkArea & workarea() const; /// void buffer(Buffer * b); /// @@ -78,8 +75,6 @@ public: /// void updateScrollbar(); /// - Inset * checkInsetHit(LyXText *, int & x, int & y); - /// void redoCurrentBuffer(); /// bool available() const; @@ -170,6 +165,8 @@ public: void toggleToggle(); /// void center(); + /// scroll document by the given number of lines of default height + void scroll(int lines); /// Scroll the view by a number of pixels void scrollDocView(int); @@ -190,6 +187,12 @@ public: void stuffClipboard(string const &) const; /// bool dispatch(FuncRequest const & argument); + /// height of a normal line in pixels (zoom factor considered) + int defaultHeight() const; + /// + void haveSelection(bool sel); + /// + int workHeight() const; private: ///