Back to index

texmacs  1.0.7.15
Functions | Variables
generic.cpp File Reference
#include "convert.hpp"
#include "file.hpp"
#include "scheme.hpp"

Go to the source code of this file.

Functions

bool is_snippet (tree doc)
string get_texmacs_path ()
url get_file_focus ()
void set_file_focus (url u)
string suffix_to_format (string suffix)
string format_to_suffix (string fm)
string get_format (string s, string suffix)
tree generic_to_tree (string s, string fm)
string tree_to_generic (tree doc, string fm)

Variables

static url current_file_focus = url_none ()

Function Documentation

Definition at line 52 of file generic.cpp.

                             {
  return as_string (call ("format-default-suffix", fm));
}

Here is the call graph for this function:

Here is the caller graph for this function:

tree generic_to_tree ( string  s,
string  fm 
)

Definition at line 62 of file generic.cpp.

                                      {
  return as_tree (call ("generic->texmacs", s, fm));
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 37 of file generic.cpp.

                  {
  return current_file_focus;
}

Here is the caller graph for this function:

string get_format ( string  s,
string  suffix 
)

Definition at line 57 of file generic.cpp.

                                     {
  return as_string (call ("format-determine", s, suffix));
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 29 of file generic.cpp.

                    {
  string tmpath= get_env ("TEXMACS_PATH");
  while ((N(tmpath)>0) && (tmpath [N(tmpath) - 1] == '/'))
    tmpath= tmpath (0, N(tmpath)-1);
  return tmpath;
}

Here is the call graph for this function:

Here is the caller graph for this function:

bool is_snippet ( tree  doc)

Definition at line 19 of file generic.cpp.

                      {
  if (!is_document (doc)) return true;
  int i, n= N(doc);
  for (i=0; i<n; i++)
    if (is_compound (doc[i], "TeXmacs", 1))
      return false;
  return true;
}

Here is the call graph for this function:

Here is the caller graph for this function:

void set_file_focus ( url  u)

Definition at line 42 of file generic.cpp.

Here is the caller graph for this function:

Definition at line 47 of file generic.cpp.

                                 {
  return as_string (call ("format-from-suffix", suffix));
}

Here is the call graph for this function:

Here is the caller graph for this function:

string tree_to_generic ( tree  doc,
string  fm 
)

Definition at line 67 of file generic.cpp.

                                      {
  return as_string (call ("texmacs->generic", doc, fm));
}

Here is the call graph for this function:

Here is the caller graph for this function:


Variable Documentation

Definition at line 16 of file generic.cpp.