]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/Toolbar.h
remove LFUN_TOOLBAR_PUSH
[lyx.git] / src / frontends / Toolbar.h
index 0f15083bc0bfdd389272da5b3a85e30de4e9fa25..7fe691d0e15c1a5d9f5f1c33c89085869577ce6d 100644 (file)
@@ -22,6 +22,7 @@
 
 class LyXView;
 class ToolbarDefaults;
+class Dialogs;
 
 /** The LyX GUI independent toolbar class
   The GUI interface is implemented in the corresponding Toolbar_pimpl class.
@@ -29,7 +30,8 @@ class ToolbarDefaults;
 class Toolbar {
 public:
        ///
-       Toolbar(LyXView * o, int x, int y, ToolbarDefaults const &);
+       Toolbar(LyXView * o, Dialogs & d,
+               int x, int y, ToolbarDefaults const &);
 
        ///
        ~Toolbar();
@@ -44,29 +46,32 @@ public:
        void add(int , bool doclean = true);
        /// name of func instead of kb_action
        void add(string const & , bool doclean = true);
-       /// invokes the n'th icon in the toolbar
-       void push(int);
-       /// activates the toolbar
-       void activate();
-       /// deactivates the toolbar
-       void deactivate();
        /// update the state of the icons
        void update();
 
        /// update the layout combox
        void setLayout(string const & layout);
-       /// Populate the layout combox; re-do everything if force is true.
-       void updateLayoutList(bool force);
+       /**
+        * Populate the layout combox - returns whether we did a full
+        * update or not
+        */
+       bool updateLayoutList(int textclass);
        /// Drop down the layout list
        void openLayoutList();
        /// Erase the layout list
        void clearLayoutList();
 
-private:
+       /// Compaq cxx 6.5 requires this to be public
        struct Pimpl;
+private:
        ///
        friend struct Toolbar::Pimpl;
        ///
        Pimpl * pimpl_;
+
+       /**
+        * The last textclass layout list in the layout choice selector
+        */
+       int last_textclass_;
 };
 #endif