*/
-#ifndef _INTL_H
-#define _INTL_H
+#ifndef INTL_H
+#define INTL_H
+
+#include FORMS_H_LOCATION
#ifdef __GNUG__
#pragma interface
#endif
+#include "LString.h"
#include "form1.h"
class LyXText;
class Combox;
class TransManager;
-class LString;
+
/// default character set
#define DEFCHSET "iso8859-1"
classes. Probably should the gui class just have a pointer to the non
gui class.
*/
-class Intl
-{
+class Intl {
public:
///
Intl();
- ///
- ~Intl();
/// show key mapping dialog
void MenuKeymap();
void ToggleKeyMap();
///
- int SetPrimary(LString const &);
+ int SetPrimary(string const &);
///
- int SetSecondary(LString const &);
-
- // insert correct stuff into paragraph
- //void TranslateAndInsert(char c, LyXText *text);
+ int SetSecondary(string const &);
/// initialize key mapper
void InitKeyMapper(bool on);
/// Get the Translation Manager
- inline TransManager *getTrans();
+ TransManager * getTrans();
///
bool keymapon;
///
- char *chsetcode;
-private:
+ bool primarykeymap;
+ ///
+ char * chsetcode;
///
- //int SelectCharset(char const *code);
+ static void DispatchCallback(FL_OBJECT *, long);
+private:
///
void update();
///
///
void Keymap(long code);
///
- static void DispatchCallback(FL_OBJECT*,long);
- ///
- bool primarykeymap;
- ///
int curkeymap;
///
int otherkeymap;
///
- FD_KeyMap *fd_form_keymap;
+ FD_KeyMap * fd_form_keymap;
///
- Combox *Language;
+ Combox * Language;
///
- Combox *Language2;
+ Combox * Language2;
///
- LString& prim_lang;
+ string & prim_lang;
///
- LString& sec_lang;
+ string & sec_lang;
///
- TransManager *trans;
+ TransManager * trans;
};
-TransManager* Intl::getTrans()
+inline
+TransManager * Intl::getTrans()
{
return trans;
}