]> git.lyx.org Git - lyx.git/blobdiff - src/BufferView_pimpl.h
Partial fix bug 2092: branches not propagated to child documents
[lyx.git] / src / BufferView_pimpl.h
index 815d9c6918e50c9cf5898bc7c608027be9162564..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);
        ///
@@ -56,10 +57,10 @@ struct BufferView::Pimpl : public boost::signals::trackable {
        void setBuffer(Buffer * buf);
        ///
        void resizeCurrentBuffer();
-       // 
+       //
        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);
 
 
 };