]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/Toolbar.h
better selection and scrolling behaviour
[lyx.git] / src / frontends / Toolbar.h
index 121f3cecc1dff7a64feefc37355e992f887d5ddc..66a016935a2cbc914f2078fc8f7b902d49c5ba4d 100644 (file)
@@ -1,15 +1,13 @@
 // -*- C++ -*-
-/* This file is part of
- * ======================================================
- * 
- *           LyX, The Document Processor
- *           Copyright 1995 Matthias Ettrich
- *           Copyright 1995-2000 The LyX Team.
+/**
+ * \file Toolbar.h
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
  *
- *           This file is Copyright 1996-2000
- *           Lars Gullik Bjønnes
+ * \author Lars Gullik Bjønnes
  *
- * ====================================================== */
+ * Full author contact details are available in file CREDITS
+ */
 
 #ifndef TOOLBAR_H
 #define TOOLBAR_H
@@ -23,8 +21,9 @@
 class LyXView;
 class ToolbarDefaults;
 
+
 /** The LyX GUI independent toolbar class
-  The GUI interface is implemented in the corresponding Toolbar_pimpl class. 
+  The GUI interface is implemented in the corresponding Toolbar_pimpl class.
   */
 class Toolbar {
 public:
@@ -33,38 +32,33 @@ public:
 
        ///
        ~Toolbar();
-       
-       /// (re)sets the toolbar
-       void set(bool doingmain = false);
 
-       /** this is to be the entry point to the toolbar
-         frame, where you can change the toolbar realtime. */
-       void edit();
-       /// add a new button to the toolbar.
-       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(int layout);
-       /// Populate the layout combox; re-do everything if force is true.
-       void updateLayoutList(bool force);
+       void setLayout(string const & layout);
+       /**
+        * 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