3 * \file BulletsModule.h
4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
9 * Full author contact details are available in file CREDITS
12 #ifndef QBULLETSMODULE_H
13 #define QBULLETSMODULE_H
16 #include "ui/BulletsModuleBase.h"
20 #include <boost/array.hpp>
26 class BulletsModule : public BulletsModuleBase {
29 BulletsModule(QWidget* parent = 0, const char* name = 0,
34 void setBullet(int level, const Bullet & bullet);
36 Bullet getBullet(int level);
40 void standard(int row, int col);
42 void maths(int row, int col);
44 void ding1(int row, int col);
46 void ding2(int row, int col);
48 void ding3(int row, int col);
50 void ding4(int row, int col);
51 /// set custom (text) bullet
54 void setActive(QListViewItem*);
56 void setSize(int size);
59 /// get the pixmap that matches font/character
60 QPixmap getPixmap(int font, int character);
61 /// get the qlistviewitem of level
62 QListViewItem * getItem(int level);
64 void setActive(int level);
65 /// set bullet for standard font/character
66 void setBullet(int font, int character);
67 /// set bullet for custom text
68 void setBullet(string text);
69 /// pointer to the bullet of the level we're at
70 Bullet * activebullet_;
71 /// qlistviewitem of the level we're at
72 QListViewItem * activeitem_;
74 boost::array<Bullet,4> bullets_;
76 QBrowseBox * standard_;
84 #endif // BULLETSMODULE_H