]> git.lyx.org Git - lyx.git/blob - src/frontends/controllers/ControlBibtex.h
obvious stuff
[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 file
37         std::string const browse(std::string const & in_name,
38                                  std::string const & title,
39                                  support::FileFilterList const & filters) const;
40         /// get the list of bst files
41         void getBibStyles(std::vector<std::string> & data) const;
42         /// get the list of bib files
43         void getBibFiles(std::vector<std::string> & data) const;
44         /// build filelists of all availabe bib/bst/cls/sty-files. done through
45         /// kpsewhich and an external script, saved in *Files.lst
46         void rescanBibStyles() const;
47         /// do we use bibtopic (for sectioned bibliography)?
48         bool usingBibtopic() const;
49 };
50
51 } // namespace frontend
52 } // namespace lyx
53
54 #endif // CONTROLBIBTEX_H