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 * ====================================================== */
28 Bullet(int f = -1, int c = -1, int s = -1);
31 explicit Bullet(string const &);
34 void setCharacter(int);
40 void setText(string const &);
42 int getCharacter() const;
48 string const & getText() const;
50 Bullet & operator=(Bullet const &);
52 friend bool operator==(Bullet const &, Bullet const &);
54 #ifdef ENABLE_ASSERTIONS
56 void testInvariant() const;
60 This enum makes adding additional panels or changing panel sizes
61 easier. Since you only need change these values for all tests to
62 be correct for the new values.
64 Note: MAX means the size of the array so to test you need:
65 (x < MAX) *not* (x <= MAX)
79 void generateText() const;
81 static string const bulletSize(short int);
83 static string const bulletEntry(short int, short int);
92 // size, character and font are array indices to access
93 // the predefined arrays of LaTeX equivalent strings.
95 /** flag indicates if user has control of text (1)
96 or if I can use it to generate strings (0)
99 mutable short user_text;
101 //NOTE: Arranging these four shorts above to be together
102 // like this should ensure they are in a single cache line
104 /** text may contain a user-defined LaTeX symbol command
105 or one generated internally from the font, character
113 bool operator!=(Bullet const & b1, Bullet const & b2)
120 Bullet const ITEMIZE_DEFAULTS[];
122 #endif /* BULLET_H_ */