]> git.lyx.org Git - lyx.git/blobdiff - src/LyXView.h
add missing typename
[lyx.git] / src / LyXView.h
index 40f44074adf6c4c887103e758d00634bb7dbffb4..425469ac881ca230a89b78dba943f86272fd89c6 100644 (file)
@@ -11,8 +11,7 @@
 #include <sigc++/signal_system.h>
 
 #include "LString.h"
-#include "frontends/Timeout.h"
-#include "layout.h" // Just for LyXTextClass::size_type (sic)
+#include "support/types.h"
 
 class Buffer;
 class Toolbar;
@@ -23,6 +22,7 @@ class Menubar;
 class BufferView;
 class Dialogs;
 class LyXFunc;
+class Timeout;
 
 ///
 class LyXView : public SigC::Object, boost::noncopyable {
@@ -53,8 +53,7 @@ public:
        Toolbar * getToolbar() const;
 
        /// sets the layout in the toolbar layout combox
-       void setLayout(LyXTextClass::size_type layout);
-
+       void setLayout(string const & layout);
        /// update the toolbar
        void updateToolbar();
 
@@ -70,7 +69,7 @@ public:
        void messagePush(string const & str);
        ///
        void messagePop();
-       
+
        ///
        Menubar * getMenubar() const;
 
@@ -101,29 +100,29 @@ public:
 protected:
        ///
        Menubar * menubar;
-       /// 
+       ///
        Toolbar * toolbar;
        /** This is supposed to be a pointer or a list of pointers to the
           BufferViews currently being shown in the LyXView. So far
           this is not used, but that should change pretty soon. (Lgb) */
        BufferView * bufferview;
-       /// 
+       ///
        MiniBuffer * minibuffer;
        ///
        Intl * intl;
        ///
-       Timeout autosave_timeout;
+       Timeout autosave_timeout;
        /// A callback
        void AutoSave();
        ///
        void invalidateLayoutChoice();
 private:
-       /// 
+       ///
        LyXFunc * lyxfunc;
        ///
        Dialogs * dialogs_;
        ///
-       virtual void setWindowTitle(string const &) = 0;
+       virtual void setWindowTitle(string const &, string const &) = 0;
        /** The last textclass layout list in the layout choice selector
          This should probably be moved to the toolbar, but for now it's
        here. (Asger) */