]> git.lyx.org Git - lyx.git/blobdiff - src/BufferView_pimpl.h
more guii moving around.
[lyx.git] / src / BufferView_pimpl.h
index eb004f7d4fbe1d464b09bce73c25646d7ce3db28..37024053850d8ef7ccb469675c23c012f934317d 100644 (file)
@@ -3,16 +3,17 @@
 #ifndef BUFFERVIEW_PIMPL_H
 #define BUFFERVIEW_PIMPL_H
 
-#include <boost/smart_ptr.hpp>
-
 #include "BufferView.h"
 #include "commandtags.h"
 #include "frontends/Timeout.h"
-#include "WorkArea.h"
+// FIXME remove me 
+#include "frontends/WorkArea.h"
 #include "box.h"
 #include "insets/insetspecialchar.h"
 #include "support/types.h"
 
+#include <boost/scoped_ptr.hpp>
+
 #ifdef __GNUG__
 #pragma interface
 #endif
@@ -46,7 +47,7 @@ struct BufferView::Pimpl : public SigC::Object {
        void update();
        //
        void update(LyXText *, BufferView::UpdateCodes);
-       /// Update pixmap of screen
+       /// Update pixmap of screen
        void updateScreen();
        ///
        void workAreaExpose();
@@ -60,7 +61,7 @@ struct BufferView::Pimpl : public SigC::Object {
         * If hit, the coordinates are changed relative to the inset.
         */
        Inset * checkInsetHit(LyXText *, int & x, int & y);
-       /// 
+       ///
        int scrollUp(long time);
        ///
        int scrollDown(long time);
@@ -102,10 +103,12 @@ struct BufferView::Pimpl : public SigC::Object {
        bool isSavedPosition(unsigned int i);
        ///
        void setState();
+#if 0
        ///
        void insetSleep();
        ///
        void insetWakeup();
+#endif
        ///
        void insetUnlock();
        ///
@@ -143,14 +146,12 @@ private:
         * if one exists. If so, the inset is returned, and the co-ordinates are
         * made relative. Otherwise, 0 is returned.
         */
-       Inset * checkInset(LyXText const & text, LyXCursor const & cursor, int & x, int & y) const; 
+       Inset * checkInset(LyXText const & text, LyXCursor const & cursor, int & x, int & y) const;
        ///
        friend class BufferView;
        /// open and lock an updatable inset
        bool open_new_inset(UpdatableInset * new_inset, bool behind = false);
        ///
-       void protectedBlank(LyXText * lt);
-       /// 
        void specialChar(InsetSpecialChar::Kind);
        ///
        void newline();
@@ -202,8 +203,8 @@ private:
        ///
        std::vector<Position> saved_positions;
        ///
-       void moveCursorUpdate(bool selecting);
-       /// Get next inset of this class from current cursor position  
+       void moveCursorUpdate(bool selecting, bool fitcur = true);
+       /// Get next inset of this class from current cursor position
        Inset * getInsetByCode(Inset::Code code);
        ///
        void MenuInsertLyXFile(string const & filen);