class LyXView;
class ToolbarDefaults;
+class Dialogs;
/** The LyX GUI independent toolbar class
The GUI interface is implemented in the corresponding Toolbar_pimpl class.
class Toolbar {
public:
///
- Toolbar(LyXView * o, int x, int y, ToolbarDefaults const &);
+ Toolbar(LyXView * o, Dialogs & d,
+ int x, int y, ToolbarDefaults const &);
///
~Toolbar();
/// update the layout combox
void setLayout(string const & layout);
- /// Populate the layout combox; re-do everything if force is true.
- void updateLayoutList(bool force);
+ /**
+ * Populate the layout combox - returns whether we did a full
+ * update or not
+ */
+ bool updateLayoutList(int textclass);
/// Drop down the layout list
void openLayoutList();
/// Erase the layout list
friend struct Toolbar::Pimpl;
///
Pimpl * pimpl_;
+
+ /**
+ * The last textclass layout list in the layout choice selector
+ */
+ int last_textclass_;
};
#endif