]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetindex.h
Clean up InsetGraphics::Cache and rename as GraphicsInset.
[lyx.git] / src / insets / insetindex.h
index 3f13751563d3fe840ce94b58a4aa006e6ce1d22a..e3b4caa7fbf89e5703ba13c3b1b468513ab3585f 100644 (file)
@@ -22,22 +22,20 @@ struct LaTeXFeatures;
 class InsetIndex : public InsetCommand {
 public:
        ///
-       InsetIndex(InsetCommandParams const &, bool same_id = false);
+       InsetIndex(InsetCommandParams const &);
        ///
        ~InsetIndex();
        ///
-       virtual Inset * clone(Buffer const &, bool same_id = false) const {
-               return new InsetIndex(params(), same_id);
+       virtual Inset * clone() const {
+               return new InsetIndex(params());
        }
        ///
+       dispatch_result localDispatch(FuncRequest const & cmd);
+       ///
        string const getScreenLabel(Buffer const *) const;
        ///
        EDITABLE editable() const { return IS_EDITABLE; }
        ///
-       void edit(BufferView *, int, int, mouse_button::state);
-       ///
-       void edit(BufferView * bv, bool front = true);
-       ///
        Inset::Code lyxCode() const;
        ///
        int docbook(Buffer const *, std::ostream &, bool mixcont) const;
@@ -47,18 +45,18 @@ public:
 class InsetPrintIndex : public InsetCommand {
 public:
        ///
-       InsetPrintIndex(InsetCommandParams const &, bool same_id = false);
+       InsetPrintIndex(InsetCommandParams const &);
+       ///
+       ~InsetPrintIndex();
        ///
-       virtual Inset * clone(Buffer const &, bool same_id = false) const {
-               return new InsetPrintIndex(params(), same_id);
+       Inset * clone() const {
+               return new InsetPrintIndex(params());
        }
+       ///
+       //dispatch_result localDispatch(FuncRequest const & cmd);
        /// Updates needed features for this inset.
        void validate(LaTeXFeatures & features) const;
        ///
-       void edit(BufferView *, int, int, mouse_button::state) {}
-       ///
-       void edit(BufferView *, bool = true) {}
-       ///
        EDITABLE editable() const { return NOT_EDITABLE; }
        ///
        bool display() const { return true; }