]> git.lyx.org Git - lyx.git/blob - src/insets/insetbibtex.h
the monster patch
[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         std::auto_ptr<InsetBase> clone() const;
27         ///
28         std::string const getScreenLabel(Buffer const &) const;
29         ///
30         EDITABLE editable() const { return IS_EDITABLE; }
31         ///
32         InsetOld::Code lyxCode() const { return InsetOld::BIBTEX_CODE; }
33         ///
34         bool display() const { return true; }
35         ///
36         int latex(Buffer const &, std::ostream &,
37                   OutputParams const &) const;
38         ///
39         void fillWithBibKeys(Buffer const & buffer,
40                 std::vector<std::pair<std::string,std::string> > & keys) const;
41         ///
42         std::vector<std::string> const getFiles(Buffer const &) const;
43         ///
44         bool addDatabase(std::string const &);
45         ///
46         bool delDatabase(std::string const &);
47 protected:
48         ///
49         virtual
50         DispatchResult
51         priv_dispatch(BufferView & bv, FuncRequest const & cmd);
52 };
53
54 #endif // INSET_BIBTEX_H