]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/controllers/ControlButtons.h
port the graphics dialog to the new scheme and get rid of the ControlInset
[lyx.git] / src / frontends / controllers / ControlButtons.h
index 64068213521810833174ba3806d6b3ed32430193..f9ebcff63dd7f401e404f4aa52c8e65c7e86c5bc 100644 (file)
@@ -1,15 +1,12 @@
 // -*- C++ -*-
-/* This file is part of
- * ======================================================
- *
- *           LyX, The Document Processor
- *
- *           Copyright 2001 The LyX Team.
+/**
+ * \file ControlButtons.h
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
  *
- * ======================================================
+ * \author Angus Leeming
  *
- * \file ControlButtons.h
- * \author Angus Leeming <leeming@lyx.org>
+ * Full author contact details are available in file CREDITS
  *
  * ControlButtons serves only to control the activation of the Ok, Apply, Cancel
  * and Restore buttons on the View dialog.
@@ -29,9 +26,6 @@
 #ifndef CONTROLBUTTONS_H
 #define CONTROLBUTTONS_H
 
-#ifdef __GNUG__
-#pragma interface
-#endif
 
 #include <boost/utility.hpp>
 
@@ -40,8 +34,7 @@ class ButtonControllerBase;
 
 /** Abstract base class for Controllers with a ButtonController.
  */
-class ControlButtons : boost::noncopyable
-{
+class ControlButtons : boost::noncopyable {
 public:
        ///
        ControlButtons();
@@ -70,15 +63,14 @@ public:
        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_; }
 
 protected:
        ///
        ViewBase & view();
 
-       /** 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_; }
-
        /// Get changed parameters and Dispatch them to the kernel.
        virtual void apply() = 0;
        /// Disconnect signals and hide View.
@@ -89,7 +81,6 @@ protected:
        /** This flag can be set by one of the miriad the controller methods
            to ensure that the dialog is shut down. */
        bool emergency_exit_;
-
 private:
        ///
        bool is_closing_;