]> git.lyx.org Git - lyx.git/blobdiff - src/BufferView.h
add missing 'else'
[lyx.git] / src / BufferView.h
index 04c44ce087790a004a7efbb4c24f7d2e615b7c20..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;
@@ -30,6 +27,7 @@ class Language;
 class Painter;
 class UpdatableInset;
 class WordLangTuple;
+class Encoding;
 
 /**
  * A buffer view encapsulates a view onto a particular
@@ -106,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.
@@ -124,6 +125,9 @@ public:
        /// unlock the currently locked inset
        void insetUnlock();
 
+       /// return the current encoding at the cursor
+       Encoding const * getEncoding() const;
+
        /// return the parent language of the given inset
        Language const * getParentLanguage(Inset * inset) const;
 
@@ -189,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