]> git.lyx.org Git - lyx.git/blob - src/frontends/controllers/ControlBibtex.h
5 new lfuns, move all apply code out of ControlDocument and into the core.
[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
17 #include "ControlCommand.h"
18 #include <vector>
19
20
21 namespace lyx {
22 namespace support {
23
24 class FileFilterList;
25
26 } // namespace support
27 } // namespace lyx
28
29
30 /** A controller for Bibtex dialogs.
31  */
32 class ControlBibtex : public ControlCommand {
33 public:
34         ///
35         ControlBibtex(Dialog &);
36
37         /// Browse for a file
38         std::string const browse(std::string const & in_name,
39                                  std::string const & title,
40                                  lyx::support::FileFilterList const & filters) const;
41         /// get the list of bst files
42         void getBibStyles(std::vector<std::string> & data) const;
43         /// get the list of bib files
44         void getBibFiles(std::vector<std::string> & data) const;
45         /// build filelists of all availabe bib/bst/cls/sty-files. done through
46         /// kpsewhich and an external script, saved in *Files.lst
47         void rescanBibStyles() const;
48         /// do we use bibtopic (for sectioned bibliography)?
49         bool usingBibtopic() const;
50 };
51
52
53 #endif // CONTROLBIBTEX_H