X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FBufferView_pimpl.h;h=b55cf924e27bcc0e73c52ba1ef0e44f893a0da0e;hb=e7ef29fa2d516b8593aa3cccb6548de5686e8a9a;hp=8f1b515bf0332d88f5a430461c0d8051b9079544;hpb=f717cb6b22da066023e94ba6e8f40a66f53c5b42;p=lyx.git diff --git a/src/BufferView_pimpl.h b/src/BufferView_pimpl.h index 8f1b515bf0..b55cf924e2 100644 --- a/src/BufferView_pimpl.h +++ b/src/BufferView_pimpl.h @@ -45,7 +45,8 @@ class ViewMetricsInfo; /// -struct BufferView::Pimpl : public boost::signals::trackable { +class BufferView::Pimpl : public boost::signals::trackable { +public: /// Pimpl(BufferView & bv, LyXView * owner, int width, int height); /// @@ -59,7 +60,7 @@ struct BufferView::Pimpl : public boost::signals::trackable { // bool fitCursor(); /// - void update(bool fitcursor = false, bool forceupdate = true); + void update(Update::flags flags = Update::Force); /// void newFile(std::string const &, std::string const &, bool); /// @@ -144,6 +145,8 @@ private: boost::scoped_ptr screen_; /// boost::scoped_ptr workarea_; + /// Estimated average par height for scrollbar + int wh_; /// Timeout cursor_timeout; /// @@ -151,7 +154,8 @@ private: /// bool using_xterm_cursor; /// - struct Position { + class Position { + public: /// Filename std::string filename; /// Cursor paragraph Id @@ -184,7 +188,7 @@ private: /// int offset_ref_; /// - ViewMetricsInfo metrics(); + ViewMetricsInfo metrics(bool singlepar = false); };