]> git.lyx.org Git - lyx.git/blob - src/insets/insetbibtex.h
get rid of same_id from function signatures
[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 class Buffer;
20
21 /** Used to insert BibTeX's information
22   */
23 class InsetBibtex : public InsetCommand {
24 public:
25         ///
26         InsetBibtex(InsetCommandParams const &);
27         ///
28         //InsetBibtex(InsetCommandParams const &, bool same_id);
29         ///
30         ~InsetBibtex();
31         ///
32         Inset * clone(Buffer const &) const {
33                 return new InsetBibtex(params());
34         }
35         ///
36         //Inset * clone(Buffer const &, bool same_id) const {
37         //      return new InsetBibtex(params(), same_id);
38         //}
39         /// small wrapper for the time being
40         virtual dispatch_result localDispatch(FuncRequest const & cmd);
41         ///
42         string const getScreenLabel(Buffer const *) const;
43         ///
44         EDITABLE editable() const { return IS_EDITABLE; }
45         ///
46         Inset::Code lyxCode() const { return Inset::BIBTEX_CODE; }
47         ///
48         int latex(Buffer const *, std::ostream &,
49                   LatexRunParams const &) const;
50         ///
51         void fillWithBibKeys(Buffer const *,
52                 std::vector<std::pair<string,string> > &) const;
53         ///
54         std::vector<string> const getFiles(Buffer const &) const;
55         ///
56         bool addDatabase(string const &);
57         ///
58         bool delDatabase(string const &);
59         ///
60         bool display() const { return true; }
61         ///
62         struct Holder {
63                 InsetBibtex * inset;
64                 BufferView * view;
65         };
66
67 private:
68         ///
69         Holder holder;
70 };
71
72 #endif // INSET_BIBTEX_H