-inline Bullet::~Bullet()
-{}
-
-
-inline void Bullet::setCharacter(const int c)
-{
- if (c < MIN || c >= CHARMAX) {
- character = MIN;
- }
- else {
- character = c;
- }
- user_text = 0;
-#ifdef DEBUG_AS_DEFAULT
- testInvariant();
-#endif
-}
-
-
-inline void Bullet::setFont(const int f)
-{
- if (f < MIN || f >= FONTMAX) {
- font = MIN;
- }
- else {
- font = f;
- }
- user_text = 0;
-#ifdef DEBUG_AS_DEFAULT
- testInvariant();
-#endif
-}
-
-
-inline void Bullet::setSize(const int s)
-{
- if (s < MIN || s >= SIZEMAX) {
- size = MIN;
- }
- else {
- size = s;
- }
- user_text = 0;
-#ifdef DEBUG_AS_DEFAULT
- testInvariant();
-#endif
-}
-
-
-inline void Bullet::setText(const string & t)
-{
- font = character = size = MIN;
- user_text = 1;
- text = t;
-#ifdef DEBUG_AS_DEFAULT
- testInvariant();
-#endif
-}
-
-
-inline int Bullet::getCharacter() const
-{
- return character;
-}
-
-
-inline int Bullet::getFont() const
-{
- return font;
-}
-
-
-inline int Bullet::getSize() const
-{
- return size;
-}
-
-
-inline string Bullet::getText() const
-{
- return text;
-}
-
-
-inline Bullet & Bullet::operator = (const Bullet & b)
-{
-#ifdef DEBUG_AS_DEFAULT
- b.testInvariant();
-#endif
- font = b.font;
- character = b.character;
- size = b.size;
- user_text = b.user_text;
- text = b.text;
-#ifdef DEBUG_AS_DEFAULT
- this->testInvariant();
-#endif
- return *this;
-}
-
-
-inline const char * Bullet::c_str()
-{
- return this->getText().c_str();
-}
-
-
-/*-----------------End Bullet Member Functions-----------------*/
-
-/** The four LaTeX itemize environment default bullets
- */
-static Bullet const ITEMIZE_DEFAULTS[4] = { Bullet( 0, 8 ),//"\\(\\bullet\\)"
- Bullet( 0, 0 ),//"\\normalfont\\bfseries{--}"
- Bullet( 0, 6 ),//"\\(\\ast\\)"
- Bullet( 0,10 ) };//"\\(\\cdot\\)"