]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetbibtex.h
* src/LyXAction.C: mark goto-clear-bookmark as working without buffer
[lyx.git] / src / insets / insetbibtex.h
index c5ac7ba795e1e4f24d1b75d57573df527a7761da..3c461d73bb02d76936b632af361c4f0a4f98017d 100644 (file)
 #include <vector>
 #include "insetcommand.h"
 
+#include "support/filename.h"
+
+
+namespace lyx {
+
 /** Used to insert BibTeX's information
   */
 class InsetBibtex : public InsetCommand {
@@ -23,36 +28,34 @@ public:
        ///
        InsetBibtex(InsetCommandParams const &);
        ///
-       ~InsetBibtex();
+       docstring const getScreenLabel(Buffer const &) const;
        ///
-       std::auto_ptr<InsetBase> clone() const;
-       ///
-       void metrics(MetricsInfo &, Dimension &) const;
+       EDITABLE editable() const { return IS_EDITABLE; }
        ///
-       void draw(PainterInfo & pi, int x, int y) const;
-       /// small wrapper for the time being
-       virtual dispatch_result localDispatch(FuncRequest const & cmd);
+       InsetBase::Code lyxCode() const { return InsetBase::BIBTEX_CODE; }
        ///
-       string const getScreenLabel(Buffer const *) const;
+       bool display() const { return true; }
        ///
-       EDITABLE editable() const { return IS_EDITABLE; }
+       int latex(Buffer const &, odocstream &, OutputParams const &) const;
        ///
-       InsetOld::Code lyxCode() const { return InsetOld::BIBTEX_CODE; }
+       void fillWithBibKeys(Buffer const & buffer,
+               std::vector<std::pair<std::string, docstring> > & keys) const;
        ///
-       int latex(Buffer const *, std::ostream &,
-                 LatexRunParams const &) const;
+       std::vector<support::FileName> const getFiles(Buffer const &) const;
        ///
-       void fillWithBibKeys(Buffer const * buffer,
-               std::vector<std::pair<string,string> > & keys) const;
+       bool addDatabase(std::string const &);
        ///
-       std::vector<string> const getFiles(Buffer const &) const;
+       bool delDatabase(std::string const &);
        ///
-       bool addDatabase(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