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"
25 /** The LyX xforms toolbar class
27 struct Toolbar::Pimpl {
29 /// create an empty toolbar
30 Pimpl(LyXView * o, int x, int y);
34 /// add a new button to the toolbar.
37 /// update the state of the icons
40 /// select the right layout in the combox
41 void setLayout(string const & layout);
42 /// Populate the layout combox; re-do everything if force is true.
43 void updateLayoutList(bool force);
44 /// Drop down the layout list
45 void openLayoutList();
46 /// Erase the layout list
47 void clearLayoutList();
49 void layoutSelected();
51 /// an item on the toolbar
58 toolbarItem & operator=(toolbarItem const & ti);
65 /// icon for this item
69 typedef std::vector<toolbarItem> ToolbarList;
71 /// The list containing all the buttons
72 ToolbarList toollist_;
79 /// x position of end of toolbar
81 /// y position of end of toolbar
85 #endif // TOOLBAR_PIMPL_H