]> git.lyx.org Git - lyx.git/blobdiff - src/BufferView_pimpl.h
don't rm emergency saves ever
[lyx.git] / src / BufferView_pimpl.h
index 9a77eba226e0e2ab2c203f0bf4d2e319f8e1dddc..0f2ad9f51b28c0c3df7dfea9d662f310892c6073 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;
@@ -49,6 +47,8 @@ struct BufferView::Pimpl : public boost::signals::trackable {
        void update();
        //
        void update(LyXText *, BufferView::UpdateCodes);
+       /// update the toplevel lyx text
+       void update(BufferView::UpdateCodes);
        /**
         * Repaint pixmap. Used for when we've made a visible
         * change but don't need the full update() logic
@@ -61,7 +61,7 @@ struct BufferView::Pimpl : public boost::signals::trackable {
        ///
        void scrollDocView(int value);
        /**
-        * Wheel mouse scroll, move by multiples of text->defaultHeight().
+        * Wheel mouse scroll, move by multiples of text->defaultRowHeight().
         */
        void scroll(int lines);
        ///
@@ -74,6 +74,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 *);
        ///
@@ -87,10 +89,6 @@ struct BufferView::Pimpl : public boost::signals::trackable {
        ///
        void insetUnlock();
        ///
-       void showCursor();
-       ///
-       void hideCursor();
-       ///
        void toggleSelection(bool = true);
        ///
        void toggleToggle();
@@ -99,10 +97,15 @@ struct BufferView::Pimpl : public boost::signals::trackable {
        ///
        bool insertInset(Inset * inset, string const & lout = string());
        ///
-       void updateInset(Inset * inset, bool mark_dirty);
-       ///
+       void updateInset(Inset * inset);
+       /// a function should be executed from the workarea
+       bool workAreaDispatch(FuncRequest const & ev);
+       /// a function should be executed
        bool dispatch(FuncRequest const & ev);
 private:
+       /// track changes for the document
+       void trackChanges();
+
        ///
        friend class BufferView;