Back to index

texmacs  1.0.7.15
Classes | Defines | Functions | Variables
line_item.hpp File Reference
#include "boxes.hpp"
#include "env.hpp"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  line_item_rep
class  line_item

Defines

#define OBSOLETE_ITEM   0
#define STD_ITEM   1
#define MARKER_ITEM   2
#define STRING_ITEM   3
#define LEFT_BRACKET_ITEM   4
#define MIDDLE_BRACKET_ITEM   5
#define RIGHT_BRACKET_ITEM   6
#define CONTROL_ITEM   7
#define FLOAT_ITEM   8
#define LSUB_ITEM   9
#define LSUP_ITEM   11
#define RSUB_ITEM   12
#define RSUP_ITEM   13
#define GLUE_LSUBS_ITEM   14
#define GLUE_RSUBS_ITEM   15
#define GLUE_LEFT_ITEM   16
#define GLUE_RIGHT_ITEM   17
#define GLUE_BOTH_ITEM   18

Functions

 CONCRETE_NULL_CODE (line_item)
tm_ostreamoperator<< (tm_ostream &out, line_item item)

Variables

int line_item_count

Define Documentation

#define CONTROL_ITEM   7

Definition at line 27 of file line_item.hpp.

#define FLOAT_ITEM   8

Definition at line 28 of file line_item.hpp.

#define GLUE_BOTH_ITEM   18

Definition at line 38 of file line_item.hpp.

#define GLUE_LEFT_ITEM   16

Definition at line 36 of file line_item.hpp.

#define GLUE_LSUBS_ITEM   14

Definition at line 34 of file line_item.hpp.

#define GLUE_RIGHT_ITEM   17

Definition at line 37 of file line_item.hpp.

#define GLUE_RSUBS_ITEM   15

Definition at line 35 of file line_item.hpp.

#define LEFT_BRACKET_ITEM   4

Definition at line 24 of file line_item.hpp.

#define LSUB_ITEM   9

Definition at line 30 of file line_item.hpp.

#define LSUP_ITEM   11

Definition at line 31 of file line_item.hpp.

#define MARKER_ITEM   2

Definition at line 22 of file line_item.hpp.

#define MIDDLE_BRACKET_ITEM   5

Definition at line 25 of file line_item.hpp.

#define OBSOLETE_ITEM   0

Definition at line 20 of file line_item.hpp.

#define RIGHT_BRACKET_ITEM   6

Definition at line 26 of file line_item.hpp.

#define RSUB_ITEM   12

Definition at line 32 of file line_item.hpp.

#define RSUP_ITEM   13

Definition at line 33 of file line_item.hpp.

#define STD_ITEM   1

Definition at line 21 of file line_item.hpp.

#define STRING_ITEM   3

Definition at line 23 of file line_item.hpp.


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";
}

Variable Documentation