]> git.lyx.org Git - lyx.git/blob - src/insets/insetbibtex.h
Kill ChangeCitationsIfUnique; various small bits 'n' bobs.
[lyx.git] / src / insets / insetbibtex.h
1 // -*- C++ -*-
2 /**
3  * \file insetbibtex.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author Alejandro Aguilar Sierra
8  *
9  * Full author contact details are available in file CREDITS
10  */
11
12 #ifndef INSET_BIBTEX_H
13 #define INSET_BIBTEX_H
14
15
16 #include <vector>
17 #include "insetcommand.h"
18
19 /** Used to insert BibTeX's information
20   */
21 class InsetBibtex : public InsetCommand {
22 public:
23         ///
24         InsetBibtex(InsetCommandParams const &);
25         ///
26         ~InsetBibtex();
27         ///
28         std::auto_ptr<InsetBase> clone() const;
29         /// small wrapper for the time being
30         virtual dispatch_result localDispatch(FuncRequest const & cmd);
31         ///
32         string const getScreenLabel(Buffer const *) const;
33         ///
34         EDITABLE editable() const { return IS_EDITABLE; }
35         ///
36         InsetOld::Code lyxCode() const { return InsetOld::BIBTEX_CODE; }
37         ///
38         int latex(Buffer const *, std::ostream &,
39                   LatexRunParams const &) const;
40         ///
41         void fillWithBibKeys(Buffer const * buffer,
42                 std::vector<std::pair<string,string> > & keys) const;
43         ///
44         std::vector<string> const getFiles(Buffer const &) const;
45         ///
46         bool addDatabase(string const &);
47         ///
48         bool delDatabase(string const &);
49         ///
50         bool display() const { return true; }
51 };
52
53 #endif // INSET_BIBTEX_H