]> git.lyx.org Git - lyx.git/blob - src/insets/insetbibtex.h
Enable convertDefault.sh to run even if its executable bit is not set.
[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         ///
30         void metrics(MetricsInfo &, Dimension &) const;
31         ///
32         void draw(PainterInfo & pi, int x, int y) const;
33         /// small wrapper for the time being
34         virtual dispatch_result localDispatch(FuncRequest const & cmd);
35         ///
36         string const getScreenLabel(Buffer const &) const;
37         ///
38         EDITABLE editable() const { return IS_EDITABLE; }
39         ///
40         InsetOld::Code lyxCode() const { return InsetOld::BIBTEX_CODE; }
41         ///
42         int latex(Buffer const &, std::ostream &,
43                   LatexRunParams const &) const;
44         ///
45         void fillWithBibKeys(Buffer const & buffer,
46                 std::vector<std::pair<string,string> > & keys) const;
47         ///
48         std::vector<string> const getFiles(Buffer const &) const;
49         ///
50         bool addDatabase(string const &);
51         ///
52         bool delDatabase(string const &);
53 private:
54         ///
55         mutable unsigned int center_indent_;
56 };
57
58 #endif // INSET_BIBTEX_H