Back to index

texmacs  1.0.7.15
Functions | Variables
bridge.cpp File Reference
#include "bridge.hpp"
#include "Boxes/construct.hpp"

Go to the source code of this file.

Functions

bridge bridge_document (typesetter, tree, path)
bridge bridge_surround (typesetter, tree, path)
bridge bridge_hidden (typesetter, tree, path)
bridge bridge_formatting (typesetter, tree, path, string)
bridge bridge_with (typesetter, tree, path)
bridge bridge_rewrite (typesetter, tree, path)
bridge bridge_argument (typesetter, tree, path)
bridge bridge_default (typesetter, tree, path)
bridge bridge_compound (typesetter, tree, path)
bridge bridge_mark (typesetter, tree, path)
bridge bridge_expand_as (typesetter, tree, path)
bridge bridge_eval (typesetter, tree, path)
bridge bridge_auto (typesetter, tree, path, tree, bool)
bridge bridge_locus (typesetter, tree, path)
bridge bridge_ornament (typesetter, tree, path)
bridge bridge_canvas (typesetter, tree, path)
bridge make_inactive_bridge (typesetter ttt, tree st, path ip)
bridge make_bridge (typesetter ttt, tree st, path ip)
void replace_bridge (bridge &br, tree st, path ip)
void replace_bridge (bridge &br, path p, tree oldt, tree newt, path ip)
tm_ostreamoperator<< (tm_ostream &out, bridge br)

Variables

bridge nil_bridge
static tree inactive_auto (MACRO,"x", tree(REWRITE_INACTIVE, tree(ARG,"x"),"recurse*"))
static tree error_m (MACRO,"x", tree(REWRITE_INACTIVE, tree(ARG,"x","0"),"error*"))
static tree inactive_m (MACRO,"x", tree(REWRITE_INACTIVE, tree(ARG,"x","0"),"once*"))
static tree var_inactive_m (MACRO,"x", tree(REWRITE_INACTIVE, tree(ARG,"x","0"),"recurse*"))
tree the_et

Function Documentation

Definition at line 55 of file bridge_argument.cpp.

                                                   {
  return tm_new<bridge_argument_rep> (ttt, st, ip);
}

Here is the caller graph for this function:

bridge bridge_auto ( typesetter  ,
tree  ,
path  ,
tree  ,
bool   
)

Definition at line 59 of file bridge_auto.cpp.

                                                                    {
  return tm_new<bridge_auto_rep> (ttt, st, ip, f, border);
}

Here is the caller graph for this function:

Definition at line 212 of file bridge_gui.cpp.

                                                 {
  return tm_new<bridge_canvas_rep> (ttt, st, ip);
}

Here is the caller graph for this function:

Definition at line 57 of file bridge_compound.cpp.

                                                   {
  return tm_new<bridge_compound_rep> (ttt, st, ip);
}

Here is the caller graph for this function:

Definition at line 27 of file bridge_default.cpp.

                                                  {
  return tm_new<bridge_default_rep> (ttt, st, ip);
}

Here is the caller graph for this function:

Definition at line 60 of file bridge_document.cpp.

                                                   {
  return tm_new<bridge_document_rep> (ttt, st, ip);
}

Here is the caller graph for this function:

Definition at line 45 of file bridge_eval.cpp.

                                               {
  return tm_new<bridge_eval_rep> (ttt, st, ip);
}

Here is the caller graph for this function:

Definition at line 46 of file bridge_expand_as.cpp.

                                                    {
  return tm_new<bridge_expand_as_rep> (ttt, st, ip);
}

Here is the caller graph for this function:

Definition at line 50 of file bridge_formatting.cpp.

                                                               {
  return tm_new<bridge_formatting_rep> (ttt, st, ip, v);
}

Here is the caller graph for this function:

Definition at line 32 of file bridge_hidden.cpp.

                                                 {
  //cout << "Construct " << st << "\n";
  return tm_new<bridge_hidden_rep> (ttt, st, ip);
}

Here is the caller graph for this function:

Definition at line 48 of file bridge_locus.cpp.

                                                {
  return tm_new<bridge_locus_rep> (ttt, st, ip);
}

Here is the caller graph for this function:

Definition at line 46 of file bridge_mark.cpp.

                                               {
  return tm_new<bridge_mark_rep> (ttt, st, ip);
}

Here is the caller graph for this function:

Definition at line 260 of file bridge_gui.cpp.

                                                   {
  return tm_new<bridge_ornament_rep> (ttt, st, ip);
}

Here is the caller graph for this function:

Definition at line 43 of file bridge_rewrite.cpp.

                                                  {
  return tm_new<bridge_rewrite_rep> (ttt, st, ip);
}

Here is the caller graph for this function:

Definition at line 56 of file bridge_surround.cpp.

                                                   {
  return tm_new<bridge_surround_rep> (ttt, st, ip);
}

Here is the caller graph for this function:

Definition at line 48 of file bridge_with.cpp.

                                               {
  return tm_new<bridge_with_rep> (ttt, st, ip);
}

Here is the caller graph for this function:

bridge make_bridge ( typesetter  ttt,
tree  st,
path  ip 
)

Definition at line 59 of file bridge.cpp.

                                               {
  // cout << "Make bridge " << st << ", " << ip << LF;
  // cout << "Preamble mode= " << ttt->env->preamble << LF;
  if (ttt->env->preamble)
    return make_inactive_bridge (ttt, st, ip);
  switch (L(st)) {
  case ERROR:
    return bridge_auto (ttt, st, ip, error_m, true);
  case DOCUMENT:
    return bridge_document (ttt, st, ip);
  case SURROUND:
    return bridge_surround (ttt, st, ip);
  case HIDDEN:
    return bridge_hidden (ttt, st, ip);
  case DATOMS:
    return bridge_formatting (ttt, st, ip, ATOM_DECORATIONS);
  case DLINES:
    return bridge_formatting (ttt, st, ip, LINE_DECORATIONS);
  case DPAGES:
    return bridge_formatting (ttt, st, ip, PAGE_DECORATIONS);
  case TFORMAT:
    return bridge_formatting (ttt, st, ip, CELL_FORMAT);
  case WITH:
    return bridge_with (ttt, st, ip);
  case COMPOUND:
    return bridge_compound (ttt, st, ip);
  case ARG:
    return bridge_argument (ttt, st, ip);
  case MARK:
    return bridge_mark (ttt, st, ip);
  case EXPAND_AS:
    return bridge_expand_as (ttt, st, ip);
  case EVAL:
  case QUASI:
    return bridge_eval (ttt, st, ip);
  case EXTERN:
    return bridge_rewrite (ttt, st, ip);
  case INCLUDE:
    return bridge_rewrite (ttt, st, ip);
  case STYLE_ONLY:
  case VAR_STYLE_ONLY:
  case ACTIVE:
  case VAR_ACTIVE:
    return bridge_compound (ttt, st, ip);
  case INACTIVE:
    return bridge_auto (ttt, st, ip, inactive_m, true);
  case VAR_INACTIVE:
    return bridge_auto (ttt, st, ip, var_inactive_m, true);
  case REWRITE_INACTIVE:
    return bridge_rewrite (ttt, st, ip);
  case LOCUS:
    return bridge_locus (ttt, st, ip);
  case HLINK:
  case ACTION:
    return bridge_compound (ttt, st, ip);
  case CANVAS:
    return bridge_canvas (ttt, st, ip);
  case ORNAMENT:
    return bridge_ornament (ttt, st, ip);
  default:
    if (L(st) < START_EXTENSIONS) return bridge_default (ttt, st, ip);
    else return bridge_compound (ttt, st, ip);
  }
}

Here is the call graph for this function:

Here is the caller graph for this function:

bridge make_inactive_bridge ( typesetter  ttt,
tree  st,
path  ip 
)

Definition at line 52 of file bridge.cpp.

                                                        {
  if (is_document (st))
    return bridge_document (ttt, st, ip);
  else return bridge_auto (ttt, st, ip, inactive_auto, false);
}

Here is the call graph for this function:

Here is the caller graph for this function:

tm_ostream& operator<< ( tm_ostream out,
bridge  br 
)

Definition at line 154 of file bridge.cpp.

                                         {
  return out << "bridge [" << br->st << ", " << br->ip << "]";
}
void replace_bridge ( bridge br,
tree  st,
path  ip 
)

Definition at line 125 of file bridge.cpp.

                                              {
  bridge new_br= make_bridge (br->ttt, st, ip);
  new_br->changes= br->changes;
  br= new_br;
}

Here is the call graph for this function:

Here is the caller graph for this function:

void replace_bridge ( bridge br,
path  p,
tree  oldt,
tree  newt,
path  ip 
)

Definition at line 132 of file bridge.cpp.

                                                                   {
  if (oldt == newt) return;
  if (is_atomic (newt) || L(oldt) != L(newt) || N(oldt) != N(newt)) {
    if (is_nil (p)) replace_bridge (br, newt, ip);
    else br->notify_assign (p, newt);
  }
  else
    for (int i=0; i<N(newt); i++)
      replace_bridge (br, p * i, oldt[i], newt[i], ip);
}

Here is the call graph for this function:


Variable Documentation

tree error_m(MACRO,"x", tree(REWRITE_INACTIVE, tree(ARG,"x","0"),"error*")) [static]
tree inactive_auto(MACRO,"x", tree(REWRITE_INACTIVE, tree(ARG,"x"),"recurse*")) [static]
tree inactive_m(MACRO,"x", tree(REWRITE_INACTIVE, tree(ARG,"x","0"),"once*")) [static]

Definition at line 32 of file bridge.cpp.

Definition at line 18 of file new_document.cpp.

tree var_inactive_m(MACRO,"x", tree(REWRITE_INACTIVE, tree(ARG,"x","0"),"recurse*")) [static]