2 /* This file is part of
3 * ======================================================
5 * LyX, The Document Processor
6 * Copyright 1995 Matthias Ettrich
7 * Copyright 1995-2000 The LyX Team.
9 * This file is Copyright 1996-2000
12 * ====================================================== */
14 #ifndef TOOLBAR_PIMPL_H
15 #define TOOLBAR_PIMPL_H
18 #include FORMS_H_LOCATION
20 #include "frontends/Toolbar.h"
22 #include "commandtags.h"
24 #include "ToolbarDefaults.h"
30 /** The LyX xforms toolbar class
32 struct Toolbar::Pimpl {
34 /// called when user selects a layout from combox
35 static void layoutSelectedCB(int, void *, Combox *);
37 Pimpl(LyXView * o, int x, int y);
46 int get_toolbar_func(string const & func);
49 /// (re)sets the toolbar
50 void set(bool doingmain = false);
52 /** this is to be the entry point to the toolbar
53 frame, where you can change the toolbar realtime.
56 /// add a new button to the toolbar.
57 void add(int, bool doclean = true);
58 /// invokes the n'th icon in the toolbar
60 /// activates the toolbar
62 /// deactivates the toolbar
64 /// update the state of the icons
68 /// select the right layout in the combox
69 void setLayout(int layout);
70 /// Populate the layout combox; re-do everything if force is true.
71 void updateLayoutList(bool force);
72 /// Drop down the layout list
73 void openLayoutList();
74 /// Erase the layout list
75 void clearLayoutList();
76 /// and the non-static version
77 void layoutSelected(int);
93 toolbarItem & operator=(toolbarItem const & ti);
96 /// typedef to simplify things
97 typedef std::vector<toolbarItem> ToolbarList;
98 /// The list containing all the buttons
104 FL_OBJECT * bubble_timer;
108 /// Starting position
119 /// removes all toolbar buttons from the toolbar.