Back to index

texmacs  1.0.7.15
Functions
edit_footer.cpp File Reference
#include "edit_interface.hpp"
#include "convert.hpp"
#include "connect.hpp"
#include "dictionary.hpp"

Go to the source code of this file.

Functions

static string get_accent_type (string s)
string as_symbol (tree t)
static tree get_with_text (tree t)
 TM_DEBUG (int concrete_count=0;int abstract_count=0;int box_count=0;int event_count=0;int widget_count=0;int line_item_count=0;int list_count=0;int command_count=0;int observer_count=0;int iterator_count=0;int function_count=0;int instance_count=0;) void edit_interface_rep

Function Documentation

string as_symbol ( tree  t) [inline]

Definition at line 128 of file edit_footer.cpp.

                   {
  string s= as_string (t);
  if (N(s)<=1) return s;
  else return "<" * s * ">";
}

Here is the call graph for this function:

Here is the caller graph for this function:

static string get_accent_type ( string  s) [static]

Definition at line 120 of file edit_footer.cpp.

                           {
  if (s == "^") return "hat";
  if (s == "~") return "tilde";
  if ((N(s)>=2) && (s[0]=='<') && (s[N(s)-1]=='>')) return s (1, N(s)-1);
  return "unknown accent";
}

Here is the call graph for this function:

Here is the caller graph for this function:

static tree get_with_text ( tree  t) [static]

Definition at line 135 of file edit_footer.cpp.

                       {
  int i, n=N(t), k=(n-1)/2;
  if ((n&1)!=1) return "";
  if (is_func (t[n-1], GRAPHICS)) return "";
  tree s= concat ();
  for (i=0; i<k; i++)
    if (is_atomic (t[2*i]) && (t[2*i]!="") && is_atomic (t[2*i+1])) {
      if (i>0) s << " ";
      string var= t[2*i]->label;
      if ((var!=MODE) && (var!=COLOR) && (var!=PAR_MODE) &&
         (var!=LANGUAGE) && (var!=FONT) &&
         (var!=FONT_FAMILY) && (var!=FONT_SHAPE) && (var!=FONT_SERIES) &&
         (var!=MATH_LANGUAGE) && (var!=MATH_FONT) &&
         (var!=MATH_FONT_FAMILY) && (var!=MATH_FONT_SHAPE) &&
         (var!=MATH_FONT_SERIES) &&
         (var!=PROG_LANGUAGE) && (var!=PROG_FONT) &&
         (var!=PROG_FONT_FAMILY) && (var!=PROG_FONT_SHAPE) &&
         (var!=PROG_FONT_SERIES) &&
         (var!=PROG_SESSION))
       s << (var * "=" * t[2*i+1]->label);
      else s << t[2*i+1]->label;
    }
  return s;
}

Here is the call graph for this function:

Here is the caller graph for this function:

TM_DEBUG ( int  concrete_count = 0; int abstract_count = 0; int box_count = 0; int event_count = 0; int widget_count = 0; int line_item_count= 0; int list_count = 0; int command_count = 0; int observer_count = 0; int iterator_count = 0; int function_count = 0; int instance_count = 0;)

Definition at line 436 of file edit_footer.cpp.

                                {
  TM_DEBUG
  (
    cout << "--------------------------------------------------------------\n";
    cout << "concrete  " << concrete_count << "\n";
    cout << "abstract  " << abstract_count << "\n";
    cout << "widget    " << widget_count << "\n";
    cout << "box       " << box_count << "\n";
    cout << "event     " << event_count << "\n";
    cout << "line item " << line_item_count << "\n";
    cout << "list      " << list_count << "\n";
    cout << "command   " << command_count << "\n";
    cout << "observer  " << observer_count << "\n";
    cout << "iterator  " << iterator_count << "\n";
    cout << "function  " << function_count << "\n";
    cout << "instance  " << instance_count << "\n";
  )

  if ((message_l == "") && (message_r == "")) {
    last_l= ""; last_r= "";
    tree st= subtree (et, path_up (tp));
    if (set_latex_footer (st)) return;
    if (set_hybrid_footer (st)) return;
    set_left_footer();
    set_right_footer();
  }
  else {
    if (message_l == "") set_left_footer ();
    else set_left_footer (message_l);
    if (message_r == "") set_right_footer ();
    else set_right_footer (message_r);
    message_l= message_r= "";
  }
}

Here is the call graph for this function:

Here is the caller graph for this function: