]> git.lyx.org Git - lyx.git/blobdiff - src/BufferView.h
ws changes mostly
[lyx.git] / src / BufferView.h
index 8f18a25a38b6da3f16a651f17c84278ef7eb7a6b..88d307daf82eb60b8eaf02d8419cc545eddd04f6 100644 (file)
@@ -79,7 +79,7 @@ public:
        /** perform pending painting updates. \c fitcursor means first
         *  to do a fitcursor, and to force an update if screen
         *  position changes. \c forceupdate means to force an update
-        *  in any case. 
+        *  in any case.
         */
        void update(bool fitcursor = true, bool forceupdate = true);
        /// move the screen to fit the cursor. Only to be called with
@@ -102,7 +102,10 @@ public:
        Change const getCurrentChange();
 
        /// return the lyxtext we are using
-       LyXText * getLyXText() const;
+       LyXText * getLyXText();
+
+       /// return the lyxtext we are using
+       LyXText const * getLyXText() const;
 
        /// simple replacing. Use the font of the first selected character
        void replaceSelectionWithString(std::string const & str);
@@ -174,9 +177,9 @@ public:
 
 private:
        ///
-       struct Pimpl;
+       class Pimpl;
        ///
-       friend struct BufferView::Pimpl;
+       friend class BufferView::Pimpl;
        ///
        Pimpl * pimpl_;
 };