]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/controllers/ControlAboutlyx.h
fix scons again for GUI cleanup, remove unused variable
[lyx.git] / src / frontends / controllers / ControlAboutlyx.h
index c7a633f872c2a90144af60ac23dc45137e75cb8f..7cfa322b3a8835881d668abf256862b1fbf98c9f 100644 (file)
@@ -1,51 +1,49 @@
 // -*- C++ -*-
 /**
  * \file ControlAboutlyx.h
- * See the file COPYING.
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
  *
  * \author Edwin Leuven
- * \author Angus Leeming 
+ * \author Angus Leeming
  *
- * Full author contact details are available in file CREDITS
+ * Full author contact details are available in file CREDITS.
  */
 
 #ifndef CONTROLABOUTLYX_H
 #define CONTROLABOUTLYX_H
 
-#ifdef __GNUG__
-#pragma interface
-#endif
+#include "Dialog.h"
+#include <iosfwd>
 
-#include "ControlDialog_impl.h"
-#include "Lsstream.h"
-#include "LString.h"
+namespace lyx {
+namespace frontend {
 
-/** A controller for the About LyX dialogs.
+/** \c ControlAboutlyx is a controller for the "About LyX" dialogs.
  */
-class ControlAboutlyx : public ControlDialogBI {
+class ControlAboutlyx : public Dialog::Controller {
 public:
-       ///
-       ControlAboutlyx(LyXView &, Dialogs &);
-
-       ///
-       stringstream & getCredits(stringstream &) const;
-
-       ///
-       string const getCopyright() const;
-
-       ///
-       string const getLicense() const;
-
-       ///
-       string const getDisclaimer() const;
-
-       ///
-       string const getVersion() const;
-
-
-private:
-       /// not needed.
-       virtual void apply() {}
+       ControlAboutlyx(Dialog & parent);
+
+       //@{
+       /// Instantiate Dialog::Controller methods.
+       virtual bool initialiseParams(std::string const &) { return true; }
+       virtual void clearParams() {}
+       virtual void dispatchParams() {}
+       virtual bool isBufferDependent() const { return false; }
+       //@}
+
+       //@{
+       /// Provide the View with specific pieces of information.
+       void getCredits(std::ostream &) const;
+       std::string const getCopyright() const;
+       std::string const getLicense() const;
+       std::string const getDisclaimer() const;
+       std::string const getVersion() const;
+       //@}
 };
 
+} // namespace frontend
+} // namespace lyx
+
 #endif // CONTROLABOUTLYX_H