2
/******************************************************************************
3
* MODULE : tm_config.hpp
4
* DESCRIPTION: Configuration routines for TeXmacs server
5
* COPYRIGHT : (C) 1999 Joris van der Hoeven
6
*******************************************************************************
7
* This software falls under the GNU general public license and comes WITHOUT
8
* ANY WARRANTY WHATSOEVER. See the file $TEXMACS_PATH/LICENSE for more details.
9
* If you don't have this file, write to the Free Software Foundation, Inc.,
10
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
11
******************************************************************************/
16
#include "hashmap.hpp"
17
#include "hashset.hpp"
19
class tm_config_rep: virtual public server_rep {
21
string in_lan; // current input language
22
string out_lan; // current output language
23
string var_suffix; // space + the variant key
24
string unvar_suffix; // space + the unvariant key
25
hashmap<string,tree> pre_kbd_wildcards; // wildcards applied to defns
26
hashmap<string,tree> post_kbd_wildcards; // wildcards applied at lookup
32
/* Set and get input and output languages */
33
void set_input_language (string s);
34
void set_output_language (string s);
35
string get_input_language ();
36
string get_output_language ();
39
void set_font_rules (scheme_tree rules);
41
/* Keyboard behaviour */
42
bool kbd_get_command (string which, string& help, command& cmd);
44
void insert_kbd_wildcard (string key, string im, bool post, bool l, bool r);
45
object find_key_binding (string key);
46
string kbd_pre_rewrite (string l);
47
string kbd_post_rewrite (string l);
48
void set_variant_keys (string var, string unvar);
49
void variant_simplification (string& which);
50
void get_keycomb (string& which, int& status,
51
command& cmd, string& shorth, string& help);
54
#endif // defined TM_CONFIG_H