]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetbibtex.h
hopefully fix tex2lyx linking.
[lyx.git] / src / insets / insetbibtex.h
index a7fddf505d24c377d2333113faeaf960cfdc3813..c6ef73bb045057f7695789b2f960aa849638e282 100644 (file)
@@ -16,6 +16,9 @@
 #include <vector>
 #include "insetcommand.h"
 
+
+namespace lyx {
+
 /** Used to insert BibTeX's information
   */
 class InsetBibtex : public InsetCommand {
@@ -23,22 +26,15 @@ 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;
+       docstring const getScreenLabel(Buffer const &) const;
        ///
        EDITABLE editable() const { return IS_EDITABLE; }
        ///
-       InsetOld::Code lyxCode() const { return InsetOld::BIBTEX_CODE; }
+       InsetBase::Code lyxCode() const { return InsetBase::BIBTEX_CODE; }
        ///
-       int latex(Buffer const &, std::ostream &,
-                 LatexRunParams const &) const;
+       bool display() const { return true; }
+       ///
+       int latex(Buffer const &, odocstream &, OutputParams const &) const;
        ///
        void fillWithBibKeys(Buffer const & buffer,
                std::vector<std::pair<std::string,std::string> > & keys) const;
@@ -48,11 +44,16 @@ 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;
+
 };
 
+
+} // namespace lyx
+
 #endif // INSET_BIBTEX_H