3 * \file xforms/Toolbar_pimpl.h
4 * Copyright 1996-2001 Lars Gullik Bjønnes
5 * This file is part of LyX, the document processor.
6 * Licence details can be found in the file COPYING.
8 * \author Lars Gullik Bjønnes
10 * Full author contact details are available in file CREDITS
13 #ifndef TOOLBAR_PIMPL_H
14 #define TOOLBAR_PIMPL_H
17 #include "forms_fwd.h"
19 #include "frontends/Toolbar.h"
29 /** The LyX xforms toolbar class
31 struct Toolbar::Pimpl {
33 /// called when user selects a layout from combox
34 static void layoutSelectedCB(int, void *, Combox *);
36 /// create an empty toolbar
37 Pimpl(LyXView * o, int x, int y);
41 /// add a new button to the toolbar.
44 /// update the state of the icons
47 /// select the right layout in the combox
48 void setLayout(string const & layout);
49 /// Populate the layout combox; re-do everything if force is true.
50 void updateLayoutList(bool force);
51 /// Drop down the layout list
52 void openLayoutList();
53 /// Erase the layout list
54 void clearLayoutList();
55 /// the non-static version of layoutSelectedCB
56 void layoutSelected();
58 /// an item on the toolbar
65 toolbarItem & operator=(toolbarItem const & ti);
72 /// icon for this item
76 typedef std::vector<toolbarItem> ToolbarList;
78 /// The list containing all the buttons
79 ToolbarList toollist_;
86 /// x position of end of toolbar
88 /// y position of end of toolbar
92 #endif // TOOLBAR_PIMPL_H