]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/controllers/ControlBibtex.h
fix crash due to invalidated iterator
[lyx.git] / src / frontends / controllers / ControlBibtex.h
index c1449f91150e9e15dc5dcb0c2abafc4fba0c40d8..0dc3d0db628beadd92e488a9777840b238454171 100644 (file)
@@ -7,16 +7,25 @@
  * \author John Levon
  * \author Angus Leeming
  *
- * Full author contact details are available in file CREDITS
+ * Full author contact details are available in file CREDITS.
  */
 
 #ifndef CONTROLBIBTEX_H
 #define CONTROLBIBTEX_H
 
-
 #include "ControlCommand.h"
+#include <vector>
+
+namespace lyx {
+namespace support {
+
+class FileFilterList;
+
+} // namespace support
 
 
+namespace frontend {
+
 /** A controller for Bibtex dialogs.
  */
 class ControlBibtex : public ControlCommand {
@@ -24,16 +33,24 @@ public:
        ///
        ControlBibtex(Dialog &);
 
-       /// Browse for a file
-       string const Browse(string const &, string const &, string const &);
+       /// Browse for a .bib file
+       std::string const browseBib(std::string const & in_name) const;
+
+       /// Browse for a .bst file
+       std::string const browseBst(std::string const & in_name) const;
+
        /// get the list of bst files
-       string const getBibStyles() const;
+       void getBibStyles(std::vector<std::string> & data) const;
        /// get the list of bib files
-       string const getBibFiles() const;
+       void getBibFiles(std::vector<std::string> & data) const;
        /// build filelists of all availabe bib/bst/cls/sty-files. done through
        /// kpsewhich and an external script, saved in *Files.lst
        void rescanBibStyles() const;
+       /// do we use bibtopic (for sectioned bibliography)?
+       bool usingBibtopic() const;
 };
 
+} // namespace frontend
+} // namespace lyx
 
 #endif // CONTROLBIBTEX_H