]> git.lyx.org Git - lyx.git/blobdiff - src/BufferView_pimpl.h
Fix bug 886 and others not reported related with the document paper size.
[lyx.git] / src / BufferView_pimpl.h
index 8f1b515bf0332d88f5a430461c0d8051b9079544..73d6d4262df881a15a0d399bb685fdf07e97dfce 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);
        ///
@@ -151,7 +152,8 @@ private:
        ///
        bool using_xterm_cursor;
        ///
-       struct Position {
+       class Position {
+       public:
                /// Filename
                std::string filename;
                /// Cursor paragraph Id
@@ -184,7 +186,7 @@ private:
        ///
        int offset_ref_;
        ///
-       ViewMetricsInfo metrics();
+       ViewMetricsInfo metrics(bool singlepar = false);
 
 
 };