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 "FontEnums.h"
18 #include "support/docstring.h"
27 Bullet(int f = -1, int c = -1, int s = -1);
30 explicit Bullet(docstring const &);
33 void setCharacter(int);
39 void setText(docstring const &);
41 int getCharacter() const;
47 FontSize getFontSize() const;
48 /// The text to be output
49 docstring const & getText() const;
50 /// The label displayed in the workarea
51 docstring const & getLabel() const;
53 Bullet & operator=(Bullet const &);
55 friend bool operator==(Bullet const &, Bullet const &);
57 static docstring const bulletEntry(int, int);
60 void testInvariant() const;
63 This enum makes adding additional panels or changing panel sizes
64 easier. Since you only need change these values for all tests to
65 be correct for the new values.
67 Note: MAX means the size of the array so to test you need:
68 (x < MAX) *not* (x <= MAX)
82 void generateText() const;
84 static docstring const bulletSize(int);
86 static FontSize bulletFontSize(int);
88 static docstring const bulletLabel(int, int);
97 // size, character and font are array indices to access
98 // the predefined arrays of LaTeX equivalent strings.
100 /** flag indicates if user has control of text (1)
101 or if I can use it to generate strings (0)
104 mutable short user_text;
106 //NOTE: Arranging these four shorts above to be together
107 // like this should ensure they are in a single cache line
109 /** text may contain a user-defined LaTeX symbol command
110 or one generated internally from the font, character
113 mutable docstring text;
114 mutable docstring label;
119 bool operator!=(Bullet const & b1, Bullet const & b2)
126 Bullet const ITEMIZE_DEFAULTS[];
131 #endif /* BULLET_H_ */