]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/xforms/Toolbar_pimpl.h
Bugfixes: checkboxes to radiobuttons (from J�rgen S) and remove a little
[lyx.git] / src / frontends / xforms / Toolbar_pimpl.h
index d9af62d54a28324eb1ec5029c8f0edfa216ac958..6eea76f59429891ccfafbd3a9a2bdeed8609a02c 100644 (file)
@@ -4,9 +4,9 @@
  * 
  *           LyX, The Document Processor
  *           Copyright 1995 Matthias Ettrich
- *           Copyright 1995-2000 The LyX Team.
+ *           Copyright 1995-2001 The LyX Team.
  *
- *           This file is Copyright 1996-2000
+ *           This file is Copyright 1996-2001
  *           Lars Gullik Bjønnes
  *
  * ====================================================== */
 #ifndef TOOLBAR_PIMPL_H
 #define TOOLBAR_PIMPL_H
 
+#include <vector>
+#include FORMS_H_LOCATION
+
 #include "frontends/Toolbar.h"
 
+#include "commandtags.h"
+#include "combox.h"
+#include "ToolbarDefaults.h"
+
 #ifdef __GNUG__
 #pragma interface
 #endif
 
-#include <vector>
-#include FORMS_H_LOCATION
-#include "commandtags.h"
-#include "combox.h"
-#include "ToolbarDefaults.h"
+class XFormsView;
 
 /** The LyX xforms toolbar class
   */
 struct Toolbar::Pimpl {
 public:
+       /// called when user selects a layout from combox
+       static void layoutSelectedCB(int, void *, Combox *);
        ///
        Pimpl(LyXView * o, int x, int y);
 
@@ -38,11 +43,6 @@ public:
                clean();
        }
        
-#if 0
-       ///
-       int get_toolbar_func(string const & func);
-#endif
-       
        /// (re)sets the toolbar
        void set(bool doingmain = false);
 
@@ -61,6 +61,7 @@ public:
        /// update the state of the icons
        void update();
 
        /// select the right layout in the combox
        void setLayout(int layout);
        /// Populate the layout combox; re-do everything if force is true.
@@ -69,6 +70,8 @@ public:
        void openLayoutList();
        /// Erase the layout list
        void clearLayoutList();
+       /// the non-static version of layoutSelectedCB
+       void layoutSelected(); 
 
        ///
        struct toolbarItem
@@ -92,7 +95,7 @@ public:
        /// The list containing all the buttons
        ToolbarList toollist;
        ///
-       LyXView * owner;
+       XFormsView * owner;
 #if FL_REVISION < 89
        ///
        FL_OBJECT * bubble_timer;