2 /* This is the bullet class definition file.
4 * ======================================================
6 * LyX, The Document Processor
8 * Copyright 1995 Matthias Ettrich
9 * Copyright 1995-2001 The LyX Team.
11 * This file Copyright 1997-1999
13 * ====================================================== */
24 Bullet(int f = -1, int c = -1, int s = -1);
27 explicit Bullet(string const &);
30 void setCharacter(int);
36 void setText(string const &);
38 int getCharacter() const;
44 string const & getText() const;
46 Bullet & operator=(Bullet const &);
48 friend bool operator==(Bullet const &, Bullet const &);
50 #ifdef ENABLE_ASSERTIONS
52 void testInvariant() const;
56 This enum makes adding additional panels or changing panel sizes
57 easier. Since you only need change these values for all tests to
58 be correct for the new values.
60 Note: MAX means the size of the array so to test you need:
61 (x < MAX) *not* (x <= MAX)
75 void generateText() const;
77 static string const bulletSize(int);
79 static string const bulletEntry(int, int);
88 // size, character and font are array indices to access
89 // the predefined arrays of LaTeX equivalent strings.
91 /** flag indicates if user has control of text (1)
92 or if I can use it to generate strings (0)
95 mutable short user_text;
97 //NOTE: Arranging these four shorts above to be together
98 // like this should ensure they are in a single cache line
100 /** text may contain a user-defined LaTeX symbol command
101 or one generated internally from the font, character
109 bool operator!=(Bullet const & b1, Bullet const & b2)
116 Bullet const ITEMIZE_DEFAULTS[];
118 #endif /* BULLET_H_ */