]> 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 fa0d63ceaa26c60503ee12e5e18b282460e659f3..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,38 +28,34 @@ 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; }
        ///
        bool display() const { return true; }
        ///
-       int latex(Buffer const &, std::ostream &,
-                 LatexRunParams const &) const;
+       int latex(Buffer const &, odocstream &, OutputParams const &) const;
        ///
        void fillWithBibKeys(Buffer const & buffer,
-               std::vector<std::pair<std::string,std::string> > & keys) const;
+               std::vector<std::pair<std::string, docstring> > & keys) const;
        ///
-       std::vector<std::string> const getFiles(Buffer const &) const;
+       std::vector<support::FileName> const getFiles(Buffer const &) const;
        ///
        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