]> git.lyx.org Git - lyx.git/blobdiff - src/BufferView_pimpl.h
Rewording in GTK document dialog
[lyx.git] / src / BufferView_pimpl.h
index 8f1b515bf0332d88f5a430461c0d8051b9079544..b55cf924e27bcc0e73c52ba1ef0e44f893a0da0e 100644 (file)
@@ -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<LyXScreen> screen_;
        ///
        boost::scoped_ptr<WorkArea> 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);
 
 
 };