]> 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 a5157c39787480c6ffdc1f18dd20a0c38089683e..0dc3d0db628beadd92e488a9777840b238454171 100644 (file)
 #ifndef CONTROLBIBTEX_H
 #define CONTROLBIBTEX_H
 
-
-#include "Dialog.h"
-#include "insets/insetbibtex.h"
+#include "ControlCommand.h"
 #include <vector>
 
+namespace lyx {
+namespace support {
+
+class FileFilterList;
+
+} // namespace support
+
+
+namespace frontend {
 
 /** A controller for Bibtex dialogs.
  */
-class ControlBibtex : public Dialog::Controller {
+class ControlBibtex : public ControlCommand {
 public:
        ///
        ControlBibtex(Dialog &);
 
-       ///
-       InsetBibtexParams & params() { return params_; }
-       ///
-       InsetBibtexParams const & params() const { return params_; }
-       ///
-       virtual bool initialiseParams(string const & data);
-       /// clean-up on hide.
-       virtual void clearParams();
-       /// clean-up on hide.
-       virtual void dispatchParams();
-       ///
-       virtual bool isBufferDependent() const { return true; }
+       /// 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;
 
-       /// Browse for a file
-       string const Browse(string const &, string const &, string const &);
        /// get the list of bst files
-       void getBibStyles(std::vector<string> & data) const;
+       void getBibStyles(std::vector<std::string> & data) const;
        /// get the list of bib files
-       void getBibFiles(std::vector<string> & data) 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;
-
-private:
-       ///
-       InsetBibtexParams params_;
+       /// do we use bibtopic (for sectioned bibliography)?
+       bool usingBibtopic() const;
 };
 
+} // namespace frontend
+} // namespace lyx
 
 #endif // CONTROLBIBTEX_H