]> git.lyx.org Git - lyx.git/blob - src/frontends/controllers/ControlBibtex.h
fix scrolling bug: 3320 and 3652, maybe not perfect
[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
18 #include "support/docstring.h"
19
20 #include <vector>
21
22 namespace lyx {
23
24 namespace support { class FileFilterList; }
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         docstring const browseBib(docstring const & in_name) const;
38
39         /// Browse for a .bst file
40         docstring const browseBst(docstring 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         /// should we put the bibliography to the TOC?
52         bool bibtotoc() const;
53         /// which stylefile do we use?
54         std::string const getStylefile() const;
55 };
56
57 } // namespace frontend
58 } // namespace lyx
59
60 #endif // CONTROLBIBTEX_H