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
9 * \author Jean-Marc Lasgouttes
10 * \author Angus Leeming
11 * \author Abdelrazak Younes
13 * Full author contact details are available in file CREDITS.
16 #ifndef LYX_LAYOUT_BOX_H
17 #define LYX_LAYOUT_BOX_H
19 #include "support/strfwd.h"
33 class LayoutItemDelegate;
35 class LayoutBox : public QComboBox
39 LayoutBox(QToolBar *, GuiView &);
41 /// select the right layout in the combobox.
42 void set(docstring const & layout);
43 /// Populate the layout combobox.
44 void updateContents(bool reset);
45 /// Add Item to Layout box according to sorting settings from preferences
46 void addItemSort(docstring const & item, docstring const & category,
47 bool sorted, bool sortedByCat, bool unknown);
53 bool eventFilter(QObject * o, QEvent * e);
55 QString const & filter() const;
59 void selected(int index);
61 void setIconSize(QSize size);
64 friend class LayoutItemDelegate;
69 } // namespace frontend
72 #endif // LYX_LAYOUT_BOX_H