Removed cyclic dependencies
[mdictionary] / trunk / src / plugins / xdxf / src / XdxfPlugin / TranslationXdxf.cpp
1 #include "TranslationXdxf.h"
2
3
4 TranslationXdxf::TranslationXdxf() {
5 }
6
7 TranslationXdxf::TranslationXdxf(QString _key, QString _dictionaryInfo, XdxfPlugin *xdxfPlugin): _key(_key),_dictionaryInfo(_dictionaryInfo) {
8     this->xdxfPlugin=xdxfPlugin;
9 }
10
11 QString TranslationXdxf::key() const {
12     return _key;
13 }
14
15 QString TranslationXdxf::dictionaryInfo() const {
16     return _dictionaryInfo;
17 }
18
19 QString TranslationXdxf::toHtml() const {
20     return xdxfPlugin->search(_key);
21 }
22
23 void TranslationXdxf::setKey(QString _key) {
24     this->_key=_key;
25 }
26
27 void TranslationXdxf::setDictionaryInfo(QString _dictionaryInfo) {
28     this->_dictionaryInfo=_dictionaryInfo;
29 }
30