1 #ifndef __MOD_DICT_H
2 #define __MOD_DICT_H 1
3 
4 #include <cstdlib>
5 #include <tinydict.h>
6 #include "crgui.h"
7 #include "crtrace.h"
8 #include "t9encoding.h"
9 
10 /// dictionary interface
11 class CRDictionary
12 {
13 public:
14     virtual bool empty() = 0;
15 	virtual lString8 translate(const lString8 & w) = 0;
~CRDictionary()16 	virtual ~CRDictionary() { }
17 };
18 
19 
20 //TODO: place TinyDictionary to separate file
21 class CRTinyDict : public CRDictionary
22 {
23 	TinyDictionaryList dicts;
24 public:
25 	CRTinyDict( const lString16& config );
~CRTinyDict()26 	virtual ~CRTinyDict() { }
27     virtual lString8 translate(const lString8 & w);
empty()28     virtual bool empty() { return dicts.length()==0; }
29 };
30 
31 
32 class CRDocViewWindow;
33 
34 extern void
35 showT9Keyboard(CRGUIWindowManager * wm, CRDocViewWindow * mainwin, int id, lString16 & buffer);
36 
37 
38 #endif
39