lyx_mirror/src/intl.h

64 lines
1004 B
C
Raw Normal View History

// -*- 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 */