Back to index

texmacs  1.0.7.15
Public Member Functions | Public Attributes | Protected Attributes
tm_server_rep Class Reference

#include <tm_server.hpp>

Inheritance diagram for tm_server_rep:
Inheritance graph
[legend]
Collaboration diagram for tm_server_rep:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 tm_server_rep ()
 ~tm_server_rep ()
server_repget_server ()
bool has_view ()
bool has_window ()
tm_view get_view (bool must_be_valid=true)
void set_view (tm_view vw)
tm_buffer get_buffer ()
editor get_editor ()
tm_window get_window ()
int get_nr_windows ()
void style_clear_cache ()
void refresh ()
void interpose_handler ()
void wait_handler (string message, string arg)
void set_script_status (int i)
void focus_on_editor (editor ed)
void set_printing_command (string s)
void set_printer_page_type (string s)
string get_printer_page_type ()
void set_printer_dpi (string dpi)
void set_default_shrinking_factor (int sf)
int get_default_shrinking_factor ()
void image_gc (string which)
void inclusions_gc (string which)
void typeset_update (path p)
void typeset_update_all ()
bool is_yes (string s)
void quit ()
void shell (string s)
void set_font_rules (scheme_tree rules)
bool kbd_get_command (string which, string &help, command &cmd)
void insert_kbd_wildcard (string key, string im, bool post, bool l, bool r)
object find_key_binding (string key)
string kbd_pre_rewrite (string l)
string kbd_post_rewrite (string l, bool var_flag)
tree kbd_system_rewrite (string l)
void set_variant_keys (string var, string unvar)
void variant_simplification (string &which)
void get_keycomb (string &which, int &status, command &cmd, string &shorth, string &help)
virtual int get_window_id ()=0
virtual void set_window_property (scheme_tree what, scheme_tree val)=0
virtual void set_bool_window_property (string what, bool val)=0
virtual void set_int_window_property (string what, int val)=0
virtual void set_string_window_property (string what, string val)=0
virtual scheme_tree get_window_property (scheme_tree what)=0
virtual bool get_bool_window_property (string what)=0
virtual int get_int_window_property (string what)=0
virtual string get_string_window_property (string what)=0
virtual void show_header (bool flag)=0
virtual void show_icon_bar (int which, bool flag)=0
virtual void show_side_tools (int which, bool flag)=0
virtual bool visible_header ()=0
virtual bool visible_icon_bar (int which)=0
virtual bool visible_side_tools (int which)=0
virtual void menu_widget (string menu, widget &w)=0
virtual void menu_main (string menu)=0
virtual void menu_icons (int which, string menu)=0
virtual void side_tools (int which, string menu)=0
virtual void set_shrinking_factor (int sf)=0
virtual int get_shrinking_factor ()=0
virtual void set_scrollbars (int sb)=0
virtual void get_visible (SI &x1, SI &y1, SI &x2, SI &y2)=0
virtual void scroll_where (SI &x, SI &y)=0
virtual void scroll_to (SI x, SI y)=0
virtual void set_extents (SI x1, SI y1, SI x2, SI y2)=0
virtual void get_extents (SI &x1, SI &y1, SI &x2, SI &y2)=0
virtual void full_screen_mode (bool on, bool edit)=0
virtual bool in_full_screen_mode ()=0
virtual bool in_full_screen_edit_mode ()=0
virtual void show_footer (bool flag)=0
virtual bool visible_footer ()=0
virtual void set_left_footer (string s)=0
virtual void set_right_footer (string s)=0
virtual void set_message (tree left, tree right, bool temp=false)=0
virtual void recall_message ()=0
virtual void dialogue_start (string name, widget wid)=0
virtual void dialogue_inquire (int i, string &arg)=0
virtual void dialogue_end ()=0
virtual void choose_file (object fun, string title, string type)=0
virtual void interactive (object fun, scheme_tree p)=0
int get_window_id ()
void set_window_property (scheme_tree what, scheme_tree val)
void set_bool_window_property (string what, bool val)
void set_int_window_property (string what, int val)
void set_string_window_property (string what, string val)
scheme_tree get_window_property (scheme_tree what)
bool get_bool_window_property (string what)
int get_int_window_property (string what)
string get_string_window_property (string what)
void show_header (bool flag)
void show_icon_bar (int which, bool flag)
void show_side_tools (int which, bool flag)
bool visible_header ()
bool visible_icon_bar (int which)
bool visible_side_tools (int which)
void menu_widget (string menu, widget &w)
void menu_main (string menu)
void menu_icons (int which, string menu)
void side_tools (int which, string menu)
void set_shrinking_factor (int sf)
int get_shrinking_factor ()
void set_scrollbars (int sb)
void get_visible (SI &x1, SI &y1, SI &x2, SI &y2)
void scroll_where (SI &x, SI &y)
void scroll_to (SI x, SI y)
void set_extents (SI x1, SI y1, SI x2, SI y2)
void get_extents (SI &x1, SI &y1, SI &x2, SI &y2)
void full_screen_mode (bool on, bool edit)
bool in_full_screen_mode ()
bool in_full_screen_edit_mode ()
void show_footer (bool flag)
bool visible_footer ()
void set_left_footer (string s)
void set_right_footer (string s)
void set_message (tree left, tree right, bool temp=false)
void recall_message ()
void dialogue_start (string name, widget wid)
void dialogue_inquire (int i, string &arg)
void dialogue_end ()
void choose_file (object fun, string title, string type)
void interactive (object fun, scheme_tree p)

Public Attributes

int ref_count

Protected Attributes

tm_view vw
int def_sfactor
string var_suffix
string unvar_suffix
hashmap< string, treepre_kbd_wildcards
hashmap< string, treepost_kbd_wildcards
hashmap< string, treesystem_kbd_decode
bool full_screen
bool full_screen_edit
widget dialogue_win
widget dialogue_wid

Detailed Description

Definition at line 20 of file tm_server.hpp.


Constructor & Destructor Documentation

Definition at line 83 of file tm_server.cpp.

                             : vw (NULL), def_sfactor (5) {
  the_server= tm_new<server> (this);
  initialize_scheme ();
  gui_interpose (texmacs_interpose_handler);
  set_wait_handler (texmacs_wait_handler);
  if (is_none (tm_init_file))
    tm_init_file= "$TEXMACS_PATH/progs/init-texmacs.scm";
  if (is_none (my_init_file))
    my_init_file= "$TEXMACS_HOME_PATH/progs/my-init-texmacs.scm";
  bench_start ("initialize scheme");
  if (exists (tm_init_file)) exec_file (tm_init_file);
  if (exists (my_init_file)) exec_file (my_init_file);
  bench_cumul ("initialize scheme");
  if (my_init_cmds != "") {
    my_init_cmds= "(begin" * my_init_cmds * ")";
    exec_delayed (scheme_cmd (my_init_cmds));
  }
#ifdef OS_GNU_LINUX
  return; // in order to avoid segmentation faults
#elif defined OS_POWERPC_GNU_LINUX
  return; // in order to avoid segmentation faults
#endif
}

Here is the call graph for this function:

Definition at line 107 of file tm_server.cpp.

{}

Member Function Documentation

void tm_frame_rep::choose_file ( object  fun,
string  title,
string  type 
) [virtual, inherited]

Implements server_rep.

Definition at line 113 of file tm_dialogue.cpp.

                                                                {
  url      name= get_name_buffer ();
  command  cb  = dialogue_command (get_server(), fun, 1);
  bool     save= starts (title, "Save") || starts (title, "Export");
  widget   wid = file_chooser_widget (cb, type, save);
  if (!is_scratch (name)) {
    set_directory (wid, as_string (head (name)));
    if ((type != "image") && (type != "")) {
      url u= tail (name);
      string old_suf= suffix (u);
      string new_suf= format_to_suffix (type);
      if ((suffix_to_format (suffix (u)) != type) &&
         (old_suf != "") && (new_suf != ""))
       {
         u= unglue (u, N(old_suf) + 1);
         u= glue (u, "." * new_suf);
       }
      set_file (wid, as_string (u));
    }
  }
  else set_directory (wid, ".");
  dialogue_start (title, wid);
  if (type == "directory") send_keyboard_focus (get_directory (dialogue_wid));
  else send_keyboard_focus (get_file (dialogue_wid));
}

Here is the call graph for this function:

virtual void server_rep::choose_file ( object  fun,
string  title,
string  type 
) [pure virtual, inherited]

Implemented in tm_frame_rep.

void tm_frame_rep::dialogue_end ( ) [virtual, inherited]

Implements server_rep.

Definition at line 96 of file tm_dialogue.cpp.

Here is the call graph for this function:

virtual void server_rep::dialogue_end ( ) [pure virtual, inherited]

Implemented in tm_frame_rep.

void tm_frame_rep::dialogue_inquire ( int  i,
string arg 
) [virtual, inherited]

Implements server_rep.

Definition at line 87 of file tm_dialogue.cpp.

                                                  {
  if (i == 0) arg= get_string_input (dialogue_wid);
  else {
    widget field_i= get_form_field (dialogue_wid, i);
    arg= get_string_input (field_i);
  }
}

Here is the call graph for this function:

virtual void server_rep::dialogue_inquire ( int  i,
string arg 
) [pure virtual, inherited]

Implemented in tm_frame_rep.

Here is the caller graph for this function:

void tm_frame_rep::dialogue_start ( string  name,
widget  wid 
) [virtual, inherited]

Implements server_rep.

Definition at line 66 of file tm_dialogue.cpp.

                                                     {
  if (is_nil (dialogue_win)) {
    string lan= get_output_language ();
    if (lan == "russian") lan= "english";
    name= translate (name, "english", lan);
    dialogue_wid= wid;
    dialogue_win= plain_window_widget (dialogue_wid, name);

    widget win= get_window () -> win;
    SI ox, oy, dx, dy, ex= 0, ey= 0;
    get_position (win, ox, oy);
    get_size (win, dx, dy);
    get_size (dialogue_win, ex, ey);
    ox += (dx - ex) >> 1;
    oy -= (dy - ey) >> 1;
    set_position (dialogue_win, ox, oy);
    set_visibility (dialogue_win, true);
  }
}

Here is the call graph for this function:

Here is the caller graph for this function:

virtual void server_rep::dialogue_start ( string  name,
widget  wid 
) [pure virtual, inherited]

Implemented in tm_frame_rep.

Definition at line 137 of file tm_config.cpp.

                                           {
  return call ("kbd-find-key-binding", key);
}

Here is the call graph for this function:

Here is the caller graph for this function:

void tm_server_rep::focus_on_editor ( editor  ed) [virtual]

Implements server_rep.

Definition at line 235 of file tm_server.cpp.

                                         {
  int i,j;
  for (i=0; i<N(bufs); i++) {
    tm_buffer buf= (tm_buffer) bufs[i];
    for (j=0; j<N(buf->vws); j++) {
      tm_view vw= (tm_view) buf->vws[j];
      if (vw->ed == ed) {
       set_view (vw);
       return;
      }
    }
  }
  FAILED ("invalid situation");
}

Here is the call graph for this function:

void tm_frame_rep::full_screen_mode ( bool  on,
bool  edit 
) [virtual, inherited]

Implements server_rep.

Definition at line 241 of file tm_frame.cpp.

                                                  {
  if (on && !edit) {
    show_header (false);
    show_footer (false);
  }
  else {
    show_header (true);
    show_footer (true);
  }
  set_full_screen (get_window () -> win, on);
  get_editor () -> full_screen_mode (on && !edit);
  full_screen = on;
  full_screen_edit = on && edit;
}

Here is the call graph for this function:

virtual void server_rep::full_screen_mode ( bool  on,
bool  edit 
) [pure virtual, inherited]

Implemented in tm_frame_rep.

bool tm_frame_rep::get_bool_window_property ( string  what) [virtual, inherited]

Implements server_rep.

Definition at line 83 of file tm_frame.cpp.

                                                   {
  return as_bool (get_window () -> get_property (what));
}

Here is the call graph for this function:

virtual bool server_rep::get_bool_window_property ( string  what) [pure virtual, inherited]

Implemented in tm_frame_rep.

Implements server_rep.

Definition at line 143 of file tm_server.cpp.

                           {
  tm_view vw= get_view ();
  return vw->buf;
}

Here is the call graph for this function:

Implements server_rep.

Definition at line 276 of file tm_server.cpp.

                                             {
  return def_sfactor;
}

Implements server_rep.

Definition at line 149 of file tm_server.cpp.

                           {
  tm_view vw= get_view ();
  // cout << "Get editor" << vw->ed << "\n";
  return vw->ed;
}

Here is the call graph for this function:

void tm_frame_rep::get_extents ( SI x1,
SI y1,
SI x2,
SI y2 
) [virtual, inherited]

Implements server_rep.

Definition at line 207 of file tm_frame.cpp.

                                                         {
  get_window () -> get_extents (x1, y1, x2, y2);
}

Here is the call graph for this function:

virtual void server_rep::get_extents ( SI x1,
SI y1,
SI x2,
SI y2 
) [pure virtual, inherited]

Implemented in tm_frame_rep.

int tm_frame_rep::get_int_window_property ( string  what) [virtual, inherited]

Implements server_rep.

Definition at line 88 of file tm_frame.cpp.

                                                  {
  return as_int (get_window () -> get_property (what));
}

Here is the call graph for this function:

virtual int server_rep::get_int_window_property ( string  what) [pure virtual, inherited]

Implemented in tm_frame_rep.

void tm_config_rep::get_keycomb ( string which,
int &  status,
command cmd,
string shorth,
string help 
) [virtual, inherited]

Implements server_rep.

Definition at line 153 of file tm_config.cpp.

{
  string orig= which;
  if (DEBUG_KEYBOARD) cout << "        ] " << which;
  variant_simplification (which);
  if (DEBUG_KEYBOARD) cout << " -> " << which;
  string rew= apply_wildcards (which, post_kbd_wildcards);
  bool no_var= false;
  if (rew * var_suffix == orig) {
    no_var= true;
    rew= var_suffix (1, N(var_suffix));
  }
  if (rew * unvar_suffix == orig) {
    no_var= true;
    rew= unvar_suffix (1, N(unvar_suffix));
  }
  if (DEBUG_KEYBOARD) cout << " -> " << rew << LF;
  object obj= find_key_binding (rew);
  //cout << rew << " => " << obj << LF;
  //if (obj == object (false) || (orig != which && !is_string (car (obj)))) {
  if (obj == object (false)) {
    status= 0;
    cmd   = command ();
    shorth= copy (rew);
    help  = "";
  }
  else if (!is_string (car (obj))) {
    status= 1;
    cmd   = as_command (car (obj));
    shorth= copy (rew);
    help  = as_string (cadr (obj));
  }
  else {
    status= 2;
    cmd   = command ();
    shorth= as_string (car (obj));
    help  = as_string (cadr (obj));
  }
  if (no_var) status += 3;
}

Here is the call graph for this function:

int tm_server_rep::get_nr_windows ( ) [virtual]

Implements server_rep.

Definition at line 163 of file tm_server.cpp.

                               {
  return nr_windows;
}

Implements server_rep.

Definition at line 261 of file tm_server.cpp.

                                      {
  return printing_on;
}

Implements server_rep.

Definition at line 115 of file tm_server.cpp.

                           {
  return this;
}
int tm_frame_rep::get_shrinking_factor ( ) [virtual, inherited]

Implements server_rep.

Definition at line 178 of file tm_frame.cpp.

                                    {
  return get_window () -> get_shrinking_factor ();
}

Here is the call graph for this function:

virtual int server_rep::get_shrinking_factor ( ) [pure virtual, inherited]

Implemented in tm_frame_rep.

string tm_frame_rep::get_string_window_property ( string  what) [virtual, inherited]

Implements server_rep.

Definition at line 93 of file tm_frame.cpp.

                                                     {
  return as_string (get_window () -> get_property (what));
}

Here is the call graph for this function:

virtual string server_rep::get_string_window_property ( string  what) [pure virtual, inherited]

Implemented in tm_frame_rep.

tm_view tm_server_rep::get_view ( bool  must_be_valid = true) [virtual]

Implements server_rep.

Definition at line 130 of file tm_server.cpp.

                                           {
  ASSERT (!must_be_valid || vw != NULL, "no active view");
  return vw;
}

Here is the caller graph for this function:

void tm_frame_rep::get_visible ( SI x1,
SI y1,
SI x2,
SI y2 
) [virtual, inherited]

Implements server_rep.

Definition at line 187 of file tm_frame.cpp.

                                                         {
  get_window () -> get_visible (x1, y1, x2, y2);
}

Here is the call graph for this function:

virtual void server_rep::get_visible ( SI x1,
SI y1,
SI x2,
SI y2 
) [pure virtual, inherited]

Implemented in tm_frame_rep.

Implements server_rep.

Definition at line 156 of file tm_server.cpp.

                           {
  tm_view vw= get_view ();
  ASSERT (vw->win != NULL, "no window attached to view");
  return vw->win;
}

Here is the call graph for this function:

Here is the caller graph for this function:

int tm_frame_rep::get_window_id ( ) [virtual, inherited]

Implements server_rep.

Definition at line 53 of file tm_frame.cpp.

                             {
  return get_window () -> serial;
}

Here is the call graph for this function:

virtual int server_rep::get_window_id ( ) [pure virtual, inherited]

Implemented in tm_frame_rep.

Implements server_rep.

Definition at line 78 of file tm_frame.cpp.

                                                   {
  return get_window () -> get_property (what);
}

Here is the call graph for this function:

virtual scheme_tree server_rep::get_window_property ( scheme_tree  what) [pure virtual, inherited]

Implemented in tm_frame_rep.

bool tm_server_rep::has_view ( ) [virtual]

Implements server_rep.

Definition at line 120 of file tm_server.cpp.

                         {
  return vw != NULL;
}
bool tm_server_rep::has_window ( ) [virtual]

Implements server_rep.

Definition at line 125 of file tm_server.cpp.

                           {
  return vw != NULL && vw->win != NULL;
}
void tm_server_rep::image_gc ( string  which) [virtual]

Implements server_rep.

Definition at line 281 of file tm_server.cpp.

                                     {
  ::image_gc (which);
  typeset_update_all ();
}

Here is the call graph for this function:

bool tm_frame_rep::in_full_screen_edit_mode ( ) [virtual, inherited]

Implements server_rep.

Definition at line 262 of file tm_frame.cpp.

                                        {
  return full_screen && full_screen_edit;
}
virtual bool server_rep::in_full_screen_edit_mode ( ) [pure virtual, inherited]

Implemented in tm_frame_rep.

bool tm_frame_rep::in_full_screen_mode ( ) [virtual, inherited]

Implements server_rep.

Definition at line 257 of file tm_frame.cpp.

                                   {
  return full_screen && !full_screen_edit;
}
virtual bool server_rep::in_full_screen_mode ( ) [pure virtual, inherited]

Implemented in tm_frame_rep.

void tm_server_rep::inclusions_gc ( string  which) [virtual]

Implements server_rep.

Definition at line 287 of file tm_server.cpp.

                                          {
  (void) which;
  reset_inclusions ();
  typeset_update_all ();
}

Here is the call graph for this function:

void tm_config_rep::insert_kbd_wildcard ( string  key,
string  im,
bool  post,
bool  l,
bool  r 
) [virtual, inherited]

Implements server_rep.

Definition at line 85 of file tm_config.cpp.

{
  //cout << "Wildcard " << key << " -> " << im << "\n";
  tree t= tuple (im,
               l? string ("*"): string (""),
               r? string ("*"): string (""));
  if (post) post_kbd_wildcards (key)= t;
  else pre_kbd_wildcards (key)= t;
}

Here is the call graph for this function:

void tm_frame_rep::interactive ( object  fun,
scheme_tree  p 
) [virtual, inherited]

Implements server_rep.

Definition at line 218 of file tm_dialogue.cpp.

                                                    {
  ASSERT (is_tuple (p), "tuple expected");
  if (get_preference ("interactive questions") == "popup") {
    int i, n= N(p);
    array<string> prompts (n);
    for (i=0; i<n; i++)
      prompts[i]= get_prompt (p, i);
    command cb= dialogue_command (get_server(), fun, n);
    widget wid= inputs_list_widget (cb, prompts);
    for (i=0; i<n; i++) {
      widget input_wid= get_form_field (wid, i);
      set_input_type (input_wid, get_type (p, i));
      array<string> proposals= get_proposals (p, i);
      int j, k= N(proposals);
      if (k > 0) set_string_input (input_wid, proposals[0]);
      for (j=0; j<k; j++) add_input_proposal (input_wid, proposals[j]);
    }
    string title= translate ("Enter data");
    if (ends (prompts[0], "?")) title= translate ("Question");
    dialogue_start (title, wid);
    send_keyboard_focus (get_form_field (dialogue_wid, 0));
  }
  else {
    if (get_window () -> get_interactive_mode ()) beep ();
    else {
      command interactive_cmd=
       tm_new<interactive_command_rep> (this, get_window (), fun, p);
      interactive_cmd ();
    }
  }
}

Here is the call graph for this function:

virtual void server_rep::interactive ( object  fun,
scheme_tree  p 
) [pure virtual, inherited]

Implemented in tm_frame_rep.

Implements server_rep.

Definition at line 195 of file tm_server.cpp.

                                  {
#ifdef QTTEXMACS
  // TeXmacs/Qt handles delayed messages and socket notification
  // in its own runloop
#ifndef QTPIPES
  perform_select ();
#endif
  process_all_pipes ();
#else
  perform_select ();
  exec_pending_commands ();
#endif

  int i,j;
  for (i=0; i<N(bufs); i++) {
    tm_buffer buf= (tm_buffer) bufs[i];
    for (j=0; j<N(buf->vws); j++) {
      tm_view vw= (tm_view) buf->vws[j];
      if (vw->win != NULL) vw->ed->apply_changes ();
    }
    for (j=0; j<N(buf->vws); j++) {
      tm_view vw= (tm_view) buf->vws[j];
      if (vw->win != NULL) vw->ed->animate ();
    }
  }

  windows_refresh ();
}

Here is the call graph for this function:

bool tm_server_rep::is_yes ( string  s) [virtual]

Implements server_rep.

Definition at line 314 of file tm_server.cpp.

                               {
  s= locase_all (s);
  return
    (s == "ano") || (s == "a") ||
    (s == "yes") || (s == "y") ||
    (s == "oui") || (s == "o") ||
    (s == "ja") || (s == "j") ||
    (s == "si") || (s == "s") ||
    (s == "sim") || (s == "s") ||
    (s == "tak") || (s == "t");
}

Here is the call graph for this function:

bool tm_config_rep::kbd_get_command ( string  which,
string help,
command cmd 
) [virtual, inherited]

Implements server_rep.

Definition at line 44 of file tm_config.cpp.

                                                                        {
  object im= call ("kbd-get-command", which);
  if (im == object (false)) return false;
  help= as_string (car (im));
  cmd = as_command (cdr (im));
  return true;
}

Here is the call graph for this function:

string tm_config_rep::kbd_post_rewrite ( string  l,
bool  var_flag 
) [virtual, inherited]

Implements server_rep.

Definition at line 147 of file tm_config.cpp.

                                                        {
  if (var_flag) variant_simplification (s);
  return apply_wildcards (s, post_kbd_wildcards);
}

Here is the call graph for this function:

string tm_config_rep::kbd_pre_rewrite ( string  l) [virtual, inherited]

Implements server_rep.

Definition at line 142 of file tm_config.cpp.

Here is the call graph for this function:

tree tm_config_rep::kbd_system_rewrite ( string  l) [virtual, inherited]

Implements server_rep.

Definition at line 312 of file tm_config.cpp.

                                           {
  system_kbd_initialize (system_kbd_decode);
  int start= 0, i;
  for (i=0; i <= N(s); i++)
    if (i == N(s) || s[i] == ' ') {
      string ss= s (start, i);
      string rr= kbd_system_prevails (ss);
      if (rr != ss)
       return kbd_system_rewrite (s (0, start) * rr * s (i, N(s)));
      start= i+1;
    }

  tree k (CONCAT);
  tree r (CONCAT);
  start= i= 0;
  while (true)
    if (i == N(s) || s[i] == '-' || s[i] == ' ') {
      if (i < N(s) && s[i] == '-') i++;
      string ss= s (start, i);
      if (system_kbd_decode->contains (ss)) r << system_kbd_decode[ss];
      else if (N(ss) == 1 && (use_macos_fonts () || gui_is_qt ())) {
       if (is_locase (ss[0])) r << upcase_all (ss);
       else if (is_upcase (ss[0])) r << system_kbd_decode ("S-") << ss;
       else r << ss;
      }
      else r << ss;
      if (i == N(s) || s[i] == ' ') {
       k << kbd_render (simplify_concat (r));
       r= tree (CONCAT);
       if (i == N(s)) break;
       i++;
      }
      start= i;
    }
    else i++;
  return simplify_concat (k);
}

Here is the call graph for this function:

void tm_frame_rep::menu_icons ( int  which,
string  menu 
) [virtual, inherited]

Implements server_rep.

Definition at line 114 of file tm_frame.cpp.

                                                {
  if ((which<0) || (which>3) || (!has_view())) return;
  get_window () -> menu_icons (which, menu);
}

Here is the call graph for this function:

virtual void server_rep::menu_icons ( int  which,
string  menu 
) [pure virtual, inherited]

Implemented in tm_frame_rep.

void tm_frame_rep::menu_main ( string  menu) [virtual, inherited]

Implements server_rep.

Definition at line 108 of file tm_frame.cpp.

                                    {
  if (!has_view ()) return;
  get_window () -> menu_main (menu);
}

Here is the call graph for this function:

virtual void server_rep::menu_main ( string  menu) [pure virtual, inherited]

Implemented in tm_frame_rep.

void tm_frame_rep::menu_widget ( string  menu,
widget w 
) [virtual, inherited]

Implements server_rep.

Definition at line 102 of file tm_frame.cpp.

                                                 {
  object xmenu= eval ("'" * menu);
  w= make_menu_widget (xmenu);
}

Here is the call graph for this function:

virtual void server_rep::menu_widget ( string  menu,
widget w 
) [pure virtual, inherited]

Implemented in tm_frame_rep.

void tm_server_rep::quit ( ) [virtual]

Implements server_rep.

Definition at line 327 of file tm_server.cpp.

                     {
  close_all_pipes ();
  call ("quit-TeXmacs-scheme");
  clear_pending_commands ();
  exit (0);
}

Here is the call graph for this function:

void tm_frame_rep::recall_message ( ) [virtual, inherited]

Implements server_rep.

Definition at line 235 of file tm_frame.cpp.

                              {
  if (!has_window ()) return;
  get_editor() -> recall_message ();
}

Here is the call graph for this function:

virtual void server_rep::recall_message ( ) [pure virtual, inherited]

Implemented in tm_frame_rep.

void tm_server_rep::refresh ( ) [virtual]

Implements server_rep.

Definition at line 184 of file tm_server.cpp.

                        {
  path p= windows_list ();
  while (!is_nil (p)) {
    tm_view vw= window_find_view (p->item);
    vw->win->refresh ();
    p= p->next;
  }
  
}

Here is the call graph for this function:

void tm_frame_rep::scroll_to ( SI  x,
SI  y 
) [virtual, inherited]

Implements server_rep.

Definition at line 202 of file tm_frame.cpp.

                                   {
  get_window () -> set_scroll_pos (x, y);
}

Here is the call graph for this function:

virtual void server_rep::scroll_to ( SI  x,
SI  y 
) [pure virtual, inherited]

Implemented in tm_frame_rep.

void tm_frame_rep::scroll_where ( SI x,
SI y 
) [virtual, inherited]

Implements server_rep.

Definition at line 197 of file tm_frame.cpp.

                                        {
  get_window () -> get_scroll_pos (x, y);
}

Here is the call graph for this function:

virtual void server_rep::scroll_where ( SI x,
SI y 
) [pure virtual, inherited]

Implemented in tm_frame_rep.

void tm_frame_rep::set_bool_window_property ( string  what,
bool  val 
) [virtual, inherited]

Implements server_rep.

Definition at line 63 of file tm_frame.cpp.

                                                             {
  get_window () -> set_property (what, val? string ("true"): string ("false"));
}

Here is the call graph for this function:

virtual void server_rep::set_bool_window_property ( string  what,
bool  val 
) [pure virtual, inherited]

Implemented in tm_frame_rep.

void tm_server_rep::set_default_shrinking_factor ( int  sf) [virtual]

Implements server_rep.

Definition at line 271 of file tm_server.cpp.

                                                   {
  def_sfactor= sf;
}
void tm_frame_rep::set_extents ( SI  x1,
SI  y1,
SI  x2,
SI  y2 
) [virtual, inherited]

Implements server_rep.

Definition at line 212 of file tm_frame.cpp.

                                                     {
  get_window () -> set_extents (x1, y1, x2, y2);
}

Here is the call graph for this function:

virtual void server_rep::set_extents ( SI  x1,
SI  y1,
SI  x2,
SI  y2 
) [pure virtual, inherited]

Implemented in tm_frame_rep.

void tm_config_rep::set_font_rules ( scheme_tree  rules) [virtual, inherited]

Implements server_rep.

Definition at line 29 of file tm_config.cpp.

                                                {
  int i, n= arity (rules);
  for (i=0; i<n; i++)
    if (arity (rules [i]) == 2) {
      tree l= (tree) rules[i][0];
      tree r= (tree) rules[i][1];
      font_rule (l, r);
    }  
}

Here is the call graph for this function:

void tm_frame_rep::set_int_window_property ( string  what,
int  val 
) [virtual, inherited]

Implements server_rep.

Definition at line 68 of file tm_frame.cpp.

                                                           {
  get_window () -> set_property (what, as_tree (val));
}

Here is the call graph for this function:

virtual void server_rep::set_int_window_property ( string  what,
int  val 
) [pure virtual, inherited]

Implemented in tm_frame_rep.

void tm_frame_rep::set_left_footer ( string  s) [virtual, inherited]

Implements server_rep.

Definition at line 217 of file tm_frame.cpp.

                                       {
  if (!has_window ()) return;
  get_window () -> set_left_footer (s);
}

Here is the call graph for this function:

virtual void server_rep::set_left_footer ( string  s) [pure virtual, inherited]

Implemented in tm_frame_rep.

void tm_frame_rep::set_message ( tree  left,
tree  right,
bool  temp = false 
) [virtual, inherited]

Implements server_rep.

Definition at line 229 of file tm_frame.cpp.

                                                           {
  if (!has_window ()) return;
  get_editor() -> set_message (left, right, temp);
}

Here is the call graph for this function:

virtual void server_rep::set_message ( tree  left,
tree  right,
bool  temp = false 
) [pure virtual, inherited]

Implemented in tm_frame_rep.

Here is the caller graph for this function:

void tm_server_rep::set_printer_dpi ( string  dpi) [virtual]

Implements server_rep.

Definition at line 266 of file tm_server.cpp.

                                          {
  printing_dpi= dpi;
}

Implements server_rep.

Definition at line 256 of file tm_server.cpp.

Implements server_rep.

Definition at line 251 of file tm_server.cpp.

void tm_frame_rep::set_right_footer ( string  s) [virtual, inherited]

Implements server_rep.

Definition at line 223 of file tm_frame.cpp.

                                        {
  if (!has_window ()) return;
  get_window () -> set_right_footer (s);
}

Here is the call graph for this function:

virtual void server_rep::set_right_footer ( string  s) [pure virtual, inherited]

Implemented in tm_frame_rep.

void tm_server_rep::set_script_status ( int  i) [virtual]

Implements server_rep.

Definition at line 230 of file tm_server.cpp.

void tm_frame_rep::set_scrollbars ( int  sb) [virtual, inherited]

Implements server_rep.

Definition at line 192 of file tm_frame.cpp.

                                    {
  get_window () -> set_scrollbars (sb);
}

Here is the call graph for this function:

virtual void server_rep::set_scrollbars ( int  sb) [pure virtual, inherited]

Implemented in tm_frame_rep.

void tm_frame_rep::set_shrinking_factor ( int  sf) [virtual, inherited]

Implements server_rep.

Definition at line 172 of file tm_frame.cpp.

                                          {
  if (!has_view ()) return;
  get_window () -> set_shrinking_factor (sf);
}

Here is the call graph for this function:

virtual void server_rep::set_shrinking_factor ( int  sf) [pure virtual, inherited]

Implemented in tm_frame_rep.

void tm_frame_rep::set_string_window_property ( string  what,
string  val 
) [virtual, inherited]

Implements server_rep.

Definition at line 73 of file tm_frame.cpp.

                                                                 {
  get_window () -> set_property (what, val);
}

Here is the call graph for this function:

virtual void server_rep::set_string_window_property ( string  what,
string  val 
) [pure virtual, inherited]

Implemented in tm_frame_rep.

void tm_config_rep::set_variant_keys ( string  var,
string  unvar 
) [virtual, inherited]

Implements server_rep.

Definition at line 101 of file tm_config.cpp.

                                                         {
  var_suffix= " " * var;
  unvar_suffix= " " * unvar;
}
void tm_server_rep::set_view ( tm_view  vw) [virtual]

Implements server_rep.

Definition at line 136 of file tm_server.cpp.

                                    {
  vw= vw2;
  if (vw != NULL)
    the_drd= vw->ed->drd;
}

Here is the caller graph for this function:

void tm_frame_rep::set_window_property ( scheme_tree  what,
scheme_tree  val 
) [virtual, inherited]

Implements server_rep.

Definition at line 58 of file tm_frame.cpp.

                                                                    {
  get_window () -> set_property (what, val);
}

Here is the call graph for this function:

virtual void server_rep::set_window_property ( scheme_tree  what,
scheme_tree  val 
) [pure virtual, inherited]

Implemented in tm_frame_rep.

void tm_server_rep::shell ( string  s) [virtual]

Implements server_rep.

Definition at line 339 of file tm_server.cpp.

                              {
  system (s);
}

Here is the call graph for this function:

void tm_frame_rep::show_footer ( bool  flag) [virtual, inherited]

Implements server_rep.

Definition at line 144 of file tm_frame.cpp.

                                    {
  if (!has_view ()) return;
  get_window () -> set_footer_flag (flag);
}

Here is the call graph for this function:

Here is the caller graph for this function:

virtual void server_rep::show_footer ( bool  flag) [pure virtual, inherited]

Implemented in tm_frame_rep.

void tm_frame_rep::show_header ( bool  flag) [virtual, inherited]

Implements server_rep.

Definition at line 126 of file tm_frame.cpp.

                                    {
  if (!has_view ()) return;
  get_window () -> set_header_flag (flag);
}

Here is the call graph for this function:

Here is the caller graph for this function:

virtual void server_rep::show_header ( bool  flag) [pure virtual, inherited]

Implemented in tm_frame_rep.

void tm_frame_rep::show_icon_bar ( int  which,
bool  flag 
) [virtual, inherited]

Implements server_rep.

Definition at line 132 of file tm_frame.cpp.

                                                 {
  if ((which<0) || (which>3) || (!has_view())) return;
  get_window () -> set_icon_bar_flag (which, flag);
}

Here is the call graph for this function:

virtual void server_rep::show_icon_bar ( int  which,
bool  flag 
) [pure virtual, inherited]

Implemented in tm_frame_rep.

void tm_frame_rep::show_side_tools ( int  which,
bool  flag 
) [virtual, inherited]

Implements server_rep.

Definition at line 138 of file tm_frame.cpp.

                                                   {
  if ((which<0) || (which>0) || (!has_view())) return;
  get_window () -> set_side_tools_flag (which, flag);
}

Here is the call graph for this function:

virtual void server_rep::show_side_tools ( int  which,
bool  flag 
) [pure virtual, inherited]

Implemented in tm_frame_rep.

void tm_frame_rep::side_tools ( int  which,
string  menu 
) [virtual, inherited]

Implements server_rep.

Definition at line 120 of file tm_frame.cpp.

                                                 {
  if ((which<0) || (which>0)|| (!has_view())) return;
  get_window () -> side_tools (which, tools);
}

Here is the call graph for this function:

virtual void server_rep::side_tools ( int  which,
string  menu 
) [pure virtual, inherited]

Implemented in tm_frame_rep.

Implements server_rep.

Definition at line 172 of file tm_server.cpp.

                                  {
  style_invalidate_cache ();

  int i, j, n= N(bufs);
  for (i=0; i<n; i++) {
    tm_buffer buf= ((tm_buffer) bufs[i]);
    for (j=0; j<N(buf->vws); j++)
      ((tm_view) (buf->vws[j]))->ed->init_style ();
  }
}

Here is the call graph for this function:

void tm_server_rep::typeset_update ( path  p) [virtual]

Implements server_rep.

Definition at line 294 of file tm_server.cpp.

                                     {
  int i, j, n= N(bufs);
  for (i=0; i<n; i++) {
    tm_buffer buf= ((tm_buffer) bufs[i]);
    for (j=0; j<N(buf->vws); j++)
      ((tm_view) (buf->vws[j]))->ed->typeset_invalidate (p);
  }
}

Here is the call graph for this function:

Implements server_rep.

Definition at line 304 of file tm_server.cpp.

                                   {
  int i, j, n= N(bufs);
  for (i=0; i<n; i++) {
    tm_buffer buf= ((tm_buffer) bufs[i]);
    for (j=0; j<N(buf->vws); j++)
      ((tm_view) (buf->vws[j]))->ed->typeset_invalidate_all ();
  }
}

Here is the call graph for this function:

Here is the caller graph for this function:

void tm_config_rep::variant_simplification ( string which) [inherited]

Definition at line 110 of file tm_config.cpp.

                                                    {
  if (ends (which, var_suffix)) {
    object obj= rewrite_find_key_binding (which);
    // cout << which << " => " << obj << LF;
    if (obj == object (false))
      while (ends (which, var_suffix))
       which= which (0, N(which) - N(var_suffix));
  }
  if (ends (which, unvar_suffix)) {
    if (ends (which, var_suffix * unvar_suffix))
      which= which (0, N(which) - N(var_suffix) - N(unvar_suffix));
    else {
      which= which (0, N(which) - N(unvar_suffix));
      while (true) {
       if (rewrite_find_key_binding (which * var_suffix) == object (false))
         break;
       which= which * var_suffix;
      }
    }
  }
}

Here is the call graph for this function:

Here is the caller graph for this function:

bool tm_frame_rep::visible_footer ( ) [virtual, inherited]

Implements server_rep.

Definition at line 167 of file tm_frame.cpp.

                              {
  return get_window () -> get_footer_flag ();
}

Here is the call graph for this function:

virtual bool server_rep::visible_footer ( ) [pure virtual, inherited]

Implemented in tm_frame_rep.

bool tm_frame_rep::visible_header ( ) [virtual, inherited]

Implements server_rep.

Definition at line 150 of file tm_frame.cpp.

                              {
  return get_window () -> get_header_flag ();
}

Here is the call graph for this function:

virtual bool server_rep::visible_header ( ) [pure virtual, inherited]

Implemented in tm_frame_rep.

bool tm_frame_rep::visible_icon_bar ( int  which) [virtual, inherited]

Implements server_rep.

Definition at line 155 of file tm_frame.cpp.

                                         {
  if ((which<0) || (which>3)) return false;
  return get_window () -> get_icon_bar_flag (which);
}

Here is the call graph for this function:

virtual bool server_rep::visible_icon_bar ( int  which) [pure virtual, inherited]

Implemented in tm_frame_rep.

bool tm_frame_rep::visible_side_tools ( int  which) [virtual, inherited]

Implements server_rep.

Definition at line 161 of file tm_frame.cpp.

                                           {
  if ((which<0) || (which>0)) return false;
  return get_window () -> get_side_tools_flag (which);
}

Here is the call graph for this function:

virtual bool server_rep::visible_side_tools ( int  which) [pure virtual, inherited]

Implemented in tm_frame_rep.

void tm_server_rep::wait_handler ( string  message,
string  arg 
) [virtual]

Implements server_rep.

Definition at line 225 of file tm_server.cpp.

                                                       {
  show_wait_indicator (get_window () -> win, translate (message), arg);
}

Here is the call graph for this function:


Member Data Documentation

int tm_server_rep::def_sfactor [protected]

Definition at line 26 of file tm_server.hpp.

widget tm_frame_rep::dialogue_wid [protected, inherited]

Definition at line 21 of file tm_frame.hpp.

widget tm_frame_rep::dialogue_win [protected, inherited]

Definition at line 20 of file tm_frame.hpp.

bool tm_frame_rep::full_screen [protected, inherited]

Definition at line 18 of file tm_frame.hpp.

bool tm_frame_rep::full_screen_edit [protected, inherited]

Definition at line 19 of file tm_frame.hpp.

Definition at line 23 of file tm_config.hpp.

Definition at line 22 of file tm_config.hpp.

int abstract_struct::ref_count [inherited]

Definition at line 142 of file basic.hpp.

Definition at line 24 of file tm_config.hpp.

string tm_config_rep::unvar_suffix [protected, inherited]

Definition at line 21 of file tm_config.hpp.

string tm_config_rep::var_suffix [protected, inherited]

Definition at line 20 of file tm_config.hpp.

Definition at line 25 of file tm_server.hpp.


The documentation for this class was generated from the following files: