]> git.lyx.org Git - lyx.git/blobdiff - src/BufferView_pimpl.h
include sys/time.h
[lyx.git] / src / BufferView_pimpl.h
index 15f320bf8f905693c15ac957505665f94194bd14..e011a08990783a5bcca3d6c504d0e3e83dc12e17 100644 (file)
 #include <boost/scoped_ptr.hpp>
 #include <boost/signals/trackable.hpp>
 
-#ifdef __GNUG__
-#pragma interface
-#endif
 
+class Change;
 class LyXView;
 class WorkArea;
 class LyXScreen;
@@ -35,8 +33,6 @@ struct BufferView::Pimpl : public boost::signals::trackable {
              int xpos, int ypos, int width, int height);
        ///
        Painter & painter() const;
-       /// return the work area for this bview
-       WorkArea & workarea() const;
        /// return the screen for this bview
        LyXScreen & screen() const;
        ///
@@ -62,8 +58,10 @@ struct BufferView::Pimpl : public boost::signals::trackable {
        void updateScrollbar();
        ///
        void scrollDocView(int value);
-       /// wheel mouse scroll
-       int scroll(long time);
+       /**
+        * Wheel mouse scroll, move by multiples of text->defaultRowHeight().
+        */
+       void scroll(int lines);
        ///
        void workAreaKeyPress(LyXKeySymPtr key, key_modifier::state state);
        ///
@@ -74,6 +72,8 @@ struct BufferView::Pimpl : public boost::signals::trackable {
        void cursorToggle();
        ///
        bool available() const;
+       /// get the change at the cursor position
+       Change const getCurrentChange();
        ///
        void beforeChange(LyXText *);
        ///
@@ -103,6 +103,9 @@ struct BufferView::Pimpl : public boost::signals::trackable {
        ///
        bool dispatch(FuncRequest const & ev);
 private:
+       /// track changes for the document
+       void trackChanges();
+
        ///
        friend class BufferView;
 
@@ -142,5 +145,7 @@ private:
        Inset * getInsetByCode(Inset::Code code);
        ///
        void MenuInsertLyXFile(string const & filen);
+       /// our workarea
+       WorkArea & workarea() const;
 };
 #endif // BUFFERVIEW_PIMPL_H