2 /* This file is part of
3 * ======================================================
5 * LyX, The Document Processor
6 * Copyright 1995 Matthias Ettrich
7 * Copyright 1995-2000 The LyX Team.
9 * This file is Copyright 1996-2000
12 * ====================================================== */
24 class ToolbarDefaults;
26 /** The LyX GUI independent toolbar class
27 The GUI interface is implemented in the corresponding Toolbar_pimpl class.
32 Toolbar(LyXView * o, int x, int y, ToolbarDefaults const &);
37 /// (re)sets the toolbar
38 void set(bool doingmain = false);
40 /** this is to be the entry point to the toolbar
41 frame, where you can change the toolbar realtime. */
43 /// add a new button to the toolbar.
44 void add(int , bool doclean = true);
45 /// name of func instead of kb_action
46 void add(string const & , bool doclean = true);
47 /// invokes the n'th icon in the toolbar
49 /// activates the toolbar
51 /// deactivates the toolbar
53 /// update the state of the icons
56 /// update the layout combox
57 void setLayout(int layout);
58 /// Populate the layout combox; re-do everything if force is true.
59 void updateLayoutList(bool force);
60 /// Drop down the layout list
61 void openLayoutList();
62 /// Erase the layout list
63 void clearLayoutList();
68 friend struct Toolbar::Pimpl;