]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/controllers/ControlBibitem.h
John's character.C patch (bug fix).
[lyx.git] / src / frontends / controllers / ControlBibitem.h
index e6ead2ad8d0373930277416fcfebeed87ecc2608..0b0d94b6c13b1ba79e8d3cfd71d689b2ecdc1c54 100644 (file)
 #endif
 
 #include "ControlCommand.h"
-#include "ButtonController.h"
-#include "ViewBase.h"
 
 /** A controller for Bibitem dialogs.
  */
-class ControlBibitem : public ControlCommand
-{
+class ControlBibitem : public ControlCommand {
 public:
        ///
        ControlBibitem(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 GUIBibitem : public ControlBibitem {
-public:
-       ///
-       GUIBibitem(LyXView &, Dialogs &);
-       ///
-       virtual ButtonControllerBase & bc() { return bc_; }
-       ///
-       virtual ViewBase & view() { return view_; }
-
 private:
-       ///
-       ButtonController<OkCancelReadOnlyPolicy, GUIbc> bc_;
-       ///
-       GUIview view_;
+       /// Dispatch the changed parameters to the kernel.
+       virtual void applyParamsToInset();
+       /// not needed.
+       virtual void applyParamsNoInset() {}
 };
 
-template <class GUIview, class GUIbc>
-GUIBibitem<GUIview, GUIbc>::GUIBibitem(LyXView & lv, Dialogs & d)
-       : ControlBibitem(lv, d),
-         view_(*this)
-{}
-
 #endif // CONTROLBIBITEM_H