]> git.lyx.org Git - lyx.git/blobdiff - src/BufferView_pimpl.h
Fix bug 2485 and crash on middle mouse paste on math
[lyx.git] / src / BufferView_pimpl.h
index 73d6d4262df881a15a0d399bb685fdf07e97dfce..7c14f6c9e43f6213a0161146fa8f1792f29ef1b7 100644 (file)
@@ -59,6 +59,8 @@ public:
        void resizeCurrentBuffer();
        //
        bool fitCursor();
+       //
+       bool multiParSel();
        ///
        void update(Update::flags flags = Update::Force);
        ///
@@ -93,6 +95,8 @@ public:
        void restorePosition(unsigned int i);
        ///
        bool isSavedPosition(unsigned int i);
+       /// save bookmarks to .lyx/session
+       void saveSavedPositions();
        ///
        void switchKeyMap();
        ///
@@ -103,6 +107,10 @@ public:
        FuncStatus getStatus(FuncRequest const & cmd);
        /// a function should be executed
        bool dispatch(FuncRequest const & ev);
+       /// Flag: do a full redraw of inside text of inset
+       bool repaintAll() { return refresh_inside_; }
+       ///
+       void repaintAll(bool r) {refresh_inside_ = r; }
 private:
        /// An error list (replaces the error insets)
        ErrorList errorlist_;
@@ -145,6 +153,8 @@ private:
        boost::scoped_ptr<LyXScreen> screen_;
        ///
        boost::scoped_ptr<WorkArea> workarea_;
+       /// Estimated average par height for scrollbar
+       int wh_;
        ///
        Timeout cursor_timeout;
        ///
@@ -169,7 +179,7 @@ private:
        ///
        std::vector<Position> saved_positions;
        ///
-       void MenuInsertLyXFile(std::string const & filen);
+       void menuInsertLyXFile(std::string const & filen);
        /// our workarea
        WorkArea & workarea() const;
        /// this is used to handle XSelection events in the right manner
@@ -181,13 +191,15 @@ private:
        ///
        LCursor cursor_;
        ///
+       bool multiparsel_cache_;
        ///
        lyx::pit_type anchor_ref_;
        ///
        int offset_ref_;
        ///
        ViewMetricsInfo metrics(bool singlepar = false);
-
+       /// Working variable indicating a full screen refresh
+       mutable bool refresh_inside_;
 
 };
 #endif // BUFFERVIEW_PIMPL_H