]> git.lyx.org Git - features.git/blobdiff - src/frontends/controllers/ViewBase.h
Replace LString.h with support/std_string.h,
[features.git] / src / frontends / controllers / ViewBase.h
index dd5994e5569f9902beb4e6bdbb5f1dbdb6eb62a1..203f88e98c0b769dd14ecf767fc42141caeb8016 100644 (file)
@@ -6,7 +6,7 @@
  *
  * \author Angus Leeming
  *
- * Full author contact details are available in file CREDITS
+ * Full author contact details are available in file CREDITS.
  */
 
 #ifndef VIEWBASE_H
 class ControlButtons;
 class ButtonController;
 
+#include "support/std_string.h"
+
 #include <boost/utility.hpp>
 
 class ViewBase : boost::noncopyable {
 public:
        ///
-       ViewBase();
+       ViewBase(string const &);
        ///
        virtual ~ViewBase() {}
 
@@ -56,9 +58,18 @@ public:
        ControlButtons const & getController() const;
        ///
        ButtonController & bc();
+       /// sets the title of the dialog (window caption)
+       void setTitle(string const &);
+       /// gets the title of the dialog
+       string const & getTitle() const;
+
 protected:
        /// We don't own this.
        ControlButtons * controller_ptr_;
+
+private:
+       string title_;
+
 };
 
 #endif // VIEWBASE_H