]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetExternal.h
InsetTabular.cpp: fix #6585 also for wrapped floats - thanks Vincent
[lyx.git] / src / insets / InsetExternal.h
index a04f64cb66ae5e16e0412a190aa90489485effce..19baa141c44fa90a18601eeb68b9da33248ea5b1 100644 (file)
@@ -113,7 +113,10 @@ public:
        int latex(odocstream &, OutputParams const &) const;
        ///
        docstring contextMenu(BufferView const & bv, int x, int y) const;
-
+       ///
+       bool setMouseHover(BufferView const * bv, bool mouse_hover);
+       ///
+       bool clickable(int, int) const { return true; }
 private:
        ///
        InsetExternal(InsetExternal const &);
@@ -139,7 +142,7 @@ private:
        /// Update needed features for this inset.
        void validate(LaTeXFeatures & features) const;
        ///
-       void addPreview(graphics::PreviewLoader &) const;
+       void addPreview(DocIterator const &, graphics::PreviewLoader &) const;
        ///
        bool showInsetDialog(BufferView * bv) const;
        ///
@@ -161,6 +164,8 @@ private:
        InsetExternalParams params_;
        /// The thing that actually draws the image on LyX's screen.
        boost::scoped_ptr<RenderBase> renderer_;
+       /// changes color of the button when mouse enters/leaves this inset
+       mutable std::map<BufferView const *, bool> mouse_hover_;
 };
 
 } // namespace lyx