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
17 #include "frontends/Toolbar.h"
24 #include FORMS_H_LOCATION
25 #include "commandtags.h"
27 #include "ToolbarDefaults.h"
29 /** The LyX xforms toolbar class
31 struct Toolbar::Pimpl {
34 Pimpl(LyXView * o, int x, int y);
43 int get_toolbar_func(string const & func);
46 /// (re)sets the toolbar
47 void set(bool doingmain = false);
49 /** this is to be the entry point to the toolbar
50 frame, where you can change the toolbar realtime. */
52 /// add a new button to the toolbar.
53 void add(int , bool doclean = true);
54 /// invokes the n'th icon in the toolbar
56 /// activates the toolbar
58 /// deactivates the toolbar
60 /// update the state of the icons
63 /// select the right layout in the combox
64 void setLayout(int layout);
65 /// Populate the layout combox; re-do everything if force is true.
66 void updateLayoutList(bool force);
67 /// Drop down the layout list
68 void openLayoutList();
69 /// Erase the layout list
70 void clearLayoutList();
86 toolbarItem & operator=(toolbarItem const & ti);
89 /// typedef to simplify things
90 typedef std::vector<toolbarItem> ToolbarList;
91 /// The list containing all the buttons
97 FL_OBJECT * bubble_timer;
101 /// Starting position
110 /// removes all toolbar buttons from the toolbar.