]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetBibtex.h
Change inset label from ": filename" to "Program Listing: filename" for listings...
[lyx.git] / src / insets / InsetBibtex.h
index 05fb37451e01d5cee422b4ce4dedf04710f17056..e8bd176b7072971cefa9ea8f2b57f68e4c57eedd 100644 (file)
 #ifndef INSET_BIBTEX_H
 #define INSET_BIBTEX_H
 
-#include <map>
-#include "InsetCommand.h"
 #include "BiblioInfo.h"
+#include "InsetCommand.h"
 
-namespace lyx {
+#include "support/FileNameList.h"
 
-class EmbeddedFileList;
+#include <map>
 
+namespace lyx {
 
 /** Used to insert BibTeX's information
   */
@@ -28,7 +28,9 @@ public:
        ///
        InsetBibtex(InsetCommandParams const &);
        ///
-       docstring const getScreenLabel(Buffer const &) const;
+       docstring screenLabel() const;
+       ///
+       docstring toolTip(BufferView const & bv, int x, int y) const;
        ///
        EDITABLE editable() const { return IS_EDITABLE; }
        ///
@@ -36,16 +38,15 @@ public:
        ///
        DisplayType display() const { return AlignCenter; }
        ///
-       int latex(Buffer const &, odocstream &, OutputParams const &) const;
+       int latex(odocstream &, OutputParams const &) const;
        ///
-       virtual void fillWithBibKeys(Buffer const &,
-               BiblioInfo &, InsetIterator const &) const;
+       void fillWithBibKeys(BiblioInfo &, InsetIterator const &) const;
        ///
-       EmbeddedFileList const getFiles(Buffer const &) const;
+       support::FileNameList getBibFiles() const;
        ///
-       bool addDatabase(std::string const &);
+       bool addDatabase(docstring const &);
        ///
-       bool delDatabase(std::string const &);
+       bool delDatabase(docstring const &);
        ///
        void validate(LaTeXFeatures &) const;
        ///
@@ -55,18 +56,21 @@ public:
        ///
        static bool isCompatibleCommand(std::string const & s) 
                { return s == "bibtex"; }
+       /// look up the path to the file using TeX
+       static support::FileName 
+               getBibTeXPath(docstring const & filename, Buffer const & buf);
        ///
-       void registerEmbeddedFiles(Buffer const &, EmbeddedFileList &) const;
+       docstring contextMenu(BufferView const &, int, int) const;
+private:
        ///
-       void updateEmbeddedFile(Buffer const & buf, EmbeddedFile const & file);
-       
-protected:
+       void doDispatch(Cursor & cur, FuncRequest & cmd);
        ///
-       virtual void doDispatch(Cursor & cur, FuncRequest & cmd);
-private:
+       bool getStatus(Cursor & cur, FuncRequest const & cmd,
+               FuncStatus & flag) const;
        ///
-       virtual Inset * clone() const;
-
+       void editDatabases() const;
+       ///
+       Inset * clone() const { return new InsetBibtex(*this); }
 };