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
39 /// select the right layout in the combobox.
40 void set(docstring const & layout);
41 /// Populate the layout combobox.
42 void updateContents(bool reset);
43 /// Add Item to Layout box according to sorting settings from preferences
44 void addItemSort(docstring const & item, docstring const & category,
45 bool sorted, bool sortedByCat, bool unknown);
51 bool eventFilter(QObject * o, QEvent * e);
53 QString const & filter() const;
57 void selected(int index);
59 void setIconSize(QSize size);
62 friend class LayoutItemDelegate;
67 } // namespace frontend
70 #endif // LYX_LAYOUT_BOX_H