2 /* This file is part of
3 * ======================================================
5 * LyX, The Document Processor
6 * Copyright 1995 Matthias Ettrich
7 * Copyright 1995-2001 The LyX Team.
9 * This file is Copyright 1996-2001
12 * ====================================================== */
24 class ToolbarDefaults;
27 /** The LyX GUI independent toolbar class
28 The GUI interface is implemented in the corresponding Toolbar_pimpl class.
33 Toolbar(LyXView * o, Dialogs & d,
34 int x, int y, ToolbarDefaults const &);
39 /// (re)sets the toolbar
40 void set(bool doingmain = false);
42 /** this is to be the entry point to the toolbar
43 frame, where you can change the toolbar realtime. */
45 /// add a new button to the toolbar.
46 void add(int , bool doclean = true);
47 /// name of func instead of kb_action
48 void add(string const & , bool doclean = true);
49 /// invokes the n'th icon in the toolbar
51 /// activates the toolbar
53 /// deactivates the toolbar
55 /// update the state of the icons
58 /// update the layout combox
59 void setLayout(string const & layout);
61 * Populate the layout combox - returns whether we did a full
64 bool updateLayoutList(int textclass);
65 /// Drop down the layout list
66 void openLayoutList();
67 /// Erase the layout list
68 void clearLayoutList();
70 /// Compaq cxx 6.5 requires this to be public
74 friend struct Toolbar::Pimpl;
79 * The last textclass layout list in the layout choice selector