]> git.lyx.org Git - lyx.git/blobdiff - src/BufferView.h
bug 2298: cursorTop/Bottom/Home/End does not redraw after dEPM
[lyx.git] / src / BufferView.h
index 477a9e927fa17ea6ffc725a022347f6e9e897f8f..2940d7758660adc54e47d477dbf2a9811a6951a8 100644 (file)
@@ -37,23 +37,24 @@ class ParIterator;
 
 
 namespace Update {
-       enum flags { 
-               FitCursor = 1, 
+       enum flags {
+               FitCursor = 1,
                Force = 2,
-               SinglePar = 4 
+               SinglePar = 4,
+               MultiParSel = 8
        };
 
-inline flags operator|(flags const f, flags const g) 
+inline flags operator|(flags const f, flags const g)
 {
        return static_cast<flags>(int(f) | int(g));
 }
 
-inline flags operator&(flags const f, flags const g) 
+inline flags operator&(flags const f, flags const g)
 {
        return static_cast<flags>(int(f) & int(g));
 }
 
-} // namespace 
+} // namespace
 
 
 /**
@@ -186,8 +187,11 @@ public:
        LCursor const & cursor() const;
        ///
        LyXText * text() const;
-       ///
+       /// sets cursor and open all relevant collapsable insets.
        void setCursor(DocIterator const &);
+       /// sets cursor; this is used when handling LFUN_MOUSE_PRESS.
+       void mouseSetCursor(LCursor & cur);
+
        /* Sets the selection. When \c backwards == false, set anchor
         * to \c cur and cursor to \c cur + \c length. When \c
         * backwards == true, set anchor to \c cur and cursor to \c
@@ -195,7 +199,10 @@ public:
         */
        void putSelectionAt(DocIterator const & cur,
                int length, bool backwards);
-
+       ///
+       bool const repaintAll() const;
+       ///
+       void const repaintAll(bool r) const;
 
 private:
        ///