]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetbibtex.h
hopefully fix tex2lyx linking.
[lyx.git] / src / insets / insetbibtex.h
index cb6128226e54b850b48687950611720ece0ff35d..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,18 +26,15 @@ public:
        ///
        InsetBibtex(InsetCommandParams const &);
        ///
-       std::auto_ptr<InsetBase> clone() 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 &,
-                 OutputParams 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;
@@ -44,9 +44,16 @@ public:
        bool addDatabase(std::string const &);
        ///
        bool delDatabase(std::string const &);
-protected:
        ///
-       virtual void priv_dispatch(LCursor & cur, FuncRequest & cmd);
+       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