]> 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 8d1d1699e2240f82b34efde558aa15c591d9d350..8dfd9fbe9b341e16054cfd2aea3bb4466e47913e 100644 (file)
@@ -16,8 +16,6 @@
 #include <vector>
 #include "insetcommand.h"
 
-class Buffer;
-
 /** Used to insert BibTeX's information
   */
 class InsetBibtex : public InsetCommand {
@@ -27,9 +25,7 @@ public:
        ///
        ~InsetBibtex();
        ///
-       std::auto_ptr<InsetBase> clone() const {
-               return std::auto_ptr<InsetBase>(new InsetBibtex(params()));
-       }
+       std::auto_ptr<InsetBase> clone() const;
        /// small wrapper for the time being
        virtual dispatch_result localDispatch(FuncRequest const & cmd);
        ///
@@ -37,7 +33,7 @@ public:
        ///
        EDITABLE editable() const { return IS_EDITABLE; }
        ///
-       Inset::Code lyxCode() const { return Inset::BIBTEX_CODE; }
+       InsetOld::Code lyxCode() const { return InsetOld::BIBTEX_CODE; }
        ///
        int latex(Buffer const *, std::ostream &,
                  LatexRunParams const &) const;
@@ -52,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