~ubuntu-branches/ubuntu/hardy/texmacs/hardy

« back to all changes in this revision

Viewing changes to src/Texmacs/tm_config.hpp

  • Committer: Bazaar Package Importer
  • Author(s): Ralf Treinen
  • Date: 2004-04-19 20:34:00 UTC
  • Revision ID: james.westby@ubuntu.com-20040419203400-g4e34ih0315wcn8v
Tags: upstream-1.0.3-R2
ImportĀ upstreamĀ versionĀ 1.0.3-R2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
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
******************************************************************************/
 
12
 
 
13
#ifndef TM_CONFIG_H
 
14
#define TM_CONFIG_H
 
15
#include "server.hpp"
 
16
#include "hashmap.hpp"
 
17
#include "hashset.hpp"
 
18
 
 
19
class tm_config_rep: virtual public server_rep {
 
20
protected:
 
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
 
27
 
 
28
public:
 
29
  tm_config_rep ();
 
30
  ~tm_config_rep ();
 
31
 
 
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 ();
 
37
 
 
38
  /* Font setup */
 
39
  void set_font_rules (scheme_tree rules);
 
40
 
 
41
  /* Keyboard behaviour */
 
42
  bool kbd_get_command (string which, string& help, command& cmd);
 
43
 
 
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);
 
52
};
 
53
 
 
54
#endif // defined TM_CONFIG_H