Back to index

texmacs  1.0.7.15
Defines | Functions
concat_text.cpp File Reference
#include "concater.hpp"
#include "formatter.hpp"
#include "analyze.hpp"

Go to the source code of this file.

Defines

#define PRINT_SPACE(spc_type)
#define PRINT_CONDENSED_SPACE(spc_type)

Functions

lazy make_lazy_vstream (edit_env env, tree t, path ip, tree channel)

Define Documentation

#define PRINT_CONDENSED_SPACE (   spc_type)
Value:
switch (spc_type) { \
  case SPC_NONE: \
    break; \
  case SPC_SPACE: \
    print (spc); \
    break; \
  case SPC_PERIOD: \
    print (spc+ extra); \
    break; \
  case SPC_TINY: \
    print (space (spc->min>>4, spc->def>>4, spc->max>>4)); \
    break; \
  case SPC_HALF: \
    print (space (spc->min>>3, spc->def>>4, spc->max>>3)); \
    break; \
  case SPC_OPERATOR: \
    print (space (spc->min>>3, spc->def>>3, spc->max>>2)); \
    break; \
  case SPC_BIGOP: \
    print (space (spc->min>>2, spc->def>>2, spc->max>>2)); \
    break; \
  }

Definition at line 74 of file concat_text.cpp.

#define PRINT_SPACE (   spc_type)
Value:
switch (spc_type) { \
  case SPC_NONE: \
    break; \
  case SPC_SPACE: \
    print (spc); \
    break; \
  case SPC_DSPACE: \
    print (space (spc->min << 1, spc->def << 1, spc->max << 1)); \
    break; \
  case SPC_PERIOD: \
    print (spc+ extra); \
    break; \
  case SPC_TINY: \
    print (space (spc->min>>2, spc->def>>2, spc->max>>2)); \
    break; \
  case SPC_HALF: \
    print (space (spc->min>>1, spc->def>>2, spc->max>>1)); \
    break; \
  case SPC_OPERATOR: \
    print (space (spc->min>>1, spc->def>>1, spc->max)); \
    break; \
  case SPC_BIGOP: \
    break; \
  }

Definition at line 48 of file concat_text.cpp.


Function Documentation

lazy make_lazy_vstream ( edit_env  env,
tree  t,
path  ip,
tree  channel 
)

Definition at line 28 of file lazy_vstream.cpp.

                                                                {
  SI width, d1, d2, d3, d4, d5, d6, d7;
  env->get_page_pars (width, d1, d2, d3, d4, d5, d6, d7);
  lazy lz= make_lazy (env, t, ip);
  lz= lz->produce (LAZY_VSTREAM, make_format_vstream (width, 0, 0));
  lazy_vstream lwvs= (lazy_vstream) lz;
  lwvs->channel= channel;
  /* Direct modification of y1 and y2 limits should be avoided */
  box& tb= lwvs->l[0]->b;
  if (tb->y2 < env->fn->y2) tb->y2= env->fn->y2;
  box& bb= lwvs->l[N(lwvs->l)-1]->b;
  if (bb->y1 > env->fn->y1) bb->y1= env->fn->y1;
  /*************************************************************/
  return lwvs;
}

Here is the call graph for this function:

Here is the caller graph for this function: