Back to index

texmacs  1.0.7.15
Functions
line_item.cpp File Reference
#include "formatter.hpp"
#include "Format/line_item.hpp"

Go to the source code of this file.

Functions

tm_ostreamoperator<< (tm_ostream &out, line_item item)

Function Documentation

tm_ostream& operator<< ( tm_ostream out,
line_item  item 
)

Definition at line 43 of file line_item.cpp.

                                              {
  switch (item->type) {
  case OBSOLETE_ITEM: return out << "obsolete";
  case STD_ITEM: return out << "std";
  case MARKER_ITEM: return out << "marker";
  case STRING_ITEM: return out << item->b->get_leaf_string ();
  case LEFT_BRACKET_ITEM:
    return out << "left" << item->b->get_leaf_string ();
  case MIDDLE_BRACKET_ITEM:
    return out << "middle" << item->b->get_leaf_string ();
  case RIGHT_BRACKET_ITEM:
    return out << "right" << item->b->get_leaf_string ();
  case CONTROL_ITEM: return out << "control (" << item->t << ")";
  case FLOAT_ITEM:
    return out << "float (" << item->b->get_leaf_lazy () << ")";
  case LSUB_ITEM: return out << "lsub";
  case LSUP_ITEM: return out << "lsup";
  case RSUB_ITEM: return out << "rsub";
  case RSUP_ITEM: return out << "rsup";
  case GLUE_LEFT_ITEM: return out << "glue-left";
  case GLUE_RIGHT_ITEM: return out << "glue-right";
  case GLUE_BOTH_ITEM: return out << "glue-both";
  case GLUE_LSUBS_ITEM: return out << "glue-lsubs";
  case GLUE_RSUBS_ITEM: return out << "glue-rsubs";
  }
  return out << "unknown";
}