]> git.lyx.org Git - lyx.git/blobdiff - src/BufferView.h
Fix a crash when closing tabs
[lyx.git] / src / BufferView.h
index 74e29c6424681ff0048a9dc660bb8768acd0659f..830c2d738d1d3d52e2b411839b279a3df8b2f420 100644 (file)
@@ -26,6 +26,7 @@ namespace lyx {
 
 namespace support { class FileName; }
 
+namespace frontend { struct CaretGeometry; }
 namespace frontend { class Painter; }
 namespace frontend { class GuiBufferViewDelegate; }
 
@@ -108,6 +109,9 @@ public:
        /// bottom margin
        int bottomMargin() const;
 
+       docstring const & searchRequestCache() const;
+       void setSearchRequestCache(docstring const & text);
+
        /// return the on-screen size of this length
        /*
         *  This is a wrapper around Length::inPixels that uses the
@@ -311,6 +315,10 @@ public:
        bool caretInView() const;
        /// get the position and height of the caret
        void caretPosAndDim(Point & p, Dimension & dim) const;
+       /// compute the shape of the caret
+       void buildCaretGeometry(bool complet);
+       /// the shape of the caret
+       frontend::CaretGeometry const & caretGeometry() const;
 
        ///
        void draw(frontend::Painter & pain, bool paint_caret);