]> git.lyx.org Git - lyx.git/blob - src/frontends/controllers/ControlBibtex.h
fix crash due to invalidated iterator
[lyx.git] / src / frontends / controllers / ControlBibtex.h
1 // -*- C++ -*-
2 /**
3  * \file ControlBibtex.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author John Levon
8  * \author Angus Leeming
9  *
10  * Full author contact details are available in file CREDITS.
11  */
12
13 #ifndef CONTROLBIBTEX_H
14 #define CONTROLBIBTEX_H
15
16 #include "ControlCommand.h"
17 #include <vector>
18
19 namespace lyx {
20 namespace support {
21
22 class FileFilterList;
23
24 } // namespace support
25
26
27 namespace frontend {
28
29 /** A controller for Bibtex dialogs.
30  */
31 class ControlBibtex : public ControlCommand {
32 public:
33         ///
34         ControlBibtex(Dialog &);
35
36         /// Browse for a .bib file
37         std::string const browseBib(std::string const & in_name) const;
38
39         /// Browse for a .bst file
40         std::string const browseBst(std::string const & in_name) const;
41
42         /// get the list of bst files
43         void getBibStyles(std::vector<std::string> & data) const;
44         /// get the list of bib files
45         void getBibFiles(std::vector<std::string> & data) const;
46         /// build filelists of all availabe bib/bst/cls/sty-files. done through
47         /// kpsewhich and an external script, saved in *Files.lst
48         void rescanBibStyles() const;
49         /// do we use bibtopic (for sectioned bibliography)?
50         bool usingBibtopic() const;
51 };
52
53 } // namespace frontend
54 } // namespace lyx
55
56 #endif // CONTROLBIBTEX_H