]> 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 46994272927132b9893c297670814688e45d114a..d107098e8932a51be95492cfee9b2acb502ee2b1 100644 (file)
@@ -4,11 +4,12 @@
  *
  *           LyX, The Document Processor
  *
- *           Copyright 2000 The LyX Team.
+ *           Copyright 2001 The LyX Team.
  *
  * ======================================================
  *
  * \file ControlBibtex.h
+ * \author John Levon, moz@compsoc.man.ac.uk
  * \author Angus Leeming <a.leeming@ic.ac.uk>
  */
 
@@ -20,8 +21,6 @@
 #endif
 
 #include "ControlCommand.h"
-#include "ButtonController.h"
-#include "ViewBase.h"
 
 /** A controller for Bibtex dialogs.
  */
@@ -30,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