]> git.lyx.org Git - lyx.git/blob - src/insets/insetbibtex.h
move everything into namespace lyx
[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
20 namespace lyx {
21
22 /** Used to insert BibTeX's information
23   */
24 class InsetBibtex : public InsetCommand {
25 public:
26         ///
27         InsetBibtex(InsetCommandParams const &);
28         ///
29         docstring const getScreenLabel(Buffer const &) const;
30         ///
31         EDITABLE editable() const { return IS_EDITABLE; }
32         ///
33         InsetBase::Code lyxCode() const { return InsetBase::BIBTEX_CODE; }
34         ///
35         bool display() const { return true; }
36         ///
37         int latex(Buffer const &, odocstream &, 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         ///
48         void validate(LaTeXFeatures &) const;
49 protected:
50         virtual void doDispatch(LCursor & cur, FuncRequest & cmd);
51 private:
52         virtual std::auto_ptr<InsetBase> doClone() const;
53
54 };
55
56
57 } // namespace lyx
58
59 #endif // INSET_BIBTEX_H