]> 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 5572828489e6e2f27e79efc8af04913da7100775..19baa141c44fa90a18601eeb68b9da33248ea5b1 100644 (file)
@@ -94,7 +94,7 @@ class RenderBase;
 class InsetExternal : public Inset, public boost::signals::trackable
 {
 public:
-       InsetExternal(Buffer &);
+       InsetExternal(Buffer *);
        ///
        ~InsetExternal();
        ///
@@ -113,14 +113,17 @@ 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 &);
        ///
        InsetCode lyxCode() const { return EXTERNAL_CODE; }
        ///
-       EDITABLE editable() const { return IS_EDITABLE; }
+       bool hasSettings() const { return true; }
        ///
        void metrics(MetricsInfo &, Dimension &) const;
        ///
@@ -133,12 +136,13 @@ private:
        int plaintext(odocstream &, OutputParams const &) const;
        ///
        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(XHTMLStream &, OutputParams const &) const;
        /// Update needed features for this inset.
        void validate(LaTeXFeatures & features) const;
        ///
-       void addPreview(graphics::PreviewLoader &) const;
-       ///
-       void edit(Cursor & cur, bool front, EntryDirection entry_from);
+       void addPreview(DocIterator const &, graphics::PreviewLoader &) const;
        ///
        bool showInsetDialog(BufferView * bv) const;
        ///
@@ -160,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