]> 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 c1adb2b12a4ff552100e60bcade925de4d53b109..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 &);
@@ -135,11 +138,11 @@ private:
        int docbook(odocstream &, OutputParams const &) const;
        /// For now, this does nothing. Someone who knows about this
        /// should see what needs doing for XHTML output.
-       docstring xhtml(odocstream &, OutputParams const &) const;
+       docstring xhtml(XHTMLStream &, OutputParams const &) const;
        /// 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