]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetbibtex.h
prevent crash when inserting minipage in table cell,
[lyx.git] / src / insets / insetbibtex.h
index eaddf10fac79c19248db999cf32e2040e31f12f8..8dfd9fbe9b341e16054cfd2aea3bb4466e47913e 100644 (file)
 #include <vector>
 #include "insetcommand.h"
 
-class Buffer;
-
 /** Used to insert BibTeX's information
   */
 class InsetBibtex : public InsetCommand {
 public:
        ///
-       InsetBibtex(InsetCommandParams const &, bool same_id = false);
+       InsetBibtex(InsetCommandParams const &);
        ///
        ~InsetBibtex();
        ///
-       Inset * clone(Buffer const &, bool same_id = false) const {
-               return new InsetBibtex(params(), same_id);
-       }
+       std::auto_ptr<InsetBase> clone() const;
        /// small wrapper for the time being
        virtual dispatch_result localDispatch(FuncRequest const & cmd);
        ///
@@ -37,17 +33,13 @@ public:
        ///
        EDITABLE editable() const { return IS_EDITABLE; }
        ///
-       Inset::Code lyxCode() const { return Inset::BIBTEX_CODE; }
-       ///
-       void edit(BufferView *, int x, int y, mouse_button::state button);
-       ///
-       void edit(BufferView * bv, bool front = true);
+       InsetOld::Code lyxCode() const { return InsetOld::BIBTEX_CODE; }
        ///
        int latex(Buffer const *, std::ostream &,
-                 bool fragile, bool freespace) const;
+                 LatexRunParams const &) const;
        ///
-       void fillWithBibKeys(Buffer const *,
-               std::vector<std::pair<string,string> > &) const;
+       void fillWithBibKeys(Buffer const * buffer,
+               std::vector<std::pair<string,string> > & keys) const;
        ///
        std::vector<string> const getFiles(Buffer const &) const;
        ///
@@ -56,15 +48,6 @@ public:
        bool delDatabase(string const &);
        ///
        bool display() const { return true; }
-       ///
-       struct Holder {
-               InsetBibtex * inset;
-               BufferView * view;
-       };
-
-private:
-       ///
-       Holder holder;
 };
 
 #endif // INSET_BIBTEX_H