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.
16 #include "support/docstring.h"
25 Bullet(int f = -1, int c = -1, int s = -1);
28 explicit Bullet(docstring const &);
31 void setCharacter(int);
37 void setText(docstring const &);
39 int getCharacter() const;
45 docstring const & getText() const;
47 Bullet & operator=(Bullet const &);
49 friend bool operator==(Bullet const &, Bullet const &);
51 static docstring const bulletEntry(int, int);
54 void testInvariant() const;
57 This enum makes adding additional panels or changing panel sizes
58 easier. Since you only need change these values for all tests to
59 be correct for the new values.
61 Note: MAX means the size of the array so to test you need:
62 (x < MAX) *not* (x <= MAX)
76 void generateText() const;
78 static docstring const bulletSize(int);
87 // size, character and font are array indices to access
88 // the predefined arrays of LaTeX equivalent strings.
90 /** flag indicates if user has control of text (1)
91 or if I can use it to generate strings (0)
94 mutable short user_text;
96 //NOTE: Arranging these four shorts above to be together
97 // like this should ensure they are in a single cache line
99 /** text may contain a user-defined LaTeX symbol command
100 or one generated internally from the font, character
103 mutable docstring text;
108 bool operator!=(Bullet const & b1, Bullet const & b2)
115 Bullet const ITEMIZE_DEFAULTS[];
120 #endif /* BULLET_H_ */