Back to index

texmacs  1.0.7.15
Classes | Enumerations | Functions | Variables
formatter.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

struct  format_rep
struct  format
struct  lazy_rep
struct  lazy

Enumerations

enum  format_type {
  FORMAT_NONE, FORMAT_CELL, FORMAT_WIDTH, FORMAT_VSTREAM,
  QUERY_WIDTH, QUERY_VSTREAM_WIDTH
}
enum  lazy_type {
  LAZY_DOCUMENT, LAZY_PARAGRAPH, LAZY_SURROUND, LAZY_CANVAS,
  LAZY_ORNAMENT, LAZY_CONCAT, LAZY_TABLE, LAZY_ATOM,
  LAZY_BOX, LAZY_HSTREAM, LAZY_HDONE, LAZY_VSTREAM,
  LAZY_VDONE, LAZY_PAGES
}

Functions

 ABSTRACT_NULL_CODE (format)
format make_format_none ()
format make_format_cell (SI width, int vpos, SI depth, SI height)
format make_format_width (SI width)
 ABSTRACT_NULL_CODE (lazy)
lazy make_lazy (edit_env env, tree t, path ip)
lazy make_lazy_box (box b)

Variables

int format_count
int lazy_count

Enumeration Type Documentation

Enumerator:
FORMAT_NONE 
FORMAT_CELL 
FORMAT_WIDTH 
FORMAT_VSTREAM 
QUERY_WIDTH 
QUERY_VSTREAM_WIDTH 

Definition at line 19 of file formatter.hpp.

enum lazy_type
Enumerator:
LAZY_DOCUMENT 
LAZY_PARAGRAPH 
LAZY_SURROUND 
LAZY_CANVAS 
LAZY_ORNAMENT 
LAZY_CONCAT 
LAZY_TABLE 
LAZY_ATOM 
LAZY_BOX 
LAZY_HSTREAM 
LAZY_HDONE 
LAZY_VSTREAM 
LAZY_VDONE 
LAZY_PAGES 

Definition at line 24 of file formatter.hpp.


Function Documentation

format make_format_cell ( SI  width,
int  vpos,
SI  depth,
SI  height 
)

Definition at line 35 of file formatter.cpp.

                                                           {
  return tm_new<format_cell_rep> (width, vpos, depth, height);
}

Here is the caller graph for this function:

Definition at line 25 of file formatter.cpp.

                    {
  return tm_new<format_none_rep> ();
}

Here is the caller graph for this function:

Definition at line 30 of file formatter.cpp.

                             {
  return tm_new<format_width_rep> (width);
}

Here is the caller graph for this function:

lazy make_lazy ( edit_env  env,
tree  t,
path  ip 
)

Definition at line 478 of file lazy_typeset.cpp.

                                          {
  /*
  if (is_accessible (ip)) {
    if (obtain_ip (t) != ip)
      cout << "TeXmacs] Wrong ip: " << t << "\n";
  }
  */

  if (!is_accessible (ip)) {
    path ip2= obtain_ip (t);
    if (ip2 != path (DETACHED))
      ip= ip2;
  }

  if (env->hl_lan != 0)
    env->lan->highlight (t);

  switch (L(t)) {
  case DOCUMENT:
    return lazy_document (env, t, ip);
  case SURROUND:
    return lazy_surround (env, t, ip);
    //case HIDDEN:
    //return make_lazy_hidden (env, t, ip);
  case DATOMS:
    return make_lazy_formatting (env, t, ip, ATOM_DECORATIONS);
  case DLINES:
    return make_lazy_formatting (env, t, ip, LINE_DECORATIONS);
  case DPAGES:
    return make_lazy_formatting (env, t, ip, PAGE_DECORATIONS);
  case TFORMAT:
    return make_lazy_formatting (env, t, ip, CELL_FORMAT);
  case TABLE:
    return make_lazy_table (env, t, ip);
  case WITH:
    return make_lazy_with (env, t, ip);
  case ARG:
    return make_lazy_argument (env, t, ip);
  case MARK:
    return make_lazy_mark (env, t, ip);
  case EXPAND_AS:
    return make_lazy_expand_as (env, t, ip);
  case EVAL:
  case QUASI:
    return make_lazy_eval (env, t, ip);
  case COMPOUND:
    return make_lazy_compound (env, t, ip);
  case EXTERN:
    return make_lazy_rewrite (env, t, ip);
  case INCLUDE:
    return make_lazy_rewrite (env, t, ip);
  case STYLE_ONLY:
  case VAR_STYLE_ONLY:
  case ACTIVE:
  case VAR_ACTIVE:
    return make_lazy_compound (env, t, ip);
  case INACTIVE:
    return make_lazy_auto (env, t, ip, inactive_m);
  case VAR_INACTIVE:
    return make_lazy_auto (env, t, ip, var_inactive_m);
  case REWRITE_INACTIVE:
    return make_lazy_rewrite (env, t, ip);
  case LOCUS:
    return make_lazy_locus (env, t, ip);
  case HLINK:
  case ACTION:
    return make_lazy_compound (env, t, ip);
  case CANVAS:
    return make_lazy_canvas (env, t, ip);
  case ORNAMENT:
    return make_lazy_ornament (env, t, ip);
  default:
    if (L(t) < START_EXTENSIONS) return make_lazy_paragraph (env, t, ip);
    else return make_lazy_compound (env, t, ip);
  }
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 116 of file formatter.cpp.

                      {
  return tm_new<lazy_box_rep> (b);
}

Here is the caller graph for this function:


Variable Documentation

Definition at line 17 of file formatter.cpp.

Definition at line 18 of file formatter.cpp.