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
10 * Full author contact details are available in file CREDITS.
22 Bullet(int f = -1, int c = -1, int s = -1);
25 explicit Bullet(string const &);
28 void setCharacter(int);
34 void setText(string const &);
36 int getCharacter() const;
42 string const & getText() const;
44 Bullet & operator=(Bullet const &);
46 friend bool operator==(Bullet const &, Bullet const &);
48 #ifdef ENABLE_ASSERTIONS
50 void testInvariant() const;
54 This enum makes adding additional panels or changing panel sizes
55 easier. Since you only need change these values for all tests to
56 be correct for the new values.
58 Note: MAX means the size of the array so to test you need:
59 (x < MAX) *not* (x <= MAX)
73 void generateText() const;
75 static string const bulletSize(int);
77 static string const bulletEntry(int, int);
86 // size, character and font are array indices to access
87 // the predefined arrays of LaTeX equivalent strings.
89 /** flag indicates if user has control of text (1)
90 or if I can use it to generate strings (0)
93 mutable short user_text;
95 //NOTE: Arranging these four shorts above to be together
96 // like this should ensure they are in a single cache line
98 /** text may contain a user-defined LaTeX symbol command
99 or one generated internally from the font, character
107 bool operator!=(Bullet const & b1, Bullet const & b2)
114 Bullet const ITEMIZE_DEFAULTS[];
116 #endif /* BULLET_H_ */