]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetbibtex.h
changelogs
[lyx.git] / src / insets / insetbibtex.h
index a7fddf505d24c377d2333113faeaf960cfdc3813..f2148395a000d878877176f09310bbb0c6af75fd 100644 (file)
@@ -23,22 +23,16 @@ public:
        ///
        InsetBibtex(InsetCommandParams const &);
        ///
-       ~InsetBibtex();
-       ///
-       std::auto_ptr<InsetBase> clone() const;
-       ///
-       void metrics(MetricsInfo &, Dimension &) const;
-       ///
-       void draw(PainterInfo & pi, int x, int y) const;
-       ///
        std::string const getScreenLabel(Buffer const &) const;
        ///
        EDITABLE editable() const { return IS_EDITABLE; }
        ///
        InsetOld::Code lyxCode() const { return InsetOld::BIBTEX_CODE; }
        ///
+       bool display() const { return true; }
+       ///
        int latex(Buffer const &, std::ostream &,
-                 LatexRunParams const &) const;
+                 OutputParams const &) const;
        ///
        void fillWithBibKeys(Buffer const & buffer,
                std::vector<std::pair<std::string,std::string> > & keys) const;
@@ -48,11 +42,13 @@ public:
        bool addDatabase(std::string const &);
        ///
        bool delDatabase(std::string const &);
-protected:
        ///
-       virtual
-       dispatch_result
-       priv_dispatch(FuncRequest const & cmd, idx_type &, pos_type &);
+       void validate(LaTeXFeatures &) const;
+protected:
+       virtual void doDispatch(LCursor & cur, FuncRequest & cmd);
+private:
+       virtual std::auto_ptr<InsetBase> doClone() const;
+
 };
 
 #endif // INSET_BIBTEX_H