]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/controllers/ControlBibtex.h
The reference dialog now disconnects from the inset on Apply. Its behaviour
[lyx.git] / src / frontends / controllers / ControlBibtex.h
index 2771ed36d5b27ca8d51189eadc2161ee1d902265..d107098e8932a51be95492cfee9b2acb502ee2b1 100644 (file)
@@ -21,8 +21,6 @@
 #endif
 
 #include "ControlCommand.h"
-#include "ButtonController.h"
-#include "ViewBase.h"
 
 /** A controller for Bibtex dialogs.
  */
@@ -31,36 +29,14 @@ class ControlBibtex : public ControlCommand
 public:
        ///
        ControlBibtex(LyXView &, Dialogs &);
-
-protected:
-       /// Get changed parameters and Dispatch them to the kernel.
-       virtual void apply();
-};
-
-/** This class instantiates and makes available the GUI-specific
-    ButtonController and View.
- */
-template <class GUIview, class GUIbc>
-class GUIBibtex : public ControlBibtex {
-public:
-       ///
-       GUIBibtex(LyXView &, Dialogs &);
-       ///
-       virtual ButtonControllerBase & bc() { return bc_; }
-       ///
-       virtual ViewBase & view() { return view_; }
-
+       /// Browse for a file
+       string const Browse(string const &, string const &, string const &);
 private:
-       ///
-       ButtonController<OkCancelReadOnlyPolicy, GUIbc> bc_;
-       ///
-       GUIview view_;
+       /// Dispatch the changed parameters to the kernel.
+       virtual void applyParamsToInset();
+       /// 
+       virtual void applyParamsNoInset();
 };
 
-template <class GUIview, class GUIbc>
-GUIBibtex<GUIview, GUIbc>::GUIBibtex(LyXView & lv, Dialogs & d)
-       : ControlBibtex(lv, d),
-         view_(*this)
-{}
-
 #endif // CONTROLBIBTEX_H