*
* 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);
clean();
}
-#if 0
- ///
- int get_toolbar_func(string const & func);
-#endif
-
/// (re)sets the toolbar
void set(bool doingmain = false);
/// 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.
void openLayoutList();
/// Erase the layout list
void clearLayoutList();
+ /// the non-static version of layoutSelectedCB
+ void layoutSelected();
///
struct toolbarItem
/// The list containing all the buttons
ToolbarList toollist;
///
- LyXView * owner;
+ XFormsView * owner;
#if FL_REVISION < 89
///
FL_OBJECT * bubble_timer;