Back to index

texmacs  1.0.7.15
Classes | Functions
script_boxes.cpp File Reference
#include "Boxes/composite.hpp"
#include "Boxes/Composite/italic_correct.hpp"

Go to the source code of this file.

Classes

struct  lim_box_rep
struct  dummy_script_box_rep
struct  side_box_rep

Functions

static void finalize_left (path &lip, box sb)
static void finalize_right (path &rip, box sb)
static path descend_script (path ip1, int side)
static path descend_script (path ip1, path ip2, int side)
static bool test_script_border (path p, box sb)
box limit_box (path ip, box ref, box lo, box hi, font fn, bool glued)
box script_box (path ip, box b1, box b2, font fn)
box left_script_box (path ip, box ref, box b1, box b2, font fn, int level)
box right_script_box (path ip, box ref, box b1, box b2, font fn, int level)
box side_box (path ip, box ref, box l1, box l2, box r1, box r2, font fn, int l)

Function Documentation

static path descend_script ( path  ip1,
int  side 
) [static]

Definition at line 36 of file script_boxes.cpp.

                                    {
  if (is_accessible (ip1)) ip1= ip1->next;
  return descend_decode (ip1, side);
}

Here is the call graph for this function:

Here is the caller graph for this function:

static path descend_script ( path  ip1,
path  ip2,
int  side 
) [static]

Definition at line 42 of file script_boxes.cpp.

                                              {
  int i=1;
  if (is_accessible (ip2)) {
    if (is_decoration (ip1)) i=2;
    else {
      if ((side == 0) && path_inf (reverse (ip2), reverse (ip1))) i=2;
      if ((side == 1) && path_inf (reverse (ip1), reverse (ip2))) i=2;
    }
  }
  if (i==1) return descend_script (ip1, side);
  else return descend_script (ip2, side);
}

Here is the call graph for this function:

static void finalize_left ( path lip,
box  sb 
) [static]

Definition at line 20 of file script_boxes.cpp.

                                  {
  if (is_accessible (sb->ip)) {
    path new_lip= descend (sb->ip->next, 0);
    if (path_less (reverse (new_lip), reverse (lip))) lip= new_lip;
  }
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void finalize_right ( path rip,
box  sb 
) [static]

Definition at line 28 of file script_boxes.cpp.

                                   {
  if (is_accessible (sb->ip)) {
    path new_rip= descend (sb->ip->next, 1);
    if (path_less (reverse (rip), reverse (new_rip))) rip= new_rip;
  }
}

Here is the call graph for this function:

Here is the caller graph for this function:

box left_script_box ( path  ip,
box  ref,
box  b1,
box  b2,
font  fn,
int  level 
)

Definition at line 565 of file script_boxes.cpp.

                                                                       {
  return tm_new<side_box_rep> (ip, ref, b1, b2, box (), box (), fn, level);
}

Here is the caller graph for this function:

box limit_box ( path  ip,
box  ref,
box  lo,
box  hi,
font  fn,
bool  glued 
)

Definition at line 555 of file script_boxes.cpp.

                                                                  {
  return tm_new<lim_box_rep> (ip, ref, lo, hi, fn, glued);
}

Here is the caller graph for this function:

box right_script_box ( path  ip,
box  ref,
box  b1,
box  b2,
font  fn,
int  level 
)

Definition at line 570 of file script_boxes.cpp.

                                                                        {
  return tm_new<side_box_rep> (ip, ref, box (), box (), b1, b2, fn, level);
}

Here is the caller graph for this function:

box script_box ( path  ip,
box  b1,
box  b2,
font  fn 
)

Definition at line 560 of file script_boxes.cpp.

                                              {
  return tm_new<dummy_script_box_rep> (ip, b1, b2, fn);
}

Here is the caller graph for this function:

box side_box ( path  ip,
box  ref,
box  l1,
box  l2,
box  r1,
box  r2,
font  fn,
int  l 
)

Definition at line 575 of file script_boxes.cpp.

                                                                            {
  return tm_new<side_box_rep> (ip, ref, l1, l2, r1, r2, fn, l);
}

Here is the caller graph for this function:

static bool test_script_border ( path  p,
box  sb 
) [static]

Definition at line 56 of file script_boxes.cpp.

                                    {
  return
    is_accessible (sb->ip) &&
    (path_up (p) == path_up (reverse (sb->ip)));
}

Here is the call graph for this function:

Here is the caller graph for this function: