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"
31 class LayoutItemDelegate;
33 class LayoutBox : public QComboBox
40 /// select the right layout in the combobox.
41 void set(docstring const & layout);
42 /// Populate the layout combobox.
43 void updateContents(bool reset);
44 /// Add Item to Layout box according to sorting settings from preferences
45 void addItemSort(docstring const & item, docstring const & category,
46 bool sorted, bool sortedByCat, bool unknown);
52 bool eventFilter(QObject * o, QEvent * e);
54 QString const & filter() const;
58 void selected(int index);
60 void setIconSize(QSize size);
63 friend class LayoutItemDelegate;
68 } // namespace frontend
71 #endif // LYX_LAYOUT_BOX_H