]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetbibtex.h
hopefully fix tex2lyx linking.
[lyx.git] / src / insets / insetbibtex.h
index c5ac7ba795e1e4f24d1b75d57573df527a7761da..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,36 +26,34 @@ public:
        ///
        InsetBibtex(InsetCommandParams const &);
        ///
-       ~InsetBibtex();
-       ///
-       std::auto_ptr<InsetBase> clone() const;
+       docstring const getScreenLabel(Buffer const &) const;
        ///
-       void metrics(MetricsInfo &, Dimension &) const;
-       ///
-       void draw(PainterInfo & pi, int x, int y) const;
-       /// small wrapper for the time being
-       virtual dispatch_result localDispatch(FuncRequest const & cmd);
+       EDITABLE editable() const { return IS_EDITABLE; }
        ///
-       string const getScreenLabel(Buffer const *) const;
+       InsetBase::Code lyxCode() const { return InsetBase::BIBTEX_CODE; }
        ///
-       EDITABLE editable() const { return IS_EDITABLE; }
+       bool display() const { return true; }
        ///
-       InsetOld::Code lyxCode() const { return InsetOld::BIBTEX_CODE; }
+       int latex(Buffer const &, odocstream &, OutputParams const &) const;
        ///
-       int latex(Buffer const *, std::ostream &,
-                 LatexRunParams const &) const;
+       void fillWithBibKeys(Buffer const & buffer,
+               std::vector<std::pair<std::string,std::string> > & keys) const;
        ///
-       void fillWithBibKeys(Buffer const * buffer,
-               std::vector<std::pair<string,string> > & keys) const;
+       std::vector<std::string> const getFiles(Buffer const &) const;
        ///
-       std::vector<string> const getFiles(Buffer const &) const;
+       bool addDatabase(std::string const &);
        ///
-       bool addDatabase(string const &);
+       bool delDatabase(std::string const &);
        ///
-       bool delDatabase(string const &);
+       void validate(LaTeXFeatures &) const;
+protected:
+       virtual void doDispatch(LCursor & cur, FuncRequest & cmd);
 private:
-       ///
-       mutable unsigned int center_indent_;
+       virtual std::auto_ptr<InsetBase> doClone() const;
+
 };
 
+
+} // namespace lyx
+
 #endif // INSET_BIBTEX_H