3 * \file ToolbarBackend.h
4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
9 * Full author contact details are available in file CREDITS
12 #ifndef TOOLBAR_BACKEND_H
13 #define TOOLBAR_BACKEND_H
23 class ToolbarBackend {
25 /// The special toolbar actions
27 /// adds space between buttons in the toolbar
29 /// a special combox insead of a button
31 /// begin a new line of button (not working)
36 typedef std::pair<int, string> Item;
39 typedef std::vector<std::pair<int, string> > Items;
41 typedef Items::iterator iterator;
43 typedef Items::const_iterator const_iterator;
51 const_iterator begin() const {
59 const_iterator end() const {
65 /// return a full path of an XPM for the given action
66 static string const getIcon(int action);
69 /// add the given lfun with tooltip if relevant
70 void add(int, string const & tooltip = string());
71 /// add the given lfun with tooltip if relevant
72 void add(string const &, string const & tooltip);
77 /// The global instance
78 extern ToolbarBackend toolbarbackend;
81 #endif // TOOLBAR_BACKEND_H