2 /* International support for LyX
9 #include FORMS_H_LOCATION
15 #include <boost/smart_ptr.hpp>
16 #include <sigc++/signal_system.h>
19 #include "trans_mgr.h"
24 #ifdef SIGC_CXX_NAMESPACES
26 using SigC::Connection;
29 /// default character set
30 #define DEFCHSET "iso8859-1"
33 /** The gui part and the non gui part should be split into two different
34 classes. Probably should the gui class just have a pointer to the non
37 class Intl : public Object {
44 /// show key mapping dialog
47 void KeyMapOn(bool on);
53 /// turn on/off key mappings, status in keymapon
57 int SetPrimary(string const &);
60 int SetSecondary(string const &);
62 /// initialize key mapper
63 void InitKeyMapper(bool on);
65 // Get the Translation Manager
66 TransManager & getTrans();
74 static void DispatchCallback(FL_OBJECT *, long);
76 /** Redraw the form (on receipt of a Signal indicating, for example,
77 that the xform colors have been re-mapped).
83 static void LCombo(int i, void *, Combox *); // callback
85 void Keymap(long code);
92 FD_KeyMap * fd_form_keymap;
94 boost::scoped_ptr<Combox> Language;
96 boost::scoped_ptr<Combox> Language2;
103 /// Redraw connection.
109 TransManager & Intl::getTrans()