]> git.lyx.org Git - lyx.git/blob - src/intl.h
fix typo that put too many include paths for most people
[lyx.git] / src / intl.h
1 // -*- C++ -*-
2 /* International support for LyX */
3 #ifndef INTL_H
4 #define INTL_H
5
6 #ifdef __GNUG__
7 #pragma interface
8 #endif
9
10 #include "LString.h"
11 #include "trans_mgr.h"
12
13
14 class Intl {
15 public:
16         /// which keymap is currently used ?
17         enum Keymap {
18                 PRIMARY,
19                 SECONDARY
20         };
21
22         Intl();
23
24         /// {en/dis}able the keymap
25         void KeyMapOn(bool on);
26
27         /// set the primary language keymap
28         void KeyMapPrim();
29
30         /// set the secondary language keymap
31         void KeyMapSec();
32
33         /// turn on/off key mappings, status in keymapon
34         void ToggleKeyMap();
35
36         /// initialize key mapper
37         void InitKeyMapper(bool on);
38
39         // Get the Translation Manager
40         TransManager & getTrans();
41
42         /// using primary or secondary keymap ?
43         Keymap keymap;
44
45 private:
46         /// is key mapping enabled ?
47         bool keymapon;
48         /// the primary language keymap
49         string & prim_lang;
50         /// the secondary language keymap
51         string & sec_lang;
52         /// the translation manager
53         TransManager trans;
54 };
55
56
57 inline
58 TransManager & Intl::getTrans()
59 {
60         return trans;
61 }
62
63 #endif /* INTL_H */