lyx_mirror/src/intl.h
Angus Leeming 524a23ba3a Compile fixes for DEC cxx, John's maths and keymap patches.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1783 a592a061-630c-0410-9148-cb99ea01b6c8
2001-03-16 12:08:14 +00:00

64 lines
1004 B
C++

// -*- C++ -*-
/* International support for LyX */
#ifndef INTL_H
#define INTL_H
#ifdef __GNUG__
#pragma interface
#endif
#include "LString.h"
#include "trans_mgr.h"
class Intl {
public:
/// which keymap is currently used ?
enum Keymap {
PRIMARY,
SECONDARY
};
Intl();
/// {en/dis}able the keymap
void KeyMapOn(bool on);
/// set the primary language keymap
void KeyMapPrim();
/// set the secondary language keymap
void KeyMapSec();
/// turn on/off key mappings, status in keymapon
void ToggleKeyMap();
/// initialize key mapper
void InitKeyMapper(bool on);
// Get the Translation Manager
TransManager & getTrans();
/// using primary or secondary keymap ?
Keymap keymap;
private:
/// is key mapping enabled ?
bool keymapon;
/// the primary language keymap
string & prim_lang;
/// the secondary language keymap
string & sec_lang;
/// the translation manager
TransManager trans;
};
inline
TransManager & Intl::getTrans()
{
return trans;
}
#endif /* INTL_H */