]> git.lyx.org Git - lyx.git/blobdiff - src/BufferView.h
add missing 'else'
[lyx.git] / src / BufferView.h
index 5a1b44b3a4988911b054c250a07068dbd2fb5ca9..b2261ff69f638f0d131307924e0a8ce35c391662 100644 (file)
 #ifndef BUFFER_VIEW_H
 #define BUFFER_VIEW_H
 
-#ifdef __GNUG__
-#pragma interface
-#endif
-
 #include "LString.h"
 #include "undo.h"
 
@@ -21,6 +17,7 @@
 
 #include <boost/utility.hpp>
 
+class Change;
 class LyXView;
 class LyXText;
 class TeXErrors;
@@ -107,6 +104,9 @@ public:
        void restorePosition(unsigned int i);
        /// does the given bookmark have a saved position ?
        bool isSavedPosition(unsigned int i);
+       /// return the current change at the cursor
+       Change const getCurrentChange();
 
        /**
         * This holds the mapping between buffer paragraphs and screen rows.
@@ -193,8 +193,6 @@ public:
        /// Scroll the view by a number of pixels
        void scrollDocView(int);
 
-       /// height of a normal line in pixels (zoom factor considered)
-       int defaultHeight() const;
        /// return the pixel width of the document view
        int workWidth() const;
        /// return the pixel height of the document view