Back to index

texmacs  1.0.7.15
Functions
page_item.cpp File Reference
#include "Format/page_item.hpp"
#include "Boxes/construct.hpp"

Go to the source code of this file.

Functions

page_item copy (page_item l)
tm_ostreamoperator<< (tm_ostream &out, page_item item)

Function Documentation

Definition at line 39 of file page_item.cpp.

                             {
  return page_item (l->type, l->b, l->spc, l->penalty,
                  l->fl, l->nr_cols, l->t); }
tm_ostream& operator<< ( tm_ostream out,
page_item  item 
)

Definition at line 44 of file page_item.cpp.

                                              {
  switch (item->type) {
  case PAGE_LINE_ITEM:
    return out << "line (" << item->b << ")";
  case PAGE_HIDDEN_ITEM:
    return out << "hidden (" << item->b << ")";
  case PAGE_CONTROL_ITEM:
    return out << "control (" << item->t << ")";
  }
  return out << "unknown";
}