]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/controllers/ControlButtons.h
Add a buffer_path arg to InsetGraphicsMailer's params2string, string2params.
[lyx.git] / src / frontends / controllers / ControlButtons.h
index f9ebcff63dd7f401e404f4aa52c8e65c7e86c5bc..68119bdc573ef9772cf5642d140521aa7a3ec94f 100644 (file)
 
 
 #include <boost/utility.hpp>
+#include <boost/scoped_ptr.hpp>
 
 class ViewBase;
-class ButtonControllerBase;
+class ButtonController;
 
 /** Abstract base class for Controllers with a ButtonController.
  */
@@ -39,7 +40,7 @@ public:
        ///
        ControlButtons();
        ///
-       virtual ~ControlButtons() {}
+       virtual ~ControlButtons();
 
        /** These functions are called by the view when the appropriate buttons
         *  are pressed.
@@ -57,12 +58,10 @@ public:
        bool IconifyWithMain() const;
 
        ///
-       ButtonControllerBase & bc();
+       ButtonController & bc();
 
        ///
        void setView(ViewBase &);
-       ///
-       void setButtonController(ButtonControllerBase &);
        /** When Applying it's useful to know whether the dialog is about
            to close or not (no point refreshing the display for example). */
        bool isClosing() const { return is_closing_; }
@@ -84,9 +83,9 @@ protected:
 private:
        ///
        bool is_closing_;
-       /// We own neither of these pointers.
-       ButtonControllerBase * bc_ptr_;
        ///
+       boost::scoped_ptr<ButtonController> bc_ptr_;
+       /// We do not own this pointer.
        ViewBase * view_ptr_;
 };