Develop and Download Open Source Software

Browse Subversion Repository

Contents of /jpinput/JpTextConverter.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 191 - (show annotations) (download) (as text)
Fri Jan 4 02:49:36 2008 UTC (16 years, 3 months ago) by satofumi
File MIME type: text/x-chdr
File size: 1086 byte(s)
using namespace beego

1 #ifndef JP_TEXT_CONVERTER_H
2 #define JP_TEXT_CONVERTER_H
3
4 /*!
5 \file
6 \brief 日本語変換クラス
7
8 \author Satofumi KAMIMURA
9
10 $Id$
11 */
12
13 #include "TextConvertInterface.h"
14 #include <memory>
15
16
17 namespace beego {
18
19 class JpTextConverter : public TextConvertInterface {
20 JpTextConverter(void);
21 JpTextConverter(const JpTextConverter& rhs);
22 JpTextConverter& operator = (const JpTextConverter& rhs);
23
24 struct pImpl;
25 const std::auto_ptr<pImpl> pimpl;
26
27 public:
28 typedef enum {
29 Roman,
30 Kana,
31 } ConvertType;
32 JpTextConverter(ConvertType type = Roman);
33 ~JpTextConverter(void);
34
35 void clear(void);
36 void setConvertBuffer(const std::vector<Uint16>& buffer);
37 void getConvertBuffer(std::vector<Uint16>& buffer);
38 bool addChar(char ch);
39 bool moveLeft(void);
40 bool moveRight(void);
41 bool moveUp(void);
42 bool moveDown(void);
43 bool escapePressed(void);
44 bool deleteBack(void);
45 bool deleteCurrent(void);
46 bool convertInput(void);
47
48 // !!! 変換中のハイライト領域の情報を受け取る
49 };
50 };
51
52 #endif /* !JP_TEXT_CONVERTER_H */

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26