]> git.lyx.org Git - features.git/blobdiff - src/BufferView.h
FILMagain changes (will need some work)
[features.git] / src / BufferView.h
index 8960a2e1697ab544f09c443304cacf078be971c2..4db6866c59bf606b200363714d0449b65bbb5266 100644 (file)
@@ -27,6 +27,14 @@ class Buffer;
 ///
 class BufferView {
 public:
+       ///
+       enum UpdateCodes {
+               UPDATE = 0,
+               SELECT = 1,
+               FITCUR = 2,
+               CHANGE = 4
+       };
+                                           
        ///
        BufferView(LyXView * owner, int , int , int, int);
        ///
@@ -48,7 +56,7 @@ public:
        ///
        void update();
        ///
-       void update(signed char f);
+       void update(UpdateCodes uc);
        ///
        void updateScrollbar();
        ///
@@ -78,7 +86,7 @@ public:
        */
        LyXText * text;
        ///
-       unsigned short paperWidth() const;
+       int workWidth() const;
        ///
        UpdatableInset * the_locking_inset;
        ///
@@ -229,4 +237,8 @@ private:
        Pimpl * pimpl_;
 };
 
+
+BufferView::UpdateCodes operator|(BufferView::UpdateCodes uc1,
+                                 BufferView::UpdateCodes uc2);
+
 #endif