3 * \file XFormsToolbar.h
4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
7 * \author Lars Gullik Bjønnes
8 * \author Jean-Marc Lasgouttes
10 * Full author contact details are available in file CREDITS.
13 #ifndef XFORMSTOOLBAR_H
14 #define XFROMSTOOLBAR_H
17 #include "forms_fwd.h"
19 #include "frontends/Toolbar.h"
20 #include "ToolbarBackend.h"
25 /** The LyX xforms toolbar class
27 class XFormsToolbar : public Toolbar {
29 /// create an empty toolbar
30 XFormsToolbar(LyXView * o, int x, int y);
36 void add(ToolbarBackend::Toolbar const & tb);
38 /// add an item to a toolbar
39 void add(FuncRequest const &, std::string const & tooltip);
41 /// display toolbar, not implemented
42 void displayToolbar(ToolbarBackend::Toolbar const & tb, bool show);
44 /// update the state of the icons
47 /// select the right layout in the combox
48 void setLayout(std::string const & layout);
49 /// Populate the layout combox.
50 void updateLayoutList();
51 /// Drop down the layout list
52 void openLayoutList();
53 /// Erase the layout list
54 void clearLayoutList();
56 void layoutSelected();
58 /// an item on the toolbar
65 toolbarItem & operator=(toolbarItem const & ti);
72 /// icon for this item
76 typedef std::vector<FuncRequest> Funcs;
80 typedef std::vector<toolbarItem> ToolbarList;
82 /// The list containing all the buttons
83 ToolbarList toollist_;
90 /// x position of end of toolbar
92 /// y position of end of toolbar